Re: does simple "DISPLAY=" and "xhost +" not work anymore?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> Message: 13
> Date: Sat, 10 Feb 2007 13:30:03 -0500 (EST)
> From: "Robert P. J. Day" <rpjday@xxxxxxxxxxxxxx>
> Subject: Re: does simple "DISPLAY=" and "xhost +" not work anymore?
> To: For users of Fedora <fedora-list@xxxxxxxxxx>
> Message-ID:
> 	<Pine.LNX.4.64.0702101328380.5643@CPE00045a9c397f-CM001225dbafb6>
> Content-Type: TEXT/PLAIN; charset=US-ASCII
> 
> On Sat, 10 Feb 2007, Mikkel L. Ellertson wrote:
> i made sure both systems had their firewalling de-activated.  (yes, i
> know that's hysterically unsafe, but i was just trying to isolate the
> problem.)
> 
> > I think most people tunnel X connections over SSH now days - both
> > for security and because the compression speeds things up.
> >
> > As a side benefit, if you use "ssh -Y" to make connection to the
> > remote machine, you don't have to play with xhost of DISPLAY - ssh
> > takes care of this for you.
> 
> i'll give that a shot next time, but i'm still curious as to why this
> didn't work in the first place.
> 
> rday
> 
> -- 
> ========================================================================
> Robert P. J. Day

Out of the box, FC6 had GDM configured to not allow TCP connections...

[root@kaizen ~]# ps ax | grep gdm
 2620 ?        S      0:00 /usr/sbin/gdm-binary -nodaemon
 2660 ?        S      0:00 /usr/sbin/gdm-binary -nodaemon
 2664 ?        S      0:00 /usr/sbin/gdm-binary -nodaemon
 2667 tty7     Ss+    1:35 /usr/bin/Xorg :0 -br -audit 0 -auth /var/gdm/:0.Xauth -nolisten tcp vt7


Notice the last line--- "-nolisten tcp" is the important part.

vi /usr/share/gdm/defaults.conf

Change the line:

#DisallowTCP=true

to be:

DisallowTCP=false

Restart GDM by rebooting or by killing ALL the GDM processes... NOTE: 
THIS WILL LOG YOU OFF!!

When you log back in, you will see the changed process:

[crhea@kaizen ~]$ ps ax | grep gdm
 6605 ?        S      0:00 /usr/sbin/gdm-binary -nodaemon
 6634 ?        S      0:00 /usr/sbin/gdm-binary -nodaemon
 6646 ?        S      0:00 /usr/sbin/gdm-binary -nodaemon
 6651 tty7     Ss+    0:01 /usr/bin/Xorg :0 -br -audit 0 -auth /var/gdm/:0.Xauth vt7
 
Viola!  Redirecting your display will work as expected....

--- Cris


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux