DebianThis forum is for the discussion of Debian Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
Distribution: Xubuntu 9.10, Gentoo 2.6.27 (AMD64), Darwin 9.0.0 (arm)
Posts: 1,152
Rep:
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?
Distribution: Xubuntu 9.10, Gentoo 2.6.27 (AMD64), Darwin 9.0.0 (arm)
Posts: 1,152
Rep:
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.