Month: September 2010

Rename Ubuntu box name

Posted by – September 14, 2010

On terminal:
$ sudo vi /etc/hosts
$ sudo vi /etc/hostname
$ reboot

Refers to:

install ubuntu 10.10 on hard disk using iso file

Posted by – September 13, 2010

To install Ubuntu on hard disk using iso file:

1. Download ubuntu iso file to a disk partition(e.g.: /dev/sda3) root(/) dir which NOT the partition will install Ubuntu.

cd /
wget -c

2. Only extract vmlinuz and initrd.lz from iso file the casper dir to the root(/) dir the iso file downloaded.
3. Reboot the box and enter into grub:


Once rebooted, when see the grub list, enter ‘c’ to enter into grub.
4. Type below grub commands to install Ubuntu from hard disk:

root (hd0,3)
kernel /vmlinuz   boot=casper    iso-scan/filename=/maverick-desktop-i386.iso ro quiet splash locale=zh_CN.UTF-8
initd    /initrd.lz

4. Once enter into the new system, installing ubuntu by clicking the icon on your desktop, and follow the tips to finish installation.

1. You can renmae iso file for short.
2. You can remove the locale parameter from the kernel( if not work, use ‘linux‘ instead) command.


Happy the 26th Techer's day!

Posted by – September 9, 2010

Happy the 26th Techer’s day!

I am very happy to congratulate my old classmates the twelfth Teacher’s day!
Hope them more happy, younger and have more students!


Ubuntu mount permanently

Posted by – September 9, 2010

Ubuntu mount permanently: ( if not root, use sudo before each command below)
1. mkfs.ext3 or mkfs.ext4 your device like below:

[code lang=”bash”]mkfs.ext3 /dev/sda4

2. Modify /etc/fstab, and append below line to the file:

[bash]/dev/sda4    /home/freespace    ext3    default,noatime    0     0

3. reboot your box:


Using more /etc/fstab to see more info about how to add entry to fstab file see below:

root@JinLab:~/sda4# more /etc/fstab

# /etc/fstab: static file system information.
# Use ‘blkid -o value -s UUID’ to print the universally unique identifier
# for a device; this may be used with UUID= as a more robust way to name
# devices that works even if disks are added and removed. See fstab(5).
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    defaults        0       0
# / was on /dev/sda2 during installation
UUID=c1bc5ff4-157b-4e33-a30f-12e5691d77d0 /               ext4    errors=remount-ro 0       1
# swap was on /dev/sda1 during installation
UUID=69230e89-79fa-4bca-a37f-ce9461c31129 none            swap    sw              0       0

# /root/sda4 on /dev/sda4
UUID=2dbba927-0fb3-4ad0-97f0-9887364e5edc /root/sda4       ext3 defaults,noatime 0    0

Top 10 security plugins for wordpress

Posted by – September 6, 2010

Refers to:

10款安全保护类插件分别有:WordPress Database Buckup(WP备份插件)Semisecure Login(加强登录保护)Ask Apache Password ProtectForce SSL(强制SSL)WP Security Scan(安全扫描)Secure FilesWP-SpamFree(防垃圾留言)BackUpWordPress(备份WordPress)Anonymous WordPress Plugns Updates(匿名WordPress插件更新)Replace WP-version(替换WP版本).

A foreign girl quiting email

Posted by – September 3, 2010

A quiting email from a foreign girl:
Refers to:
Happy Monday everybody!
I quit!
I’ve learned a lot these past 2 years and I’m going to miss all of you.
execpt one I’m looking @ you Spencer.
Being your assistant’s been a special hell.
I put up with your temper and your bad breath.
Becuase I wanted to be a broker.
On Friday I transferred you a call, I was about to hang up when I
heard you call me a HOPA.
Hot Piece Of Ass.
Is that really all you thought of me?
Did you ever wonder… Why everybody in the office called the trash
a garbage diSpenver?
Office Morale is down since you installed the ‘Littel office switch.
So you could monitor how we spend our time  noline.
So I wondered “How dose Spencer spend hist time online?
You gave Me the codes after all.
4 hrs./week Scottrade
5.3 hrs./week TechCrunch
and Drumro!!!
19.7 hrs./week playing FARMVILLE.
So this HPOA’s Moving on
although I don’t have another job.
Something tells Me I’ll be just fine


Posted by – September 2, 2010

眼科专家指出: 将Window 底色转做“豆沙绿色”可保护眼睛。
桌面->右键->属性->外观->高级->“项目”选择(窗口)、“颜色1(L)” 选择(其它)
经过这样的设置后,所有文档都 再不是刺眼的白底黑字,而是非常柔和的豆沙绿色,

这色调是眼科专家配置 ,长时间使用会很有效的舒缓眼睛疲劳,保护眼睛。



Posted by – September 2, 2010




第一步, 在桌面上点击鼠标右键,依次点击“属性”、“外观”、“高级”按钮。

第二步, 在打开的“高级”对话框中,在“项目”下拉列表里选择“窗口”。

第三步, 再打开右边对应的“颜色”列表,选择其中的“其他”一项,在打开的对话框里,把“色调”的参数设置为85,把“饱和度”参数设置为90,把“亮度”参数设置为205。再点击“确定”退出设置。




WordPress syntax highlighter.

Posted by – September 1, 2010

To download it here, and upload it to your wordpress:

Chm viewer on Ubuntun

Posted by – September 1, 2010

xchm: Compiled HTML Help (CHM) file viewer for X
To get it:
sudo apt-get install xchm

To search chm relates info:
sudo aptitude search chm