前言
Ubuntu是基於Debian的一個社區發行版,是主流發行版之一,現在有很多的linux愛好者使用這個易用、強大的發行版。此文面向對象是希望安裝配置好ubuntu的朋友,此文難度不大,按照本文安裝配置完成之後您可以繼續對您的系統進行更多的改進。
如果看不清文中的圖片,請點擊圖片即可放大
安裝ubuntu前,請備份好您的重要數據
附加篇:從舊版本升級到7.04方法(如果您已經安裝了7.04以前的版本,那麼您可以不必重新安裝,而是採用升級的方法來升級到7.04)
1、通過源升級
將源列表更換爲feisty的,可以
終端輸入
sudo gedit /etc/apt/sources.list
將裏面的如dapper、或edgy之類的版本號改成feisty,保存退出。
或者直接在本文後面的源列表裏複製一組覆蓋原來sources.list的內容,保存退出。
然後終端輸入
sudo apt-get dist-upgrade
會詢問您是否升級,輸入y後會經過漫長的一段時間(根據您的網速決定),系統會自動更新完畢後重啓,您就會看到升級爲7.04了。
一、安裝篇
1、下載光盤鏡像
首先下載我們需要的光盤鏡像,如果你喜歡刻盤安裝那就下載desktop版本刻盤安裝,我們這裏討論的是使用ubuntu-7.04-alternate-i386.iso進行硬盤安裝,所以推薦下載alternate版,另外最近下載的人比較多,更推薦使用bt下載。
下載地址:http://ubuntu.csie.nctu.edu.tw/ubuntu-releases/7.04/
如果你刻盤安裝,那麼把刻好的盤直接放到光驅中,desktop版本啓動之後可以進入一個livecd模式,你可以在裏面先體驗一下,點擊桌面上的 install進行安裝,按提示一步步安裝就行了。alternate版本的就會出現下面的畫面,直接選擇第一項進入。(直接跳到第5步)
下面說一下硬盤安裝的方法。
2、下載引導文件
先下載好光盤鏡像,放在某個分區根目錄下(我這裏放置在windows的D盤下)然後下載硬盤安裝的引導文件,下載地址:
http://ftp.sjtu.edu.cn/ubuntu/dists/feisty/main/installer-i386/current/images/hd-media/initrd.gz
http://ftp.sjtu.edu.cn/ubuntu/dists/feisty/main/installer-i386/current/images/hd-media/vmlinuz
以上兩個文件都要下載,放在某個分區裏,(我這裏還是放置在windows的D盤下)
4、準備grub,引導安裝程序
然後想辦法搞到一個grub用。如果你有grub就直接跳過這步。如果沒有grub,下載矮人dos工具箱
下載地址http://download.zol.com.cn/detail/9/88018.shtml
然後下載一個grub for dos,將裏面的grub.exe等東西解壓出來(圖省事,也解壓並放到D盤根目錄下)(如果你有軟盤的話,可以把grub for dos解壓到軟盤裏使用軟盤引導,啓動grub)
下載地址:http://download.gna.org/grub4dos/
安裝後重啓,選擇矮人dos工具箱進入,然後就會出現如下畫面
find /ubuntu-7.04-alternate-i386.iso
出現的結果(會出現(hd 0,X)一類的東西)就是上面(hd0,2)應該改成的東西了
5、進行安裝
這裏選手動,否則你硬盤上的其他東東都會玩完了。
還是選“否”,選“是”的話有可能系統時間混亂。
1、網絡配置
安裝完了先確定你的網絡連接方式,如果是LAN或者路由(或自動撥號的ADSL)的話,這步驟就可以PASS了,如果是需要ADSL虛擬撥號的用戶,請在終端下執行如下命令
sudo pppoeconf
然後根據裏面的提示設置一下你虛擬撥號。設置完畢應該可以上網了。
2、更換軟件源、更新系統
先去網上search一份你使用起來比較快的,網通建議用臺灣的源,電信就用cn99
在終端輸入
sudo gedit /etc/apt/sources.list
懶得搜索的,下面有一份源列表,建議複製一部分使用
# Archive.ubuntu.com 更新服務器(歐洲,此爲官方源) deb http://archive.ubuntu.com/ubuntu/ feisty main restricted universe multiverse deb http://archive.ubuntu.com/ubuntu/ feisty-security main restricted universe multiverse deb http://archive.ubuntu.com/ubuntu/ feisty-updates main restricted universe multiverse deb http://archive.ubuntu.com/ubuntu/ feisty-proposed main restricted universe multiverse deb http://archive.ubuntu.com/ubuntu/ feisty-backports main restricted universe multiverse deb-src http://archive.ubuntu.com/ubuntu/ feisty main restricted universe multiverse deb-src http://archive.ubuntu.com/ubuntu/ feisty-security main restricted universe multiverse deb-src http://archive.ubuntu.com/ubuntu/ feisty-updates main restricted universe multiverse deb-src http://archive.ubuntu.com/ubuntu/ feisty-proposed main restricted universe multiverse deb-src http://archive.ubuntu.com/ubuntu/ feisty-backports main restricted universe multiverse |
# Ubuntu.cn99.com 更新服務器(江蘇省常州市電信,推薦電信用戶使用。)
deb http://ubuntu.cn99.com/ubuntu/ feisty main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu/ feisty-security main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu/ feisty-updates main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu/ feisty-proposed main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu/ feisty-backports main restricted universe multiverse
deb-src http://ubuntu.cn99.com/ubuntu/ feisty main restricted universe multiverse
deb-src http://ubuntu.cn99.com/ubuntu/ feisty-security main restricted universe multiverse
deb-src http://ubuntu.cn99.com/ubuntu/ feisty-updates main restricted universe multiverse
deb-src http://ubuntu.cn99.com/ubuntu/ feisty-proposed main restricted universe multiverse
deb-src http://ubuntu.cn99.com/ubuntu/ feisty-backports main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu-cn/ feisty main restricted universe multiverse
# mirror.rootguide.org更新服務器 (上海市 電信):
deb http://mirror.rootguide.org/ubuntu/ feisty main restricted universe multiverse
deb-src http://mirror.rootguide.org/ubuntu/ feisty main restricted universe multiverse
deb http://mirror.rootguide.org/ubuntu/ feisty-updates main restricted universe multiverse
deb-src http://mirror.rootguide.org/ubuntu/ feisty-updates main restricted universe multiverse
deb http://mirror.rootguide.org/ubuntu/ feisty-backports main restricted universe multiverse
deb-src http://mirror.rootguide.org/ubuntu/ feisty-backports main restricted universe multiverse
deb http://mirror.rootguide.org/ubuntu/ feisty-security main restricted universe multiverse
deb-src http://mirror.rootguide.org/ubuntu/ feisty-security main restricted universe multiverse
deb http://mirror.rootguide.org/ubuntu/ feisty-proposed main multiverse restricted universe
deb-src http://mirror.rootguide.org/ubuntu/ feisty-proposed main restricted universe multiverse
deb http://mirror.rootguide.org/ubuntu-cn/ feisty main multiverse restricted universe
# 臺灣大學更新服務器(推薦網通用戶使用,此源比較完整,較少出現同步問題)
deb http://ubuntu.csie.ntu.edu.tw/ubuntu/ feisty main restricted universe multiverse
deb-src http://ubuntu.csie.ntu.edu.tw/ubuntu/ feisty main restricted universe multiverse
deb http://ubuntu.csie.ntu.edu.tw/ubuntu/ feisty-updates main restricted universe multiverse
deb-src http://ubuntu.csie.ntu.edu.tw/ubuntu/ feisty-updates main restricted universe multiverse
deb http://ubuntu.csie.ntu.edu.tw/ubuntu/ feisty-backports main restricted universe multiverse
deb-src http://ubuntu.csie.ntu.edu.tw/ubuntu/ feisty-backports main restricted universe multiverse
deb http://ubuntu.csie.ntu.edu.tw/ubuntu/ feisty-security main restricted universe multiverse
deb-src http://ubuntu.csie.ntu.edu.tw/ubuntu/ feisty-security main restricted universe multiverse
deb http://ubuntu.csie.ntu.edu.tw/ubuntu/ feisty-proposed main multiverse restricted universe
deb-src http://ubuntu.csie.ntu.edu.tw/ubuntu/ feisty-proposed main restricted universe multiverse
# 北 市清華大學 更新服務器(教育網,推薦校園網和網通用戶使用)
deb http://mirror9.net9.org/ubuntu/ feisty main multiverse restricted universe
deb http://mirror9.net9.org/ubuntu/ feisty-backports main multiverse restricted universe
deb http://mirror9.net9.org/ubuntu/ feisty-proposed main multiverse restricted universe
deb http://mirror9.net9.org/ubuntu/ feisty-security main multiverse restricted universe
deb http://mirror9.net9.org/ubuntu/ feisty-updates main multiverse restricted universe
deb-src http://mirror9.net9.org/ubuntu/ feisty main multiverse restricted universe
deb-src http://mirror9.net9.org/ubuntu/ feisty-backports main multiverse restricted universe
deb-src http://mirror9.net9.org/ubuntu/ feisty-proposed main multiverse restricted universe
deb-src http://mirror9.net9.org/ubuntu/ feisty-security main multiverse restricted universe
deb-src http://mirror9.net9.org/ubuntu/ feisty-updates main multiverse restricted universe
deb http://mirror9.net9.org/ubuntu-cn/ feisty main multiverse restricted universe
裏面亂七八糟的東西刪了,將你複製的源列表粘貼到裏面,保存退出。
在終端輸入
sudo apt-get update
sudu apt-get upgrade
這樣便更新以及升級了系統。
3、中文支持安裝(包括輸入法)
更新完畢後,點擊屏幕上方面板中的“系統”(可能是英文,總之是從左邊數第三個),在菜單中選擇“系統管理”(同樣可能是英文,是菜單第2項),打開語言支持(language support),在這個設置程序中找到chinese一項,將後面的方框點成對號,再點Apply.
系統會自動幫助你安裝完中文字體、輸入法等。這步完畢後最好重啓一下,來看看我們漂亮熟悉的漢字吧!
4、安裝解碼器、flashplayer、java虛擬機、微軟字體
這是ubuntu推出的一個新軟件包,將一次性將上面幾個東東自動裝好
在終端輸入
sudo apt-get install ubuntu-restricted-extras
即可完成安裝
5、安裝媒體播放器
我個人還是推薦使用mplayer,它支持的格式很全,功能強大,當然,你也可以用系統自帶的播放器,在上一步中已經安裝了totem的相關解碼器,並且當你用它播放wma之類上面沒有安裝的解碼器的文件時,程序會自動搜索並安裝上
我安裝的是mplayer
終端輸入
sudo apt-get install mplayer mozilla-mplayer totem-xine libxine-extracodecs
另外需要一個w32codecs文件,是用來支持那些私有媒體格式的解碼器,源裏已經沒有w32codecs了,我們可以從這裏下載那個後綴爲.deb的安裝
http://www.debian-multimedia.org/pool/main/w/w32codecs/
mplayer調試(視頻、字幕)
啓動mplayer,右鍵->Preferences->Video
Available drivers選擇xv
然後進入Font標籤 Font裏選擇一箇中文字體,Encoding裏設置爲Simplified Chinese charset (CP936)
6、安裝下載工具(多線程下載、BT下載、電驢)
還是終端輸入
sudo apt-get install d4x amule azureus
即可。
或者把 beryl-manager添加到啓動項內
四、美化篇
1、字體更換
我推薦大家使用文泉驛字體,在
http://wqy.sourceforge.net
下載deb包安裝
在“系統“->”首選項“->”字體“中調整字體
五、優化與清理篇
1、apt下載的deb包清理
在使用完apt後,系統下載的deb包會留存在硬盤裏,我們可以把它們刪除,釋放硬盤空間。
終端輸入
sudo apt-get clean
7、Firefox瀏覽器優化
這個不多說了,只推薦幾個插件
Tab Mix Plus ————標籤瀏覽增強插件
Super DragAndGo————超級拖拽插件
Fasterfox————瀏覽器速度優化插件
去https://addons.mozilla.org/en-US/firefox/
搜索安裝。
8、安裝rar壓縮、解壓工具
終端輸入
sudo apt-get install rar unrar
9、啓用root(最高權限)帳戶
終端輸入
sudo passwd root
輸入你希望的root用戶的密碼
10、安裝QQ
雖然eva是個qt程序,但是我仍然推薦使用它,因爲它功能很強大,可以發
終端輸入
sudo apt-get install eva
便可安裝eva了,如果你是使用scim(選擇中文語言支持的自動安裝的就是scim),爲了可以在eva裏面輸入文字,
要在終端輸入
sudo apt-get install scim-qtimm
系統會安裝支持QT的scim插件,這樣你就可以使用eva聊qq了。
三、顯卡驅動安裝和beryl(3D桌面)安裝篇
1、顯卡驅動安裝
feisty裏面顯卡驅動的安裝也是相當簡單的事情,進入“系統”->“系統管理”->“受限驅動管理器”
找到你的顯卡,把那個框點成對號,會提示你安裝顯卡驅動,然後按照提示一步一步安裝完畢,重啓即可。
2、beryl的安裝
在此之前先說明一下,你的系統在安裝完畢之後就已經有了一個內置的桌面效果軟件(能實現簡單的桌面特效,包括3D立方體),使用方法是(必須將顯卡驅動裝好)進入“系統”“首選項”“桌面效果”,點擊“啓用桌面效果”,如果你需要使用3D立方體桌面,那麼選中“立方體上的工作區”即可。
如果你對這個簡單的桌面特效工具不太滿意,想追求更華麗的桌面,那麼安裝beryl仍然是個很好的選擇。如今安裝beryl不會像以前一樣麻煩了,feisty的源裏已經有了beryl的軟件包,我們只需要在終端裏輸入
sudo apt-get install beryl-core beryl-plugins beryl-plugins-data emerald beryl-settings beryl-manager beryl beryl-dev emerald-themes
安裝完畢即可了。
啓動方法:“應用程序”->"系統工具"->"Beryl Manager"
或者直接在終端輸入
beryl-manager