debian用网络安装或硬盘一路安装过来后。如果在base-config里没有选安装桌面的话是不能登陆X的。下面记录我安装x-window的经过:
第一步:设置apt源。推荐用以下几个源
deb http://mirrors.geekbone.org/debian/ sid main contrib non-free
deb-src http://mirrors.geekbone.org/debian/ sid main contrib non-free
deb http://debian.cn99.com/debian/ sid main contrib non-free
deb-src http://debian.cn99.com/debian/ sid main contrib non-free
如果要安装mmplay之类的播放器可以加入
deb http://debian.okey.net/debian-uo/ sid java marillat rareware misc
把以上几个源加入到/etc/apt/sources.list里面。
第二步:安装x-window支持的包
apt-get -y install xbase-clients
apt-get -y install x-window-system-core
apt-get -y install xserver-xfree86
apt-get -y install fvwm2
apt-get -y install menu
apt-get -y install gnome-core (gnome安装,以gnome为窗口管理器)
apt-get -y install gdm
apt-get -y install xscreensaver-gnome
apt-get -y install mozilla-firefox (浏览器安装)
dpkg-reconfigure xserver-xfree86 (重新配置)
至些基本的x-window已经安装完成。你可以用startx命令打开X。如果可以证明X-window已经安装完成,不过此时可能会有乱码。主要是中文支持配置还没有搞好。如果尝试startx进入X后有“音量错误”的错误报告。请再安装apt-get install alsa-base , apt-get install alsa-utils
第三步:安装中文
wget http://debian.okey.net/other/debian....0.0-1_i386.deb
dpkg -i ttf-fireflysung_1.0.0-1_i386.deb
基本上中文安装已经完成了。如果安装字体后还不能正常显示中文。请到
/etc/fonts/下修改local.conf文件。把它改为:
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<match target="font" >
<edit mode="assign" name="hinting" >
<bool>true</bool>
</edit>
</match>
<match target="font" >
<edit mode="assign" name="hintstyle" >
<const>hintmedium</const>
</edit>
</match>
<dir>~/.fonts</dir>
<match target="font" >
<test compare="more" name="size" qual="any" >
<double>8</double>
</test>
<test compare="less" name="size" qual="any" >
<double>12</double>
</test>
<edit mode="assign" name="antialias" >
<bool>false</bool>
</edit>
</match>
<match target="font" >
<test compare="more" name="pixelsize" qual="any" >
<double>11</double>
</test>
<test compare="less" name="pixelsize" qual="any" >
<double>17</double>
</test>
<edit mode="assign" name="antialias" >
<bool>false</bool>
</edit>
</match>
</fontconfig>
到此debian的x-window已经安装完成。如果觉得安装的中文(新宋体)不好看。请看“debian的中文美化方案"
你可以使用这个链接引用该篇文章 http://publishblog.blogchina.com/blog/tb.b?diaryID=3729238
| Debian笔记之六:安装源及内核编译 | 5city |
| debian解决开机自动登陆X-window的方法 | blygl |
| 我常用的Debian下,一些工具 | agile_boy |
| debian的音量错误提示的解决方法 | blygl |
| debian的音量错误提示的解决方法 | blygl |