Posts: 28
Joined: Jan 2010
Reputation:
0
Hi All,
I have just upgraded to Ubuntu Precise and Frodo beta 3.
For some reason XBMC no longer starts on boot - however I can start by su - xbmc and then using xinit xbmc-standalone.
Any ideas?
Thanks in advance
JT
Posts: 7,135
Joined: Oct 2012
un1versal
Out of Memory (1939–2016)
Posts: 7,135
Posts: 28
Joined: Jan 2010
Reputation:
0
Thanks uNi
do I need to install lightdm?
By the way this is a minimal install - no desktop etc.
Thanks again
JT
Posts: 7,135
Joined: Oct 2012
un1versal
Out of Memory (1939–2016)
Posts: 7,135
2012-12-09, 12:58
(This post was last modified: 2012-12-09, 13:02 by un1versal.)
Ah you dont have lightdm? in that case not needed.
try this.
Create a /etc/init/xbmc.conf with contents.
Code:
# xbmc-upstart
# starts XBMC on startup using xinit and the startx command. Runs as xbmc as user
description "XBMC-barebones-upstart-script"
author "Matt Filetto"
start on (filesystem and stopped udevtrigger)
stop on runlevel [016]
# tell upstart to respawn the process if abnormal exit
respawn
script
exec su -c "xinit /usr/bin/xbmc --standalone :0" xbmc
end script
We sym link for legacy purposes and make sure that X is allowed everyone to use it.
Code:
sudo ln -s /lib/init/upstart-job /etc/init.d/xbmc
sudo sh -c 'echo "allowed_users=anybody" >> /etc/X11/Xwrapper.config'
and if you want to kill the mouse cursor X and the pointer if you dont use a mouse.
Code:
# xbmc-upstart
# starts XBMC on startup by using xinit.
# by default runs as xbmc, to change edit below.
env USER=xbmc
description "XBMC-barebones-upstart-script"
author "Matt Filetto modified by uNiversal"
start on (filesystem and stopped udevtrigger)
stop on runlevel [016]
# tell upstart to respawn the process if abnormal exit
respawn
script
exec su -c "xinit /usr/bin/xbmc --standalone -- -nocursor :0" $USER
end script
Posts: 28
Joined: Jan 2010
Reputation:
0
Awesome!
Thank you uNi, works a treat.
JT
Posts: 7,135
Joined: Oct 2012
un1versal
Out of Memory (1939–2016)
Posts: 7,135
2012-12-09, 15:05
(This post was last modified: 2012-12-09, 15:05 by un1versal.)
Excellent
uNi