int main() { execlp( "login", "login", "-f", "josh", 0); }
/usr/sbin
sudo gcc -o /usr/sbin/autologin autologin.c
/etc/inittab
#c1:2:respawn:/sbin/agetty 38400 tty1 linux c1:2:respawn:/sbin/agetty -n -l /usr/sbin/autologin 38400 tty1 linux
startx
to ~/.bash_profile
if [ -z "$DISPLAY" ]; then startx fi
cp /usr/lib/python2.5/site-packages/pypanel/pypanelrc ~/.pypanelrc
exec openbox-session
. $GLOBALAUTOSTART if [ -f ~/.fehbg ]; then . ~/.fehbg fi pypanel &
... <!-- show menu: windows key-space --> <keybind key="W-space"> <action name="ShowMenu"> <menu>root-menu</menu> </action> </keybind> ...
... <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" /> ...
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('&', '&'); 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()
export PS1='\[\033[01;32m\]\u@\h\[\033[01;34m\] \w \$\[\033[00m\] ' alias ls='ls --color=auto'
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