2024年2月20日发(作者:)

利用UCK打造属于自己的xubuntu livecd以xubuntu 9.04环境为例准备好已经下载的 livecd镜像在新立得中搜索安装最新版的UCK启动UCK开始制作选择中文语言包(zh)选择livecd启动界面语言(zh_CN)

选择桌面环境others(因为我们制作的是xubuntu livecd)选择你下载的xubuntu9.04 镜像文件问是否自定义cd,我们选择yes

问是否删除wubi安装程序,根据自己的需要选择yes/no小技巧:1.在此过程中你可以查看当你的用户名下的tmp文件夹下生成了remaster-root/ect/apt/文件,赶紧用你认为最快的源替换掉此文件,以加快下载语言包的速度2.因为我们在制作的过程中要经常修改文件,在终端中输入命令sudo thunar,以获得直接修改文件的权限等待出现构建界面,其中有三个选项1.打开包管理器(Run package manager)2.打开一个终端(Run console application)3.继续构建(Continue building)这时我们就要用到小技巧2,打开remaster-root/ect/apt/文件修改软件源根据需要加入ibus输入法源:deb /ibus-dev/ppa/ubuntu/ jaunty main现在我们点击构建界面中的Run console application 打开终端输入gpg --keyserver --recv 21C022AA985E0E11gpg --export --armor 21C022AA985E0E11 | sudo apt-key add -

更新包信息sudo apt-get update关闭打开的终端,然后点击Run package manager 打开新立得在新立得中选择标记以便彻底删除来删除你不用的软件包,我删除的包如下scim输入法(scim,scim-modules-socket),gnome-orca,aumix,orage,游戏(gnome-games,gnome-games-data),abiword,gnumeric,gnumeric-common,gnumeric-doc,mousepad,thunderbird,thunderbird-locale-zh-cn,thunderbird-locale-zh-tw,transmission-common,蓝牙(bluetooth,bluez,bluez-alsa,bluez-cups,bluez-gnome,bluez-gstreamer,libbluetooth3),xchat,xchat-common,pidgin,pidgin-data,totem,totem-common,xsane,xsane-common,listen,打印相关(hplip,hplip-data,cups,cups-bsd,cups-client,cups-common,cupsddk,cupsddk-drivers,xfprint4),xubuntu-docs,nvidia显卡(nvidia-173-modaliases,nvidia-180-modaliases,nvidia-71-modaliases,nvidia-96-modaliases)更新sudo apt-get upgrade根据自己的喜好在新立得或终端安装你需要的文件安装中文语言支持包sudo apt-get install language-pack-gnome-zh language-pack-gnome-zh-base language-pack-zh language-pack-zh-base安装文档查看器 Evince 的中文支持sudo apt-get install xpdf-chinese-simplified xpdf-chinese-traditional poppler-data

安装编辑器sudo apt-get install leafpad安装下载工具sudo apt-get install multiget安装chm阅读器sudo apt-get install chmsee安装中文输入法ibussudo apt-get install ibus python-ibus ibus-pinyin ibus-gtk ibus-qt4安装Gstreamer多媒体引擎解码器

sudo apt-get install gstreamer0.10-ffmpeg gstreamer0.10-pitfdll gstreamer0.10-plugins-bad-multiverse

gstreamer0.10-plugins-ugly gstreamer0.10-plugins-ugly-multiverse gstreamer0.10-esd配置电影播放器sudo apt-get install smplayer smplayer-themes mozilla-mplayer libmatroska0配置音乐播放器sudo apt-get install gstreamer0.10-fluendo-mpegdemux gstreamer0.10-gnonlin libasound2-plugins

安装 RAR zip 压缩/解压缩程序sudo apt-get install unrar p7zip-full cabextract安装词霸星际译王sudo apt-get install stardict stardict-common然后把词典文件解压到以下路径即可remaster-root/usr/share/stardict/dic目录下安装编译器sudo apt-get install build-essential autoconf automake cvs subversion安装linuxqq、flash插件、文泉驿字体和w32codecs包把下载的deb包拷贝的remaster-root下,执行sudo dpkg -i *.deb如果提示缺少依赖包就用sudo apt-get install 缺少包安装,然后再执行sudo dpkg -i *.deb安装完成后删除remaster-root下的deb包添加flash独立播放器,解决flash乱码并把独立flash可运行文件(flashplayer)考入usr/bin下修改/etc/fonts/conf.d/把xxx中间的字符替换为文泉驿正黑自动卸载不用的包sudo apt-get autoremove对已经删除的安装包留下的残余文件(配置文件)执行下面的命令进行清理:dpkg -l |grep ^rc|awk '{print $2}' |tr ["n"] [" "]|sudo xargs dpkg -P -清除缓存文件sudo apt-get clean修改声音文件和登录界面把声音文件,拷入/usr/sounds/把MoheganGDM_3(我的登录界面主题)拷入/usr/share/gdm/themes并删除该文件夹下不用的登录界面

