Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
Hi I am newbie and i dont know what the problem is. I ssh on to a linux machine and
setenv DISPLAY mylocalhostname:0
emacs temp.temp
emacs: Cannot connect to X server mylocalhostname:0.
Check the DISPLAY environment variable or use `-d'.
Also use the `xhost' program to verify that it is set to permit
connections from your machine.
What machine are you ssh-ing from?
Is it a Mac? If it is, does it have X running?
If it does, did you run "xhost +<remote_box>"?
Did you enable X11 forwarding on the remote host?
If you did - what results do you get when you invoke
ssh with -X (or -Y)?
Thank you for your reply.
I ssh from a Redhat client machine to a server(Redhat) which has Xserver running on server machine.
I have tried enabling X11 Forwarding on the client machine too.How do i know if Xserver is enabled on the client machine. Do i need to edit any config files for this.
I tried ssh using - X and -Y option too. But i still get the same error.Could you let me know where am i going wrong.
Thank you for your reply.
I ssh from a Redhat client machine to a server(Redhat) which has Xserver running on server machine.
I have tried enabling X11 Forwarding on the client machine too.
Is it enabled on the server?
Quote:
Originally Posted by bluesharks
How do i know if Xserver is enabled on the client machine. Do i need to edit any config files for this.
If you're in a GUI you have xserver running ...
If your client is command-line only you're out of luck.
Quote:
Originally Posted by bluesharks
I tried ssh using - X and -Y option too. But i still get the same error.Could you let me know where am i going wrong.
In that case I'd say the "antique" approach w/ "export DISPLAY"
in the ssh session on the "server" and xhost +<server> on your
local workstation should just work (unless X11 traffic is being
blocked by a firewall).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.