Skip to content

Instantly share code, notes, and snippets.

@ryot4
Last active January 29, 2024 04:04
Show Gist options
  • Star 20 You must be signed in to star a gist
  • Fork 7 You must be signed in to fork a gist
  • Save ryot4/0712f02f709be90bd5d6812b85e3b529 to your computer and use it in GitHub Desktop.
Save ryot4/0712f02f709be90bd5d6812b85e3b529 to your computer and use it in GitHub Desktop.

How to setup a minimal X11 environment on Debian GNU/Linux

  1. Install the following packages

    • xserver-xorg-core (server)
    • xserver-xorg-video-XXX (video driver, XXX depends on your hardware)
    • xserver-xorg-input-XXX (input device driver, XXX depends on your hardware. evdev works well for most cases)
    • x11-xserver-utils (xmodmap, xrandr)
    • x11-xkb-utils (setxkbmap)
    • x11-utils (xdpyinfo, xev, xkill, xprop, xwininfo)
    • xinit (startx)
    • your favorite terminal emulator
    • your favorite window manager
  2. Create a minimal ~/.xinitrc

    #!/bin/sh
    your-favorite-termianl-emulator &
    exec your-favorite-window-manager
    
  3. Run startx from the console

  4. Add anything you need (fonts, panels, input methods, etc.)

@Hawkwhisper
Copy link

Thanks a ton!

@veasman
Copy link

veasman commented Oct 26, 2022

Very helpful, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment