blob: 75ea4a4d1eebf307a2f0ad36cddb4b6289131997 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
#!/bin/sh
for file in /root/config/*; do [ -r $file ] && . $file; done
if [ -x /usr/sbin/lightdm ]; then
# dirty hack kanotix wallpaper on login-screen
echo "background=/usr/share/images/kanotix-starrise/kanotix-starrise.png" >>/etc/lightdm/lightdm-gtk-greeter.conf
# enable display of users at login prompt
sed -i 's/^greeter-hide-users=true/greeter-hide-users=false/' /etc/lightdm/lightdm.conf
# script is called by lightdm
if [ -x /usr/sbin/kanotix-lightdm-display-setup-script ]; then
sed -i 's/^#display-setup-script=/display-setup-script=\/usr\/sbin\/kanotix-lightdm-display-setup-script/' /etc/lightdm/lightdm.conf
fi
# old kanotix icon in login
if [ "$LB_DISTRIBUTION" = "wheezy" ]; then
sed -i 's/computer/kanotix/' /usr/share/lightdm-gtk-greeter/greeter.ui
fi
# Industrial conflicts
sed -i s/Industrial/Clearlooks-Phenix/ /etc/skel/.gtkrc-2.0
# on lxde i386 delete packages to reduce image-size
if [ "$LB_ARCHITECTURE" = "i386" ]; then
apt-get purge --yes aptitude aptitude-common
apt-get purge --yes vim vim-common vim-runtime
if [ "$LB_DISTRIBUTION" = "wheezy" ]; then
rm -rf /usr/lib/python3/dist-packages/devscripts
apt-get purge --yes devscripts python3 python3-minimal python3.2 python3.2-minimal
apt-get install --yes -t wheezy devscripts
fi
fi
# tmp skel
mkdir -p /etc/skel/Desktop/KANOTIX
mkdir -p /etc/skel/.mplayer
touch /etc/skel/.mplayer/input.conf
cat <<"EOF" >/etc/skel/.mplayer/config
[default]
# Write your default config options here!
#ao=pulse
#ao=alsa
#af=volnorm
#cache=4096
#aspect=16:9
EOF
if [ "$LB_DISTRIBUTION" != "wheezy" ]; then
cat <<"EOF" >/etc/skel/.config/lxsession/LXDE/autostart
@lxpanel --profile LXDE
@pcmanfm --desktop --profile LXDE
@xscreensaver -no-splash
@xfce4-power-manager-wrapper
@lxpolkit
EOF
# awesome in lightdm-menu
if [ -e /usr/share/xsessions/awesome.desktop ]; then
sed -i '/NoDisplay/d' /usr/share/xsessions/awesome.desktop
fi
sed -i 's/splash_background_dragonfire.png/splash_background_spitfire.png/' /etc/skel/.config/compiz/compizconfig/Default.ini
if [ -x /usr/bin/notification-daemon ]; then
cat <<"EOF" >/usr/share/dbus-1/services/org.freedesktop.Notifications.service
[D-BUS Service]
Name=org.freedesktop.Notifications
Exec=/usr/lib/notification-daemon/notification-daemon
EOF
fi
fi
fi
|