The officially official Devuan Forum!

You are not logged in.

#1 2019-11-26 18:08:29

ReallyNigga
Member
Registered: 2019-11-19
Posts: 10  

Automatic startx without session manager

Since I didn't find something specifically for Devuan, here is my contribution.

The automation is done into two steps: set sysvinit to automatically logging your user on TTY and using your user .profile file to startx.

First use an editor to open /etc/inittab and search for the following block:

1:2345:respawn:/sbin/getty 38400 tty1
2:23:respawn:/sbin/getty 38400 tty2
3:23:respawn:/sbin/getty 38400 tty3
4:23:respawn:/sbin/getty 38400 tty4
5:23:respawn:/sbin/getty 38400 tty5
6:23:respawn:/sbin/getty 38400 tty6

Now edit the first line, TTY1 (or whorever TTY you want) as follow:

1:2345:respawn:/sbin/getty --autologin john --noclear 38400 tty1

Now edit your user .profile adding the following:

#Startx Automatically
if [[ -z "$DISPLAY" ]] && [[ $(tty) = /dev/tty1 ]]; then
. startx
logout
fi

My fonts:

https://wiki.gentoo.org/wiki/Automatic_ … al_console

https://forums.bunsenlabs.org/viewtopic.php?id=5544

Offline

#2 2019-11-26 20:23:47

szutt
Member
Registered: 2019-02-03
Posts: 35  

Re: Automatic startx without session manager

Thank you, it's something I've been looking for for a long time too.

Offline

Board footer