bomberlhl

          統計

          留言簿(1)

          閱讀排行榜

          評論排行榜

          【轉載】:ubuntu硬盤安裝與配置詳細圖解

          前言

          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版,

          下載地址:http://releases.ubuntu.com/7.04/

           

          下面說一下硬盤安裝的方法。

           

          2、下載引導文件

          先下載好光盤鏡像,放在某個分區根目錄下(我這里放置在windowse盤下)然后下載硬盤安裝的引導文件,下載地址:

          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

          以上兩個文件都要下載,放在某個分區里,(我這里還是放置在windowse盤下)

           

          3、準備分區

          在硬盤上用分區魔術師之類的軟件分出來一個ext3的分區,作為linux根分區,分出一個大小為內存2倍的swap分區,作為linux的虛擬內存。

           

          4、準備grub,引導安裝程序

          然后下載一個grub for dos,將里面的grub.exe等東西解壓出來(圖省事,解壓并放到c盤根目錄下)(如果你有軟盤的話,可以把grub for dos解壓到軟盤里使用軟盤引導,啟動grub

          下載地址:http://download.gna.org/grub4dos/

          然后修改c:\boot.ini文件(如何找到這個文件不用我說了吧),在最下邊添加一行: c:\grldr=Grub(注意修改之前先把只讀屬性去掉,要不可是保存不了的哦).然后重啟,選擇Grub進入,c鍵調出命令模式

           

          注意:命令里面的 (hdx,x)不是絕對的,要看你文件放置的分區和目錄決定。實在不確定的話,可以先輸入
          find /ubuntu-7.04-alternate-i386.iso
          出現的結果(會出現(hd x.x)一類的東西)就是上面(hdx,x)應該改成的東西了

          輸入如下命令

          Grub>kernel (hdx,x)/vmlinuz root=/dev/ram0 ramdisk_size=32000 devfs=mount,dall

           

          Grub>initrd (hd0,2)/initrd.gz

           

          Grub>boot

           

          5然后會出現如下圖所示的界面,安裝提示安裝即可.

           
           
          選擇語言,這里我們選擇中文簡體(看著舒服^_^)
           
           
          位置就選中國吧~
           
           
          選擇鍵盤,這里選“否”,在下面手動選擇鍵盤,這里選“是”的話還要測試,麻煩
           
           
          選擇USEnglish
           
           
          還選USEnglish
           
           
          系統探測硬件,如果是硬盤安裝,這里會顯示自動裝載分區,探測光盤鏡像
           
           
          自動載入安裝需要的文件
           
           
          探測網絡
           
           
          自動配置網絡,貌似沒什么用。。。
           
           
          隨便輸入個主機名
           
           
          探測你的硬件配置
           
           
          自動掃描磁盤分區情況。


          這里選手動,否則你硬盤上的其他東東都會玩完了。
           
           
          將你需要把ubuntu安裝進去的根分區改成如上圖所示的狀態
           
           
          選擇分區設定結束寫入硬盤。
           
           
          再檢查一遍,不要弄錯了。。
           
           
          安裝程序自動格式化分區


          還是選“否”,選“是”的話有可能系統時間混亂。
           
           
          輸入用戶名
           
           
          這個是真正在登錄時用到的用戶名。
           
           
          設置帳戶的密碼。
           
           
          自動安裝基本系統
           
           
          這個要選“否”,如果選“是”,會在一會安裝過程中卡在85%,另外在安裝過程中會詢問你是否安裝ubuntu-desktop,當然要用空格把它選上,然后按tab切換到“確定”按鈕,回車。
           
           
          設置你的x-window
           
           
          安裝結束。選擇“繼續”重啟。
           
           
          重啟后ubuntu漂亮的引導畫面
           
           
          登錄界面
           
           
          gnome啟動。。。
          安裝流程到此結束。


          二、配置篇
          注意:我下面所說的執行藍色字體的命令要在終端下執行,終端的打開方式是
          應用程序 -> 附件 -> 終端
          并且是以sudo開頭的命令,有可能需要您輸入密碼,那么就輸入您安裝系統時給您帳號設置的密碼即可。

          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

           

          # Mirror.lupaworld.com 更新服務器(浙江省杭州市電信,亞洲地區官方更新服務器)
          deb http://cn.archive.ubuntu.com/ubuntu  feisty main restricted universe multiverse
          deb 
          http://cn.archive.ubuntu.com/ubuntu  feisty-security main restricted universe multiverse
          deb 
          http://cn.archive.ubuntu.com/ubuntu  feisty-updates main restricted universe multiverse
          deb 
          http://cn.archive.ubuntu.com/ubuntu  feisty-backports main restricted universe multiverse
          deb 
          http://cn.archive.ubuntu.com/ubuntu  feisty-proposed main restricted universe multiverse
          deb-src 
          http://cn.archive.ubuntu.com/ubuntu  feisty main restricted universe multiverse
          deb-src 
          http://cn.archive.ubuntu.com/ubuntu  feisty-security main restricted universe multiverse
          deb-src 
          http://cn.archive.ubuntu.com/ubuntu  feisty-updates main restricted universe multiverse
          deb-src 
          http://cn.archive.ubuntu.com/ubuntu  feisty-backports main restricted universe multiverse
          deb-src 
          http://cn.archive.ubuntu.com/ubuntu  feisty-proposed main restricted universe multiverse
          deb 
          http://mirror.lupaworld.com/ubuntu/ubuntu-cn  feisty main restricted universe multiverse

          # ubuntu.cnsite.org
          更新服務器(福建省福州市 電信)
          deb http://ubuntu.cnsite.org/ubuntu/  feisty main restricted universe multiverse
          deb-src 
          http://ubuntu.cnsite.org/ubuntu/  feisty main restricted universe multiverse
          deb 
          http://ubuntu.cnsite.org/ubuntu/  feisty-updates main restricted universe multiverse
          deb-src 
          http://ubuntu.cnsite.org/ubuntu/  feisty-updates main restricted universe multiverse
          deb 
          http://ubuntu.cnsite.org/ubuntu/  feisty-backports main restricted universe multiverse
          deb-src 
          http://ubuntu.cnsite.org/ubuntu/  feisty-backports main restricted universe multiverse
          deb 
          http://ubuntu.cnsite.org/ubuntu/  feisty-security main restricted universe multiverse
          deb-src 
          http://ubuntu.cnsite.org/ubuntu/  feisty-security main restricted universe multiverse
          deb 
          http://ubuntu.cnsite.org/ubuntu/  feisty-proposed main multiverse restricted universe
          deb-src 
          http://ubuntu.cnsite.org/ubuntu/  feisty-proposed main restricted universe multiverse
          deb 
          http://ubuntu.cnsite.org/ubuntu-cn/  feisty main multiverse restricted universe

          #
          北京市清華大學 更新服務器(教育網,推薦校園網和網通用戶使用)
          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

          posted on 2008-01-18 11:32 異域流浪 閱讀(6478) 評論(1)  編輯  收藏

          評論

          # re: 【轉載】:ubuntu硬盤安裝與配置詳細圖解 2008-01-21 09:52 jeasonzhao

          這次看到全的了,謝謝了,用VM試試先  回復  更多評論   


          只有注冊用戶登錄后才能發表評論。


          網站導航:
           
          主站蜘蛛池模板: 贵溪市| 海口市| 噶尔县| 商河县| 永新县| 海城市| 东城区| 宁乡县| 喀喇| 新竹市| 柳江县| 中宁县| 平泉县| 上饶市| 灵川县| 安岳县| 苗栗县| 岢岚县| 百色市| 攀枝花市| 延安市| 安岳县| 玛沁县| 潼关县| 武山县| 清水河县| 宁波市| 桦甸市| 江达县| 云阳县| 泌阳县| 河西区| 凤凰县| 阿荣旗| 澄城县| 河津市| 来安县| 鹤山市| 板桥市| 望奎县| 于都县|