分类: LINUX
2009-09-07 17:43:34
In my opinion, logs files of Linux is almost useless on desktop usage. If you agree with me, you can make your Linux box runs faster than before. Basically, you should have 1GB RAM or more.
9.10: vi /etc/init/rsyslog.conf 以 start 开头的行,用 # 注释
vi /etc/init/rsyslog-kmsg.conf
vi /etc/init/dmesg.conf 等等 (请慎用)
Step A :
sudo nano /etc/fstab
Append the following lines to /etc/fstab
tmpfs /tmp tmpfs noexec,defaults,noatime 0 0
tmpfs /var/tmp tmpfs noexec,defaults,noatime 0 0
sudo mount -a
If there is no error, you can reboot your system after completed all the steps mentioned here.
Step B :
sudo nano /etc/sysctl.conf
Append the following line to /etc/sysctl.conf
vm.swappiness=1
Step C :
Firefox puts its cache in your home partition. By moving this cache in
RAM you can speed up Firefox and reduce disk writes. Complete the
previous tweak to mount /tmp
in RAM, and you can put the cache there as well.
Open about:config
in Firefox. Right click in an open area and create a new string value called browser.cache.disk.parent_directory
. Set the value to /tmp
.
Step D :
Add the following line at the end of /boot/grub/menu.lst
of kernel
tab.
elevator=noop
Reboot your system and you will experience the performance.
By the way, if you want to install Ubuntu Netbook Remix 9.04 to ASUS Eee PC 701, you will encounter lagging on the operation. You may consider to install the following version namely Lambda Netbook Remix at which is in Traditional Chinese by default. However, you can choose to install it in English too. After the installation, you can apply the captioned settings to improve the life of the SSD and increase the performance of your Eee PC 701.
Remarks :
If you do not have any SSD, you can also tune your system by following Step A to C.
addition:
1.打开 /etc/hosts 文件,可以看到类似下面的内容:
127.0.0.1 localhost
127.0.1.1 inspiron
现在,只需在第一行的末尾加上主机名即可:
127.0.0.1 localhost inspiron
127.0.1.1 inspiron
保存后,重启系统,更改将生效。
2、禁用 gettys
9.04 :打开 sudo gedit /etc/event.d/tty3,把所有以 start 开头的行,用 # 注释掉。
9.10:/etc/init $sudo vi tty6.conf 以 start 开头的行,用 # 注释
3.
启动项的修改。
安装 BUM
BUM 是个很普及的软件,您可以通过输入以下指令很方便的进行安装
sudo apt-get install bum
[] 运行 BUM
BUM 需要拥有超级用户权限才能运行,我们从这里开始
sudo bum
在出现提示框时输入您的密码。
BUM
在启动时需要几分钟时间,请耐心等待。
4.