debian安装配置手记
时间:2007-04-11 来源:chenyuehao
下载 debian 光盘 debian-31r5-i386-netinst.iso, 刻盘。
安装 base-system, 看这里
基本系统安装完,开始配置系统。
1 base system
设置 locale,编辑 /etc/locale.gen, 加入系统需要的 locale
en_US ISO-8859-1
en_US UTF-8
zh_CN GBK
zh_CN GB2312
zh_CN GB18030
zh_CN UTF-8
执行
#locale-gen
然后编辑/etc/enviroment, 加入
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11:/usr/games"
LANG="en_US.UTF-8"
LANGUAGE="en_US:en"
我用的是英文 locale,所以我选 en-US UTF-8, 如果用中文的可以选 zh_CN UTF-8
修改 source.list, 更新源
#aptitude update
#aptitude dist-upgrade
升级内核(PS: 奇怪,用 ubuntu 的话 dist-upgrade 可以自动升级内核,但是 debian 不会自动的。)
#aptitude search kernel-image
搜索源里面最新的内核,我的是 kernel-image-2.6-386
#aptitude install kernel-image-2.6-386
安装 vim(PS:系统默认用的是 nano,我用不惯,很别扭,先把 vim 装了,如果不用 vim 的可以跳过)
#aptitude install vim
修改 ~/.bashrc, 加入
if [ -f /etc/bash_completion ]; then
. /etc/bash_completion
fi
将用户加入 sudoers
#visudo
在 root ALL=(ALL)ALL 下加入
%adm ALL=(ALL)ALL
执行
#gpasswd -a username adm (PS: username 为用户名)
安装编译环境
#aptitude install build-essential automake automake1.9
2 xorg 和 alsa
安装xorg
#aptitude install xorg
安装声卡驱动
#aititude install alsa-base
设置声卡
#alsaconf
#alsamixer
保存设置
#alsactl store
测试
#cat /dev/urandom > /dev/dsp
3 显卡驱动 (PS:我用 ati9550, 其他显卡的自己搞定:)
#aptitude install linux-headers-'uname -r'
#aptitude install fglrx-kernel-src
#cd /usr/src
#tar jxvf fglrx.tar.bz2
#cd modules/fglrx
#modules-assistant auto-install fglrx
#dpkg -i /usr/src/fglrx-kernel-'uname -r'_8.23.7+2.6.15-8_i386.deb
#aptitude install fglrx-driver
加载 fglrx 模块
#depmod -a
#modprobe
激活 fglrx,显卡驱动选 fglrx
#dpkg-reconfigure xserver-xorg
测试
#fglrxinfo
出现
display: :0.0 screen: 0
OpenGL vendor string: ATI Technologies Inc.
OpenGL renderer string: RADEON 9600 Generic
OpenGL version string: 2.0.6011 (8.28.8)
恭喜,驱动安装成功
4 安装 gnome (PS: 我不喜欢 kde,想装 kde 的自己搞定)
#aptitude install gnome
(PS: 全部安装有500多M,所以大家 / 分区还是大一点好,汗,这个应该在开始时就说才对)
安装 gdm
#aptitude install gdm
哈哈,恭喜,终于可以进入桌面了。
进入x-window, 安装应用程序
5 字体 (PS: 我用文泉驿,不喜欢 wqy 的自己选其他的字体)
到文泉驿官方主页
下载wqy-bitmapfont-0.8.0-6_all.deb
$sudo aptitude install wqy-bitmapfont-0.8.0-6_all
Desktop ---- Preferences ---- font 设置字体
其他的像网页,终端的也设置一下。
6 输入法 (PS: 我用 fcitx,用scim的自己搞定。由于我用的是英文 locale,还需要另外设置点东东)
$sudo aptitude install fcitx im-switch
$im-switch -s fcitx
编辑 /etc/X11/Xsession.d/95xinput 没有的话新建一个,在里面加入
export XIM=FCITX
export XMODIFIERS=@im=FCITX
fcitx
修改/etc/gtk-2.0/gtk.immodules
找到"/usr/lib/gtk-2.0/2.4.0/immodules/im-xim.so"
"xim" "X Input Method" "gtk20" "/usr/share/locale" "ko:ja:th:zh"
改为
"/usr/lib/gtk-2.0/2.4.0/immodules/im-xim.so"
"xim" "X Input Method" "gtk20" "/usr/share/locale" "en:ko:ja:th:zh"
修改/etc/enviroment,加入
LC_CTYPE="zh_CN.UTF-8"
(用中文 locale 的不用后面两步)
搞定输入法。
7 java
$sudo aptitude install sun-java6-jre
$sudo aptitude install sun-java6-jdk
8 常用的程序
gaim (QQ,msn,gtalk,irc等一个搞定)
$sudo aptitude install gaim
firefox
$sudo aptitude iceweasel (firefox在 debian 下叫 iceweasel)
音乐播放 audacious
$sudo aptitude audacious
解决 playlist 乱码的方法,
Preferences ----- playlist ----- Song Display ---- Custom String 改成 %f
500)this.width=500;" border="0">
安装 base-system, 看这里
基本系统安装完,开始配置系统。
1 base system
设置 locale,编辑 /etc/locale.gen, 加入系统需要的 locale
en_US ISO-8859-1
en_US UTF-8
zh_CN GBK
zh_CN GB2312
zh_CN GB18030
zh_CN UTF-8
执行
#locale-gen
然后编辑/etc/enviroment, 加入
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11:/usr/games"
LANG="en_US.UTF-8"
LANGUAGE="en_US:en"
我用的是英文 locale,所以我选 en-US UTF-8, 如果用中文的可以选 zh_CN UTF-8
修改 source.list, 更新源
#aptitude update
#aptitude dist-upgrade
升级内核(PS: 奇怪,用 ubuntu 的话 dist-upgrade 可以自动升级内核,但是 debian 不会自动的。)
#aptitude search kernel-image
搜索源里面最新的内核,我的是 kernel-image-2.6-386
#aptitude install kernel-image-2.6-386
安装 vim(PS:系统默认用的是 nano,我用不惯,很别扭,先把 vim 装了,如果不用 vim 的可以跳过)
#aptitude install vim
修改 ~/.bashrc, 加入
if [ -f /etc/bash_completion ]; then
. /etc/bash_completion
fi
将用户加入 sudoers
#visudo
在 root ALL=(ALL)ALL 下加入
%adm ALL=(ALL)ALL
执行
#gpasswd -a username adm (PS: username 为用户名)
安装编译环境
#aptitude install build-essential automake automake1.9
2 xorg 和 alsa
安装xorg
#aptitude install xorg
安装声卡驱动
#aititude install alsa-base
设置声卡
#alsaconf
#alsamixer
保存设置
#alsactl store
测试
#cat /dev/urandom > /dev/dsp
3 显卡驱动 (PS:我用 ati9550, 其他显卡的自己搞定:)
#aptitude install linux-headers-'uname -r'
#aptitude install fglrx-kernel-src
#cd /usr/src
#tar jxvf fglrx.tar.bz2
#cd modules/fglrx
#modules-assistant auto-install fglrx
#dpkg -i /usr/src/fglrx-kernel-'uname -r'_8.23.7+2.6.15-8_i386.deb
#aptitude install fglrx-driver
加载 fglrx 模块
#depmod -a
#modprobe
激活 fglrx,显卡驱动选 fglrx
#dpkg-reconfigure xserver-xorg
测试
#fglrxinfo
出现
display: :0.0 screen: 0
OpenGL vendor string: ATI Technologies Inc.
OpenGL renderer string: RADEON 9600 Generic
OpenGL version string: 2.0.6011 (8.28.8)
恭喜,驱动安装成功
4 安装 gnome (PS: 我不喜欢 kde,想装 kde 的自己搞定)
#aptitude install gnome
(PS: 全部安装有500多M,所以大家 / 分区还是大一点好,汗,这个应该在开始时就说才对)
安装 gdm
#aptitude install gdm
哈哈,恭喜,终于可以进入桌面了。
进入x-window, 安装应用程序
5 字体 (PS: 我用文泉驿,不喜欢 wqy 的自己选其他的字体)
到文泉驿官方主页
下载wqy-bitmapfont-0.8.0-6_all.deb
$sudo aptitude install wqy-bitmapfont-0.8.0-6_all
Desktop ---- Preferences ---- font 设置字体
其他的像网页,终端的也设置一下。
6 输入法 (PS: 我用 fcitx,用scim的自己搞定。由于我用的是英文 locale,还需要另外设置点东东)
$sudo aptitude install fcitx im-switch
$im-switch -s fcitx
编辑 /etc/X11/Xsession.d/95xinput 没有的话新建一个,在里面加入
export XIM=FCITX
export XMODIFIERS=@im=FCITX
fcitx
修改/etc/gtk-2.0/gtk.immodules
找到"/usr/lib/gtk-2.0/2.4.0/immodules/im-xim.so"
"xim" "X Input Method" "gtk20" "/usr/share/locale" "ko:ja:th:zh"
改为
"/usr/lib/gtk-2.0/2.4.0/immodules/im-xim.so"
"xim" "X Input Method" "gtk20" "/usr/share/locale" "en:ko:ja:th:zh"
修改/etc/enviroment,加入
LC_CTYPE="zh_CN.UTF-8"
(用中文 locale 的不用后面两步)
搞定输入法。
7 java
$sudo aptitude install sun-java6-jre
$sudo aptitude install sun-java6-jdk
8 常用的程序
gaim (QQ,msn,gtalk,irc等一个搞定)
$sudo aptitude install gaim
firefox
$sudo aptitude iceweasel (firefox在 debian 下叫 iceweasel)
音乐播放 audacious
$sudo aptitude audacious
解决 playlist 乱码的方法,
Preferences ----- playlist ----- Song Display ---- Custom String 改成 %f
500)this.width=500;" border="0">
audacious默认不支持播放 ape 等格式的音频,上网 google 一下,有人做好了支持ape的插件的deb包。
视频播放 mplayer
$sudo aptitude install mplayer w32codecs
(PS : 我用的USTC的源里面没有 w32codecs, 可以到 这里 下载 deb包)
大概就这么多了,其他的像 pdf chm 还有其他的等等就不说了,休息一下,吃夜宵去了。
打了这么多字,好累。
$sudo aptitude install mplayer w32codecs
(PS : 我用的USTC的源里面没有 w32codecs, 可以到 这里 下载 deb包)
大概就这么多了,其他的像 pdf chm 还有其他的等等就不说了,休息一下,吃夜宵去了。
打了这么多字,好累。
相关阅读 更多 +