You are not logged in.

#1 2021-10-04 13:54:05

krakln
Member
Registered: 2015-10-01
Posts: 10

Window manager crashes after connecting to VPN

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

#2 2021-10-04 15:09:53

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,244

Re: Window manager crashes after connecting to VPN

hostnamectl

Offline

#3 2021-10-05 07:38:28

krakln
Member
Registered: 2015-10-01
Posts: 10

Re: Window manager crashes after connecting to VPN

seth wrote:
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 archlinux

Do I need to adjust some VPN settings not to have hostname changed?

Offline

#4 2021-10-05 07:48:11

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,244

Re: Window manager crashes after connecting to VPN

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

#5 2021-10-05 08:00:46

krakln
Member
Registered: 2015-10-01
Posts: 10

Re: Window manager crashes after connecting to VPN

Thanks @seth
It is working fine after setting static hostname

Offline

#6 2021-10-05 13:04:27

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,244

Re: Window manager crashes after connecting to VPN

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

Board footer

Powered by FluxBB