歡迎您光臨本站 註冊首頁

跟我學習硬碟安裝Ubuntu Linux和詳細配置過程!

←手機掃碼閱讀     火星人 @ 2014-03-09 , reply:0
我裝的是ubuntu7.10.我的建議是80的硬碟可以留下60G,剩下的不到20G裝linux就夠了.若果你只想留下vista,那就在vista磁碟管理下把除了c盤以外的其他盤全刪了.然後創建新分區,你想創建幾個卷就創建幾個,剩下20G的可用空間就成,不要在可用空間上創建新卷.然後安裝linux時候就安裝在最大的連續可用空間上就成了,安裝程序會自動格式化.這樣設置起來比較方便.

本文所使用的硬體配置:

cpu:Amd sp 2800

主板:映泰n61

顯卡集成

內存:512(128M給了顯卡)

硬碟80G

 

安裝:

 

以下是下載地址

CD下載: http://releases.ubuntu.com/feisty/

DVD下載: http://cdimage.ubuntu.com/releases/7.04/release/

 

國內BT下載:

http://bt.ubuntu.org.cn/torrents.php

 

上海電信伺服器:

http://mirror.rootguide.org/ubuntu-releases/7.04/

 

lupa:

 

http://mirror.lupaworld.com/ubuntu/releases/7.04/

 

other:

http://ftp.cse.yzu.edu.tw/ftphttp://Linux.chinaitlab.com/Ubuntu/ubuntu-cd/feisty/

http://ubuntuarchive.is.co.za/ubuntu-releases/7.04/

http://mirrors.easynews.com/linux/ubuntu-releases/7.04/

http://ftp.sk.debian.org/ubuntu-releases/7.04/

http://ftp.ines.lug.ro/ubuntu-releases/7.04/

http://ftp.gts.lug.ro/ubuntu-releases/7.04/

http://ftp.ussg.iu.edu/linux/ubuntu-releases/7.04/

http://mirror.nttu.edu.tw/ubuntu-releases/7.04/

http://ubuntu.csie.nctu.edu.tw/ubuntu-releases/7.04/

我的是教育網,所以用的是後面幾個

用迅雷下完全可以保證半小時之內完成

我下的是ubuntu-7.04-desktop-i386.iso(說明:ubuntu-7.04-desktop-i386.iso面帶liveCD 的圖形安裝界面,就算是不用安裝也能使用;ubuntu-7.04-server-i386.iso是伺服器版,默認沒有gui;ubuntu-7.04 -alternate-i386.iso是安裝版,字元安裝界面)

 

在下載的同時,可以做安裝前的準備.

到ftp://ftp.wangjia.com.cn下載硬碟安裝所需文件

 

user:como

password:123456

 

其中/software/boot/feisty/的initrd.gz和vmlinuz文件下載到自己c:bootfeisty目錄下

/software/的grldr和menu.lst放到c:根目錄下

/software/d/下的swap.fs和ubuntu.fs放到任意一個fat32分區的feisty目錄下(也就是和你下載的ubuntu-7.04-desktop-i386.iso放到一起)

然後把自己c:的boot.ini進行如下修改

 

[boot loader]

timeout=5

default=multi(0)disk(0)rdisk(0)partition(1)WINDOWS

[operating systems]

multi(0)disk(0)rdisk(0)partition(1)WINDOWS="Microsoft Windows XP Professional" /noexecute=optin /fastdetect

C:grldr = "Ubuntu LiveCD"

 

這裡做檢查看是否遺誤,所需文件有

C:grldr

C:menu.lst

C:bootfeistyinitrd.gz

C:bootfeistyvmlinuz

X:feistyswap.fs

X:feistyubuntu.fs

X:feistyubuntu-7.04-desktop-i386.iso

(X:為任意fat32分區)

 

做完上述準備然後重啟

就會在啟動windows前有Ubuntu LiveCD選項

選擇即進入LiveCD,進入桌面環境,桌面上有install圖標

