LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   no new emacs window when ssh'ed (https://www.linuxquestions.org/questions/linux-newbie-8/no-new-emacs-window-when-sshed-522766/)

jakeslush 01-25-2007 01:34 PM

no new emacs window when ssh'ed
 
I just installed openSuSE 10.2 on my laptop and setup emacs from what was already included. When I use emacs from my machine, it pops up in a new window just fine. I then ssh'ed into my school network and used something similar to: emacs test.cpp &

The shell thinks it is opening a new window using emacs but nothing happens. I hit enter and it suspends what never was open. I dont know how to get that window to open. Can anyone help me out with this issue?

:scratch:

JDaniels 01-25-2007 02:03 PM

You need to export the display to your machine. On the remote machine:
Code:

export DIPLAY=your.ip:0.0

jakeslush 01-26-2007 06:08 PM

I typed the command you specified above and it does not recognize the export command. Any suggestions?

JDaniels 01-29-2007 03:39 PM

Sorry.. I spelled DISPLAY wrong. For a bash shell, it should be:
Code:

export DISPLAY=your.ip:0.0
If that doesn't work, try
Code:

setenv DISPLAY your.ip:0.0
You could also have ssh forward your display
Code:

ssh +x server.ip

jakeslush 02-04-2007 04:49 PM

Still nothing...
 
I've done what you said and the following happens,

Code:

linux2[3]% export DISPLAY=130.85.24.89:0.0
export: Command not found.
linux2[4]% setenv DISPLAY 130.85.24.89:0.0
linux2[5]% emacs test.cpp &
[1] 5276
linux2[6]% emacs: Cannot connect to X server 130.85.24.89:0.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.

I wasn't sure about the last one so I didn't do that. I'm not too familiar with linux so I couldn't locate the ip of my server.

I hope its not just user error....

prasanta 02-04-2007 11:19 PM

ssh -X <ip address>

I think that this should solve your problem.

--
Prasanta


All times are GMT -5. The time now is 11:00 PM.