Ubuntu 7.04 安装(硬盘安装)与配置图文指南

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
回复
头像
lhw828
帖子: 2797
注册时间: 2007-03-15 16:58
来自: 湖北武汉
联系:

Ubuntu 7.04 安装(硬盘安装)与配置图文指南

#1

帖子 lhw828 » 2007-07-31 0:27

更新记录:

2007-4-22 增加mplayer调整字幕和视频显示的部分 增加美化篇 修正源列表错误


一、安装篇

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/fei ... /initrd.gz

http://ftp.sjtu.edu.cn/ubuntu/dists/fei ... ia/vmlinuz


以上两个文件都要下载,放在某个分区里(我这里还是放置在windows的D盘下)

3、准备分区
在硬盘上用分区魔术师之类的软件分出来一个ext3的分区,作为linux根分区,分出一个大小为内存2倍的swap分区,作为linux的虚拟内存。
4、准备grub,引导安装程序

然后想办法搞到一个grub用。如果你有grub就直接跳过这步。如果没有grub,下载矮人dos工具箱

下载地址 http://download.zol.com.cn/detail/9/88018.shtml

然后下载一个grub for dos(图省事,也放在D盘根目录下)(如果你有软盘的话,可以把grub for dos解压到软盘里使用软盘引导,启动grub)

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


安装后重启,选择矮人dos工具箱进入,然后就会出现如下画面


这时运行矮人dos工具箱,进入dos,进入D盘,输入grub.exe启动grub


进入grub,按c键调出命令模式
输入如下命令
kernel (hd0,2)/vmlinuz root=/dev/ram ramdisk_size=32000 devfs=mount,dall
initrd (hd0,2)/initrd
boot

注意:命令里面的 (hd0,2)/vmlinuz 和 (hd0,2)/initrd 不是绝对的,要看你文件放置的分区和目录决定。

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

即可。


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用户的密码









三、显卡驱动安装和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

或者把 beryl-manager添加到启动项内





四、美化篇

1、字体更换

我推荐大家使用文泉驿字体,在
http://wqy.sourceforge.net
下载deb包安装

在“系统“->”首选项“->”字体“中调整字体


五、优化与清理篇

1、apt下载的deb包清理

在使用完apt后,系统下载的deb包会留存在硬盘里,我们可以把它们删除,释放硬盘空间。
终端输入

sudo apt-get clean
上次由 lhw828 在 2007-07-31 23:48,总共编辑 1 次。
surFan
帖子: 70
注册时间: 2006-12-21 15:18

#2

帖子 surFan » 2007-07-31 11:35

头像
why_790721
帖子: 295
注册时间: 2006-12-01 22:28

#3

帖子 why_790721 » 2007-07-31 12:23

转贴~~~~~~~ :em23 :em23 :em23 :em25
回复