LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 01-25-2007, 02:34 PM   #1
jakeslush
LQ Newbie
 
Registered: Jan 2007
Distribution: openSUSE 10.2, RHEL 3.0
Posts: 6

Rep: Reputation: 0
Unhappy 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?

 
Old 01-25-2007, 03:03 PM   #2
JDaniels
LQ Newbie
 
Registered: Jun 2004
Location: Salt Lake City, UT
Distribution: Slackware
Posts: 24

Rep: Reputation: Disabled
You need to export the display to your machine. On the remote machine:
Code:
export DIPLAY=your.ip:0.0

Last edited by JDaniels; 01-25-2007 at 03:04 PM.
 
Old 01-26-2007, 07:08 PM   #3
jakeslush
LQ Newbie
 
Registered: Jan 2007
Distribution: openSUSE 10.2, RHEL 3.0
Posts: 6

Original Poster
Rep: Reputation: 0
I typed the command you specified above and it does not recognize the export command. Any suggestions?
 
Old 01-29-2007, 04:39 PM   #4
JDaniels
LQ Newbie
 
Registered: Jun 2004
Location: Salt Lake City, UT
Distribution: Slackware
Posts: 24

Rep: Reputation: Disabled
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
 
Old 02-04-2007, 05:49 PM   #5
jakeslush
LQ Newbie
 
Registered: Jan 2007
Distribution: openSUSE 10.2, RHEL 3.0
Posts: 6

Original Poster
Rep: Reputation: 0
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....
 
Old 02-05-2007, 12:19 AM   #6
prasanta
Member
 
Registered: Mar 2005
Location: India
Distribution: Debian
Posts: 368

Rep: Reputation: 37
ssh -X <ip address>

I think that this should solve your problem.

--
Prasanta
 
  


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
I don't want emacs to run as a window! mimithebrain Linux - Software 3 11-07-2005 05:39 PM
emacs, xemacs, No pop-window dt4stat Linux - Newbie 7 03-18-2005 07:41 PM
running emacs in su mode wont open x window true_atlantis Linux - Software 2 05-05-2004 01:05 AM
edb (emacs database) won't open file - emacs 20 & 21 tip184 Linux - Software 0 04-03-2004 08:31 AM
Emacs gives a wierd error using the xterm window on my windows 98se machine direwolf20 Linux - Newbie 1 10-08-2003 09:03 AM


All times are GMT -5. The time now is 10:38 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration