lang en_US.UTF-8 keyboard us timezone US/Eastern auth --useshadow --enablemd5 selinux --enforcing firewall --disabled xconfig --startxonboot services --enabled=NetworkManager,dhcdbd,lisa --disabled=network repo --name=d7 --baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/development/i386/os repo --name=e7 --baseurl=http://download.fedora.redhat.com/pub/fedora/linux/extras/development/i386 %packages # Basic packages alsa-utils attr bash bind-utils chkconfig cpuspeed crontabs dejavu-lgc-fonts dhclient fedora-logos file grub kernel logrotate man mdadm nfs-utils openssh-clients passwd pcmciautils pirut ppp readahead rootfiles rpm rp-pppoe rsync selinux-policy selinux-policy-targeted sendmail setroubleshoot shadow-utils smolt sudo syslinux system-config-display system-config-keyboard termcap tree tree vim-minimal wget wvdial xorg-x11-drivers yum # to make the cd installable anaconda # KDE basic packages @kde-desktop -kdeaddons kdegames kdeedu kdetoys # additional KDE packages amarok beryl-kde digikam k3b kaffeine knetworkmanager koffice-suite konversation kpowersave ktorrent twinkle # some other extra packages gnupg samba-client xine-lib-extras %post # create /etc/sysconfig/desktop (needed for installation) cat > /etc/sysconfig/desktop < /etc/rc.d/init.d/fedora-livecd-kde << EOF #!/bin/bash # # livecd: Init script for live cd # # chkconfig: 345 00 99 # description: Init script for live cd. . /etc/init.d/functions if ! strstr "\`cat /proc/cmdline\`" livecd || [ "\$1" != "start" ] || [ -e /.livecd-configured ] ; then exit 0 fi exists() { which \$1 >/dev/null 2>&1 || return \$* } touch /.livecd-configured # mount livecd mkdir -p /mnt/livecd mount -o ro -t iso9660 /dev/livecd /mnt/livecd # configure X exists system-config-display --noui --reconfig --set-depth=24 # unmute sound card exists alsaunmute 0 2> /dev/null # add fedora user with no passwd useradd -c "Fedora live CD" fedora passwd -d fedora > /dev/null if [ -e /usr/share/icons/hicolor/96x96/apps/fedora-logo-icon.png ] ; then cp /usr/share/icons/hicolor/96x96/apps/fedora-logo-icon.png /home/fedora/.face chown fedora:fedora /home/fedora/.face # TODO: would be nice to get e-d-s to pick this one up too... but how? fi # make fedora user use KDE echo "startkde" > /home/fedora/.xsession chmod a+x /home/fedora/.xsession chown fedora:fedora /home/fedora/.xsession # set up autologin for user fedora sed -i 's/#AutoLoginEnable=true/AutoLoginEnable=true/' /etc/kde/kdm/kdmrc sed -i 's/#AutoLoginUser=fred/AutoLoginUser=fedora/' /etc/kde/kdm/kdmrc # set up user fedora as default user and preselected user sed -i 's/PreselectUser=None/PreselectUser=Default/' /etc/kde/kdm/kdmrc sed -i 's/#DefaultUser=ethel/DefaultUser=fedora/' /etc/kde/kdm/kdmrc # replace htmlview and launchmail in kicker sed -i 's/redhat-web.desktop/konqbrowser.desktop/' /usr/share/config/kickerrc sed -i 's/redhat-email.desktop/kmail.desktop/' /usr/share/config/kickerrc # adding some autostarted applications mkdir -p /home/fedora/.kde/Autostart ln -s /usr/bin/knetworkmanager /home/fedora/.kde/Autostart/ # workaround to put liveinst on desktop (should not be needed but # /etc/X11/xinit/xinitrc.d/zz-liveinst from anaconda doesn't do this atm) cat > /home/fedora/.kde/Autostart/liveinst < /etc/sysconfig/firstboot # Stopgap fix for RH #217966; should be fixed in HAL instead touch /media/.hal-mtab # /etc/X11/xinit/xinitrc.d/zz-liveinst.sh is confusing kde on login # so remove it for now rm -f /etc/X11/xinit/xinitrc.d/zz-liveinst.sh EOF chmod 755 /etc/rc.d/init.d/fedora-livecd-kde /sbin/restorecon /etc/rc.d/init.d/fedora-livecd-kde /sbin/chkconfig --add fedora-livecd-kde