LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-06-2018, 04:23 PM   #1
Coop_012
Member
 
Registered: Jan 2018
Location: US
Distribution: Debian 9.6 Stretch
Posts: 88

Rep: Reputation: Disabled
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.
 
Old 12-06-2018, 06:55 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 17,828

Rep: Reputation: 2401Reputation: 2401Reputation: 2401Reputation: 2401Reputation: 2401Reputation: 2401Reputation: 2401Reputation: 2401Reputation: 2401Reputation: 2401Reputation: 2401
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

Last edited by michaelk; 12-06-2018 at 06:57 PM.
 
Old 12-06-2018, 10:08 PM   #3
Coop_012
Member
 
Registered: Jan 2018
Location: US
Distribution: Debian 9.6 Stretch
Posts: 88

Original Poster
Rep: Reputation: Disabled
Okay thanks I’ll try it. This is for the ssh client correct? I’ll restart the daemon afterwards for good measure
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Ugly GTK, which package to install to make GTK programs look nice? the_pooch Slackware 7 07-07-2018 11:01 AM
Software problem in MAC: (<unknown>:29409): Gtk-WARNING **: cannot open display CarlHe Linux - Software 1 05-10-2016 05:49 PM
SSH Xfowarding [serial 3 error_code 9 request_code 55 minor_code 0] JUDOLIZARD Slackware 2 01-24-2010 12:28 AM
rmdir -rf does not seem to work in fc4 .what do i do?rm -p also doesnt seem to work vinay87 Linux - Newbie 2 05-09-2006 10:18 AM
GTK+ programs on Windows without having to install GTK+, GLib, etc Nylex Programming 2 02-19-2006 02:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:24 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration