livecd hacking

Sebastian Vahl ml at deadbabylon.de
Tue Aug 7 16:47:31 UTC 2007


Am Fr 3.August 2007 schrieb Sebastian Vahl:
> Am Do 2.August 2007 schrieb Colin Walters:
> > On Thu, 2007-08-02 at 12:14 +0200, Sebastian Vahl wrote:
> > > livecd-fedora-kde.ks is working but installs too much more packages
> > > than the old config (and also some unwanted, eg. gnome-games).
> >
> > Awesome, thanks for taking a look at this.
> >
> > > This is
> > > related to livecd-desktop-minimal.ks which includes more groups than
> > > the kde config. If the kde livecd should also use this config some
> > > groups should be removed. The size with livecd-desktop-minimal.ks is
> > > here (i386) 770 megs to 687 megs with the normal config.
> >
> > You should feel free to kill off stuff in -desktop-minimal; the intent
> > is it just launches TWM.  Are you going to have a chance to do any work
> > on the KDE livecd soon?
>
> I will not be at home over the weekend. But I try to test some changes on
> monday.
>
> Sebastian

Well, I didn't had much time. But these config is more closer to the normal 
one. I removed only @games from livecd-desktop-minimal.ks and removed the 
further not wanted packages in livecd-fedora-kde.ks. But the list is not 
complete yet.

Sebastian

-------------- next part --------------
%include livecd-desktop-minimal.ks

%packages
@kde-desktop
kdegames
beryl-kde
k3b
koffice-kword
koffice-kspread
koffice-kpresenter
koffice-filters
twinkle
# if it is enough space include koffice-krita (~40 megs)
koffice-krita

#some changes that we don't want...
-scribus
-kdeaddons
-kdemultimedia-extras
-kdeartwork-extras
-kmymoney2
-basket

# some other extra packages
gnupg
xine-lib-extras

# remove some packages from dekstop-minimal.ks
-scim*
-system-config-printer*
-gdm
-authconfig-gtk
-m17n*
-xorg-x11-fonts-*
-xorg-x11-twm
-PolicyKit-gnome
-libbeagle
-yelp
-firefox
-desktop-backgrounds-basic
-gnome-doc-utils-stylesheets


# ignore comps.xml and make sure these packages are included
knetworkmanager
kpowersave
redhat-artwork-kde
rhgb

%post

# create /etc/sysconfig/desktop (needed for installation)
cat > /etc/sysconfig/desktop <<EOF
DESKTOP="KDE"
DISPLAYMANAGER="KDE"
EOF

# add initscript
cat >> /etc/rc.d/init.d/fedora-live-kde << EOF
if [ -e /usr/share/icons/hicolor/96x96/apps/fedora-logo-icon.png ] ; then
    # use image also for kdm
    mkdir -p /usr/share/apps/kdm/faces
    cp /usr/share/icons/hicolor/96x96/apps/fedora-logo-icon.png /usr/share/apps/kdm/faces/fedora.face.icon
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=Default/PreselectUser=Default/' /etc/kde/kdm/kdmrc
sed -i 's/#DefaultUser=johndoe/DefaultUser=fedora/' /etc/kde/kdm/kdmrc

# disable screensaver
sed -i 's/Enabled=true/Enabled=false/' /usr/share/kde-settings/kde-profile/default/share/config/kdesktoprc

# adding some autostarted applications
cp /usr/share/applications/fedora-knetworkmanager.desktop /usr/share/autostart/

# workaround to put liveinst on desktop and in menu
sed -i 's/NoDisplay=true/NoDisplay=false/' /usr/share/applications/liveinst.desktop
EOF

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.fedoraproject.org/pipermail/desktop/attachments/20070807/f346da4e/attachment.bin 


More information about the desktop mailing list