1

Stressing 17.04.

I want to use VNC Connect to I can use my computer from my phone. However, I do not have a .Xauthority file. I saw the other question, "How do I create the .Xauthority file?" and it is for Ubuntu 10.10.

I'm stressing the difference between this question and that question because this isn't a dupe question; the .Xauthority file is bound to be vastly different from 7 years ago.

I have the .ICEauthority file but no .Xauthority file. I don't know what other information I need to provide, but I will if I can.

Amolith
  • 1,082

1 Answers1

1

Note that the GNOME display manager gdm3 does not use ~/.Xauthority so this may require an application-specific answer for VNC Connect. As the manual page says, "Upon session startup, GDM sets the XAUTHORITY environment variable to a session-specific file in /var/run/gdm3. Applications and scripts that assume this file is set to ~/.Xauthority will not work. To access the display you need both DISPLAY and XAUTHORITY variables."

I wound up on this page because the missing .Xauthority issue also arises when trying to run graphical applications as root on Wayland (Ubuntu GNOME 17.10). As described at https://wiki.archlinux.org/index.php/Running_X_apps_as_root, the fallback X server won't work when running programs as root, but you can fix this by first running xhost +local:. Possibly a similar approach will address the VNC Connect issue.