Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
Education
opensuse-edu-desktop
config.sh
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File config.sh of Package opensuse-edu-desktop
#!/bin/bash #================ # FILE : config.sh #---------------- # PROJECT : OpenSuSE KIWI Image System # COPYRIGHT : (c) 2006,2007,2008 SUSE LINUX Products GmbH. All rights reserved # : # AUTHOR : Marcus Schaefer <ms@suse.de>, Stephan Kulow <coolo@suse.de> # : # LICENSE : BSD #====================================== # Functions... #-------------------------------------- test -f /.kconfig && . /.kconfig test -f /.profile && . /.profile exec > /var/log/config.log exec 2>&1 #====================================== # Greeting... #-------------------------------------- echo "Configure image: [$name]..." #====================================== # Load sound drivers by default #-------------------------------------- perl -ni -e 'm,^blacklist snd-, || print;' \ /etc/modprobe.d/blacklist # and unmute their mixers. perl -pi -e 's,/sbin/alsactl -F restore,/bin/set_default_volume -f,;' \ /etc/udev/rules.d/40-alsa.rules #-------------------------------------- rcsshd start rcsshd stop chkconfig sshd on chkconfig cron off # enable create_xconf chkconfig sax on chkconfig boot.braille off chkconfig boot.langset on chkconfig boot.compcache on # disabled for now - if you reenable, don't forget correct_live_install # bnc#382158 # patch -p0 < /etc/YaST2/policy.patch for i in /rpmkeys/gpg*.asc; do rpm --import $i && rm $i done rmdir /rpmkeys insserv insserv -r boot.apparmor || true rm -rf /var/cache/zypp/raw/* bash -x /tmp/geturls.sh rm /tmp/geturls.sh #====================================== # /etc/sudoers hack to fix #297695 # (Installation Live CD: no need to ask for password of root) #-------------------------------------- sed -i -e "s/ALL ALL=(ALL) ALL/ALL ALL=(ALL) NOPASSWD: ALL/" /etc/sudoers chmod 0440 /etc/sudoers /usr/sbin/useradd -m -u 999 linux -c "Live-CD User" -p "" # delete passwords passwd -d root passwd -d linux # empty password is ok pam-config -a --nullok : > /var/log/zypper.log chown -R 999.users /home/linux rm -f /home/linux/screen-configurations.xml rm -f /usr/share/applications/Xkill.desktop rm -f /usr/share/applications/Xrefresh.desktop rm -f /usr/share/applications/xcalc.desktop rm -f /usr/share/applications/xload.desktop rm -f /usr/share/applications/xterm.desktop rm -f /usr/share/applications/xclipboard.desktop rm -f /usr/share/applications/xmag.desktop #remove pesky via driver rm /usr/lib/xorg/modules/drivers/via_drv* || true #====================================== # SuSEconfig #-------------------------------------- mount -o bind /lib/udev/devices /dev #suseConfig SuSEconfig umount /dev test -x /usr/bin/kbuildsycoca4 && su - linux -c /usr/bin/kbuildsycoca4 rm -rf /var/cache/zypp/packages rpm -e beagle --nodeps || true rpm -e PackageKit --nodeps || true #USB /usr/bin/correct_live_install usb #====================================== # Umount kernel filesystems #-------------------------------------- baseCleanMount exit 0
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