注意:
The Funtoo Linux project has transitioned to "Hobby Mode" and this wiki is now read-only.
Difference between revisions of "Getty as display manager"
Jump to navigation
Jump to search
(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...") |
|||
(6 intermediate revisions by 3 users not shown) | |||
Line 2: | Line 2: | ||
== Choose window manager == | == Choose window manager == | ||
< | 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 | |||
exec dwm | exec dwm | ||
}} | |||
== Start X on login to tty1 == | == Start X on login to tty1 == | ||
Add the following line in top of your ~/.bashrc | Start X session when you login to first virtual terminal. By default this should happen on the first freed terminal; tty7 if agetty is taking 1 to 6 as per /etc/inittab describes. | ||
< | |||
Add the following line in top of your <code>~/.bashrc</code>: | |||
{{file|name=~/.bashrc|desc=Autostart X on login to tty1|body= | |||
[[ $(tty) = "/dev/tty1" ]] && exec startx | |||
}} | |||
== Autologin == | == Autologin == | ||
Modify /etc/inittab | |||
< | 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 | ||
}} | |||
{{important|If you want start X straight from autologin in inittab, enter the code from the above .bashrc in ~/.bash_profile instead.}} | |||
[[Category:HOWTO]][[Category:Display_Managers]] | |||
[[Category:HOWTO]] |
Latest revision as of 05:59, June 21, 2018
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 managersetxkbmap fi
exec dwm
Start X on login to tty1
Start X session when you login to first virtual terminal. By default this should happen on the first freed terminal; tty7 if agetty is taking 1 to 6 as per /etc/inittab describes.
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
Important
If you want start X straight from autologin in inittab, enter the code from the above .bashrc in ~/.bash_profile instead.