详细讲解Ubuntu Server安装过程
系统软件【jiàn】:Ubuntu 7.04 内核【nèi hé】,Fluxbox桌面管【zhuō miàn guǎn】理🔅,firefox浏览器🦇,openoffice办公软【bàn gōng ruǎn】🕶件【jiàn】,xfe文件【jiàn】管理🔅器
Step1:安装【ān zhuāng】😜Ubuntu 7.04 Server
a、Server安装画面,按【àn】👱F6,在🤯 -- 之前添加 "irqpoll" 选项【xuǎn xiàng】; 按【àn】👱F4,选择屏【xuǎn zé píng】🙍幕分辨【mù fèn biàn】⛲率为1024×768 32
b、语言选择English
c、当安装🐔自动设【zì dòng shè】定【dìng】 DHCP 时,选择【xuǎn zé】 “Cancel”节省系🤼统安装📬时间
d、手动硬盘分区【pán fèn qū】🦃,创建一个【gè】🚠65Mb的分区,并将其【bìng jiāng qí】挂载点【guà zǎi diǎn】设定为【shè dìng wéi】 /boot,bootable选项设定为【shè dìng wéi】True,如不这🌨么设定,系统安💇装完无法启动🅱
e、Server 安装类型🍞、选择【xuǎn zé】LAMP
f、安装过程约15分钟
Step 2:设定网络
a、动态ip:
sudo nano /etc/network/interfaces 在文件【zài wén jiàn】的最后加入👾
iface eth0 inet dhcp
auto eth0
b、静态ip:(加快启动速度)
iface eth0 inet static
address 192.168.0.3
netmask 255.255.255.0
gateway 192.168.0.1
auto eth0
注【zhù】:ip地址设定为192.168.0.3,子网掩码🐀:255.255.255.0,网关【wǎng guān】🆘:192.168.0.1
按【àn】➰ Ctrl+o 保存文🍋件,按【àn】➰Ctrl+x退出
设定DNS(动态ip不需)
sudo nano /etc/resolv.conf 在文件【zài wén jiàn】👁加入
nameserver 192.168.0.1
注:192.168.0.1 是【shì】🎧DNS的ip地址【dì zhǐ】🥔
按【àn】🚬 Ctrl+o 保存文🔋件,按【àn】🚬Ctrl+x退出【tuì chū】
Step 3、重启系统网络
sudo /etc/init.d/networking restart
Step 4、修改 源
从网上获得一个复制文件 或 手工修改
a、从网上获得一个源复制文件
wget http://www.topmiracle.net/sources.list
sudo cp ./sources.list /etc/apt
b、手工修改
sudo nano /etc/apt/sources.list 设定 源 为【wéi】🍅
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
Step 5、更新 源软件【yuán ruǎn jiàn】🍇包 和💵 更新系【gèng xīn xì】统软件
sudo aptitude update
sudo aptitude upgrade
Step 6、安装【ān zhuāng】💅Xorg,Fluxbox,Synaptic
sudo aptitude install xorg fluxbox synaptic
Step 7、安装英文和中文包
sudo aptitude install language-pack-en language-pack-en-base language-pack-zh language-pack-zh-base language-selector language-selector-common
Step 8、在英文界面输入中文
sudo fontconfig-voodoo -f zh_CN
Step 9、安装fcitx中文输入
sudo aptitude install fcitx
im-switch -s fcitx
sudo nano /etc/gtk-2.0/gtk.immodules
找到下面这个部份
"/usr/lib/gtk-2.0/2.10.0/immodules/im-xim.so"
"xim" "X Input Method" "gtk20" "/usr/share/locale" "ko:ja:th:zh"
更改为
"/usr/lib/gtk-2.0/2.10.0/immodules/im-xim.so"
"xim" "X Input Method" "gtk20" "/usr/share/locale" "en:ko:ja:th:zh"
Set 10、设定中文输入,系统环境
sudo nano /etc/environment 在文件【zài wén jiàn】PATH后添加🌊以下内🌂容【róng】LC_CTYPE="zh_CN.UTF-8"
LANG="en_US.UTF-8"
Step 11、安装中文字体
sudo aptitude install xfonts-wqy
Setp 12、设定系统启用中文字体
从网上复制一个配置文件 或者 手工创建
a、从网上复制一个配置文件
wget http://www.topmiracle.net/language-selector.conf
sudo cp ./language-selector.conf /etc/fonts
b、手工创建
sudo nano /etc/fonts/language-selector.conf 文件内【wén jiàn nèi】💳容为
关键词【guān jiàn cí】📳:Ubuntu,Server 阅读本文后您有什么感想? 已有 人给出评价!
|