User Tools

Site Tools


automatic_login

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
automatic_login [2012/11/25 10:41]
85.218.109.130
automatic_login [2012/11/25 11:09]
85.218.109.130 [Ubuntu]
Line 24: Line 24:
 1:​2345:​respawn:/​sbin/​getty --autologin [user] --noclear ​ tty1  1:​2345:​respawn:/​sbin/​getty --autologin [user] --noclear ​ tty1 
 </​code>​ </​code>​
 +
 +
 +
 +then edit the .profile file in your user's home directory, adding these lines
 +
 +<​code>​
 +if [ -z "​$DISPLAY"​ ] && [ $(tty) = /dev/tty1 ] ; then
 +    startx ;
 +fi
 +</​code>​
 +
 +finally, make sure that .xinitrc contains the line which will start your window manager. for example:
 +
 +<​code>​
 +awesome
 +</​code>​
 +more details here: http://​www.shellperson.net/​autostart-x-without-gdm/​
  
 ====== Ubuntu ====== ====== Ubuntu ======
Line 40: Line 57:
 </​code>​ </​code>​
  
-then edit the .profile file in your user's home directory, adding these lines+then edit your .bashrc (if the user is using bash shell) to add 
  
 <​code>​ <​code>​
-if [ -z "​$DISPLAY"​ ] && [ $(tty) = /dev/tty1 ] ; then +startx
-    ​startx ​+
-fi+
 </​code>​ </​code>​
  
-finally, make sure that .xinitrc contains ​the line which will start your window managerfor example:+as the last line.
  
-<​code>​ +from: http://forum.xbmc.org/showthread.php?​tid=38473
-awesome +
-</​code>​ +
-more details here: http://www.shellperson.net/​autostart-x-without-gdm/+
automatic_login.txt · Last modified: 2012/11/25 11:09 by 85.218.109.130