Table of Contents

Activated repositories

Installed packages

Auto-login

int main() {
   execlp( "login", "login", "-f", "josh", 0);
}
sudo gcc -o /usr/sbin/autologin autologin.c
#c1:2:respawn:/sbin/agetty 38400 tty1 linux
c1:2:respawn:/sbin/agetty -n -l /usr/sbin/autologin 38400 tty1 linux
if [ -z "$DISPLAY" ]; then
  startx
fi

Configuration

~/.pypanel

cp /usr/lib/python2.5/site-packages/pypanel/pypanelrc ~/.pypanelrc

~/.xinitrc

exec openbox-session

~/.config/openbox/autostart.sh

. $GLOBALAUTOSTART
 
if [ -f ~/.fehbg ]; then
  . ~/.fehbg
fi
 
pypanel &

~/.config/openbox/rc.xml

...
<!-- show menu: windows  key-space -->
<keybind key="W-space">
  <action name="ShowMenu">
    <menu>root-menu</menu>
  </action>
</keybind>
...

~/.config/openbox/menu.xml

...
<menu id="apps" label="Applications" execute="ob_gmenu applications.menu" />
<menu id="settingss" label="Settings" execute="ob_gmenu settings.menu" />
...
<menu id="apps" />
<menu id="settings" />
...

~/bin/ob_gmenu

This requires the python module gmenu which is part of gnome-menus port. This script will generate the gnome menu structure.

#!/usr/bin/python
 
import gmenu
import sys
 
def normalize(s):
        return s.replace('&', '&amp;');
 
def print_recurse(entry, indent):
        if entry.get_type() == gmenu.TYPE_DIRECTORY:
                print '<menu id="__%s" label="%s">' % (normalize(entry.get_name()), normalize(entry.get_name()))
 
                for child in entry.get_contents():
                        print_recurse(child, indent+1)
 
                print '</menu>'
 
        elif entry.get_type() == gmenu.TYPE_ENTRY:
                print '<item label="%s">' % normalize(entry.get_name())
                print '  <action name="Execute"><execute>%s</execute></action>' % entry.get_exec()
                print '</item>'
 
def main():
        #menus = [gmenu.lookup_tree('applications.menu'), gmenu.lookup_tree('settings.menu')]
        #for top in menus:
        #       print_recurse(top.root, 0)
 
        menu = gmenu.lookup_tree(sys.argv[1])
        print '<openbox_pipe_menu>'
        for child in menu.root.get_contents():
                print_recurse(child, 1)
        print '</openbox_pipe_menu>'
 
if __name__ == '__main__':
        main()

~/.bashrc

export PS1='\[\033[01;32m\]\u@\h\[\033[01;34m\] \w \$\[\033[00m\] '
alias ls='ls --color=auto'

~/.Xdefaults

Make xterm look pretty

XTerm*background: Black
XTerm*foreground: White
XTerm*geometry: 80x40
!XTerm*faceName: Bitstream Vera Sans Mono
XTerm*faceName: Andale Mono
XTerm*faceSize: 10

References

Themes