Linux/X11 Forwarding: Difference between revisions

From Omnia
Jump to navigation Jump to search
(Created page with " Local on system: DISPLAY=localhost:0.0 Using Putty/Kitty with VcXsrv: DISPLAY=localhost:10.0 Most simple X11 programs like xterm, xclock will just work with default settings. Some, like gvim, need this always redirect GL setting: <ref>https://github.com/microsoft/WSL/issues/8791</ref> export LIBGL_ALWAYS_INDIRECT=1 Some programs like Firefox just refuse to X11 forward, due to AppArmor restrictions. Tried killing AppArmor but it made the system sad, and Firefox t...")
(No difference)

Revision as of 23:11, 18 June 2025

Local on system:

DISPLAY=localhost:0.0

Using Putty/Kitty with VcXsrv:

DISPLAY=localhost:10.0

Most simple X11 programs like xterm, xclock will just work with default settings. Some, like gvim, need this always redirect GL setting: [1]

export LIBGL_ALWAYS_INDIRECT=1

Some programs like Firefox just refuse to X11 forward, due to AppArmor restrictions. Tried killing AppArmor but it made the system sad, and Firefox then complained about not having AppArmor working. Sigh.


---

If you happen to try and remove Snap's Firefox on Ubuntu 22, trying to fix the AppArmor issue, you may get this:

sudo snap remove firefox
sudo apt install firefox
firefox &
 ...
 Command '/usr/bin/firefox' requires the firefox snap to be installed.
 Please install it with:
 snap install firefox
sudo snap install firefox
  snap "firefox" is already installed, see 'snap help refresh'

This worked to resolve it: [2]

sudo apt remove --purge snapd
sudo umount /var/snap/firefox/common/host-hunspell
sudo apt remove --purge snapd
sudo apt install snapd
sudo snap install firefox