雙擊進入,裡面有選擇語言、設置用戶什麼的,在此略過

我們這裡要說的是分區

最少得設置兩個分區

一個是做ubuntu根目錄一個做交換分區

其中ubuntu根目錄分區要2G以上,格式可以選擇ex3或者其他..但是如果你是雙系統的話還是建議ex3

windows下有可以讀取ex3分區的軟體

交換分區格式是swap,大小任意...最低是256..最好是你內存兩倍

然後進入安裝,過程持續20分鐘左右,反正比windows快(安裝的時候還可以玩遊戲...嘿嘿)

特別說明,若安裝超過30分鐘仍無進展,可以查看是否有跳過按鈕,它可能在安裝中就下載更新

 

安裝完成

 

 

配置:

 

用安裝時設置的用戶名密碼進入系統

現在還不能用管理員登錄

如果你不想每次執行命令時在前面加sudo然後再輸入密碼的話,建議你每次用管理員登錄

設置方法是 系統-系統管理-登錄窗口-安全-允許本地系統管理員登錄

然後在 系統-系統管理-用戶和組裡面設置root的密碼

以後登錄的用戶名就是root了

 

配置pppoeconf

打開終端,如果是普通用戶輸入sudo pppoeconf

root用戶可直接輸入pppoeconf

設置的時候一路回車

只在輸入用戶名密碼的時候設置自己的寬頻用戶名密碼

用路由器的用戶可以不進行pppoeconf設置直接上網

 

設置源

應用程序-附件-終端

sudo gedit /etc/apt/sources.list

 

這裡僅提供幾個常用源和教育網源

用以下內容替換文件中的所有內容

#archive

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-backports main restricted universe multiverse

deb http://archive.ubuntu.com/ubuntu/ feisty-proposed main restricted universe multiverse

deb http://ubuntu.cn99.com/ubuntu-cn/ feisty main restricted universe multiverse

 

#cn99

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-backports main restricted universe multiverse

deb http://ubuntu.cn99.com/ubuntu/ feisty-proposed main restricted universe multiverse

deb http://ubuntu.cn99.com/ubuntu-cn/ feisty main restricted universe multiverse

 

#lupa

deb http://mirror.lupaworld.com/ubuntu/archive/ feisty main restricted universe multiverse

deb http://mirror.lupaworld.com/ubuntu/archive/ feisty-security main restricted universe multiverse

deb http://mirror.lupaworld.com/ubuntu/archive/ feisty-updates main restricted universe multiverse

deb http://mirror.lupaworld.com/ubuntu/archive/ feisty-backports main restricted universe multiverse

deb http://mirror.lupaworld.com/ubuntu/archive/ feisty-proposed main restricted universe multiverse

deb http://mirror.lupaworld.com/ubuntu/ubuntu-cn/ feisty main restricted universe multiverse

 

#中國科技大學

deb http://debian.ustc.edu.cn/ubuntu/ feisty main restricted universe multiverse

deb http://debian.ustc.edu.cn/ubuntu/ feisty-backports restricted universe multiverse

deb http://debian.ustc.edu.cn/ubuntu/ feisty-proposed main restricted universe multiverse

deb http://debian.ustc.edu.cn/ubuntu/ feisty-security main restricted universe multiverse

deb http://debian.ustc.edu.cn/ubuntu/ feisty-updates main restricted universe multiverse

deb-src http://debian.ustc.edu.cn/ubuntu/ feisty main restricted universe multiverse

deb-src http://debian.ustc.edu.cn/ubuntu/ feisty-backports main restricted universe multiverse

deb-src http://debian.ustc.edu.cn/ubuntu/ feisty-proposed main restricted universe multiverse

deb-src http://debian.ustc.edu.cn/ubuntu/ feisty-security main restricted universe multiverse

deb-src http://debian.ustc.edu.cn/ubuntu/ feisty-updates main restricted universe multiverse

 

#北京交大

deb http://mirror.bjtu.edu.cn/ubuntu/ feisty main restricted universe multiverse

