LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Xfowarding on Mac with XQuartz, but cannot seem to open Gtk programs (https://www.linuxquestions.org/questions/linux-software-2/xfowarding-on-mac-with-xquartz-but-cannot-seem-to-open-gtk-programs-4175643782/)

Coop_012 12-06-2018 03:23 PM

Xfowarding on Mac with XQuartz, but cannot seem to open Gtk programs
 
Code:

coop@coop:~$ sudo synaptic
[sudo] password for coop:
Unable to init server: Could not connect: Connection refused

(synaptic:18615): Gtk-WARNING **: cannot open display: localhost:10.0
coop@coop:~$

coop@coop:~$ sudo gparted
Created symlink /run/systemd/system/-.mount → /dev/null.
Created symlink /run/systemd/system/boot.mount → /dev/null.
Created symlink /run/systemd/system/home.mount → /dev/null.
Created symlink /run/systemd/system/run-user-1000.mount → /dev/null.
Created symlink /run/systemd/system/run-user-112.mount → /dev/null.
Created symlink /run/systemd/system/tmp.mount → /dev/null.

(gpartedbin:18666): Gtk-WARNING **: cannot open display: localhost:10.0
Removed /run/systemd/system/-.mount.
Removed /run/systemd/system/boot.mount.
Removed /run/systemd/system/home.mount.
Removed /run/systemd/system/run-user-1000.mount.
Removed /run/systemd/system/run-user-112.mount.
Removed /run/systemd/system/tmp.mount.
coop@coop:~$

Basically, I cannot open GTK applications with xfowarding on mac. I'm assuning it has something to do with local host but I am not sure. Basic X programs like x clock work. So does firefox and even my xfce4-terminal.

michaelk 12-06-2018 05:55 PM

The problem is due to DISPLAY and/or XAUTHORITY environment variables not being set for sudo. Try this fix.

https://www.sbarjatiya.com/notes_wik...SSH_connection

Coop_012 12-06-2018 09:08 PM

Okay thanks I’ll try it. This is for the ssh client correct? I’ll restart the daemon afterwards for good measure


All times are GMT -5. The time now is 09:00 PM.