System: Slackware Linux (version 14.0)
CPUs: Intel(R) Atom(TM) CPU N270 @1.60GHz
Setting up a tab window manager (twm) with a Danish
keyboard layout.
Boot into the default runlevel 3.
Welcome to Linux 3.2.29-smp (tty1)
darkstar login: root
Password:
Linux 3.2.29-smp
Last login: Wed Mar 2 06:08:32 +0100 2016 on /dev/tty1
root@darkstar~# cat /home/eric/.xinitrc
#!/bin/sh
/usr/bin/twm &
/usr/bin/setxkbmap -layout dk
exec /usr/bin/xterm -geometry 80x20+0+0 -name login
root@darkstar~#
Use Ctrl+Alt+F2 to access tty2.
Welcome to Linux 3.2.29-smp (tty2)
darkstar login: eric
Password:
Linux 3.2.29-smp
eric@darkstar:~$ startx
From a running xterm in a twm the number of processes is minimal.
sh-4.2$ ps x
PID TTY STAT TIME COMMAND
2308 tty2 Ss 0:00 -sh
2321 tty2 S+ 0:00 /bin/sh /usr/bin/startx
2337 tty2 S+ 0:00 xinit /home/eric/.xinitrc -- /usr/bin/X :0 -auth /home/eric/.serverauth.2321
2343 tty2 S 0:00 /usr/bin/xterm -geometry 80x20+0+0 -name login
2344 tty2 S 0:00 /usr/bin/twm
2348 pts/0 Ss 0:00 sh
2349 pts/0 R+ 0:00 ps x
sh-4.2$
When your session is finished logout of tty2 and use Ctrl+Alt+F1 to access tty1.
root@darkstar~# halt
NB: One can run exclusively on /dev/tty1, delaying the 'root' login until the end,
which factually is only needed to run the commands "halt" or "reboot".