You are not logged in.
Hi. After the last update everything is working fine until I connect to VPN (openvpn). Once I connect I can't open any GUI apps I got one of the following errors
- Unable to open X display.
- Could not connect: Connection refused. Error: cannot open display: :0
- Can't connect to X11 window server using ':0' as the value of the DISPLAY variable.
Everything gets back to normal when I turn VPN connection off.
Offline
hostnamectlOffline
hostnamectl
Before connecting to VPN
me@archlinux ~ $ hostnamectl
Static hostname: n/a
Transient hostname: archlinux
Icon name: computer-desktop
Chassis: desktop
Machine ID: ....
Boot ID: ...
Operating System: Arch Linux
Kernel: Linux 5.14.8-arch1-1
Architecture: x86-64
Hardware Vendor: To Be Filled By O.E.M.
Hardware Model: To Be Filled By O.E.M.After connecting to VPN
me@archlinux ~ $ hostnamectl
Static hostname: n/a
Transient hostname: 172-127-1-6.abc.bac.etc.etc
Icon name: computer-desktop
Chassis: desktop
Machine ID: ...
Boot ID: ...
Operating System: Arch Linux
Kernel: Linux 5.14.8-arch1-1
Architecture: x86-64
Hardware Vendor: To Be Filled By O.E.M.
Hardware Model: To Be Filled By O.E.M.After changing manually back to archlinux it starts working fine
sudo hostnamectl --transient set-hostname archlinuxDo I need to adjust some VPN settings not to have hostname changed?
Offline
Set a static hostname, you don't want NM to juggle that around willy-nilly under no circumstances (because it amongst others breaks the X11 connection)
https://wiki.archlinux.org/title/Networ … e_hostname
Offline
Thanks @seth
It is working fine after setting static hostname
Offline
Please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.
Offline