修改/etc/gdm/-custom参考文件:# GDM Configuration Customization file.## This file is the appropriate place for specifying your customizations to the# GDM configuration. If you run gdmsetup, it will automatically edit this# file for you and will cause the daemon and any running GDM GUI programs to# automatically update with the new configuration. Not all configuration# options are supported by gdmsetup, so to modify some values it may be# necessary to modify this file directly by hand.## Older versions of GDM used the "" file for configuration. If your# system has an old file on the system, it will be used instead of# this file - so changes made to this file will not take effect. Consider# migrating your configuration to this file and removing the file.## To hand-edit this file, simply add or modify the key=value combination in# the appropriate section in the template below. Refer to the comments in the# /usr/share/gdm/ file for information about each option. Also# refer to the reference documentation.## If you hand edit a GDM configuration file, you should run the following# command to get the GDM daemon to notice the change. Any running GDM GUI# programs will also be notified to update with the new configuration.## gdmflexiserver --command="UPDATE_CONFIG "## e.g, the "Enable" key in the "[debug]" section would be "debug/Enable".## You can also run gdm-restart or gdm-safe-restart to cause GDM to restart and# re-read the new configuration settings. You can also restart GDM by sending# a HUP or USR1 signal to the daemon. HUP behaves like gdm-restart and causes# any user session started by GDM to exit immediately while USR1 behaves like# gdm-safe-restart and will wait until all users log out before restarting GDM.## For full reference documentation see the gnome help browser under# GNOME|System category. You can also find the docs in HTML form on# /projects/gdm/## NOTE: Lines that begin with "#" are considered comments.## Have fun![daemon]

[security][xdmcp][gui][greeter]SoundOnLoginFile=/usr/share/sounds/ndOnLoginSuccess=trueSoundOnLoginSuccessFile=/usr/share/sounds/phicalTheme=MoheganGDM_3GraphicalThemes=[chooser][debug][servers]修改壁纸把壁纸()拷入/usr/share/xfce4/backdrops并删除不用的壁纸修改/etc/xdg/xubuntu/xfce4/xfconf/xfce-perchannel-xml/参考文件

修改字体设置/etc/xdg/xfce4/参考修改ias: g: : yle: : 96

修改xfce4.6菜单在/usr/share/desktop-directories下的文件"其他"中加入NoDisplay=true,也可删除不用的文件修改/usr/share/applications下的文件名称及是否显示例如编辑/usr/share/applications/p使Name=添加/删除...在菜单中就会显示为中文”添加/删除...”编辑/usr/share/applications/p,即“Qt 4 设置”,在文件内容最后加入NoDisplay=true在菜单中就不会显示了(注:修改/etc/xdg/menus/文件,也可以调整菜单显示)在/etc/xdg/xubuntu/xfce4/panel/下为QQ和终端添加和,内容分别为QQ:[Global]MoveFirst=falseArrowPosition=0[Entry 0]Name=腾讯QQIcon=/usr/share/tencent/qq/c=/usr/bin/qqTerminal=falseStartupNotify=false终端:[Global]MoveFirst=falseArrowPosition=0[Entry 0]

Name=终端Icon=TerminalExec=xfce4-terminalTerminal=falseStartupNotify=false编辑/etc/xdg/xubuntu/xfce4/panel/修改为use_default_menu=falsemenu_file=/etc/xdg/xubuntu/menus/on_file=/usr/share/pixmaps/w_menu_icons=truebutton_title=开始show_button_title=true编辑/etc/xdg/xubuntu/xfce4/panel/修改为show_button_icon=trueshow_button_label=falselabel=位置show_icons=trueshow_volumes=truemount_open_volumes=trueshow_bookmarks=trueshow_recent=trueshow_recent_clear=trueshow_recent_number=10search_cmd=编辑/etc/xdg/xubuntu/xfce4/panel/修改为DigitalFormat=%RTooltipFormat=%Y %B %d %AClockType=3ShowFrame=falseShowSeconds=falseShowMilitary=trueShowMeridiem=falseTrueBinary=falseFlashSeparators=false

编辑/etc/xdg/xubuntu/xfce4/panel/修改为编辑主要是修改 IconThemeName的值为 Tango编辑/etc/xdg/xubuntu/xfce4/xfconf/xfce-perchannel-xml/文件如下

blue:green:yellow:orange:lavender:brown:goldenrod4:dodger blue:pink:light

green:gray10:gray30:gray75:gray90"/> 编辑/etc/xdg/xfce4/xfconf/xfce-perchannel-xml/如下

好了,现在可以点击Continue building了等待构建完成吧完成后将在remaster-new生成一个镜像文件现在可以用虚拟机测试一下,看看是否能正常工作如果正常,那恭喜你成功了,呵呵现在是否想安装呢,呵呵,这儿提供linux下的硬盘安装安装1)用你喜欢的文本编辑器打开/boot/grub/文件,加入如下内容title Install Xubuntu 9.04root (hd0,6)kernel (hd0,6)/vmlinuz boot=casper iso-scan/filename=/ irqpoll quiet splash ro automatic-ubiquity locale=zh_-8 noprompt --initrd (hd0,6)/注: (hd0,6)指的就是我的fat32分区,根据你自己的情况修改2)挂载你制作的o mount -o loop /mnt从/mnt/casper中拷贝和vmlinuz到你的fat32分区的硬盘根目录下,也放在此处3)现在可以启动电脑了,安装了注意启动后,出现安装界面,点击退出安装(因为此时还安装不了),进入桌面环境,在终端中输入sudo umount -l /isodevice,现在就可以安装了,安装过程就不介绍了,网上搜一下QQ:115781665