Gentoo Wiki


The startx script is used to start the X windowing system.


The script performs the following steps:

Set variable userclientrc to "$HOME/.xinitrc"
Set variable sysclientrc to "/etc/X11/xinit/xinitrc"
Configure variables userserverrc, sysserverrc, defaultclientargs, defaultserverargs, clientargs, serverargs
if userclientrc ("$HOME/.xinitrc") exists defaultclientargs is set to this, otherwise it is set to sysclientrc ("/etc/X11/xinit/xinitrc")
Configure and export the DISPLAY environment variable
Configure defaultserverargs to userserverrc, if it is set, otherwise try sysserverrc, if it is set
Configure clientargs or serverargs from provided command line parameters
Configure the environment variable XAUTHORITY
Determine hostname for Xauth
Create the Xauth configuration file
Deallocate virtual terminals using deallocvt
Run xinit with client and server arguments

This typically runs the xinit command as follows:

xinit /etc/X11/xinit/xinitrc -- -nolisten tcp -br -auth ~/.serverauth.3037 -deferglyphs 16

See also

xinitrc - Overview of xinitrc

Retrieved from ""

Last modified: Thu, 04 Sep 2008 01:29:00 +0000 Hits: 1,664