Chinaunix首页 | 论坛 | 博客
  • 博客访问: 255116
  • 博文数量: 78
  • 博客积分: 3245
  • 博客等级: 中校
  • 技术积分: 1410
  • 用 户 组: 普通用户
  • 注册时间: 2006-03-04 12:30
文章分类

全部博文(78)

文章存档

2010年(6)

2009年(72)

我的朋友

分类: LINUX

2009-09-07 17:43:34

为了保护宝贵的SSD硬盘,有下面的设置选项可以设置。


注意:noexec 设置后会在以后的安装文件在tmp下运行,就会不成功,遇到零时解决方案可以先取消。



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.




阅读(783) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~