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.0 platform.

Package Information

xinit Dependencies


Xorg Libraries

Required (runtime only)

twm-1.0.9, xclock-1.0.7, and xterm-327

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 2017-02-15 14:01:44 -0800