巴蔓子(mailto:imaq at 21cn
dot com,
QQ:15704509)
$ chroot /mnt/hda4/KNOPPIX $ mount -t proc /proc proc$ dpkg-query -W
--showformat='${Installed-Size} ${Package}\n' | sort -n$ dpkg-query -W
--showformat='${Installed-Size} ${Package}\t ${Description;50}\n' |
grep
^[0-9] | sort -n## Security updates for
"stable" |
然后运行apt-get update即可更新软件版本信息.dpkg -l [pattern] dpkg -i
xxxx_i386.deb dpkg -i xxxx_all.debdpkg -r
pkgname
但保留配置文件
dpkg -P pkgname
删除所有文件,包括配置文件dpkg --configure pkgname dpkg --pending action
按标记状态执行操作,action可以是配置、删除、彻底删除dpkg -s pkgnamedpkg -L pkgname
| cn|zh_CN.*) # Simplified Chinese version COUNTRY="cn" LANG="zh_CN.GB2312" LANGUAGE="zh_CN.GB2312" # make GTK+, WindowMaker, etc work properly KEYTABLE="us" XKEYBOARD="us" KDEKEYBOARD="us" CHARSET="gb2312.1980-0" # Additional KDE Keyboards KDEKEYBOARDS="us,cn,es,fr" # Allow XIM name specification via boot prompt command line # thus we can use xcin (xim=xcin-zh_CN.GB2312) XIM="$(getbootparam xim 2>/dev/null)" [ -n "$XIM" ] || XIM="fcitx" XMODIFIERS="@im=$XIM" ;; |
| sourced=0 if [ -n "$GDM_LANG" ]; then sourced=1 LANG="$GDM_LANG" else # only source one of the possible files, and in that order; # if system wide and user config are mixed and different, umpredictable # things will happen... for langfile in $HOME/.i18n /etc/sysconfig/i18n ; do [ -f $langfile -a "$sourced" = "0" ] && . $langfile && sourced=1 done fi if [ "$sourced" = 1 ]; then ..... # export language environment variables |
[ -n
"$LINGUAS"
] && export LINGUAS || unset LINGUAS |
- 8x16 -sony-fixed-medium-r-normal--16-120-100-100-c-80-iso8859-15 + 8x16 -sony-fixed-medium-r-normal--16-120-100-100-c-80-iso8859-1
XMODIFIERS="@im=Chinput"改为:
#
Allow XIM name specification via commandline
# thus we can
use xcin (xim=xcin-zh_CN.GB2312)
XIM="$(getbootparam xim 2>/dev/null)"
[ -n "$XIM" ]
|| XIM="Chinput"
XMODIFIERS="@im=$XIM"
这样就可以在启动时指定xim参数了,不指定的情况下仍然是Chinput,可以使用chinput和fcitx

