Difference between revisions of "Getty as display manager"

m (Fixed formatting and added to Display Managers category)
 
Line 2: Line 2:
  
 
== Choose window manager ==
 
== Choose window manager ==
Create (or edit) <tt>~/.xinitrc</tt>:
 
  
<pre>
+
If you use <code>fi</code> keyboard layout and <code>dwm</code> as window manager, you would set the following in your <code>~/.xinitrc</code>:
 +
 
 +
{{file|name=~/.xinitrc|desc=setting up keyboard layout and window manager|body=
 
setxkbmap fi
 
setxkbmap fi
 
exec dwm
 
exec dwm
</pre>
+
}}
  
 
== Start X on login to tty1 ==
 
== Start X on login to tty1 ==
 +
 
Start X session when you login to first virtual terminal.
 
Start X session when you login to first virtual terminal.
  
Add the following line in top of your <tt>~/.bashrc</tt>:
+
Add the following line in top of your <code>~/.bashrc</code>:
  
<pre>
+
{{file|name=~/.bashrc|desc=Autostart X on login to tty1|body=
 
[[ $(tty) = "/dev/tty1" ]] && exec startx
 
[[ $(tty) = "/dev/tty1" ]] && exec startx
</pre>
+
}}
  
 
== Autologin ==
 
== Autologin ==
Modify <tt>/etc/inittab</tt>:
 
  
<pre>
+
Modify <code>/etc/inittab</code>:
 +
 
 +
{{file|name=/etc/inittab|desc=Autologin|body=
 
# TERMINALS
 
# TERMINALS
 
c1:12345:respawn:/sbin/agetty -a username 38400 tty1 linux
 
c1:12345:respawn:/sbin/agetty -a username 38400 tty1 linux
c2:2345:respawn:/sbin/agetty 38400 tty2 linux
+
}}
</pre>
+
  
[[Category:HOWTO]]
+
[[Category:HOWTO]][[Category:Display_Managers]]

Latest revision as of 23:04, 27 September 2014

This guide shows how you can use getty as display manager.

Choose window manager

If you use fi keyboard layout and dwm as window manager, you would set the following in your ~/.xinitrc:

~/.xinitrc: setting up keyboard layout and window manager
setxkbmap fi
exec dwm

Start X on login to tty1

Start X session when you login to first virtual terminal.

Add the following line in top of your ~/.bashrc:

~/.bashrc: Autostart X on login to tty1
[[ $(tty) = "/dev/tty1" ]] && exec startx

Autologin

Modify /etc/inittab:

/etc/inittab: Autologin
# TERMINALS
c1:12345:respawn:/sbin/agetty -a username 38400 tty1 linux