LinuxCommandLibrary

startx

TLDR

Start an X session

$ startx
copy
Start X with a specific color depth
$ startx -- -depth [value]
copy
Start X with a specific DPI value
$ startx -- -dpi [value]
copy
Start X with a specific window manager
$ startx [path/to/window_manager]
copy

SYNOPSIS

startx [client] [options] [--] [server] [display]

DESCRIPTION

startx is a front-end to xinit that provides a convenient way to start an X session. It reads the user's .xinitrc file (or the system default if none exists) to determine what programs to run.
Typically startx runs a window manager or desktop environment and sets up the X display.

PARAMETERS

--

Separator between client and server arguments
-depth _value_
Set color depth (8, 16, 24, 32)
-dpi _value_
Set dots per inch

CAVEATS

Requires X server to be installed. The .xinitrc file in the user's home directory controls which programs start with X. Not needed when using a display manager like GDM, SDDM, or LightDM.

SEE ALSO

xinit(1), xorg(1), xrandr(1)

Copied to clipboard