deb http://mirror.bjtu.edu.cn/ubuntu/ feisty-updates main restricted universe multiverse

deb http://mirror.bjtu.edu.cn/ubuntu/ feisty-security main restricted universe multiverse

deb http://mirror.bjtu.edu.cn/ubuntu/ feisty-backports main restricted universe multiverse

sudo apt-get update

sudo apt-get dist-upgrade

 

#上海交通大學

deb http://ftp.sjtu.edu.cn/ubuntu/ feisty main multiverse restricted universe

deb http://ftp.sjtu.edu.cn/ubuntu/ feisty-backports main multiverse restricted universe

deb http://ftp.sjtu.edu.cn/ubuntu/ feisty-proposed main multiverse restricted universe

deb http://ftp.sjtu.edu.cn/ubuntu/ feisty-security main multiverse restricted universe

deb http://ftp.sjtu.edu.cn/ubuntu/ feisty-updates main multiverse restricted universe

deb http://ftp.sjtu.edu.cn/ubuntu-cn/ feisty main multiverse restricted universe

deb-src http://ftp.sjtu.edu.cn/ubuntu/ feisty main multiverse restricted universe

deb-src http://ftp.sjtu.edu.cn/ubuntu/ feisty-backports main multiverse restricted universe

deb-src http://ftp.sjtu.edu.cn/ubuntu/ feisty-proposed main multiverse restricted universe

deb-src http://ftp.sjtu.edu.cn/ubuntu/ feisty-security main multiverse restricted universe

deb-src http://ftp.sjtu.edu.cn/ubuntu/ feisty-updates main multiverse restricted universe

 

#清華大學

deb ftp://ftp3.tsinghua.edu.cn/mirror/ubuntu/ubuntu/ feisty main restricted universe multiverse

deb ftp://ftp3.tsinghua.edu.cn/mirror/ubuntu/ubuntu/ feisty-security main restricted universe multiverse

deb ftp://ftp3.tsinghua.edu.cn/mirror/ubuntu/ubuntu/ feisty-updates main restricted universe multiverse

 

#蘭州大學

deb ftp://mirror.lzu.edu.cn/ubuntu/ feisty main multiverse restricted universe

deb ftp://mirror.lzu.edu.cn/ubuntu/ feisty-backports main multiverse restricted universe

deb ftp://mirror.lzu.edu.cn/ubuntu/ feisty-proposed main multiverse restricted universe

deb ftp://mirror.lzu.edu.cn/ubuntu/ feisty-security main multiverse restricted universe

deb ftp://mirror.lzu.edu.cn/ubuntu/ feisty-updates main multiverse restricted universe

deb ftp://mirror.lzu.edu.cn/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

 

只用選擇一個源替換就行

 

中文環境

System-系統管理-語言支持,在對話框的下拉列表中勾選Chinese,默認語言選擇Chinese,這樣就能得到中文界面了

點擊「確定」或「應用」系統就開始自動下載語言支持的包,下次註銷后重新登錄,系統語言就變成中文了,輸入法也能用

到時,記得稍微調整一下Scim的設置,Feisty在Scim默認加入了n多輸入法,其中絕大多數都可以去掉

然後設置Scim配置文件,否則eva無法輸入中文

打開終端

gedit /etc/X11/xinit/xinput.d/zh_CN

把QT_IM_MODULE="scim"改為QT_IM_MODULE="xim"

 

調整桌面

安裝顯卡驅動

System-首選項-桌面效果,系統會自動提醒下載安裝驅動的(我的是N卡,A卡的朋友另行設置)

安裝好驅動后重啟

終端中輸入gconf-editor

到/apps/nautilus/desktop/分支下,去掉volumes_visible前面的複選框

勾上trash_icon_visible,home_icon_visible,computer_icon_visible

到/desktop/gnome/screen/default/0/下

把rate(刷新率)resolution(解析度)改為自己需要的

我的是85和1024x768

 

 

