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 异域流浪 阅读(6467) 评论(1)  编辑  收藏

评论

# re: 【转载】:ubuntu硬盘安装与配置详细图解 2008-01-21 09:52 jeasonzhao

这次看到全的了,谢谢了,用VM试试先  回复  更多评论   


只有注册用户登录后才能发表评论。


网站导航: