google ad

Google AdSense Leaderboard

怎样在KNOPPIX重新定制中修改KDE菜单?

各位九界组论坛的朋友大家好:
本人对Live CD比较感兴趣,下载了KNOPPIX5.1.1中文版,但是发现还不能满足个人的需求,所以想尝试重新定制KNOPPIX。我添加一些软件包(包括用于硬盘拷贝的sdd,dcfldd,和数据恢复sluthkit之类的软件等),删除一些不需要的软件包,修改了启动画面和背景图片,然后对KDE Menu菜单做了重新编辑。我看了很多Live CD 定制的文章,主要参考Knoppix Remastering Howto,链接网址为:http://www.knoppix.net/wiki/Knoppix_Remastering_Howto进行定制。
文章中关于菜单和图标修改如下:
Launching KDE to Change Menus, Icons, etc.
While you are in the chroot environment you can load KDE and use the configuration tools to change buttons, icons, etc.
Once you are finished you can exit KDE and copy /home/knoppix to /etc/skel to keep these changes. To load KDE do the
following.
1.If you are not at runlevel 2 (i.e. if you are already in KDE), switch to runlevel 2.
#init 2
2.Copy /etc/skel to /home/knoppix
#cp -Rp /etc/skel /home/knoppix
3.Change permissions to the user 'knoppix'
#chown knoppix:knoppix -R /home/knoppix
4.Copy over your X11 configuration to the chroot'd environment
(press ctrl+alt+F2 to switch to a non-chroot'd terminal, then ctrl+alt+F1 to switch back when done)
#cp /etc/X11/xorg.conf /mnt/hda1/knx/source/KNOPPIX/etc/X11Knoppix
3.7: I think it's XF86Config-4 rather than xorg.conf.
5.(Optional)Switch to user 'knoppix'. If you want to uninstall packages, stay as root -- e.g. skip this step.
If you want to configure the buttons, icons, background, etc., that you see when KDE boots, be sure to do this step.
#su knoppix
1)Launch KDE
#startx
2)Do your KDE changes
3)Exit KDE
4)Exit su and switch back to user 'root'.
#exit
6.Copy /home/knoppix back to /etc/skel to keep the changes
#mv /etc/skel /etc/skel-old
#mv /home/knoppix /etc/skel
7.Set the owner back to root
chown root:root -R /etc/skel
8.Remove the xorg.conf file
#rm /etc/X11/xorg.conf
9.If you find that some of your settings are not persistent after booting the new image, check the initialization
file at /etc/X11/Xsession.d/45xsession. By default, Knoppix does not simply copy over all files from /etc/skel.
You may need to make modifications here if you wish to do something different.

我按照文章Knoppix Remastering Howto一路做下来,生成新的ISO影像后,用VMware Workstation对ISO进行测试,发现之前对K Menu所做的修改没有生效,其它修改和软件运行基本正常,请问是否需要对/etc/X11/Xsession.d/45Xsession的初始化文件进行修改,应如何修改?这个问题已经困扰和很久,实验过很多次,但还没有找到问题的原因所在,请那个高手指点一下,告诉我详细的步骤。谢谢!!