diff --git a/snippets/autologin-gdm.ks b/snippets/autologin-gdm.ks deleted file mode 100644 index cf23273..0000000 --- a/snippets/autologin-gdm.ks +++ /dev/null @@ -1,12 +0,0 @@ -# %post modifications for gdm - -cat >> /etc/rc.d/init.d/fedora-live << EOF -chown -R fedora:fedora /home/fedora -sed -i -e 's/\[daemon\]/[daemon]\nTimedLoginEnable=true\nTimedLogin=fedora\nTimedLoginDelay=60/' /etc/gdm/custom.conf -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 -EOF - diff --git a/snippets/autologin-kdm.ks b/snippets/autologin-kdm.ks deleted file mode 100644 index d19b42a..0000000 --- a/snippets/autologin-kdm.ks +++ /dev/null @@ -1,33 +0,0 @@ -# %post modifications for kdm and kde - -# add initscript -cat >> /etc/rc.d/init.d/fedora-live << 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 - -# add liveinst.desktop to favorites menu -mkdir -p /home/fedora/.kde/share/config/ -cat > /home/fedora/.kde/share/config/kickoffrc << MENU_EOF -[Favorites] -FavoriteURLs=/usr/share/applications/kde4/konqbrowser.desktop,/usr/share/applications/kde4/dolphin.desktop,/usr/share/applications/kde4/systemsettings.desktop,/usr/share/applications/liveinst.desktop -MENU_EOF -chown -R fedora:fedora /home/fedora/.kde/ -EOF - diff --git a/snippets/config-developer.ks b/snippets/config-developer.ks deleted file mode 100644 index e1b6e3f..0000000 --- a/snippets/config-developer.ks +++ /dev/null @@ -1,7 +0,0 @@ -# %post modifications to add link to demonstration videos to desktop - -cat >> /etc/rc.d/init.d/fedora-live << EOF -pushd /home/fedora/Desktop -ln -s /usr/share/eclipse-demos-0.0.1 "Eclipse demonstration videos" -popd -EOF diff --git a/snippets/config-electronic-lab.ks b/snippets/config-electronic-lab.ks deleted file mode 100644 index 2c2c937..0000000 --- a/snippets/config-electronic-lab.ks +++ /dev/null @@ -1,57 +0,0 @@ -# %post modifications specifically for Fedora Electronic Lab - -# Fedora Electronic Lab: Kwin buttons -cat > /usr/share/kde-settings/kde-profile/default/share/config/kwinrc < /usr/share/kde-settings/kde-profile/default/share/config/klipperrc < /usr/share/kde-settings/kde-profile/default/share/config/clock_panelappletrc < /usr/share/kde-settings/kde-profile/default/share/config/kxkbrc < /etc/skel/.kde/env/start-custom.sh << EOF -#!/bin/sh -eval \`gnome-keyring-daemon\` -export GNOME_KEYRING_PID -export GNOME_KEYRING_SOCKET -EOF -chmod 755 /etc/skel/.kde/env/start-custom.sh - -cat > /etc/skel/.kde/shutdown/stop-custom.sh << EOF -#/bin/sh -if [-n "$GNOME_KEYRING_PID"]; then - kill $GNOME_KEYRING_PID -fi -EOF - -chmod 755 /etc/skel/.kde/shutdown/stop-custom.sh diff --git a/snippets/config-tracker.ks b/snippets/config-tracker.ks deleted file mode 100644 index d65ed43..0000000 --- a/snippets/config-tracker.ks +++ /dev/null @@ -1,16 +0,0 @@ -# %post modifications to configure tracker search - -mkdir -p /home/fedora/.config/tracker - -cat > /home/fedora/.config/tracker/tracker.cfg < /root/.config/tracker/tracker.cfg < /etc/acpi/actions/hotkeys.sh << EOHOTKEY -#!/bin/bash - -export DISPLAY=:0 - -case "$3" in - - #Fn+F2 - 00000010) - # Wlan On - /etc/acpi/actions/wlan.sh poweron - ;; - 00000011) - # Wlan Off - /etc/acpi/actions/wlan.sh poweroff - ;; - - #Fn+F6 - 00000012) - # Webcam switch - /etc/acpi/actions/camera.sh - # TaskManager - # /usr/bin/gnome-system-monitor - ;; - - #Fn+F7 - 00000013) - # Volume mute - /usr/bin/amixer set -D hw:0 Master toggle - ;; - - #Fn+F8 - 00000014) - # Volume down - /usr/bin/amixer set -D hw:0 Master 10%- unmute - ;; - - #Fn+F9 - 00000015) - # Volume up - /usr/bin/amixer set -D hw:0 Master 10%+ unmute - ;; - - #Fn+F5 - 00000030) - - /usr/bin/xrandr --output VGA --mode 1024x768 \ - --output LVDS --off - - if [[ "$?" != "0" ]]; then - - /usr/bin/xrandr --output VGA --preferred \ - --output LVDS --off - - fi - ;; - - 00000031) - - /usr/bin/xrandr --output LVDS --mode 800x480 \ - --output VGA --mode 800x600 - - ;; - - 00000032) - - /usr/bin/xrandr --output VGA --off \ - --output LVDS --preferred - - ;; - *) - logger "ACPI hotkey $3 action is not defined" - ;; -esac -EOHOTKEY - -###### WLAN ############################################################# -cat > /etc/acpi/actions/wlan.sh << EOF -#!/bin/bash - -PWR=$(cat /sys/devices/platform/eeepc/wlan) - -UnloadModules() { - rmmod ath_pci - rmmod ath_rate_sample - rmmod wlan_scan_sta - rmmod wlan_tkip - rmmod wlan_wep - rmmod wlan -} - -LoadModules() { - modprobe ath_pci -} - -case $1 in - poweron) - if [[ "$PWR" = "0" ]]; then - modprobe pciehp pciehp_force=1 - - echo 1 > /sys/devices/platform/eeepc/wlan - - rmmod pciehp - - fi - ;; - - poweroff) - if [[ "$PWR" = "1" ]]; then - - modprobe pciehp pciehp_force=1 - - ifconfig ath0 down - - wlanconfig ath0 destroy - - UnloadModules - - echo 0 > /sys/devices/platform/eeepc/wlan - - rmmod pciehp - - fi - ;; -esac -EOF - -###### Webcam ############################################################# -cat > /etc/acpi/actions/camera.sh << EOF - -#!/bin/bash - -CAMERA=$(cat /sys/devices/platform/eeepc/camera) - - if [[ "$CAMERA" = "0" ]]; then - echo 1 > /sys/devices/platform/eeepc/camera - else - echo 0 > /sys/devices/platform/eeepc/camera - fi -EOF - -chmod +x "/etc/acpi/actions/*" - -###### Shutdown fix ######################################################### -echo "modprobe -r snd-hda-intel" >> /sbin/halt.local -chmod 755 /sbin/halt.local - -###### Gnome display stuff ################################################## - -gconftool-2 --set /apps/nautilus/preferences/desktop_font --type string "Sans 8" -gconftool-2 --set /desktop/gnome/interface/document_font_name --type string "Sans 8" -gconftool-2 --set /desktop/gnome/interface/font_name --type string "Sans 8" -gconftool-2 --set /apps/metacity/general/titlebar_font --type string "Sans Bold 8" -gconftool-2 --set /desktop/gnome/interface/monospace_font_name --type string "Monospace 8" -gconftool-2 --set /apps/metacity/window_keybindings/toggle_fullscreen --type string "F11" -gconftool-2 --set /desktop/gnome/interface/toolbar_style --type string "icons" -gconftool-2 --set /desktop/gnome/sound/default_mixer_tracks --type list --list-type string "[PCM]" -gconftool-2 --set /apps/gnome-power-manager/notify/low_capacity --type bool 0 -gconftool-2 --set /apps/compiz/plugins/move/allscreens/options/constrain_y --type bool 0 -gconftool-2 --set /apps/panel/toplevels/top_panel_screen0/size --type integer 19 -gconftool-2 --set /apps/panel/toplevels/bottom_panel_screen0/size --type integer 19 diff --git a/snippets/repository-debuginfo.ks b/snippets/repository-debuginfo.ks deleted file mode 100644 index cb246a6..0000000 --- a/snippets/repository-debuginfo.ks +++ /dev/null @@ -1,25 +0,0 @@ -# %post modifications to enable debuginfo repository - -awk ' -BEGIN { - debuginfo = 0 -} - /^\[.*\]/ { - if (/debuginfo/) { - debuginfo = 1 - } else { - debuginfo = 0 - } - print - next -} - /enabled=0/ && debuginfo { - print "enabled=1" - next -} -{ - print - next -}' < /etc/yum.repos.d/fedora.repo > /etc/yum.repos.d/fedora.repo.tmp -mv /etc/yum.repos.d/fedora.repo{.tmp,} - diff --git a/snippets/screensaver-gnome.ks b/snippets/screensaver-gnome.ks deleted file mode 100644 index f13c84a..0000000 --- a/snippets/screensaver-gnome.ks +++ /dev/null @@ -1,5 +0,0 @@ -# %post modifications to disable GNOME screensaver locking - -cat >> /etc/rc.d/init.d/fedora-live << EOF -gconftool-2 --direct --config-source=xml:readwrite:/etc/gconf/gconf.xml.defaults -s -t bool /apps/gnome-screensaver/lock_enabled false >/dev/null -EOF diff --git a/snippets/screensaver-kde.ks b/snippets/screensaver-kde.ks deleted file mode 100644 index 17928d4..0000000 --- a/snippets/screensaver-kde.ks +++ /dev/null @@ -1,3 +0,0 @@ -# %post modifications to disable KDE screensaver - -sed -i 's/Enabled=true/Enabled=false/' /usr/share/kde-settings/kde-profile/default/share/config/kdesktoprc diff --git a/snippets/sysconfig-kde.ks b/snippets/sysconfig-kde.ks deleted file mode 100644 index dfe857e..0000000 --- a/snippets/sysconfig-kde.ks +++ /dev/null @@ -1,6 +0,0 @@ -# %post modifications to create /etc/sysconfig/desktop for KDE - -cat > /etc/sysconfig/desktop < /etc/sysconfig/desktop <