erhnam Wrote:Indeed, use lightdm. Make sure these files look like below;
/etc/lightdm/lightdm.conf
Code:
[SeatDefaults]
autologin-user=xbmc
autologin-user-timeout=0
user-session=XBMC
greeter-session=lightdm-gtk-greeter
/usr/share/xsessions/XBMC.desktop
Code:
[Desktop Entry]
Name=XBMC
Comment=This session will start XBMC Media Center
Exec=xbmc-standalone
TryExec=xbmc-standalone
Type=Application
OK I have tried this and I'm still puzzled as I am still getting a login prompt. I enter my xbmc password and bang I'm in and running fine but I would like the AutoLogin to work for me.
Contents of /var/log/lightdm/lightdm.log
Code:
[+0.00s] DEBUG: Logging to /var/log/lightdm/lightdm.log
[+0.00s] DEBUG: Starting Light Display Manager 1.0.6, UID=0 PID=1040
[+0.00s] DEBUG: Loaded configuration from /etc/lightdm/lightdm.conf
[+0.00s] DEBUG: Using D-Bus name org.freedesktop.DisplayManager
[+0.00s] DEBUG: Registered seat module xlocal
[+0.00s] DEBUG: Registered seat module xremote
[+0.00s] DEBUG: Adding default seat
[+0.00s] DEBUG: Starting seat
[+0.00s] DEBUG: Starting new display for automatic login as user xbmc
[+0.00s] DEBUG: Starting local X display
[+0.02s] DEBUG: Using VT 7
[+0.02s] DEBUG: Activating VT 7
[+0.02s] DEBUG: Logging to /var/log/lightdm/x-0.log
[+0.02s] DEBUG: Writing X server authority to /var/run/lightdm/root/:0
[+0.02s] DEBUG: Launching X Server
[+0.02s] DEBUG: Launching process 1056: /usr/bin/X :0 -auth /var/run/lightdm/root/:0 -nolisten tcp vt7 -novtswitch
[+0.02s] DEBUG: Waiting for ready signal from X server :0
[+0.02s] DEBUG: Acquired bus name org.freedesktop.DisplayManager
[+0.02s] DEBUG: Registering seat with bus path /org/freedesktop/DisplayManager/Seat0
[+1.87s] DEBUG: Got signal 10 from process 1056
[+1.87s] DEBUG: Got signal from X server :0
[+1.87s] DEBUG: Connecting to XServer :0
[+1.88s] DEBUG: Automatically logging in user xbmc
[+1.89s] DEBUG: pam_start("lightdm-autologin", "xbmc") -> (0x9ebfe00, 0)
[+1.89s] DEBUG: pam_authenticate(0x9ebfe00, 0) -> 0 (Success)
[+1.89s] DEBUG: pam_acct_mgmt(0x9ebfe00, 0) -> 0 (Success)
[+1.89s] DEBUG: User xbmc authorized
[+2.17s] DEBUG: Using session XBMC
[+2.17s] DEBUG: Starting user session
[+2.21s] DEBUG: Dropping privileges to uid 1000
[+2.21s] DEBUG: Restoring privileges
[+2.22s] DEBUG: Dropping privileges to uid 1000
[+2.22s] DEBUG: Writing /home/xbmc/.dmrc
[+2.23s] DEBUG: Restoring privileges
[+2.37s] DEBUG: Starting session XBMC as user xbmc
[+2.38s] DEBUG: Logging to /home/xbmc/.xsession-errors
[+2.38s] DEBUG: Launching session
[+2.38s] DEBUG: pam_set_item(0x9ebfe00, 3, ":0") -> 0 (Success)
[+2.38s] DEBUG: pam_open_session(0x9ebfe00, 0) -> 0 (Success)
[+2.58s] DEBUG: Opened ConsoleKit session 8442f987c7a90a09ced992794cd49824-1324075161.393866-842114193
[+2.58s] DEBUG: Dropping privileges to uid 1000
[+2.58s] DEBUG: Adding session authority to /home/xbmc/.Xauthority
[+2.58s] DEBUG: Restoring privileges
[+2.58s] DEBUG: Launching process 1241: /usr/sbin/lightdm-session '/usr/bin/xbmc-standalone'
[+2.58s] DEBUG: New display ready, switching to it
[+2.58s] DEBUG: Activating VT 7
[+2.59s] DEBUG: pam_setcred(0x9ebfe00, PAM_ESTABLISH_CRED) -> 0 (Success)
[+2.59s] DEBUG: PAM returns environment 'PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games LC_ALL=en_US.utf8 LANG=en_US.UTF-8'
[+2.59s] DEBUG: Registering session with bus path /org/freedesktop/DisplayManager/Session0
[+3.97s] DEBUG: Process 1241 exited with return value 0
[+3.97s] DEBUG: pam_close_session(0x9ebfe00) -> 0 (Success)
[+3.97s] DEBUG: pam_setcred(0x9ebfe00, PAM_DELETE_CRED) -> 0 (Success)
[+3.97s] DEBUG: pam_end(0x9ebfe00) -> 0
[+3.97s] DEBUG: Ending ConsoleKit session 8442f987c7a90a09ced992794cd49824-1324075161.393866-842114193
[+4.01s] DEBUG: User session quit
[+4.01s] DEBUG: Stopping display
[+4.01s] DEBUG: Sending signal 15 to process 1056
[+4.01s] DEBUG: Dropping privileges to uid 1000
[+4.02s] DEBUG: Removing session authority from /home/xbmc/.Xauthority
[+4.02s] DEBUG: Restoring privileges
[+5.52s] DEBUG: Process 1056 exited with return value 0
[+5.52s] DEBUG: X server stopped
[+5.52s] DEBUG: Removing X server authority /var/run/lightdm/root/:0
[+5.52s] DEBUG: Releasing VT 7
[+5.52s] DEBUG: Display server stopped
[+5.52s] DEBUG: Display stopped
[+5.52s] DEBUG: Active display stopped, switching to greeter
[+5.52s] DEBUG: Switching to greeter
[+5.52s] DEBUG: Starting new display for greeter
[+5.52s] DEBUG: Starting local X display
[+5.52s] DEBUG: Using VT 7
[+5.52s] DEBUG: Logging to /var/log/lightdm/x-0.log
[+5.52s] DEBUG: Writing X server authority to /var/run/lightdm/root/:0
[+5.52s] DEBUG: Launching X Server
[+5.52s] DEBUG: Launching process 1399: /usr/bin/X :0 -auth /var/run/lightdm/root/:0 -nolisten tcp vt7 -novtswitch
[+5.52s] DEBUG: Waiting for ready signal from X server :0
[+6.45s] DEBUG: Got signal 10 from process 1399
[+6.45s] DEBUG: Got signal from X server :0
[+6.45s] DEBUG: Connecting to XServer :0
[+6.45s] DEBUG: Starting greeter session
[+6.48s] DEBUG: pam_start("lightdm", "lightdm") -> (0x9ecd210, 0)
[+6.48s] DEBUG: Starting session lightdm-gtk-greeter as user lightdm
[+6.52s] DEBUG: Logging to /var/log/lightdm/x-0-greeter.log
[+6.52s] DEBUG: Launching session
[+6.54s] DEBUG: pam_set_item(0x9ecd210, 3, ":0") -> 0 (Success)
[+6.54s] DEBUG: pam_open_session(0x9ecd210, 0) -> 0 (Success)
[+6.58s] DEBUG: Opened ConsoleKit session 8442f987c7a90a09ced992794cd49824-1324075165.405851-1538932142
[+6.58s] DEBUG: Dropping privileges to uid 115
[+6.58s] DEBUG: Adding session authority to /var/lib/lightdm/.Xauthority
[+6.67s] DEBUG: Restoring privileges
[+6.67s] DEBUG: Launching process 1409: /usr/lib/lightdm/lightdm-greeter-session '/usr/sbin/lightdm-gtk-greeter'
[+6.67s] DEBUG: pam_setcred(0x9ecd210, PAM_ESTABLISH_CRED) -> 0 (Success)
[+6.67s] DEBUG: PAM returns environment 'PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games LC_ALL=en_US.utf8 LANG=en_US.UTF-8'
[+7.27s] DEBUG: Read 8 bytes from greeter
[+7.27s] DEBUG: Read 9 bytes from greeter
[+7.27s] DEBUG: Greeter connected version=1.0.6
[+7.27s] DEBUG: Wrote 96 bytes to greeter
[+7.27s] DEBUG: Greeter connected, display is ready
[+7.27s] DEBUG: New display ready, switching to it
[+7.27s] DEBUG: Activating VT 7
[+7.27s] DEBUG: Stopping greeter display being switched from
[+10.17s] DEBUG: Read 8 bytes from greeter
[+10.17s] DEBUG: Read 12 bytes from greeter
[+10.17s] DEBUG: Greeter start authentication for xbmc
[+10.18s] DEBUG: pam_start("lightdm", "xbmc") -> (0x9ee35d0, 0)
[+10.18s] DEBUG: Prompt greeter with 1 message(s)
[+10.18s] DEBUG: Wrote 42 bytes to greeter
And ~/.xsession-errors
Code:
Running X session wrapper
Loading profile from /etc/profile
Loading profile from /home/xbmc/.profile
Loading resource: /etc/X11/Xresources/x11-common
No protocol specified
xrdb: Connection refused
xrdb: Can't open display ':0'
Loading X session script /etc/X11/Xsession.d/20x11-common_process-args
Loading X session script /etc/X11/Xsession.d/30x11-common_xresources
Loading X session script /etc/X11/Xsession.d/40x11-common_xsessionrc
Loading X session script /etc/X11/Xsession.d/50x11-common_determine-startup
Loading X session script /etc/X11/Xsession.d/60x11-common_localhost
No protocol specified
xhost: unable to open display ":0"
Loading X session script /etc/X11/Xsession.d/60x11-common_xdg_path
Loading X session script /etc/X11/Xsession.d/90consolekit
Loading X session script /etc/X11/Xsession.d/90x11-common_ssh-agent
Loading X session script /etc/X11/Xsession.d/99x11-common_start
No protocol specified
Error: unable to open display :0
No protocol specified
FEH.py: cannot connect to X server :0
No protocol specified
Error: unable to open display :0
No protocol specified
FEH.py: cannot connect to X server :0
No protocol specified
Error: unable to open display :0
No protocol specified
FEH.py: cannot connect to X server :0
XBMC has exited uncleanly 3 times in the last 1 seconds.
Something is probably wrong