LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
LinkBack Search this Thread
Old 12-01-2005, 11:06 PM   #1
BrianK
Senior Member
 
Registered: Mar 2002
Location: Los Angeles, CA
Distribution: Debian, Ubuntu
Posts: 1,334

Rep: Reputation: 51
Can't open X apps when ssh'd in?


On my old computer running RH7.3, if I ssh into my file server, I can open an emacs session, no problem. On my new computer running Suse9.3, I can't seem to get it to work. I've tried setting the DISPLAY env var to <my_ip>:0.0 once I've logged into the file server, but still only get the non-x version of emacs. I know the server is forwarding X because it works on my old machine.

What should I be doing that I'm not?

Thanks.
 
Old 12-01-2005, 11:39 PM   #2
Vgui
Member
 
Registered: Apr 2005
Location: Canada
Distribution: Slackware
Posts: 496

Rep: Reputation: 31
Instead of manually setting your DISPLAY variable, why not try ssh with the -X switch?
Code:
ssh -X user@ipaddress
If you are sure X11 Forwarding is enabled, then maybe the above command will work...
 
Old 12-02-2005, 01:34 AM   #3
spooon
Senior Member
 
Registered: Aug 2005
Posts: 1,755

Rep: Reputation: 46
or -Y with modern versions of OpenSSH
 
Old 12-02-2005, 04:00 AM   #4
malo_umoran
Member
 
Registered: Dec 2003
Distribution: Desktop: Slackware 13.1 &13.37 | Server: Debian 6.0
Posts: 270

Rep: Reputation: 32
Quote:
Originally posted by Vgui
Instead of manually setting your DISPLAY variable, why not try ssh with the -X switch?
Code:
ssh -X user@ipaddress
If you are sure X11 Forwarding is enabled, then maybe the above command will work...
that a standard command which usually work without problems.

just change on your server in /etc/ssh/sshd_config the "X11Forwarding" to "yes".
and after you login over ssh, do not change DISPLAY because it is already set.


I am working pretty often this way.

M.
 
Old 12-02-2005, 01:10 PM   #5
BrianK
Senior Member
 
Registered: Mar 2002
Location: Los Angeles, CA
Distribution: Debian, Ubuntu
Posts: 1,334

Original Poster
Rep: Reputation: 51
Both of those options worked. I didn't know about the -X option, which worked fine. However, by changing X11 forwarding to "yes" on the client machine (in my case, the Sus9.3 box), X finally started going through... I thought that setting only mattered on the server.
... assuming the thing I'm connecting to is the server and the thing I'm connecting from is the client.

Thanks!
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Finding out who ssh'd into my system joeman3429 Linux - Networking 3 10-14-2005 08:17 PM
cannot open any gui apps while in Internet! deepclutch Debian 4 08-18-2005 03:36 AM
How to open apps in maximized windows in ICEWM umk Debian 1 03-11-2005 09:22 AM
kde tries to open apps 2 times instead of one =X¥®µ§= Linux - Software 4 07-02-2004 11:31 AM
open zaurus question about apps? Brain Drop Linux - Laptop and Netbook 0 12-19-2003 05:44 PM


All times are GMT -5. The time now is 05:06 PM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration