1、KNOPPIX 3.6 2004-08-16 LIVE-CD 汉化主要是参考很多大侠的经验,参考:1)KNOPPIX3.4 硬盘安装汉化教程http:/www.linuxsir.org/bbs/showthread.php?s= mkswap swapfile ; swapon swapfile ; 用 top 查一下 ram + swap)*) remaster 分区 (或 目录)eg: /mnt/hda2 ( 或 /mnt/hda2/remaster )0)空出空间a)清除 kde-i18n-cs,fr,de,. (除 zh-cn 外)apt-get remove kde-i18n-de
2、.b)清除 openoffice.org-de-enapt-get remove openoffice.org-de-en1)中文支持:*新安装程序:a)中文输入法fcitxb)中英(英中)字典stardictstardict-langdao-cestardict-langdao-ecstardict-oxfordc)中文 officeopenoffice-l10n-zh-cnopenoffice-help-zh-cnd)中文 KDEkde-i18n-zh-cne)中文字体ttf-microsoft-simsun ttf-microsoft-simheittf-microsoft-simyou
3、 ttf-microsoft-simli*配置修改a)/etc/apt/sources.list增加 中文字体,stardict 字典,JAVA, firefly ,deb http:/211.100.7.181/liling/debian/ttfonts/ ./apt-get install ttf-microsoft-simsun ttf-microsoft-simheiapt-get install ttf-microsoft-simyou ttf-microsoft-simlideb http:/ sid firefly java marillat rareware misc#deb
4、http:/ sid firefly java marillat rareware misc ustcdeb http:/ ./修改 debian mirrors :deb http:/ stable main contrib non-freedeb http:/ stable/non-US main contrib non-freedeb http:/ stable/updates main contrib non-freedeb-src http:/ stable main contrib non-freedeb-src http:/ stable/non-US main contrib
5、non-free以上的 stable,根据需要可以设置成 testing 和 unstableb)/etc/init.d/knoppix-autoconfigcn)# Simplified Chinese versionCOUNTRY=“cn“LANG=“zh_CN.GB2312“LANGUAGE=“zh_CN.GB2312“KEYTABLE=“us“XKEYBOARD=“us“KDEKEYBOARD=“us“CHARSET=“gb2312.1980-0“# Additional KDE KeyboardsKDEKEYBOARDS=“us,de,fr“XMODIFIERS=“im=fcitx“
6、c)/etc/X11/Xsession.d/45session修改/etc/X11/Xsession.d/45session 加入如下几行:if -n “$XMODIFIERS“ ; thenexport XMODIFIERScase $XMODIFIERS inim=Chinput) chinput ;im=xcin*) xcin ;im=fcitx*) fcitx ;im=xsim*) xsim ;esacfi # Check for sufficient Real Memory for starting KDE or.d)/etc/profile设置中文环境变量修改/etc/profil
7、e 加入如下几行:LC_ALL=zh_CN.GB2312LANG=zh_CN.GB2312LC_CTYPE=zh_CN.GB2312export LC_ALL LANG LC_CTYPEe)/etc/fonts/fonts.confwget http:/211.100.7.181/liling/myworks/local.confcp /etc/fonts/fonts.conf /etc/fonts/fonts.conf.knx #(备份)cp ./local.conf /etc/fonts/fonts.conff)KDE configuration*) 修改/etc/skel/.kderc
8、文件将下面的行设定为 simsun.ttf 字体,建议字体大小为 12 像素:GeneralactiveFont=SimSun,12,-1,5,75,0,0,0,0,0fixed=SimSun,12,-1,5,50,0,0,0,1,0font=SimSun,12,-1,5,50,0,0,0,0,0menuFont=SimSun,12,-1,5,50,0,0,0,0,0taskbarFont=SimSun,12,-1,5,50,0,0,0,0,0toolBarFont=SimSun,12,-1,5,50,0,0,0,0,0*) 修改/etc/skel/.kde/share/config/kdeg
9、lobals 文件Generalfixed=SimSun,12,-1,5,50,0,0,0,1,0font=SimSun,12,-1,5,50,0,0,0,0,0menuFont=SimSun,12,-1,5,50,0,0,0,0,0taskbarFont=SimSun,12,-1,5,50,0,0,0,0,0toolBarFont=SimSun,12,-1,5,50,0,0,0,0,0LocaleCharset=iso8859-15Country=cn #可不改;在/etc/init.d/knoppix-autoconifg 中已指定了Language=zh_CN.GB2312 #可不改;在
10、/etc/init.d/knoppix-autoconifg 中已指定了 WMactiveFont= SimSun,10,-1,5,75,0,0,0,0,0*)修改/etc/skel/.kde/share/config/kdesktoprcFMSettings StandardFont= SimSun,10,-1,5,50,0,0,0,0,0*) 修改/etc/skel/.kde/share/config/konsolerc为保证 konsole 正确显示英文字体,把 Lucidatypewriter 字体改成 Console 字体: Desktop Entrydefaultfont=Cons
11、ole,12,-1,5,50,0,0,0,1,0font=8g)openoffice 中文字体配制cd /usr/share/fonts/truetype/microsoftmkttfdircd /usr/share/fonts/truetype/openoffice建立字体文件软链接ln -s /usr/share/fonts/truetype/microsoft/simsun.ttf simsun.ttf把/usr/share/fonts/truetype/openoffice 里的 fonts.dir 文件改名,并把/usr/share/fonts/truetype/microsoft/
12、fonts.dir 拷贝到此目录:mv fonts.dir fonts.dir.knxcp /usr/share/fonts/truetype/microsoft/fonts.dir fonts.dir合并字体文件:cat fonts.dir.knx fonts.dir修改字体文件,打开 fonts.dir,会发现 fonts.dir 文件变成了两部分,第一部分即原 fonts.dir 文件的内容,第二部分为原 openoffice 字体的内容,现删除 openoffice 字体的内容的数字部分(就是那个数字 1) ,并把第一行改成本文件的行数(如总共 8 行,则将第一行的数字改成 8) 。最
13、后制作一个 fonts_dir.global 文件 cp -f fonts.dir fonts_dir.globalh)windows 分区自动 mount (支持中文)/usr/sbin/rebuildfstab只要解决 mount 时自动添加 iocharset=gb2312,codepage=936 就可以了但实际运行时/etc/fstab 是自动产生的,所以要修改 /usr/sbin/rebuildfstab -d “$mountpoint“ | mkdir -p “$mountpoint“ 2/dev/nulloptions=“noauto,users,exec“case “$fst
14、ype“ inntfs) options=“iocharset=utf8,$options,ro,uid=knoppix,gid=knoppix“ ;vfat|msdos) options=“iocharset=gb2312,codepage=936,$options,umask=000,uid=knoppix,gid=knoppix“ ;swap) options=“defaults“ ;esacecho “$ADDEDBYKNOPPIX“ i)体会a)remaster 使得 KNOPPIX 定制变得非常傻瓜化 (不需很了解 KNOPPIX ,只需了解Debian :chroot , apt-get)b)todo : 将 RemasterFromHDInstallHowTo 和 Remastering Knoppix - With Klaus scripts 结合;在 create-compress-fs 之前就 check 定制效果 (create-compress-fs 太耗时了)