XBMC

From Gentoo Wiki
Revision as of 16:01, 3 May 2012 by Flow (Talk | contribs)

Jump to: navigation, search

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 xbmc

Then 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
...
Personal tools
Namespaces

Variants
Actions
Gentoo Websites logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Navigation
Toolbox
Categories