标题: 如何制作Fedora Live CD并集成自己喜欢的软件和工具 [打印本页] 作者: meego2012 时间: 2012-02-13 11:08 标题: 如何制作Fedora Live CD并集成自己喜欢的软件和工具 I just went through the process of creating an up to date spin, adding several packages (media players, encfs, sshfs). Since I had trouble finding a step-by-step, I thought I'd share mine. Hopefully it will save someone a little time.
As root, perform the following:
• If necessary, install revisor:
yum -y install revisor
• vi /etc/revisor/conf.d/revisor-f12-x86_64.conf and add the rpmfusion repositories:
[rpmfusion-nonfree]
enabled = 1
protect = False
name = RPM Fusion nonfree for Fedora
gpgkey =
baseurl = http://download1.rpmfusion.org/n ... erything/x86_64/os/
includepkgs =
gpgcheck = False
exclude =
You probably also want to set 'enabled=1' in the '[updates]' section.
• vi /root/thumbdrive.kickstart to create the package list. This is the package list I used; feel free to add or remove as you see fit:
Code:
%packages
@ Administration Tools
@ Base
@ Editors
@ Fonts
@ GNOME Desktop Environment
@ Graphical Internet
@ Graphics
@ Hardware Support
@ Printing Support
@ Sound and Video
@ System Tools
@ Window Managers
@ X Window System
a52dec
anaconda
audacity-freeworld
faac
faad2
faad2-libs
ffmpeg
ffmpeg2dirac
ffmpeg2theora
ffmpeg-libs
freetype-freeworld
fuse-libs
fuse
fuse-sshfs
fuse-encfs
gnome-mplayer
gnome-mplayer-common
gstreamer-ffmpeg
gstreamer-plugins-bad
gstreamer-plugins-ugly
kdenlive
lame
lame-libs
libdca
libdvbpsi
libmad
libmimic
libmms
libmpeg2
libmpeg3
libquicktime
live555
mjpegtools
mjpegtools-libs
mp3gain
mpeg2dec
mpg321
rpmfusion-free-release
rpmfusion-nonfree-release
smpeg
smpeg-devel
smpeg-libs
transcode
twolame-libs
unace
unrar
vlc
vlc-core
xine-lib-extras-freeworld
xvidcore
y4mscaler
%end
As an alternative to the above, you can create a package list from the current running system with:
chkconfig atd off
chkconfig crond off
chkconfig firstboot off
chkconfig iscsi off
chkconfig iscsid off
chkconfig netfs off
chkconfig nfslock off
chkconfig pcscd off
chkconfig portreserve off
chkconfig rpcbind off
chkconfig rpcgssd off
chkconfig rpcidmapd off
chkconfig rsyslog off
chkconfig sendmail off
chkconfig sshd off
echo "RUN_FIRSTBOOT=NO" > /etc/sysconfig/firstboot
• vi /etc/gdm/custom.conf to autologin the liveuser by adding:
Code:
[daemon]
AutomaticLoginEnable=true
AutomaticLogin=liveuser
• vi /etc/inittab and make sure the last line is as follows, to boot into X:
id:5:initdefault:
• exit to continue the creation process
When the process is done, you can test the image by booting it virtually. For example:
qemu-kvm -m 1024 -smp 2 -net nic -net user -hda /srv/revisor/f12-x86_64/live/Fedora-12-Live-x86_64.iso
If it looks good, you can put it on a thumbdrive with the dd command. For this example, the thumbdrive is on /dev/sde
ALL DATA WILL BE DESTROYED ON THE THE DEVICE SPECIFIED - MAKE SURE IT'S CORRECT