Difference between revisions of "Getty as display manager"

Line 3: Line 3:
 
== Choose window manager ==
 
== Choose window manager ==
 
Create (or edit) <tt>~/.xinitrc</tt>:
 
Create (or edit) <tt>~/.xinitrc</tt>:
 
  
 
<pre>
 
<pre>
Line 14: Line 13:
  
 
Add the following line in top of your <tt>~/.bashrc</tt>:
 
Add the following line in top of your <tt>~/.bashrc</tt>:
 
  
 
<pre>
 
<pre>
Line 22: Line 20:
 
== Autologin ==
 
== Autologin ==
 
Modify <tt>/etc/inittab</tt>:
 
Modify <tt>/etc/inittab</tt>:
 
  
 
<pre>
 
<pre>

Revision as of 23:24, 19 February 2014

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

Choose window manager

Create (or edit) ~/.xinitrc:

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:

[[ $(tty) = "/dev/tty1" ]] && exec startx

Autologin

Modify /etc/inittab:

# TERMINALS
c1:12345:respawn:/sbin/agetty -a username 38400 tty1 linux
c2:2345:respawn:/sbin/agetty 38400 tty2 linux