| exec $XFWM } + 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 GNOME # (We don't want to end in a swap-a-lot loop.) |
dir "/usr/share/fonts/truetype/arphic"<dir>/usr/share/fonts/truetype/arphic</dir> FontPath
"/usr/share/fonts/truetype/arphic"Load "freetype"行(以及type1???),添加Load
"xtt"$ fc-cache
/usr/share/fonts/truetype/arphic即可
ln -s libqt-mt.so.3.1.1 libqt.so.3
就可以运行了,
我用到目前还没有发现问题(但opera-7.1.0-shared就没有这么幸运了)
| [xmms] playlist_font=-adobe-helvetica-bold-r-*-*-10-*,rofont12 use_fontsets=TRUE mainwin_use_xfont=TRUE mainwin_font=-adobe-helvetica-medium-r-*-*-8-*,rofont12 |
| ---
rebuildfstab.orig 2003-04-20 11:30:22.000000000 +0800 +++ rebuildfstab 2003-05-08 17:13:56.000000000 +0800 @@ -67,8 +67,15 @@ [ -d "$mountpoint" ] || mkdir -p "$mountpoint" 2>/dev/null options="noauto,users,exec" case "$fstype" in - ntfs) options="${options},ro,uid=knoppix,gid=knoppix" ;; - vfat|msdos) options="${options},umask=000,uid=knoppix,gid=knoppix" ;; + ntfs) case $LANGUAGE in + cn|tw|zh_*) options="iocharset=utf8,${options},ro,uid=knoppix,gid=knoppix";; + *) options="${options},ro,uid=knoppix,gid=knoppix";; + esac ;; + vfat|msdos) case $LANGUAGE in + cn|zh|zh_CN*) options="iocharset=gb2312,codepage=936,${options},umask=000,uid=knoppix,gid=knoppix" ;; + tw|zh_TW*) options="iocharset=big5,codepage=950,${options},umask=000,uid=knoppix,gid=knoppix" ;; + *) options="${options},umask=000,uid=knoppix,gid=knoppix" + esac ;; swap) options="defaults" ;; esac echo "$ADDEDBYKNOPPIX" |
[Desktop Entry]
Name=Chinese FAQ
Name[zh_CN]=中文使用FAQ
Icon=zh
Type=Link
URL=/usr/share/doc/debian-zh-faq-s/html/frames/index.htmlExtractFiles ()
{
id_out="`id`"
uid=`expr "$id_out" : '^[^(]*(\([^)]*\)).*'`
gid=`expr "$id_out" : '^[^(]*([^)]*).*(\([^)]*\)).*'`
if [ "$uid" = "root" ] ; then
( cd "$1" ; tar xpfo "$2" ; chown -R $uid . ; chgrp
-R $gid . )
else
( cd "$1" ; tar xpfo "$2" )
fi
}
[ 注: Acrobat Reader 5.08 的debian包在这里可以找到,还带有浏览器插件,省了自己安装的麻烦
中文支持包同样可以在ftp.adobe.com上找到]
另外也可以安装xpdf-chinese包(xpdf-chinese-simplified/traditional)| # Default user settings skeleton
for different language if [ -d /etc/skel.${LANG/.*/} ]; then rm -f /etc/skel # delete original link to /KNOPPIX/etc/skel ln -s /KNOPPIX/etc/skel.${LANG/.*/} /etc/skel elif [ -d /etc/skel.${LANGUAGE/.*/} ]; then rm -f /etc/skel # delete original link to /KNOPPIX/etc/skel ln -s /KNOPPIX/etc/skel.${LANGUAGE/.*/} /etc/skel fi HOMEDIR="$(getbootparam home)" if [ -z "$HOMEDIR" ]; then echo -n "${BLUE}Copying default user settings...${RED}" [ -d /home/knoppix ] && mkdir -p /home/knoppix # leave .kde to /etc/X11/Xsession.d/45xsession, which would check free space before copying cp -au /etc/skel/.[^k\.]* /etc/skel/* /home/knoppix cp -au /etc/skel/.k[^d][^e]* /etc/skel/* /home/knoppix chown -R knoppix.knoppix /home/knoppix echo "${GREEN}Done.${NORMAL}" fi |

$ deborphan > /tmp/orphanlist
$ dpkg -P `cat /tmp/orphanlist`
$ rm /tmp/orphanlist $ umount /proc (this is very important!)
$ umount -a
$ exit # leave chrooted environment $ mount /dev/hda3
$ mkdir -p /mnt/hda3/knoppix-zh_3.2/NewCD/KNOPPIX/KNOPPIX
$ mkisofs -R -l -hide-rr-moved
/mnt/hda4/KNOPPIX | nice -10
create_compressed_fs - 65536 >
/mnt/hda3/knoppix-zh_3.2/NewCD/KNOPPIX/KNOPPIX # cd /mnt/hda3/knoppix-zh_3.2
# mkisofs -V "Knoppix Chinese" -P "imaq" -l -r -J \
-b
KNOPPIX/boot-cn.img
-c
KNOPPIX/boot.cat -o myknoppix.iso NewCd knoppix lang=cn $ mkdir /mnt/bootimage
$ cp /cdrom/KNOPPIX/boot-en.img boot-cn.img $ mount boot-cn.img
/mnt/bootimage -o loop
$ umount /mnt/bootimage
boot.img可以单独测试,如果是vmware的话,直接将软驱设置为boot.img
如果不用vmware,用dd或者rawrite写到软盘上,然后用它启动
[xmms]skin=/usr/share/xmms/Skins/30FormChineseSkin_1.5.wsz playlist_font=-adobe-helvetica-bold-r-*-*-10-*,rofont12| Package: zwincontrol Version: 3.2-1 Section: utils Priority: optional Architecture: i386 Depends: chinput(>=3.0),libgtk1.2(>=1.2.4),xlibs(>>4.1.0) Installed-Size: 1095 Maintainer: Hansom Young <glyoung@users.sourceforge.net> Description: Control bar for Chinput zwincontrol is a control bar for Chinput. |
| cd /tmp wget http://developer.linuxtag.net/knoppix/sources/cloop_1.02-1.tar.gz tar xzf cloop_1.02-1.tar.gz cd cloop_1.02-1 make KERNEL_DIR=/usr/src/linux mkdir -p /lib/modules/misc && cp cloop.o /lib/modules/misc/ depmod -a mknod /dev/cloop b 240 0 |