Autox

From Void Linux Wiki
Jump to: navigation, search

Related articles

autox is a utility that sets up a specified user's environment and then launches the xinit application. This greatly simplifies the process of booting to X11.

Installation

Warning: There is currently an issue with autox which means it is not started under a login shell. This can cause issues, as the user's profile scripts are not run and environment variables such as the user's locale are not set. nodm should be used until this is fixed.

Install the autox package.

Create a conf file in /etc/sv/autox and supply the necessary variables:

 USER=your_x11_user
 # tty7 is the default
 TTY=tty7

Before enabling the service, make sure the user you specified has a .xinitrc that execs an application. For example:

 #!/bin/sh
 xset -dpms s off
 xsetroot -solid black
 xhost local:+
 export QT_XFT=1
 exec kodi

Finally, enable the runit service:

 ln -s /etc/sv/autox /var/service/