In order to get a custom minimal single desktop, I tried to install xorg and openbox on top of antiX core, […]
– is there a fast and light alternative to SLiM for automatic login, already available in antiX repository?
Here is a fast and light alternative to do what you want that requires no added packages.
1) As root, edit the file /etc/X11/Xwrapper.config and add this line at the bottom:
needs_root_rights=yes
This should let normal users use the startx command. You can test this by trying to run the following command as your user from a virtual console:
startx /usr/local/bin/desktop-session -- vt7
If this works, just log out of X to return to the console.
2) Select a vt (virtual terminal aka virtual console) and create a ~/.bash_login for your user that contains:
if [ -z "$DISPLAY" -a $(id -u) -ge 1000 ]; then
tty=$(tty)
case $tty in
/dev/tty5) startx /usr/local/bin/desktop-session -- vt7 2>&1 | tee -a ~/xsession-log ;;
esac
fi
where I arbitrarily select vt5 as the console to log in on so I used “/dev/tty5” in the case statement. (the vt7 after — says to open up X on vt7). You can test this by switching to vt5 with ctrl-alt-F5 and logging in as your user. X Windows should start. Again logout of X to return to the console.
3) As root, edit /etc/inittab to log in as your user automatically on vt5. Let’s assume your username is “demo”. Change the line that starts with “5:2345” so it reads:
5:2345:respawn:/sbin/getty --autologin demo 38400 tty5
In order to have this change take effect without rebooting run:
sudo /sbin/telinit q
You can test this by switching to vt5 (as above) and using the “exit” command. You should get automatically logged in which will automatically start X.
HTH
[...] almost any English person would accept "bully" as a synonym for "Fascist". -- George Orwell (1944)