收到Ubuntu寄来的光盘,可谓高兴一把,兴奋之余就先尝尝鲜,果然做得够人性化。下面把安装经过记录下来,以备不时之用。。:)
1.首先我选择的是普通安装,因为菜嘛!如果你对GNOME不感兴趣的话,可以选择Server安装,然后再装你喜欢的WM。
2.安装完以后,进入系统。字体什么这么模糊,先不管他,让指南先操作一遍先。替换/etc/apt/sources.list为下面内容:
deb http://ubuntu.cn99.com/ubuntu/ breezy main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu/ breezy-updates main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu/ breezy-security main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu/ breezy-backports main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu-cn/ breezy main restricted universe multiverse
3.保存好以后就可以利用sudo apt-get update
命令进行更新。具体有没有必要及为什么要更新我就不懂了,反正是按着新手指南做的。菜嘛!没办法,慢慢来。
4.sudo dpkg-reconfigure locales确保 zh_CN.UTF-8 被选择,同时也默认local为 zh_CN.UTF-8
5.安装中文语言支持。
sudo apt-get install language-pack-gnome-zh language-pack-gnome-zh-base language-pack-zh language-pack-zh-base language-support-zh
6.安装输入法,你可以在SCIM和fcitx输入法中任选一种安装
SCIM
$sudo apt-get install scim scim-modules-socket scim-modules-table scim-pinyin scim-tables-zh scim-input-pad
$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
注:在Dapper下省略后两步
注:在Dapper里也可以直接选择系统->系统管理—>语言支持(language support)勾选Chinese 就会自动安装和配置scim
Fcitx
$sudo apt-get install fcitx
$sudo sh -c " echo 'export XMODIFIERS=@im=fcitx ; export GTK_IM_MODULE="fcitx" ; fcitx ' > /etc/X11/Xsession.d/95xinput "
$sudo chmod +755 /etc/X11/Xsession.d/95xinput
7.注销再进入系统。咦,字体什么还这么模糊,找了半天,原来是点阵没开,好!编辑/etc/fonts/font.conf并替换为:
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<!-- conf.d/myfont.conf -->
<fontconfig>
<dir>/usr/share/fonts</dir>
<dir>/usr/share/fonts/local</dir>
<dir>/usr/local/share/fonts</dir>
<dir>~/.fonts</dir>
<!--加入点阵字体路径-->
<dir>/usr/X11R6/lib/X11/fonts</dir>
<!--
配置粗体中文显示,要配合freetype-2.1.10,libxft-2.1.7,fontconfig-2.3.X
-->
<match target="font">
<!-- check to see if the font is just regular -->
<test name="weight" compare="less_eq">
<int>100</int>
</test>
<!-- check to see if the pattern requests bold -->
<test target="pattern" name="weight" compare="more_eq">
<int>180</int>
</test>
<!-- set the embolden flag -->
<edit name="embolden" mode="assign">
<bool>true</bool>
</edit>
</match>
<!--
default settings for all fonts.
-->
<match target="font" >
<!-- 打开字体的反锯齿即AA,大号字用AA会更美观 -->
<edit mode="assign" name="antialias" >
<bool>t</bool>
</edit>
<edit mode="assign" name="hintstyle" >
<const>hintslight</const>
</edit>
<!-- 打开hint -->
<edit mode="assign" name="hinting" >
<bool>t</bool>
</edit>
<!-- 关闭autohint -->
<edit mode="assign" name="autohint" >
<bool>false</bool>
</edit>
</match>
<!-- 关闭 8到17号字体的AA -->
<match target="font" >
<test compare="contains" name="lang" >
<string>zh-cn</string>
<string>zh-tw</string>
<string>ja</string>
<string>ko</string>
</test>
<test compare="more_eq" name="pixelsize" qual="any" >
<double>8</double>
</test>
<test compare="less_eq" name="pixelsize" qual="any" >
<double>17</double>
</test>
<edit mode="assign" name="antialias" >
<bool>false</bool>
</edit>
</match>
<!-- 解决英文字体间距过宽 -->
<match target="font">
<test target="pattern" name="lang" compare="contains">
<string>zh-tw</string>
<string>zh-cn</string>
<string>ja</string>
<string>ko</string>
</test>
<edit name="spacing">
<const>proportional</const>
</edit>
<edit name="globaladvance">
<bool>false</bool>
</edit>
</match>
<!--
设定中文最小字号,使得小字的中文美观
-->
<match target="font" >
<test name="family" qual="any" >
<string>SimSun</string>
<string>NSimSun</string>
<family>Vera Sans YuanTi</family>
<string>SimHei</string>
<string>AR PL ShanHeiSun Uni</string>
<string>AR PL ZenKai Uni</string>
<string>AR PL New Sung</string>
<string>FZSongTi</string>
<string>FZMingTiB</string>
<string>FangSong_GB2312</string>
<string>KaiTi_GB2312</string>
</test>
<test compare="more_eq" name="pixelsize" qual="any">
<int>7</int>
</test>
<test compare="less_eq" name="pixelsize" qual="any">
<int>12</int>
</test>
<edit mode="assign" name="pixelsize" >
<int>12</int>
</edit>
</match>
<!--
把serif ,sans,monospace的family(字体族)重新排序,适应中文用户的用字习惯
-->
<alias>
<family>serif</family>
<prefer>
<family>Calibri</family>
<family>Segoe UI</family>
<family>Tahoma</family>
<family>Bitstream Vera Serif</family>
<family>Verdana</family>
<family>Times New Roman</family>
<family>Nimbus Roman No9 L</family>
<family>Luxi Serif</family>
<family>Times</family>
<family>Simsun</family>
<family>Vera Sans YuanTi</family>
<family>WenQuanYi Bitmap Song</family>
<family>AR PL ShanHeiSun Uni</family>
<family>AR PL ZenKai Uni</family>
<family>AR PL New Sung</family>
<family>FZSongTi</family>
<family>FZMingTiB</family>
<family>Kochi Mincho</family>
<family>AR PL SungtiL GB</family>
<family>AR PL Mingti2L Big5</family>
<family>Baekmuk Batang</family>
</prefer>
</alias>
<alias>
<family>sans-serif</family>
<prefer>
<family>Segoe UI</family>
<family>Calibri</family>
<family>Tahoma</family>
<family>Verdana</family>
<family>Bitstream Vera Sans</family>
<family>Helvetica</family>
<family>Arial</family>
<family>SimSun</family>
<family>Vera Sans YuanTi</family>
<family>WenQuanYi Bitmap Song</family>
<family>AR PL ShanHeiSun Uni</family>
<family>AR PL ZenKai Uni</family>
<family>AR PL New Sung</family>
<family>FZSongTi</family>
<family>FZMingTiB</family>
<family>Kochi Gothic</family>
<family>AR PL KaitiM GB</family>
<family>AR PL KaitiM Big5</family>
<family>Baekmuk Dotum</family>
</prefer>
</alias>
<alias>
<family>monospace</family>
<prefer>
<family>Consolas</family>
<family>Segoe UI</family>
<family>Bitstream Vera Sans Mono</family>
<family>Courier New</family>
<family>Courier</family>
<family>Andale Mono</family>
<family>Luxi Mono</family>
<family>Nimbus Mono L</family>
<family>Vera Sans YuanTi Mono</family>
<family>NSimSun</family> <!-- han (zh-cn,zh-tw) -->
<family>WenQuanYi Bitmap Song</family>
<family>AR PL ShanHeiSun Uni</family>
<family>AR PL ZenKai Uni</family>
<family>AR PL New Sung</family>
<family>FZSongTi</family>
<family>FZMingTiB</family>
<family>Kochi Gothic</family>
<family>AR PL KaitiM GB</family>
<family>Baekmuk Dotum</family>
</prefer>
</alias>
</fontconfig>
8.
至此结束安装历程。BTW:Ubuntu确实做的不错,很多都已经帮我们设好了!还好就是apt-get,异常的好用。对了,速度感觉不是很快,不知道是
不是感染了最近流行的一种可以同时感染Linux和Window的病毒,据说被感染后机器会变慢。哎!我还以为Linux下没病毒。