emacs Xserver issue
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. Could someone help me fix this. |
More input, please :}
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)? Cheers, Tink |
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. |
Quote:
Quote:
If your client is command-line only you're out of luck. Quote:
Cheers, Tink |
Yes it is enabled on the server as when i had my old computer i was able to do that.
I am doing it from GUI. Is there a any alternative way to get this fixed or do i have to install any packages? |
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). Cheers, Tink |
All times are GMT -5. The time now is 10:12 AM. |