chown -R :group mountpoint
Tuesday, December 29, 2009
Mount disk in non-root account
Saturday, December 26, 2009
Friday, December 25, 2009
Openbox windows manager
VirtualBox &(sleep 5 && xterm -e screen) &google-chrome &
窗口管理器 Openbox 入门指南
Thursday, December 17, 2009
Reconstruct MBR by GRUB
root (hd0,2)kernel (hd0,2)/boot/vmlinuz-... root=/dev/hda3 roinitrd (hd0,2)/boot/initrd-...imgboot
- Use a debian installation CD to boot computer
- Select install option
- After entering the installation menu, use Ctrl+F2 to access the shell
- chroot your Linux environment
- Use grub-install /dev/hda (or grub-install --root-directory=prefix '(hd0)' )
- Restart computer
- Download GRUB for DOS
- Uncompress and copy grldr and grub.exe in C root drive
- Edit C:boot.ini (in CMD, msconfig -> choose boot.ini)
- Add C:grldr="grub" in the last line
- Download wingrub
- After finishing installation, install grub -> boot.ini, drive: C: -> install
- Restart computer
- There are two options in the boot menu: windows, mygrub
- Entering mygrub, choose YourLinuxSystemLabel, press c
- Edit GRUB: grub>root (hdX,Y); grub>setup (hd0)
Wednesday, December 16, 2009
Useful wget commands
Download all files in the directory of packages and fabricate all the structure of the site, http://example.com
$wget -r http://example.com/packages/
$wget -r -np -nd http://example.com/packages/The same as above, but don't recursive for parent directory (-np), don't reconstruct directory structure in local machine (-nd)
$wget -i filename.txtfilename.txt includes all needed download address, then wget would automatically download all file
wget -c http://example.com/really-big-file.isothe option -c means wget would resume last download process in the case the last download didn't finish
wget -m -k (-H) http://www.example.com/mirror a site, and convert the links in the mirror automatically. -H enable across site recursive retrieving
Tuesday, December 15, 2009
Cloud operating system for Netbook
sudo dd if=ChromeOS-Cherry.img of=/dev/X bs=4M
- Open a Terminal and go to the directory where you downloaded the file: cd /the/path/to/your/directory
- Change the script permissions: chmod a+x jolicloud-usb-creator-1.2.0.sh
- Run the program (at this stage you will be asked to enter your administrator password): ./jolicloud-usb-creator-1.2.0.sh
- Connect your USB key to your computer.
- In the Jolicloud USB Creator window, click <em>Browse</em> to find and select the <em>jolicloud-robby-alpha2c-live.iso</em> in your system.
- Select your target device: The USB key you have inserted should be automatically detected.
- Click <em>Create</em> to create your Jolicloud USB.
Monday, December 14, 2009
Remember The Milk
Friday, October 30, 2009
Amaya - W3C's Editor/Browser
Home Page: http://www.w3.org/Amaya/
Vendor: W3C
W3C's Amaya browser displays Presentation MathML, and lets a Web page author edit equations directly. The software gives multiple views of a document so that its internal structure can be displayed as well as a WSYSIWYG interface. Web editor, a tool used to create and update documents directly on the Web. Browsing features are seamlessly integrated with the editing and remote access features in a uniform environment. This follows the original vision of the Web as a space for collaboration and not just a one-way publishing medium.
Monday, October 5, 2009
Firefox 3.7 theme mockup
Step 1
First download the theme using following link:
Download Mozilla Firefox 3.7 Theme
Its a ZIP file. Extract it using WinRAR or 7-Zip (both can be found in our "Downloads" section). You'll get a .ZAR file which contains the actual theme. Drag-n-drop this file to "Add-ons" window in Firefox and it'll install the theme.
Step 2
You'll also need to install the "All Glass Firefox" add-on to get the Glass effect which can be found here.Step 3
It'll add the "Tools" button near searchbox. Now right-click on empty area near addressbar or searchbox and select "Customize" option. Now drag "Bookmarks" button between searchbox and Tools button.
Now go to "Tools -> Add-ons -> Extensions" menu and select "Personal Menu" from the list. Click on "Options" button and go to "Advanced" Tab. Enable "Hide Drop-Marker" option. Also enable "Hide Menus Toolbar" and "Show temporarily by pressing ALT key" options to hide menubar.
Step 4
Chrome-like tab on the top. Install Stylish addons. Install Stylish
Install Firefox Tabs at The Top!! (Chrome Like) v2
Monday, September 28, 2009
SMALL STEP TO BIG GOAL
Hey everyone,
Most of you know that I'm committed to solving the climate crisis. If you're like me, you're convinced about the urgency of this problem, but don't know what you can do that will make a real difference. That's why I'm writing you today.
I just watched a really cool video from the crew at www.350.org. It's about new global campaign focused on making sure the world takes the kind of big, bold, fast action that we need to solve this crisis--check it out: http://www.350.org/video
I think you'll agree that it's beautiful--I've included the link so you can pass it on to your friends!
Monday, August 31, 2009
Xplanet in Debian 5.0
- aptitude install xplanet xplanet-images
- edit .xplanet/config: because the night earth image that provided by package "xplanet-images" seems fixed, in order to cancel the display of night image, add the line below default item: shade=100. Then add 'cloud_map=~/.xplanet/clouds_2048.jpg' below earth item.
- use download_clouds.py or download_clouds.pl to download cloud image
- write the script, startxplanet.sh:
python ~/.xplanet/download_clouds.py ~/.xplanet/clouds_2048.jpg
xplanet -body earth -latitude $LATITUDE -longitude $LONGITUDE -quality 100 -geometry 1600x1200 -config ~/.xplanet/config
Monday, August 10, 2009
Sunday, August 9, 2009
sudo + mount in Debian 5.0
visudo: (man sudoers)
opera debian=(PASSWD): /bin/mount, /bin/umount(username hostname=(NOPASSWD\PASSWD\noexec): command)
(for sudo works well, need to configure hostname properly)
edit /etc/hosts:debian
127.0.0.1 localhost(it seems to cause some problem if written as 127.0.0.1 localhost debian)
192.168.0.1 debian
iface eth0 inet staticaddress 192.168.0.1
netmask 255.255.255.0
alias mount='sudo /bin/mount -o umask=000'
alias umount='sudo /bin/umount'
Saturday, August 8, 2009
Listen Podcast in Linux (Debian) - hpodder
subscribe new podcast:
$ hpodder add http://yourfavouritesite.com/podcastfeed.xmlHpodder will handle any valid podcast feed, even if it is not the traditional .xml address —including feeds extracted from an OPML export of iTunes podcasts. Once you have your list of podcasts you wish to download, simply type:
$ hpodder update
$ hpodder download
Or, if you want to make life easy:
$ hpodder fetchto download only the most recent episode, you can do this by typing:
$ hpodder catchupto delete a podcast type:
$ hpodder fetch
$ hpodder rm ID
Where ID is the podcast's ID number (else you risk deleting them all!).
Downloading the actual episode of your podcast is handled by cURL and is fast, efficient and if interrupted for whatever reason, can be picked up later on without having to start the download from the beginning.
If you want to make hpodder fetch on a regular basis, you can add it to your cron jobs and set it to run as frequently as you like.
If you want a full list of the commands and more subtle features available to hpodder users you can download the manual in PDF format, or read it online.
Debian 5.0 + wmii
- useful automatically generated sources.list: Debian Sources List Generator
- useful wiki guide: http://wiki.debian.org/
Wmii (Windows Manager Improved)
- apt-get install xserver-xorg xterm xinit
- apt-get install wmii
- useful wiki guide: http://wiki.debian.org/Wmii
- useful intro guide: http://tuxtraining.com/2009/05/17/intro-to-wmii
acceptable xterm appearance:
- use fontsel to select wanted font: -dejavu-*-*-*-.... or http://levien.com/type/myfonts/inconsolata.html
- edit ~/.wmii-3.5/wmiirc: WMII_TERM='xterm -font -dejavu-*-*-*-....' (edit ~/.Xresources: xterm*font:-dejavu-*-*-*-...)
- edit /etc/vim/vimrc: uncomment syntax=on
- configuring xterm in Linux: http://linuxhelp.blogspot.com/2005/10/configuring-xterm-in-linux.html
HotKey Shortcut
add the line to ~/.wmii-3.5/wmiirc:
Key $MODKEY-n
iceweasel &
Friday, August 7, 2009
Wednesday, July 22, 2009
Monday, June 22, 2009
Monday, June 15, 2009
Analysis textbook
- "Measure Theory and Fine Properties of Functions", by Lawrence Craig Evans, Ronald F. Gariepy
- "Analysis", by Elliott H. Lieb and Michael Loss