Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
how to auto start XBMC on system startup?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
lpt2007
n00b
n00b


Joined: 12 Nov 2011
Posts: 55

PostPosted: Sun Jan 08, 2012 10:23 am    Post subject: how to auto start XBMC on system startup? Reply with quote

Is there somewhere a guide how to autostart XBMC on system startup?
Back to top
View user's profile Send private message
lpt2007
n00b
n00b


Joined: 12 Nov 2011
Posts: 55

PostPosted: Sun Jan 08, 2012 7:00 pm    Post subject: Reply with quote

I already find how, this is a good how to:

http://pier0w.wordpress.com/gentoo-xbmc/

Now I only need how to auto login user and startx. Can someone help me how?
Back to top
View user's profile Send private message
BitJam
Advocate
Advocate


Joined: 12 Aug 2003
Posts: 2496
Location: Silver City, NM

PostPosted: Mon Jan 09, 2012 3:06 am    Post subject: Reply with quote

The instructions you link to show you how to run startx from the user's .bashrc. I use the following script to automatically login a user on a virtual console (vc):
Code:
#!/bin/bash

exec 0</dev/$1 1>/dev/$1 2>&1
#cat /etc/issue
shift
exec $*

If the script is at /sbin/autologin then change one of the vc lines in /etc/inittab to something like:
Code:
c2:2345:respawn:/sbin/autologin tty2 login -f $USER

where $USER is the username of the user you want logged in. This line will automatically login on the 2nd vc.

I have no idea if this will play nice with running startx from .bashrc. This is set to respawn so if the session gets logged out for any reason it will automatically log in again without asking for a username or password.
Back to top
View user's profile Send private message
alexdu
n00b
n00b


Joined: 25 Oct 2005
Posts: 49
Location: Moscow, Russia

PostPosted: Sun Jul 28, 2013 9:01 pm    Post subject: Reply with quote

BitJam wrote:
I have no idea if this will play nice with running startx from .bashrc. This is set to respawn so if the session gets logged out for any reason it will automatically log in again without asking for a username or password.
It plays nice, thanks!

Code:
$ cat >> .bashrc
startx
sleep 10
exit


Code:
$ cat >> .xinitrc
exec xbmc --standalone
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments 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