自拍偷在线精品自拍偷,亚洲欧美中文日韩v在线观看不卡

簡(jiǎn)單敘述Ubuntu Linux 8.04設(shè)置與優(yōu)化方法

系統(tǒng) Linux
本章主要介紹Ubuntu Linux 8.04設(shè)置與優(yōu)化方法,有如何換內(nèi)核、關(guān)閉IPv6、優(yōu)化apt 源、優(yōu)化會(huì)話啟動(dòng)項(xiàng)、程序啟動(dòng)優(yōu)化等方法,希望對(duì)大家有用。

由于研究很久Ubuntu Linux 8.04,現(xiàn)在沒事教教大家一些簡(jiǎn)單的Ubuntu Linux 8.04設(shè)置與優(yōu)化方法,希望對(duì)大家有用。

1. 換內(nèi)核

系統(tǒng)默認(rèn)的 kernel 2.6.24-16-generic,這個(gè)內(nèi)核是通用內(nèi)核沒針對(duì)特定用戶做過優(yōu)化,而我的臺(tái)式機(jī)還有一個(gè)更好的內(nèi)核可以選,2.6.24-16-rt(realtime)這個(gè)內(nèi)核的特點(diǎn)是任務(wù)搶占式,能大大加快 程序之間的啟動(dòng)時(shí)間跟切換時(shí)間。安裝方法:

sudo apt-get install linux-rt

2. 關(guān)閉IPv6

方法:

編輯 /etc/modprobe.d/aliases

修改

alias net-pf-10 ipv6

alias net-pf-10 off

然后注釋掉 /etc/hosts文件中所有與IPV6有關(guān)的內(nèi)容

# The following lines are desirable for IPv6 capable hosts

::1 ip6-localhost ip6-loopback

#fe00::0 ip6-localnet

#ff00::0 ip6-mcastprefix

#ff02::1 ip6-allnodes

#ff02::2 ip6-allrouters

#ff02::3 ip6-allhosts

這將會(huì)禁止所有使用IPV6的網(wǎng)絡(luò)接口。

再新建一個(gè)/etc/modprobe.d/bad_list文件,內(nèi)容為:

alias net-pf-10 off

3. 優(yōu)化apt 源

$cd /etc/apt

$sudo su

#mv sources.list sources.list-bak

#sed -e ‘/^#/d’ -e ‘s/deb-src/#deb-src/’ sources.list-bak > sources.list

上面命令的結(jié)果是備份sources.list 為 sources.list-bak,同時(shí)去掉了sources.list 中的注釋語(yǔ)句,再注釋掉 deb-src目錄。

太多的注釋語(yǔ)句看得我眼花繚亂,并且我也不需要軟件的源碼。

4. 優(yōu)化會(huì)話啟動(dòng)項(xiàng)

菜單系統(tǒng)——首選項(xiàng)——會(huì)話,去掉你不需要的服務(wù)。

5.程序啟動(dòng)優(yōu)化

使啟動(dòng)程序并行,加速啟動(dòng)過程。

編輯 /etc/init.d/rc

修改

CONCURRENCY=none

為:

CONCURRENCY=shell

小心別寫錯(cuò),錯(cuò)了就無法啟動(dòng)系統(tǒng)了。

6.增加DNS cache

dns cache dnsmasq 也是個(gè)不錯(cuò)的選擇,但pdnsd 更小巧些,單機(jī)用這個(gè)就夠了,而且也不是所有人都需要自己做cache的,我這里杭州網(wǎng)通的dns 服務(wù)器實(shí)在太慢了,才自己做cache 加快dns 解析速度的。

sudo apt-get instll pdnsd 安裝pdnsd

編輯 /etc/pdnsd.conf 在 global 段下方加入

server {ip="x.x.x.x"; /* 此處填你的第一個(gè)dns 服務(wù)器的 IP */

timeout=30;

interval=900;

uptest=none;

ping_timeout=500;

purge_cache=off;

caching=on;

}server {

ip="x.x.x.x"; /* 此處填你的第二個(gè)dns 服務(wù)器的 IP*/

timeout=30;

interval=900;

uptest=none;

ping_timeout=500;

purge_cache=off;

caching=on;

}編輯/etc/resolv.conf文件

改第一行內(nèi)容為 “nameserver 127.0.0.1”

7.安裝RAR壓縮/解壓縮程序

sudo apt-get install rar unrar

做個(gè)軟鏈接

sudo ln -fs /usr/bin/rar /usr/bin/unrar

這樣,以后只要在命令行輸入unrar,就可以解壓或者壓縮文件了,安裝完成后,歸檔管理器也同時(shí)集成了rar組件。

8.清理系統(tǒng)垃圾

sudo apt-get autoclean清理舊版本的軟件緩存

sudo apt-get clean清理所有軟件緩存

sudo apt-get autoremove刪除系統(tǒng)不再使用的孤立軟件
 

Ubuntu Linux 8.04設(shè)置與優(yōu)化方法。

  1. Ubuntu 8.10設(shè)置中文環(huán)境(一)
  2. Ubuntu 8.10設(shè)置中文環(huán)境(二)
  3. Ubuntu Compiz常 用快捷鍵(3)
  4. 簡(jiǎn)單介紹Ubuntu操作系統(tǒng)中的“哞~”
  5. 簡(jiǎn)單教大家 Fedora 12完美安裝nvidia官方驅(qū)動(dòng)
責(zé)任編輯:志輝 來源: linux.chinaitlab.com
相關(guān)推薦

2010-03-15 16:16:41

Ubuntu 8.04

2010-03-15 10:19:53

Linux 分區(qū)

2010-03-16 18:40:59

Ubuntu8.04

2010-03-16 15:53:47

Ubuntu Linu

2010-03-17 16:59:54

Linux學(xué)習(xí)方法

2010-09-09 17:41:52

ubuntu8.04tftp

2009-10-23 16:15:41

2010-03-16 10:28:44

Ubuntu 8.04

2010-03-16 10:13:13

2010-03-12 17:03:28

ubuntu8.04

2009-12-29 13:50:53

Ubuntu upst

2010-03-15 13:26:28

Ubuntu 8.10

2010-03-15 13:35:07

Ubuntu 8.10

2009-12-29 17:21:24

Ubuntu 8.04

2010-01-07 10:14:41

2012-08-13 17:34:11

ubuntu操作系統(tǒng)

2009-12-31 14:27:22

UBUNTU Orac

2011-09-02 16:50:32

2010-03-03 13:56:43

Linux ubant

2009-03-23 07:42:22

LinuxUbuntu觸摸板
點(diǎn)贊
收藏

51CTO技術(shù)棧公眾號(hào)