Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Servers & Networking
FedoraForum Search

Forgot Password? Join Us!

Servers & Networking Discuss any Fedora server problems and Networking issues such as dhcp, IP numbers, wlan, modems, etc.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 20th October 2009, 12:34 AM
snowmanwx Offline
Registered User
 
Join Date: Oct 2009
Posts: 3
linuxfedorafirefox
can't communicate fully with other computers

I downloaded and installed a new copy of Fedora 11 last week onto a new computer (hereafter "proximate"). I also have a remote computer without a monitor running an outdated version of Red Hat Linux (hereafter "remote"). To manage the processes on remote graphically, I ssh from proximate into remote; this connection succeeds without incident in transmitting text (including commands) between the two computers; however, the command "gnome-session" returns:

(gnome-session:15789): Gtk-WARNING **: cannot open display:

(The numbers apparently represent the process identifier and vary from instance to instance.) A similar warning (and no accompanying graphics) occurs whenever I attempt to start any graphical user interface from remote via ssh from proximate. The issue almost certainly lies with proximate; remote successfully communicated graphics to the ancient box that proximate replaces.

Interestingly, I cannot communicate via ssh from remote to proximate (within a secure shell from proximate to remote). If I execute /usr/sbin/sshd on proximate as root, then I can login, but even then I cannot execute any commands.

Consider the following output:

[snowmanwx@proximate ~]$ su
Password:
[root@proximate jpetre]# ssh remote
root@remote's password:
Last login: Mon Oct 19 12:10:22 2009 from proximate
[root@aqmodel ~]# gnome-session

(gnome-session:15879): Gtk-WARNING **: cannot open display:
[root@remote ~]# ssh proximate
root@proximate's password:
Last login: Mon Oct 19 18:24:58 2009 from remote
Connection to proximate closed.
[root@remote ~]#


If I execute ssh -vvv proximate from remote to proximate, then I get a lengthy output that ultimately ends with "debug1: Exit status 254."



What must I do to communicate both text and graphics among my computers? Thank you for any assistance.
Reply With Quote
  #2  
Old 20th October 2009, 12:57 AM
snowmanwx Offline
Registered User
 
Join Date: Oct 2009
Posts: 3
linuxfedorafirefox
Just fixed the second half...maybe

I apparently (at least partially and incipiently) resolved the issue with ssh from proximate to remote and thence back to proximate . The solution involves changing settings to enable ssh in system-config-selinux (accessible via System > Administration > SELinux Management). Under "Status," I changed the enforcing mode to "permissive," and under "Boolean," I checked "active" beside both "ssh" modules. I'm not sure why it worked, but that's conceivably a potential solution.

The gnome-session error unfortunately yet remains, and the two errors therefore apparently aren't connected.
Reply With Quote
  #3  
Old 20th October 2009, 12:59 AM
jpollard Online
Registered User
 
Join Date: Aug 2009
Location: Waldorf, Maryland
Posts: 6,105
linuxfedorafirefox
Do the following:
First verify that the sshd configuration on the server allows X window forwarding. If it is commented
out or disabled enable it:

/etc/ssh/sshd_conf
...
#AllowAgentForwarding yes
#AllowTcpForwarding yes
#GatewayPorts no
#X11Forwarding no <---- shows the default
X11Forwarding yes <---- enable X11 forwarding
#X11DisplayOffset 10
#X11UseLocalhost yes
#PrintMotd yes
....

Restart the sshd service:
service sshd restart

You may also need to change firewall configuration to permit incoming ssh, but I suspect you
already have that.

Now on the workstation/whatever connect to the remote server with:

ssh -X remote

After connecting verify that you have an X display defined:

echo $DISPLAY

The result should be: "localhost:10.0" or something similar (10.0 is the first display,
11.0 should be the second... depending on how many connections there are).

The default sshd configuration is to not forward X sessions. A problem you MAY have with
you gnome-session is that you do not truly have a session. When you login on the workstation, you
are starting a session. A remote login to another system does not alter that since you are forwarding
X connections to your workstation (with a gnome session already active). Trying to start a second
session SHOULD give you an error (though I don't know exactly what the error would be). If I run
the "twm" window manager while logged in using gnome I get:

$ twm
twm: another window manager is already running. on screen 0?
twm: unable to find any unmanaged video screens.
$

The error is caused by the fact that a window manager is already connected to your X server, and
will conflict with another window manager. Usually when this happens to me I see something like
"window manager already active" and then the application exits.

You can however, run other applications - some that may have a problem are gnome applets and
such, since they may depend on local window manager support, but who knows.

Last edited by jpollard; 20th October 2009 at 01:26 AM.
Reply With Quote
  #4  
Old 20th October 2009, 01:23 AM
snowmanwx Offline
Registered User
 
Join Date: Oct 2009
Posts: 3
linuxfedorafirefox
wow, jpollard. I am such a dunce. Your solution works perfectly. Thanks. I didn't think it would come so soon.
Reply With Quote
Reply

Tags
communicate, computers, fully

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Communicate between XP and Fedora 6 focus72050 Hardware & Laptops 4 18th April 2007 03:34 PM
php program to communicate with another pc F8S Programming & Packaging 1 5th October 2006 10:29 AM
Logitech Communicate STX WebCam FC5 jimbou Hardware & Laptops 0 11th August 2006 04:11 PM
PHP can't communicate w/ MySQL Snowflake Using Fedora 6 21st July 2006 04:31 AM
How to use Bluetooth PAN to communicate in Fedora 3 chen8002004 Servers & Networking 0 11th January 2006 01:42 AM


Current GMT-time: 01:38 (Wednesday, 22-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat