Linux/X11 Forwarding: Difference between revisions
< Linux
(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 edit summary |
||
Line 1: | Line 1: | ||
== PuTTy and == | |||
VcXsrv Windows X Server | |||
https://sourceforge.net/projects/vcxsrv/ | |||
21.1.10 latest as of 2024.01.07: | |||
https://sourceforge.net/projects/vcxsrv/files/vcxsrv/21.1.10/ | |||
Local on system: | Local on system: | ||
Line 9: | Line 17: | ||
export LIBGL_ALWAYS_INDIRECT=1 | export LIBGL_ALWAYS_INDIRECT=1 | ||
== PuTTy and Xming == | |||
Installing/Configuring PuTTy and Xming | |||
https://www.geo.mtu.edu/geoschem/docs/putty_install.html | |||
== Firefox AppArmor == | |||
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: | If you happen to try and remove Snap's Firefox on Ubuntu 22, trying to fix the AppArmor issue, you may get this: | ||
Line 33: | Line 45: | ||
sudo apt install snapd | sudo apt install snapd | ||
sudo snap install firefox | sudo snap install firefox | ||
== keywords == |
Latest revision as of 23:30, 18 June 2025
PuTTy and
VcXsrv Windows X Server https://sourceforge.net/projects/vcxsrv/
21.1.10 latest as of 2024.01.07: https://sourceforge.net/projects/vcxsrv/files/vcxsrv/21.1.10/
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
PuTTy and Xming
Installing/Configuring PuTTy and Xming https://www.geo.mtu.edu/geoschem/docs/putty_install.html
Firefox AppArmor
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