Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
xbmc at boot (SOLVED)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
gentoo2013
n00b
n00b


Joined: 20 Feb 2013
Posts: 60
Location: United Kigdom

PostPosted: Wed Dec 11, 2013 11:36 am    Post subject: xbmc at boot (SOLVED) Reply with quote

Am I able to remove gnome and all its dependencies and just make xbmc run from boot ?

Last edited by gentoo2013 on Wed Dec 18, 2013 8:28 am; edited 1 time in total
Back to top
View user's profile Send private message
DawgG
l33t
l33t


Joined: 17 Sep 2003
Posts: 878

PostPosted: Mon Dec 16, 2013 12:16 pm    Post subject: Reply with quote

check
Code:
equery g xbmc

there are no deps on gnome for xbmc itself.
but if you want to eg use an auto-login-feature that auto-logs in a gnome user (into X) which auto-starts xbmc you still need gnome (or parts of it) for that, of course.

if you only need the functionality of auto-starting xbmc you don't need gnome (or any other bloated de). there are ways of starting it via /etc/inittab (i personally have not done that).
om my media-box it's started by an initscript that sus to the xbmc-user and calls startx which starts xbmc and some other stuff. that way there is no open console or logged-in user when xbmc is stopped and xbmc can be (re)started remotely. the restart-function of that initscript is mapped to CRTL-ALT-DEL (via /etc/inittab) so XBMC can be convenitetly restarted in case it hangs or i want it to immediately update its media-db.
GOOD LUCK!
_________________
DUMM KLICKT GUT.
Back to top
View user's profile Send private message
lexflex
Guru
Guru


Joined: 05 Mar 2006
Posts: 363
Location: the Netherlands

PostPosted: Mon Dec 16, 2013 3:08 pm    Post subject: Reply with quote

DawgG wrote:

if you only need the functionality of auto-starting xbmc you don't need gnome (or any other bloated de). there are ways of starting it via /etc/inittab (i personally have not done that).


As DawgG says, there are various ways to start xbmc automatically or by hand, and you don't need gnome.

See http://wiki.gentoo.org/wiki/XBMC for info about either using the initscript or inittab .
I use the standard method, using the initscript. No Gnome installed.

Alex.
Back to top
View user's profile Send private message
gentoo2013
n00b
n00b


Joined: 20 Feb 2013
Posts: 60
Location: United Kigdom

PostPosted: Mon Dec 16, 2013 7:11 pm    Post subject: Reply with quote

Thanks guys fixed this buy adding xbmc standlone to the xinitrc for the user.
Still have to type startx but it works :)

DawgG i thnk i like your method more though this would be better as the user would not have to type startx can u explain how you have done this step by step for instance with the user as xmbc ?

Im trying to use the guide above but i do get little confused sorry

Im kind off on the same drift i think :)

Thanks for all your help
Back to top
View user's profile Send private message
micmac
l33t
l33t


Joined: 28 Nov 2003
Posts: 996

PostPosted: Tue Dec 17, 2013 7:53 am    Post subject: Reply with quote

Hello!

You can use the following init script (/etc/init.d/xbmc):

Code:

#!/sbin/runscript
# Released under the 2-clause BSD license.

description="Start and stop XBMC"

depend()
{
        need lircd
        use net
}



start()
{
        ebegin "Starting XBMC"
        su - xbmc -c "startx" & > /dev/null
        eend 0
}

stop()
{
        /usr/bin/xbmc-send --host=localhost --port=9777 --action="XBMC.Quit" 1>/dev/null
        eend $?
}

In case you don't use lircd you can just delete the "need lircd" line.
For the shutdown to work you must configure xbmc to accept commands from localhost (can't remember exactly how the setting is called, but you'll find it).

In /home/xbmc/.xinitrc I have the following:
Code:

# .xinitrc
/usr/bin/xset s noblank
/usr/bin/xset s off
/usr/bin/xset -dpms
exec ck-launch-session /usr/bin/xbmc-standalone
Back to top
View user's profile Send private message
gentoo2013
n00b
n00b


Joined: 20 Feb 2013
Posts: 60
Location: United Kigdom

PostPosted: Tue Dec 17, 2013 5:38 pm    Post subject: Reply with quote

I created the script above rebooted and nothing happend.
Do I need to do something else like added it to a certain run level ?
Back to top
View user's profile Send private message
lexflex
Guru
Guru


Joined: 05 Mar 2006
Posts: 363
Location: the Netherlands

PostPosted: Tue Dec 17, 2013 9:18 pm    Post subject: Reply with quote

gentoo2013 wrote:
I created the script above rebooted and nothing happend.
Do I need to do something else like added it to a certain run level ?



Yes, you need to add it to the default runlevel.

Code:
rc-update add xbmc default

See the link i posted earlier ( http://wiki.gentoo.org/wiki/XBMC).
Although this is a different script ( starting startx, and not xbmc-standalone directly) it still has to be added.

Hope this helps,

Alex.


PS: use rc-update show to see what is in there.

PPS: The example script in the wiki also starts XBMC as the user xbmc. However, it starts xbmc-standalone directly
Back to top
View user's profile Send private message
gentoo2013
n00b
n00b


Joined: 20 Feb 2013
Posts: 60
Location: United Kigdom

PostPosted: Wed Dec 18, 2013 8:28 am    Post subject: Reply with quote

Works a treat thanks very much :)
Helps alot
Back to top
View user's profile Send private message
austen007
n00b
n00b


Joined: 19 Dec 2013
Posts: 1

PostPosted: Thu Dec 19, 2013 10:03 am    Post subject: Reply with quote

I like your good work.
_________________
sdfsdfsdfs
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum