cd /sources/desktop wget http://download.berlios.de/slim/slim-1.3.2.tar.gz wget http://openbox.org/dist/openbox/openbox-3.4.11.1.tar.gz wget http://prdownloads.sourceforge.net/obmenu/obmenu-1.0.tar.gz wget http://openbox.org/dist/obconf/obconf-2.0.3.tar.gz cd /dev/shm tar -xzvf /sources/desktop/slim-1.3.2.tar.gz cd slim-1.3.2 sed -i -e "s:^MANDIR=.*:MANDIR=/usr/share/man:" -e "s:/usr/X11R6:/usr:" Makefile sed -i -e 's#X11R6/##g' -e 's#/usr/bin:##' -e 's/# daemon/daemon/' slim.conf make $CORES_TO_USE make install cat >> /etc/inittab << "EOF" x:5:respawn:/usr/bin/slim >& /dev/null EOF cd .. rm -rf slim-1.3.2 tar -xzvf /sources/desktop/openbox-3.4.11.1.tar.gz cd openbox-3.4.11.1 ./configure --prefix=/usr --sysconfdir=/etc --disable-session-management make $CORES_TO_USE make install cat > /root/.xinitrc << "EOF" # Begin .xinitrc file #xterm -g 80x20+0+0 & #xclock -g 100x100-0+0 & exec openbox-session EOF cd .. rm -rvf openbox-3.4.11.1 mkdir -p ~/.config/openbox cp /etc/xdg/openbox/*.* ~/.config/openbox cat > ~/.config/openbox/menu.xml << "EOF" <?xml version="1.0" encoding="UTF-8"?> <openbox_menu xmlns="http://openbox.org/3.4/menu"> <menu id="apps-editors-menu" label="Editors"> <item label="nano"> <action name="Execute"> <command>xterm -e /usr/bin/nano</command> <startupnotify> <enabled>yes</enabled> </startupnotify> </action> </item> </menu> <menu id="apps-term-menu" label="Terminals"> <item label="Xterm"> <action name="Execute"><command>xterm</command></action> </item> </menu> <menu id="apps-net-menu" label="Internet"> <item label="lynx"> <action name="Execute"> <command>xterm -e /usr/bin/lynx</command> <startupnotify> <enabled>yes</enabled> </startupnotify> </action> </item> </menu> <menu id="apps-multimedia-menu" label="Multimedia"> <item label="alsamixer"> <action name="Execute"> <command>xterm -e /usr/bin/alsamixer</command> <startupnotify> <enabled>yes</enabled> </startupnotify> </action> </item> </menu> <menu id="system-menu" label="System"> <item label="Openbox Configuration Manager"> <action name="Execute"> <command>obconf</command> <startupnotify><enabled>yes</enabled></startupnotify> </action> </item> <item label="Openbox Menu Editor"> <action name="Execute"> <execute>obmenu</execute> </action> </item> <separator /> <item label="Reconfigure Openbox"> <action name="Reconfigure" /> </item> </menu> <menu id="root-menu" label="Openbox 3"> <separator label="Applications" /> <menu id="apps-editors-menu"/> <menu id="apps-net-menu"/> <menu id="apps-multimedia-menu"/> <menu id="apps-term-menu"/> <separator label="System" /> <menu id="system-menu"/> <separator /> <item label="Log Out"> <action name="Exit"> <prompt>yes</prompt> </action> </item> </menu> </openbox_menu> EOF tar -xzvf /sources/desktop/obmenu-1.0.tar.gz cd obmenu-1.0 python setup.py install cd .. rm -rvf obmenu-1.0 tar -xzvf /sources/desktop/obconf-2.0.3.tar.gz cd obconf-2.0.3 ./configure --prefix=/usr make $CORES_TO_USE make install cd .. rm -rvf obconf-2.0.3
Remember to nano both /etc/slim.conf and /etc/inittab, and to change the settings therein confirm to the instructions here.
No comments:
Post a Comment