安裝其他多媒體軟體和相應解碼器

sudo apt-get install mplayer mozilla-mplayer totem-xine libxine-extracodecs audacious ffmpeg lame faad sox mjpegtools libxine-main1

 

解決問題

1.Mplayer播放時提示錯誤

Preferences-Video 選擇 「xv X11/Xv」

Preferences-Codecs&demuxer 選擇 「FFmpeg/libavcodec audio decoders」

Mplayer中文字幕設置

Preferences-Font 裡面點擊 」Browse」 選擇一個中文字體,Encodeing 選擇 Unicode

Preferences-Subtitle&OSD 裡面的Encoding選擇:Simplified Chinese Charset(cp936)

Preferences-Font-Text scale 這裡調整字幕大小(我調整為 3.8 )

 

2.Totem 播放rmvb沒有聲音

sudo gedit ~/.xine/catalog.cache

找到[/usr/lib/xine/plugins/1.1.4/xineplug_decode_real_audio.so]

把 decoder_priority 後面的數字修改為 10

 

這時可能仍然打不開rmvb格式,缺少解碼器

可以去網上下載w32codecs解碼器

也可以下載realplay10 for linux

教育網用戶可以在這個網站搜索到所需軟體http://search.ustc.edu.cn/

 

安裝Flash Player 9 for Linux

可以在華軍軟體園找到

http://www.onlinedown.net/soft/14969.htm

 

安裝QQ

可以用lumaQQ,也可以用eva

反正我比較喜歡eva,安裝簡單速度也快

系統-系統管理-新立得軟體包管理器

在右邊窗口輸入eva雙擊標記然後安裝即可

這裡也附上lumaQQ的安裝方法

wget -c http://download.ubuntu.org.cn/softwa..._no_jre.tar.gz

sudo tar zxvf lumaqq_2005-linux_gtk2_x86_no_jre.tar.gz -C /opt/

wget -c http://download.ubuntu.org.cn/softwa...2.02.15.00.zip

sudo unzip -o lumaqq_2005_patch_2006.02.02.15.00.zip -d /opt/LumaQQ/lib

sudo chown -R root:root /opt/LumaQQ/

sudo chmod -R 755 /opt/LumaQQ/

sudo gedit /usr/share/applications/LumaQQ.desktop

添加如下代碼

[Desktop Entry]

Name=LumaQQ

Comment=QQ Client

Exec=/opt/LumaQQ/lumaqq

Icon=/opt/LumaQQ/QQ.png

Terminal=false

Type=Application

Categories=Application;Network;

你可以在 應用程序-Internet-LumaQQ 打開LumaQQ

 

安裝編譯工具

sudo apt-get install build-essential

 

安裝Java環境

sudo apt-get install sun-java6-jdk

 

安裝beryl

其實7.04自帶的桌面效果已經很不錯了,不過功能還是太少

sudo apt-get install beryl emerald-themes beryl-manager

安裝好后,在終端下輸入或者在Alt F2的運行框里輸入

beryl-manager

就可以了,或者你可以加入會話的自動啟動程序里

 

安裝NTFS讀寫支持

sudo apt-get install ntfs-config

點擊應用程序-系統工具-NTFS寫入支持配置程序

選中對內部設備的讀寫支持,和外部設備的讀寫支持,系統會自動掃描你硬碟上的NTFS分區,並重新掛載

這樣ubuntu就可以進行ntfs分區的讀寫了

 

右鍵菜單加入打開終端

sudo apt-get install nautilus-open-terminal

 

唯一讓人遺憾的是ubuntu裡面沒有一個能讓人滿意的下載軟體

不管是http/ftp還是BT

這裡還是推薦幾個軟體

http/ftp下載-muiltget

BT下載-azureus

emule下載-amule

 

至此配置結束.


[火星人 ] 跟我學習硬碟安裝Ubuntu Linux和詳細配置過程!已經有577次圍觀

http://coctec.com/docs/linux/show-post-58138.html