KNOPPIX 3.6 2004-08-16 LIVE-CD 汉化
主要是参考很多大侠的经验,
参考:
1)KNOPPIX3.4硬盘安装汉化教程
http://www.linuxsir.org/bbs/showthread.php?s=&threadid=125921&highlight=knoppix
2)Knoppix Linux 爱好者
http://www.idll.net/lt/knoppix/
3)自己动手制作Knoppix中文版
http://www.linuxeden.com/edu/doctext.php?docid=3082
(介绍如何定制一张中文版的Knoppix。作者:hiweed)
4)Knoppix Linux 中文版 [制作方法] (中文支持包) [截图]
http://www.woodfox.net/glyoung/linux/knoppix-zh/
(Knoppix Linux CD 中文版使用说明。Knoppix中文版制作方法HOWTO。作者:imaq)
5)KNOPPIX英文论坛
6)KNOPPIX台湾网站
7)KnoppixRemasteringHowto - Cookbook for your custom CD
http://www.knoppix.net/docs/index.p...emasteringHowto
8)RemasterFromHDInstallHowTo - Remaster a Knoppix type install, includes tips for a 'toHD' install
http://www.knoppix.net/docs/index.p...mHDInstallHowTo
9)KnoppixCustomKernelHowto - How to make a remaster with a custom kernel
http://www.knoppix.net/docs/index.p...stomKernelHowto
10)Sticky: [ANNOUNCE] Remastering Knoppix - With Klaus scripts
http://www.knoppix.net/forum/viewtopic.php?t=12578
=====================
本文只是我一次汉化记录,贴上来是为了做个备份
===========================================
目录
-1)准备
a)tools
×)remaster-0.1-6
×)KNOPPIX-3.6-2004-08-16-EN.ISO (livecd 光盘)
b)分区考虑
×)swap 分区 (或 swap文件 ) : swap + ram >1G
*) remaster 分区 (或 目录)
0)空出空间
a)清除kde-i18n-cs,fr,de,... (除zh-cn外)
b)清除openoffice.org-de-en
1)中文支持:
×××中文程序
中文输入法 fcitx
中英(英中)字典 stardict stardict-langdao-ce stardict-langdao-ec stardict-oxford
中文office openoffice-l10n-zh-cn openoffice-help-zh-cn
中文KDE kde-i18n-zh-cn
中文字体 ttf-microsoft-simsun ttf-microsoft-simhei ttf-microsoft-simyou ttf-microsoft-simli
***配置修改
a)/etc/apt/sources.list
增加 中文字体,stardict 字典,JAVA, firefly ,
修改debian mirrors :debian.cn99.com
b)/etc/init.d/knoppix-autoconfig
c)/etc/X11/Xsession.d/45session
d)/etc/profile
e)/etc/fonts/fonts.conf
f)KDE configuration
*) 修改/etc/skel/.kderc文件
*) 修改/etc/skel/.kde/share/config/kdeglobals文件
*)修改/etc/skel/.kde/share/config/kdesktoprc
*) 修改/etc/skel/.kde/share/config/konsolerc
g)openoffice 中文字体配制
h)windows 分区自动mount (支持中文)
/usr/sbin/rebuildfstab
i)体会
a)remaster 使得KNOPPIX 定制变得非常傻瓜化 (不需很了解KNOPPIX ,只需了解Debian :chroot , apt-get)
b)todo :
将RemasterFromHDInstallHowTo 和Remastering Knoppix - With Klaus scripts 结合;
在create-compress-fs 之前就check 定制效果 (create-compress-fs 太耗时了)
=======================================
-1)准备
a)tools
×)remaster-0.1-6
wget http://debian.tu-bs.de/knoppix/rema...er_0.1-6.tar.gz
tar xzf remaster_0.1-6.tar.gz
cd remaster-0.1
sudo ./knoppix-remaster /mnt/hda2
×)KNOPPIX-3.6-2004-08-16-EN.ISO (livecd 光盘)
b)分区考虑
×)swap 分区 (或 swap文件 ) : swap + ram >1G
eg: /mnt/hdb4 ( dd if=zero of=swapfile bs=1m count=800 ; 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 ...
b)清除openoffice.org-de-en
apt-get remove openoffice.org-de-en
1)中文支持:
***新安装程序:
a)中文输入法
fcitx
b)中英(英中)字典
stardict
stardict-langdao-ce
stardict-langdao-ec
stardict-oxford
c)中文office
openoffice-l10n-zh-cn
openoffice-help-zh-cn
d)中文KDE
kde-i18n-zh-cn
e)中文字体
ttf-microsoft-simsun ttf-microsoft-simhei
ttf-microsoft-simyou 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-simhei
#apt-get install ttf-microsoft-simyou ttf-microsoft-simli
deb http://debian.okey.net/debian-uo/ sid firefly java marillat rareware misc
#deb http://debian.okey.net/debian-uo/ sid firefly java marillat rareware misc ustc
deb http://debian.okey.net/debian-fonts/ ./
修改debian mirrors :debian.cn99.com
deb http://debian.cn99.com/debian stable main contrib non-free
deb http://debian.cn99.com/debian-non-US stable/non-US main contrib non-free
deb http://debian.cn99.com/debian-security stable/updates main contrib non-free
deb-src http://debian.cn99.com/debian stable main contrib non-free
deb-src http://debian.cn99.com/debian-non-US stable/non-US main contrib non-free
以上的 stable,根据需要可以设置成 testing 和 unstable
b)/etc/init.d/knoppix-autoconfig
cn)
# Simplified Chinese version
COUNTRY="cn"
LANG="zh_CN.GB2312"
LANGUAGE="zh_CN.GB2312"
KEYTABLE="us"
XKEYBOARD="us"
KDEKEYBOARD="us"
CHARSET="gb2312.1980-0"
# Additional KDE Keyboards
KDEKEYBOARDS="us,de,fr"
XMODIFIERS="@im=fcitx"
c)/etc/X11/Xsession.d/45session
修改/etc/X11/Xsession.d/45session加入如下几行:
if [ -n "$XMODIFIERS" ]; then
export XMODIFIERS
case $XMODIFIERS in
@im=Chinput) chinput & ;;
@im=xcin*) xcin & ;;
@im=fcitx*) fcitx & ;;
@im=xsim*) xsim & ;;
esac
fi
# Check for sufficient Real Memory for starting KDE or...
d)/etc/profile
设置中文环境变量
修改/etc/profile加入如下几行:
LC_ALL=zh_CN.GB2312
LANG=zh_CN.GB2312
LC_CTYPE=zh_CN.GB2312
export LC_ALL LANG LC_CTYPE
e)/etc/fonts/fonts.conf
wget http://211.100.7.181/~liling/myworks/local.conf
cp /etc/fonts/fonts.conf /etc/fonts/fonts.conf.knx ###(备份)
cp ./local.conf /etc/fonts/fonts.conf
f)KDE configuration
*) 修改/etc/skel/.kderc文件
将下面的行设定为simsun.ttf字体,建议字体大小为12像素:
[General]
activeFont=SimSun,12,-1,5,75,0,0,0,0,0
fixed=SimSun,12,-1,5,50,0,0,0,1,0
font=SimSun,12,-1,5,50,0,0,0,0,0
menuFont=SimSun,12,-1,5,50,0,0,0,0,0
taskbarFont=SimSun,12,-1,5,50,0,0,0,0,0
toolBarFont=SimSun,12,-1,5,50,0,0,0,0,0
*) 修改/etc/skel/.kde/share/config/kdeglobals文件
[General]
fixed=SimSun,12,-1,5,50,0,0,0,1,0
font=SimSun,12,-1,5,50,0,0,0,0,0
menuFont=SimSun,12,-1,5,50,0,0,0,0,0
taskbarFont=SimSun,12,-1,5,50,0,0,0,0,0
toolBarFont=SimSun,12,-1,5,50,0,0,0,0,0
[Locale]
Charset=iso8859-15
Country=cn ###可不改;在/etc/init.d/knoppix-autoconifg中已指定了
Language=zh_CN.GB2312 ###可不改;在/etc/init.d/knoppix-autoconifg中已指定了
[WM]
activeFont= SimSun,10,-1,5,75,0,0,0,0,0
*)修改/etc/skel/.kde/share/config/kdesktoprc
[FMSettings]
StandardFont= SimSun,10,-1,5,50,0,0,0,0,0
*) 修改/etc/skel/.kde/share/config/konsolerc
为保证konsole正确显示英文字体,把Lucidatypewriter字体改成Console字体:
[Desktop Entry]
defaultfont=Console,12,-1,5,50,0,0,0,1,0
font=8
g)openoffice 中文字体配制
cd /usr/share/fonts/truetype/microsoft
mkttfdir
cd /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/fonts.dir拷贝到此目录:
mv fonts.dir fonts.dir.knx
cp /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)。
最后制作一个fonts_dir.global文件
cp -f fonts.dir fonts_dir.global
h)windows 分区自动mount (支持中文)
/usr/sbin/rebuildfstab
只要解决mount时自动添加iocharset=gb2312,codepage=936就可以了
但实际运行时/etc/fstab是自动产生的,所以要修改/usr/sbin/rebuildfstab
[ -d "$mountpoint" ] || mkdir -p "$mountpoint" 2>/dev/null
options="noauto,users,exec"
case "$fstype" in
ntfs) 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" ;;
esac
echo "$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 太耗时了)