[LINUX] Start directly, without gdm
#1
Hi,

how can i make linux to start directly XBMC without manual login?
Guess i have to remove gdm (i only use xbmc on this pc). Maybe someone tried before?

Im running ubuntu karmic and last release of xbmc

Cheers
Reply
#2
Hello,

You can ask gdm to autologin (gdmconfig or something like that)
or you can change gdm for slim (it's faster) and change the /etc/slim.conf so you can specify your default
Code:
# default user, leave blank or remove this line
# for avoid pre-loading the username.
default_user        youruser

# Automatically login the default user (without entering
# the password. Set to "yes" to enable this feature
auto_login          yes

Another choice is to modify inittab to use mingetty so it autolog a vty then launch startx

and finally the fastest i've found : nodm (http://www.enricozini.org/sw/nodm/)
i've put my login name directly in the code so i don't use any env and launch it straight from inittab.
Reply
#3
bolzerrr Wrote:Hi,

how can i make linux to start directly XBMC without manual login?
Guess i have to remove gdm (i only use xbmc on this pc). Maybe someone tried before?

Im running ubuntu karmic and last release of xbmc

Cheers

Edit this file:
Code:
sudo nano /etc/init/tty1.conf

Change:
Code:
exec /sbin/getty 38400 tty1

To:
Code:
exec /bin/login -f YOUR-USER-HERE </dev/tty1 > /dev/tty1 2>&1

To start XBMC:
Code:
nano .xsession

All you need is:
Code:
exec xbmc --standalone

To give you an example of what you can do, mine looks like:
Code:
xterm &
#fluxbox &
nvidia-settings -l &
xbmc --standalone &
/home/mbc/xboxdrv/xboxdrv --wid 0 -s -l 2 --dpad-as-button --deadzone 12000 &
exec x11vnc -forever -noxdamage

Where & comes after a cmd when another follows and exec precedes the last cmd.
Reply
#4
again, i get the login screen, when i try to start with user xbmc i get error msgs..
Reply
#5
Follow the instructions on XBMCbuntu page. Specifically, create an xbmc account, install xbmc-live, and modify and update grub.
Reply
#6
Got it Working, thanks Smile
Reply
#7
If you're a linux newb like me, you can use this script. does just about everthing.

http://forum.xbmc.org/showthread.php?tid=55282

D
Reply

Logout Mark Read Team Forum Stats Members Help
[LINUX] Start directly, without gdm0