ubuntu安装过程

 
系统安装
http://www.ubuntu.org.cn/support/documentation/zhfaq/first_install

#pppoeconf
配置你的ADSL,其他的上网方式我这里不赘述。

deb http://ubuntu.cn99.com/ubuntu/ breezy main restricted universe multiverse

deb http://ubuntu.cn99.com/ubuntu/ breezy-updates main restricted universe mul
tiverse
deb http://ubuntu.cn99.com/ubuntu/ breezy-security main restricted universe mu
ltiverse
deb http://ubuntu.cn99.com/ubuntu/ breezy-backports main restricted universe m
ultiverse
deb http://ubuntu.cn99.com/ubuntu-cn/ breezy main restricted universe multiver
se
deb http://ubuntu.cn99.com/backports/ breezy-extras main restricted universe m
ultiverse
加入/etc/apt/sources.list
再更新sources和升级
#apt-get update && apt-get dist-upgrade
安装常用软件,我以轻量型程序为主,参考了 https://wiki.ubuntu.com/XubuntuPropos
edPackages

ADSL: pppoeconf  / pon dsl-provider  / poff dsl-provider

1 把自己加入sudo
#visudo 在文件末尾添加 your_login_name ALL=(ALL) ALL .把your_login_name换成你的用户名,一般用户我就用 ALL=(ALL) ALL,偷懒了。这是把你加入sudo中,以后你就可以使用sudo暂时取得root权限。
exit退出root
再登录普通用户,startx进入xfce4

2 配置scim,登录自动启动
sudo sh -c " echo 'export XMODIFIERS=@im=SCIM ; export GTK_IM_MODULE="scim" ; scim -d ' > /etc/X11/Xsession.d/95xinput "
sudo chmod +755 /etc/X11/Xsession.d/95xinput
fcitx等参见 http://www.ubu配置优化ntu.org.cn/support/doc...tion/zhfaq/ime
3 服务优化
#rcconf 依照个人情况来定,我只保留 makedev ppp alsa dbus-1
#sysv-rc-conf 去掉lvm 0 6 S 的X ,我没有LVM(LVM详见 http://www.huihoo.com/gnu_linux/red...533;去掉ntpdate S 的X,免去开机校对时间。还可以使用比较图形化的工具bum,但是gnome-dep比较多。其他的服务设置参看我的blog http://blog.sina.com.cn/u/48860616010002i3

4 默认的虚拟终端比较多,可以少要几个
sudo mousepad /etc/inittab 找到

1:2345:respawn:/sbin/getty 38400 tty1
2:23:respawn:/sbin/getty 38400 tty2
3:23:respawn:/sbin/getty 38400 tty3
4:23:respawn:/sbin/getty 38400 tty4
5:23:respawn:/sbin/getty 38400 tty5
6:23:respawn:/sbin/getty 38400 tty6
改为

1:2345:respawn:/sbin/getty 38400 tty1
2:23:respawn:/sbin/getty 38400 tty2
3:23:respawn:/sbin/getty 38400 tty3
#4:23:respawn:/sbin/getty 38400 tty4
#5:23:respawn:/sbin/getty 38400 tty5
#6:23:respawn:/sbin/getty 38400 tty6

保存退出。这样就关闭了3个虚拟终端(在X时,可以按ctrl+alt+Fn切换虚拟终端),据说可以节约3*2M 内存。

5 安装686内核
CPU是686的话 sudo apt-get -y install linux-686

6 使用预链接加速程序启动速度
# sudo apt-get -y install prelink
# sudo /usr/sbin/prelink -all --conserve-memory

7 hdparm 硬盘提速
通过hdparm程序来设置IDE硬盘,
   使用DMA和32位传输可以大幅提升系统性能。使用命令如下:
   sudo /sbin/hdparm -c 1 /dev/hda
   此命令将第一个IDE硬盘的PCI总线指定为32位,
   使用 -c 0参数来禁用32位传输。
   在硬盘上使用DMA,使用命令:
   sudo /sbin/hdparm -d 1 /dev/hda
   关闭DMA可以使用 -d 0的参数。
   为了确保设置的结果不变,使用命令:
   sudo /sbin/hdparm -k 1 /dev/hda
更改完成后,可以使用hdparm来检查修改后的结果,使用命令:
   sudo /sbin/hdparm -t /dev/had

参见 http://www.knowsky.com/print.asp?id=18402
http://www.hackhome.com/2006/1-10/21312749801.shtml

8 自己编译内核可以加速运行,这里对新手就不多说了 参见 http://tristones.viaspeip.com/archives/000209.html
四 美化
1解决 aMule,xmms的乱码问题
sudo cp /etc/gtk/gtkrc.zh_CN /etc/gtk/gtkrc.zh_CN.utf-8
参见 http://www.ubuntu.org.cn/support/doc...ion/zhfaq/gtk1
2 我只说简单的字体美化,这个不是美化专贴。

deb http://debian.cn99.com/debian sid main non-free contrib
加入 /etc/apt/sources.list
sudo apt-get update
sudo apt-get install libfreetype6 libxft2
解压复制 http://www.linuxsir.org/bbs/showthread.php?t=241385 我(baidongyi)的附件文件到相应位置(感谢jhuangjiahua的font)
把默认字体设置为 AR PL ShanHeiSun Uni.就有粗体等了,效果还不错。
编辑 /etc/apt/sources.list, 在 deb http://debian.cn99.com/debian sid main non-free contrib前面添加 "#"再执行 sudo apt-get update 。不推荐混用ubuntu和debian的源。



***************************************************************************************
常用软件

Amule
安装之后,设置昵称为 [CHN][VeryCD]xxxx,然后服务器设置为:

    名称:DonkeyServer No1 地址:62.241.53.2:4242

firefox:

在地址栏中键入:about:config,打开配置页。右键点击配置列表,创建“布尔”项 net
work.protocol-handler.external.ed2k,值为 true,然后在创建一个“字符串”项 net
work.protocol-handler.app.ed2k,值为 /usr/bin/ed2k.amule。这样就可以了。

---------------------------------------------------------------------------------------
Stardict

sudo apt-get install stardict stardict-common
sudo apt-get install stardict-cdict-gb
sudo apt-get install stardict-cedict-gb
sudo apt-get install stardict-hanzim
sudo apt-get install stardict-langdao-ce-gb
sudo apt-get install stardict-langdao-ec-gb
sudo apt-get install stardict-oxford-gb
sudo apt-get install stardict-xdict-ce-gb
sudo apt-get install stardict-xdict-ec-gb

------------------------------------------------------------------------------
Scim scim-pinyin
配置scim,登录自动启动
sudo sh -c " echo 'export XMODIFIERS=@im=SCIM ; export GTK_IM_MODULE="scim" ; scim -d ' > /etc/X11/Xsession.d/95xinput "
sudo chmod +755 /etc/X11/Xsession.d/95xinput
fcitx等参见 http://www.ubuntu.org.cn/support/doc...tion/zhfaq/ime
scim scim-pinyin (中文支持)
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值