XBMC
From Gentoo Wiki
XBMC Autostart
This is based on the way the mythtv ebuilds enable the autostart auf the mythtv frontend. But since XBMC is the better fronted, I want XBMC to autostart on boot. :)
First create the xbmc user
root # useradd -m -G audio,cdrom,video,cdrw,usb,users xbmcThen create the login scripts
File/home/xbmc/.bash_profile
/home/xbmc/.bash_profile
# .bash_profile
case "`tty`" in
*tty9) startx; logout ;;
esac
File/home/xbmc/.xinit
# .xinitrc [ -x /usr/bin/nvidia-settings ] && /usr/bin/nvidia-settings -l /usr/bin/xset s noblank /usr/bin/xset s off /usr/bin/xset -dpms /usr/bin/evilwm & exec /usr/bin/xbmc
Finally add an inittab entry which does the autologin
File/etc/inittab
... c9:2345:respawn:/sbin/mingetty --autologin xbmc tty9 ...