Introduction to xinit

The xinit package contains a usable script to start the xserver.

This package is not a part of the Xorg katamari and is provided only as a dependency to other packages or for testing the completed Xorg installation.

This package is known to build and work properly using an LFS-8.2 platform.

Package Information

xinit Dependencies


Xorg Libraries

Recommended (runtime only)

User Notes:

Installation of xinit

First, modify startx, hence the X session starts on the first unused virtual terminal, which normally is vt7:

sed -e '/$serverargs $vtarg/ s/serverargs/: #&/' \
    -i startx.cpp


If you have already installed this package without the sed above, there is no need to reinstall. Just modify the installed startx, issuing, as the root user: sed -i '/$serverargs $vtarg/ s/serverargs/: #&/' $XORG_PREFIX/bin/startx

Install xinit by running the following commands:

./configure $XORG_CONFIG --with-xinitdir=/etc/X11/app-defaults &&

This package does not come with a test suite.

Now, as the root user:

make install &&


Installed Programs: xinit and startx
Installed Libraries: None
Installed Directories: None

Short Descriptions


initializes an X session.


is the X Window System initializer.

Last updated on 2018-03-13 21:48:00 -0500