Please refer to ServerGUI.

The answer is to use this commands in terminal:

sudo apt-get install xorg openbox
Answer from user134379 on askubuntu.com

Please refer to ServerGUI.

The answer is to use this commands in terminal:

sudo apt-get install xorg openbox
Answer from user134379 on askubuntu.com
🌐
LinuxConfig
linuxconfig.org › home › how to install x11 on ubuntu 26.04
How to Install X11 on Ubuntu 26.04
February 9, 2026 - TL;DRInstall X11 on Ubuntu 26.04 by installing base Xorg packages and optional desktop-specific X11 sessions, then select the X11 session at your login screen. Ubuntu 26.04 represents a pivotal moment in Linux desktop evolution.
🌐
ArchWiki
wiki.archlinux.org › title › Xorg
Xorg - ArchWiki
April 16, 2026 - X.Org Server — commonly referred to as simply X — is the X.Org Foundation implementation of the X Window System (X11) display server, and it is the most popular display server among Linux users. Its ubiquity has led to making it an ever-present requisite for GUI applications, resulting in massive adoption from most distributions. For the alternative and successor, see Wayland. Xorg can be installed with the xorg-server package.
🌐
ElderNode
eldernode.com › instant vps server › tutorial › how to install x11 (xorg + xfce) on debian linux
How to Install X11 (Xorg + XFCE) on Debian Linux - ElderNode
July 15, 2025 - Learn how to install X11 with Xorg and XFCE on your Debian system. Step-by-step guide for beginners to enable a full GUI on Debian Linux.
🌐
Medium
medium.com › @IBMDeveloper › learn-linux-101-install-and-configure-x11-dcee9ae63a3
Learn Linux 101: Install and configure X11 | by IBM Developer | Medium
January 7, 2019 - Learn Linux 101: Install and configure X11 In this tutorial, learn to install and configure X11 for your Linux system. Learn to: Understand the X11 architecture. Understand the basics of the X Window …
🌐
Wikihow
wikihow.com › computers and electronics › operating systems › linux › how to configure x11 in linux: easy step-by-step directions
How to Configure X11 in Linux: Easy Step-by-Step Directions
February 19, 2026 - Find the command for installing X11 Ubuntu and moreAlthough it was once common to make changes to your X11 configuration, Xorg now automatically configures all hardware and settings. Auto-configuration works so well that you usually won't...
Find elsewhere
🌐
BigDBA
bigdba.com › home › install and run xwindows/x11 on linux
INSTALL AND RUN XWINDOWS/X11 ON LINUX | bigdba.com
September 23, 2020 - ... There will be lot of dependencies for installing these packages, make sure you install all the packages using yum. You can install the packages with the command below; yum install xorg-x11-server-Xorg xorg-x11-xauth xorg-x11-apps –y
🌐
LinuxShout
linux.how2shout.com › home › how to install x11 on almalinux 9 or rocky linux 9
How to install x11 on Almalinux 9 or Rocky Linux 9 - LinuxShout
December 21, 2024 - ... Why Use X11?Step-by-Step Guide to Install X11 on AlmaLinux 9Step 1: Update Your SystemStep 2: Install the EPEL Repository (Optional)Step 3: Install X11 PackagesStep 4: Start and Enable the X11 ServerStep 5: Install Graphics Drivers (if ...
🌐
Red Hat
docs.redhat.com › en › documentation › red_hat_enterprise_linux › 6 › html › installation_guide › installation_procedure_overview-s390-gui-x11
18.3.2. Installation using X11 | Installation Guide | Red Hat Enterprise Linux | 6 | Red Hat Documentation
If the network and firewalls prevent such connections, use X11 forwarding or VNC instead. The graphical installation program requires the DNS and hostname to be set correctly, and the Linux installation system must be allowed to open applications on your display.
🌐
Arch Linux Forums
bbs.archlinux.org › viewtopic.php
Installation of X11 / Newbie Corner / Arch Linux Forums
March 29, 2015 - EDIT: Note that if you have a modern graphics card you want to install nvidia-libgl not mesa-libgl.
Top answer
1 of 2
10

Ubuntu 16.04 host, Buildroot 2017.02

Current Buildroot has an X11 package which makes things "easy" for us: https://github.com/buildroot/buildroot/tree/2016.05/package/x11r7

This repo builds the entire system for you in a single command: https://github.com/cirosantilli/linux-kernel-module-cheat/tree/b134f3958884ce1fce2dd9d31d19ab0c0fbe9089#x11

Alternatively, here is a pre-parared .config file: https://github.com/cirosantilli/buildroot-configs/blob/44b45b5c7f68e44abcda360a2b980f8301901a9a/qemu_x86_64_x11_defconfig

This is the minimal X11 specific configurations I managed get away with is:

BR2_PACKAGE_XAPP_TWM=y
BR2_PACKAGE_XAPP_XCALC=y
BR2_PACKAGE_XAPP_XCLOCK=y
BR2_PACKAGE_XAPP_XEYES=y
BR2_PACKAGE_XAPP_XINIT=y
BR2_PACKAGE_XDRIVER_XF86_INPUT_KEYBOARD=y
BR2_PACKAGE_XDRIVER_XF86_INPUT_MOUSE=y
BR2_PACKAGE_XDRIVER_XF86_VIDEO_CIRRUS=y
BR2_PACKAGE_XDRIVER_XF86_VIDEO_FBDEV=y
BR2_PACKAGE_XDRIVER_XF86_VIDEO_VESA=y
BR2_PACKAGE_XORG7=y
BR2_PACKAGE_XSERVER_XORG_SERVER=y
BR2_PACKAGE_XTERM=y
BR2_TOOLCHAIN_BUILDROOT_CXX=y
BR2_TOOLCHAIN_BUILDROOT_WCHAR=y
BR2_USE_WCHAR=y

Here is how you can add those options to your existing .config: Is it possible to use config fragments with Buildroot's .config? | Stack Overflow

How I found the options out: make menuconfig, search option names with /, then work backwards dependes from xeyes.

Unfortunately, you still need to know what you are doing, mainly because of situations where two different packages implement an interface (e.g. X.Org Modular vs KDrive both of which implement an X11 server), and none is selected by default.

This article helped a lot: Building a tiny X.Org Linux System using Buildroot | agentoss.wordpress.com

Then just the usual:

make BR2_JLEVEL=$(nproc)
qemu-system-x86_64 \
    -enable-kvm \
    -M pc \
    -m 512 \
    -kernel output/images/bzImage \
    -drive file=output/images/rootfs.ext2,if=virtio,format=raw \
    -append root=/dev/vda \
    -net nic,model=virtio \
    -net user

And from inside QEMU:

root
startx

Image size: 28M.

Outcome

An archaic X11 system!

And it behaves just like on this video: https://upload.wikimedia.org/wikipedia/commons/transcoded/5/52/TWM_without_configuration.ogv/TWM_without_configuration.ogv.480p.webm

In particular, this archaic window manager does not have an X close button on menu bars: you had to:

  • click on the desktop
  • select "kill" from a menu
  • select the window you want to kill

startx then passes /etc/X11/xinit/xinitrc to xinit, which calls it after starting up the GUI. The default xinitrc contains:

twm &
xclock -geometry 50x50-1+1 &
xterm -geometry 80x50+494+51 &
xterm -geometry 80x20+494-0 &
exec xterm -geometry 80x66+0+0 -name login

which starts our window manager twm (try changing it for one of the other managers for which Buildroot has packages), and the programs we see on the screen. TODO what is that exec xterm part? Why the exec?

x11vnc

When you move away from the emulator to a real device, x11vnc dispenses you from buying a display: it opens the screen as a window in your host, and can even send mouse clicks to the device.

Enable the x11vnc package on Buildroot and rebuild.

To test on QEMU first, use the options (see also How to SSH from host to guest using QEMU? | Unix & Linux Stack Exchange ):

-net nic,model=virtio \
-net user,hostfwd=tcp::5901-:5900

then on guest startx, and run:

x11vnc

And back on host:

sudo apt-get install vinagre
vinagre localhost::5901

Outcome:

  • on left, QEMU running X11, x11vnc and glmark2
  • on right, vinagre on host, showing the exact same thing
  • I can click and interact with either one, and the other updates instantly

See also: How to set up Raspberry Pi without a monitor? | Raspberry Pi Stack Exchange

Display manager (failed attempt)

If you want to forget about the terminal completely, also enable:

  • Target packages
    • Graphic libraries and applications
      • X.Org X Window System: both click y and then enter to go in
        • X11R7 Applications
          • xconsole (run by xdm by default)
          • xdm

Now when you start QEMU, you are presented with a graphical login screen like "modern" distros:

TODO: cannot login. Username root / empty password was working for me on another test with ALL X11 packages installed. xdm puts logs under /var/log/xdm.log, and you can get a TTY shell to inspect it with: How can I ctrl-alt-f# to get to a TTY in a QEMU session? | Ask Ubuntu

The call chain that starts the display manager is:

  • /init (provided by BusyBox)
  • /etc/inittab line ::sysinit:/etc/init.d/rcS
  • /etc/init.d/rcS
  • /etc/init.d/S99xdm
  • /usr/bin/xdm
2 of 2
6

You will have to build X on your own. Begin by reading this X.Org wiki entry.

This guide is for developers who wish to build the X Window System from source. If your area of interest is limited to a single package, like a driver or an application, check with your O/S first for development facilities.

As for a package manager, you will need to choose one, satisfy all needed dependencies and then package stuff for it (just because you chose dpkg/rpm/whatever, does not mean that deb/RPM/... packages will magically work with your distro). Pacman, from Arch Linux, looks easy enough to build.

🌐
Krython
krython.com › post › configuring-x11-display-server
🖥️ Configuring X11 Display Server: Simple Guide | Krython
June 4, 2025 - Easy tutorial for setting up X11 display server in Alpine Linux. Perfect for beginners with step-by-step instructions and clear examples.
🌐
Sios
docs.us.sios.com › spslinux › 9.6.0 › en › topic › install-x11
Install x11 - LifeKeeper for Linux LIVE - 9.6.0
# yum install xorg-x11-server-Xorg xorg-x11-xauth -y Last metadata expiration check: 0:00:51 ago on Wed 18 Nov 2020 12:36:11 AM UTC. Dependencies resolved.
🌐
Snapcraft
snapcraft.io › x11-utils-snap
Install x11-utils on Linux | Snap Store
November 20, 2023 - x11-utils-snap.xwininfo · Choose your Linux distribution to get detailed installation instructions. If yours is not shown, get more details on the installing snapd documentation. Ubuntu 24.04 · Ubuntu 22.04 · Ubuntu 26.04 · Zorin OS 18 · Ubuntu 20.04 · Ubuntu 25.10 ·
🌐
University of Wyoming
uwyo.edu › data-science › resources › knowledge-base › x11-with-windows-subsystem-for-linux.html
X11 with Windows Subsystem for Linux
May 8, 2026 - Use the following command to download the X11 applications: ... sudo: This means either "superuser do" or "substitute user do". In essence, it is telling Linux your are running a command as a person of authority (e.g., an administrator). apt-get: "apt" is an acronym for "Advanced Package Tool". If you are familiar with R, it is kind of like using CRAN, but for Linux programs. "get" means you are telling apt to either install or upgrade a package.
🌐
LinuxVox
linuxvox.com › blog › install-x11-ubuntu
Installing X11 on Ubuntu: A Comprehensive Guide — linuxvox.com
Keep Packages Updated: Regularly update the X11-related packages to patch any security vulnerabilities. Installing X11 on Ubuntu is a crucial step for running graphical applications on your system. By following the steps outlined in this guide, you can easily install and configure X11, run graphical applications locally or remotely, and implement best practices for security.
🌐
openSUSE
software.opensuse.org › download › package
Install package X11:XOrg / xorg-x11
zypper addrepo https://download.opensuse.org/repositories/X11:XOrg/openSUSE_Factory/X11:XOrg.repo zypper refresh zypper install xorg-x11
🌐
Wills' World
dunedlin.wordpress.com › 2020 › 10 › 24 › a-minimal-x11-install
A Minimal X11 Install - Wills' World - WordPress.com
June 30, 2025 - # apt-get install xserver-xorg-core xserver-xorg-video-all xserver-xorg-input-all # apt-get install x11-xserver-utils x11-xkb-utils x11-utils xinit