Difference between revisions of "Getty as display manager"

(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 2: Line 2:
  
 
== Choose window manager ==
 
== Choose window manager ==
Create ~/.xinitrc
+
Create ~/.xinitrc:
<pre>setxkbmap fi
+
{{File
 +
|~/.xinitrc|<pre>
 +
setxkbmap fi
 
exec dwm
 
exec dwm
</pre>
+
</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 ~/.bashrc
+
Add the following line in top of your ~/.bashrc:
<pre>[[ $(tty) = "/dev/tty1" ]] && exec startx</pre>
+
{{File
 +
|~/.bashrc|<pre>
 +
[[ $(tty) = "/dev/tty1" ]] && exec startx
 +
</pre>}}
  
 
== Autologin ==
 
== Autologin ==
Modify /etc/inittab
+
Modify /etc/inittab:
<pre>
+
{{File
 +
|/etc/inittab|<pre>
 
# 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
 
c2:2345:respawn:/sbin/agetty 38400 tty2 linux
</pre>
+
</pre>}}
  
 
[[Category:HOWTO]]
 
[[Category:HOWTO]]

Revision as of 23:42, January 18, 2014

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

Choose window manager

Create ~/.xinitrc:

{{{name}}}
{{{body}}}

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:

{{{name}}}
{{{body}}}

Autologin

Modify /etc/inittab:

{{{name}}}
{{{body}}}