Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:dennyhalim:Live
kiwi-livecd-lxde-i586
config.sh
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File config.sh of Package kiwi-livecd-lxde-i586
#!/bin/bash #================ # FILE : config.sh #---------------- # PROJECT : OpenSuSE KIWI Image System # COPYRIGHT : (c) 2006 SUSE LINUX Products GmbH. All rights reserved # : # AUTHOR : Marcus Schaefer <ms@suse.de> # : # BELONGS TO : Operating System images # : # DESCRIPTION : configuration script for SUSE based # : operating systems # : # : # STATUS : BETA #---------------- #====================================== # Functions... #-------------------------------------- test -f /.kconfig && . /.kconfig test -f /.profile && . /.profile # kiwi doesn't copy /.kconfig from source to build dir test -f /kconfig && . /kconfig #====================================== # Greeting... #-------------------------------------- echo "Configure image: [$name]..." #====================================== # SuSEconfig #-------------------------------------- echo "** Running suseConfig..." suseConfig echo "** Running ldconfig..." /sbin/ldconfig #====================================== # Umount kernel filesystems #-------------------------------------- echo "** Running baseCleanMount..." baseCleanMount #====================================== # Clean up kconfig #-------------------------------------- echo "** Removing kconfig..." rm /kconfig #====================================== # Firewall Configuration #-------------------------------------- echo '** Configuring firewall...' chkconfig SuSEfirewall2_init on chkconfig SuSEfirewall2_setup on #===================================== # setting kdm theme to studio #------------------------------------- echo '** Setting kdm theme...' sed -i 's/DISPLAYMANAGER_KDM_THEME=.*/DISPLAYMANAGER_KDM_THEME=studio/g' /etc/sysconfig/displaymanager #===================================== # make the xdm theme a little bit prettier #------------------------------------- if [ -e /etc/X11/Xresources ] then echo "xlogin*greeting: Login" >> /etc/X11/Xresources echo "xlogin*namePrompt: Name: " >> /etc/X11/Xresources echo "xlogin*passwdPrompt: Password: " >> /etc/X11/Xresources echo "xlogin*fail: Failed!" >> /etc/X11/Xresources echo "xlogin.Login.greetFont: 9x15bold" >> /etc/X11/Xresources echo "xlogin.Login.promptFont: 6x13bold" >> /etc/X11/Xresources echo "xlogin.Login.font: 6x13" >> /etc/X11/Xresources echo "xlogin.Login.failFont: 6x13" >> /etc/X11/Xresources echo "xlogin*geometry: 300x200" >> /etc/X11/Xresources echo "xlogin*borderWidth: 1" >> /etc/X11/Xresources echo "xlogin*frameWidth: 0" >> /etc/X11/Xresources echo "xlogin*innerFramesWidth: 0" >> /etc/X11/Xresources echo "xlogin*shdColor: black" >> /etc/X11/Xresources echo "xlogin*hiColor: black" >> /etc/X11/Xresources echo "xlogin*greetColor: white" >> /etc/X11/Xresources echo "xlogin*failColor: red" >> /etc/X11/Xresources echo "xlogin*promptColor: grey75" >> /etc/X11/Xresources echo "xlogin*foreground: grey75" >> /etc/X11/Xresources echo "xlogin*background: black" >> /etc/X11/Xresources echo "xlogin*borderColor: grey50 " >> /etc/X11/Xresources fi if [ -e /etc/icewm/preferences ] then sed -i 's#DesktopBackgroundImage=.*#DesktopBackgroundImage="/etc/X11/xdm/BackGround.xpm"#' /etc/icewm/preferences fi if [ -e /etc/X11/xdm/Xsetup ] then sed -i 's#^exit 0$#kill `cat /var/run/xconsole.pid`;/sbin/startproc /usr/bin/icewmbg || /usr/bin/xsetroot -solid lightgray;\nexit 0#g' /etc/X11/xdm/Xsetup fi sed --in-place -e 's/icewm/icewm-session/' /usr/bin/wmlist sed --in-place -e 's/# solver.onlyRequires.*/solver.onlyRequires = true/' /etc/zypp/zypp.conf #====================================== # Auto-Start XDM #-------------------------------------- # create xdm wrapper script as xdm has no autologin support mv /usr/bin/xdm /usr/bin/xdm.bin echo "#!/bin/bash" >> /usr/bin/xdm echo "su - tux -c startx" >> /usr/bin/xdm echo "/usr/bin/xdm.bin" >> /usr/bin/xdm chmod a+x /usr/bin/xdm # start icewmbg mv /home/tux/.xinitrc.template /home/tux/.xinitrc || true if [ -e /home/tux/.xinitrc ] then sed -i 's/.*your own lines.*/# SUSE Studio: start icewmbg when autostart is selected\nicewmbg \&\n&/g' /home/tux/.xinitrc fi chown root:root //build-custom chmod +x //build-custom mkdir /studio cp /image/.profile /studio/profile cp /image/config.xml /studio/config.xml true
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor