Difference between pages "Bash by example, Part 2" and "Getty as display manager"

(Difference between pages)
 
(Created page with "This guide shows how you can use getty as display manager. == Choose window manager == Create ~/.xinitrc <pre>setxkbmap fi exec dwm </pre> == Start X on login to tty1 == Sta...")
 
Line 1: Line 1:
#REDIRECT [[Bash by Example, Part 2]]
+
This guide shows how you can use getty as display manager.
 +
 
 +
== Choose window manager ==
 +
Create ~/.xinitrc
 +
<pre>setxkbmap fi
 +
exec dwm
 +
</pre>
 +
 
 +
== 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
 +
<pre>[[ $(tty) = "/dev/tty1" ]] && exec startx</pre>
 +
 
 +
== Autologin ==
 +
Modify /etc/inittab
 +
<pre>
 +
# TERMINALS
 +
c1:12345:respawn:/sbin/agetty -a username 38400 tty1 linux
 +
c2:2345:respawn:/sbin/agetty 38400 tty2 linux
 +
</pre>
 +
 
 +
[[Category:HOWTO]]

Revision as of 15:56, 19 August 2013

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

Choose window manager

Create ~/.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