Month: September 2010

Rename Ubuntu box name

Posted by – September 14, 2010

On terminal:
[bash]
$ sudo vi /etc/hosts
$ sudo vi /etc/hostname
$ reboot
[/bash]

Refers to:
http://wiki.ubuntu.org.cn/%E6%9B%B4%E6%94%B9%E8%AE%A1%E7%AE%97%E6%9C%BA%E5%90%8D

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.

[bash]
cd /
wget -c http://cdimage.ubuntu.com/daily-live/current/maverick-desktop-i386.iso
[/bash]

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:

[bash]
reboot
[/bash]

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

[bash]
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
boot
[/bash]

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

Note:
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.

Enjoy!

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!

Xiaoning
09/10/2010

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
[/code]

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

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

3. reboot your box:

[bash]reboot[/bash]

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

[bash]
root@JinLab:~/sda4# more /etc/fstab
[/bash]

# /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:
http://speckyboy.com/2008/04/08/top-10-security-and-protection-plugins-for-wordpress/#comment-311102

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:
http://user.qzone.qq.com/732952649/share/1283421397
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.
HOPA?? H–O—P–A–
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.
Wow
So this HPOA’s Moving on
although I don’t have another job.
Something tells Me I’ll be just fine

改变windows背景颜色,“豆沙绿色”可保护眼睛.(转载)

Posted by – September 2, 2010

眼科专家指出: 将Window 底色转做“豆沙绿色”可保护眼睛。
桌面->右键->属性->外观->高级->“项目”选择(窗口)、“颜色1(L)” 选择(其它)
将色调改为:85。饱和度:123。亮度:205->添加到自定义颜色
->在”自定义颜色”选中该自定义颜色后点击确定->确定
经过这样的设置后,所有文档都 再不是刺眼的白底黑字,而是非常柔和的豆沙绿色,

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

赶快试试吧!保护眼睛要紧啊!

保护视力,将WINDOWS背景色变成淡绿色.(转帖)

Posted by – September 2, 2010

现代人几乎每天都离不开电脑。在工作、娱乐、交友,甚至买卖股票的过程中,电脑都是我们的好帮手。但是,许多应用软件的背景,尤其是网页的底色通常被设定为刺眼的白色,看得久了,眼睛就会出现疲劳、酸涩,甚至流泪的现象。

绿色和蓝色对眼睛最好,建议大家在长时间用电脑后,经常看看蓝天、绿地,就能在一定程度上缓解视疲劳。同样的道理,如果我们把电脑屏幕和网页的底色变为淡淡的苹果绿,也可在一定程度上有效地缓眼睛疲劳等症状了。

下面就教你如何把网页底色变成淡淡的苹果绿:

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

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

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

第四步,打开IE浏览器,选择“工具”栏中的“Internet选项”,点击“辅助功能”按钮,在“不使用网页中指定的颜色”前打钩。

全部步骤完成后,网页、文件夹、文本文档里的背景颜色都变成了绿色。其中,色调、饱和度和亮度的参数值,还可以根据个人的喜好稍作修改,让自己用电脑的候最舒服。

红色是最刺激眼睛的颜色,看得时间长了,就容易产生眼干、眼涩等症状,加重眼睛疲劳,所以建议大家不要使用红色作为电脑屏幕和网页的底色。

WordPress syntax highlighter.

Posted by – September 1, 2010

To download it here, and upload it to your wordpress:
http://www.lastengine.com/wp-content/uploads/2010/01/syntax-highlighter-and-code-prettifier.zip

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