LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 06-10-2005, 03:01 PM   #1
zero79
Member
 
Registered: Nov 2003
Location: Ohio
Distribution: Debian Unstable
Posts: 460

Rep: Reputation: 30
Question need help running remote X applications


Hi,

I need help allowing remote X applications to run on my local sarge box. As a simple test, I tried to get a local X application running on my local machine via setting the DISPLAY variable. The application runs fine if I don't define DISPLAY, but fails if I try to use localhost for DISPLAY. For example:

Code:
$ gedit
$ xhost +localhost
localhost being added to access control list
$ DISPLAY=localhost:0.0 gedit

(gedit:4051): Gtk-WARNING **: cannot open display:
Since I can't get local X applications running like this, I doubt I can get remote applications running similarly.

Not sure if it matters, but here is my /etc/hosts.deny

Code:
# /etc/hosts.deny: list of hosts that are _not_ allowed to access the system.
#                  See the manual pages hosts_access(5), hosts_options(5)
#                  and /usr/doc/netbase/portmapper.txt.gz
and /etc/hosts.allow

Code:
# /etc/hosts.allow: list of hosts that are allowed to access the system.
#                   See the manual pages hosts_access(5), hosts_options(5)
#                   and /usr/doc/netbase/portmapper.txt.gz

service:host
ALL:127.0.0.1
Thanks for any thoughts.

zero

Last edited by zero79; 06-10-2005 at 03:06 PM.
 
Old 06-10-2005, 03:28 PM   #2
johnson_steve
Senior Member
 
Registered: Apr 2005
Location: BrewCity, USA (Milwaukee, WI)
Distribution: Xubuntu 9.10, Gentoo 2.6.27 (AMD64), Darwin 9.0.0 (arm)
Posts: 1,152

Rep: Reputation: 46
you shouldn't have to do any of that to run remote x apps just:

ssh -X 192.168.0.1 (or whatever the ip)

and it should take care of all the forwarding for you. have you actually tried this with another machine? or do you just have the one computer? if so why would you need to run remote x apps?
 
Old 06-10-2005, 03:51 PM   #3
zero79
Member
 
Registered: Nov 2003
Location: Ohio
Distribution: Debian Unstable
Posts: 460

Original Poster
Rep: Reputation: 30
i tried running X apps from a remote system, and it didn't work, which is why i tried something simpler.

I tried your approach, but I still can't run X applications.

Code:
$ gedit
$ ssh -X localhost
Linux 2.6.8-2-686 #1 Thu May 19 17:53:30 JST 2005 i686 GNU/Linux
$ gedit

(gedit:4158): Gtk-WARNING **: cannot open display:
 
Old 06-10-2005, 04:38 PM   #4
johnson_steve
Senior Member
 
Registered: Apr 2005
Location: BrewCity, USA (Milwaukee, WI)
Distribution: Xubuntu 9.10, Gentoo 2.6.27 (AMD64), Darwin 9.0.0 (arm)
Posts: 1,152

Rep: Reputation: 46
whats in the sshd_config on the server side? maybe it's not set to allow x forwarding. why would trying to emulate x forwarding by using one machine be simpler? if anything I would say that that would be more complicated and less likely to work then using 2 computers.
 
Old 06-11-2005, 09:27 PM   #5
zero79
Member
 
Registered: Nov 2003
Location: Ohio
Distribution: Debian Unstable
Posts: 460

Original Poster
Rep: Reputation: 30
ok, i tried loging in locally to my home sarge box (no extra security configuration) with "ssh -X localhost" and i was able to launch X apps correctly.

i used bastille to lock down my work system, so i just need to figure out which settings i need to relax. is there a way to use bastille to restore default settings? thanks.

Last edited by zero79; 06-11-2005 at 09:30 PM.
 
Old 06-11-2005, 09:55 PM   #6
johnson_steve
Senior Member
 
Registered: Apr 2005
Location: BrewCity, USA (Milwaukee, WI)
Distribution: Xubuntu 9.10, Gentoo 2.6.27 (AMD64), Darwin 9.0.0 (arm)
Posts: 1,152

Rep: Reputation: 46
ive never used bastille
 
  


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
Remote applications nderitualex Fedora 1 10-28-2005 05:14 AM
Remote applications nderitualex Linux - Newbie 2 10-28-2005 04:03 AM
running X applications on remote machine when logged in via ssh servnov Linux - General 1 08-15-2005 08:53 PM
Switching Applications to remote display vipermuffin Linux - General 1 05-13-2004 04:26 AM
running GUI applications on remote client bbresc512 Linux - Networking 9 04-25-2004 05:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 11:02 AM.

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
Open Source Consulting | Domain Registration