I have a CentOS server at home and want to view the X display on a laptop running Ubuntu, and not having much success. Here's what's been tried so far: I ran this command on the CentOS server: export DISPLAY=192.168.0.18:0.0 And ran this command on the Ubuntu laptop: xauth +192.168.0.2 When I try to run, say, xclock on the Ubuntu laptop, this is the error message I'm getting: [root at centos-ws ~]# xclock Error: Can't open display: 192.168.0.18:0.0 I'm assuming there's an important little detail I'm missing somewhere, but don't know what. Any suggestions? Paul
techlists at comcast.net wrote:> I have a CentOS server at home and want to view the X display on a laptop running Ubuntu, and not having much success. > > Here's what's been tried so far: > > I ran this command on the CentOS server: > > export DISPLAY=192.168.0.18:0.0 > > > And ran this command on the Ubuntu laptop: > > xauth +192.168.0.2 > > > When I try to run, say, xclock on the Ubuntu laptop, this is the error message I'm getting: > > [root at centos-ws ~]# xclock > Error: Can't open display: 192.168.0.18:0.0 > > I'm assuming there's an important little detail I'm missing somewhere, but don't know what. > > Any suggestions? > > Paul > _______________________________________________ > CentOS mailing list > CentOS at centos.org > http://lists.centos.org/mailman/listinfo/centos > >Hi Are you using ssh for the connection if so ssh -X should tunnel X for you. You may need to check the sshd.conf on the server you are connecting to has X11Forwarding yes
> Any suggestions?Run 'echo $DISPLAY' on your laptop. Are you using ssh or telnet? If you are using ssh, it can handle that for you automatically.
n Wed, 2007-10-10 at 02:14 +0000, techlists at comcast.net wrote:> I have a CentOS server at home and want to view the X display on a laptop running Ubuntu, and not having much success. > > Here's what's been tried so far: > > I ran this command on the CentOS server: > > export DISPLAY=192.168.0.18:0.0ssh -X -Y centos xclock &
-------------- Original message ---------------------- From: Ow Mun Heng <Ow.Mun.Heng at wdc.com>> n Wed, 2007-10-10 at 02:14 +0000, techlists at comcast.net wrote: > > I have a CentOS server at home and want to view the X display on a laptop > running Ubuntu, and not having much success. > > > > Here's what's been tried so far: > > > > I ran this command on the CentOS server: > > > > export DISPLAY=192.168.0.18:0.0 > > > ssh -X -Y centos > > xclock &I tried that and am getting this error message. Just ran an nmap scan on 192.168.0.18 and the X server port doesn't appear to be open. How is that enabled? connect 192.168.0.18 port 6000: Connection refused Paul
On 10/9/07, techlists at comcast.net <techlists at comcast.net> wrote:> I have a CentOS server at home and want to view the X display on a laptop running Ubuntu, and not having much success. > > Here's what's been tried so far: > > I ran this command on the CentOS server: > > export DISPLAY=192.168.0.18:0.0 > > And ran this command on the Ubuntu laptop: > > xauth +192.168.0.2 > > When I try to run, say, xclock on the Ubuntu laptop, this is the error message I'm getting: > > [root at centos-ws ~]# xclock > Error: Can't open display: 192.168.0.18:0.0 > > I'm assuming there's an important little detail I'm missing somewhere, but don't know what. > > Any suggestions? > > PaulOn the CentOS box, edit /etc/ssh/sshd_config to add the line: X11Forwarding yes Restart sshd by service sshd restart>From the Ubuntu box, connect to CentOS by:ssh -Y centosbox (use -Y instead of -X, see man ssh for the reason) There is no need to set DISPLAY as pointed out earlier. Akemi
-------------- Original message ---------------------- From: John R Pierce <pierce at hogranch.com>> techlists at comcast.net wrote: > > -------------- Original message ---------------------- > > From: Ow Mun Heng <Ow.Mun.Heng at wdc.com> > > > >> n Wed, 2007-10-10 at 02:14 +0000, techlists at comcast.net wrote: > >> > >>> I have a CentOS server at home and want to view the X display on a laptop > >>> > >> running Ubuntu, and not having much success. > >> > >>> Here's what's been tried so far: > >>> > >>> I ran this command on the CentOS server: > >>> > >>> export DISPLAY=192.168.0.18:0.0 > >>> > >> ssh -X -Y centos > >> > >> xclock & > >> > > > > I tried that and am getting this error message. Just ran an nmap scan on > 192.168.0.18 and the X server port doesn't appear to be open. How is that > enabled? > > > > connect 192.168.0.18 port 6000: Connection refused > > > > its tunnneld from localhost via SSH > > you don't mess with setting DISPLAY at all, the ssh -X session should do > that for you, DISPLAY will be set to something like... > > $ echo $DISPLAY > localhost:11.0 > > [where the :11 will be different for each ssh session]Thanks to John, Akemi and Ow. That seems to have worked. One other question. If a program is already running on the remote machine and you want to move the display to the local machine, can that be done? i.e. I have Thunderbird already running on the remote machine, and would like to move it to the local machine. Would that work? Or would it be necessary to kill the remote process and re-start it with the tunneled X session? Thanks, Paul
Salam, Why dont u enable RDP on centOS (running GUI), and then using ubunto with this path Applications-->internet-->Terminal Server Client Regards, Umair Shakil ETD On 10/10/07, techlists at comcast.net <techlists at comcast.net> wrote:> > I have a CentOS server at home and want to view the X display on a laptop > running Ubuntu, and not having much success. > > Here's what's been tried so far: > > I ran this command on the CentOS server: > > export DISPLAY=192.168.0.18:0.0 > > > And ran this command on the Ubuntu laptop: > > xauth +192.168.0.2 > > > When I try to run, say, xclock on the Ubuntu laptop, this is the error > message I'm getting: > > [root at centos-ws ~]# xclock > Error: Can't open display: 192.168.0.18:0.0 > > I'm assuming there's an important little detail I'm missing somewhere, but > don't know what. > > Any suggestions? > > Paul > _______________________________________________ > CentOS mailing list > CentOS at centos.org > http://lists.centos.org/mailman/listinfo/centos >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.centos.org/pipermail/centos/attachments/20071010/4765cc56/attachment-0004.html>
umair shakil wrote:> Why dont u enable RDP on centOS (running GUI), and then using ubunto > with this pathRDP is a Microsoft Windows Remote Desktop Protocol. what good would that be for linux to linux ??!?
On 10/10/07, techlists at comcast.net <techlists at comcast.net> wrote:> I have a CentOS server at home and want to view the X display on a laptop running Ubuntu, and not having much success. > > Here's what's been tried so far: > > I ran this command on the CentOS server: > > export DISPLAY=192.168.0.18:0.0 > > > And ran this command on the Ubuntu laptop: > > xauth +192.168.0.2 > > > When I try to run, say, xclock on the Ubuntu laptop, this is the error message I'm getting: > > [root at centos-ws ~]# xclock > Error: Can't open display: 192.168.0.18:0.0 > > I'm assuming there's an important little detail I'm missing somewhere, but don't know what. > > Any suggestions?I often run into this when I forget to install xorg-x11-xauth on the server. I'd suggest you check that with 'rpmquery xorg-x11-xauth' and otherwise install it, then try a new ssh -Y login regards, Bent> > Paul > _______________________________________________ > CentOS mailing list > CentOS at centos.org > http://lists.centos.org/mailman/listinfo/centos >
On 10/10/07, umair shakil <umairshakeel at gmail.com> wrote:> Why dont u enable RDP on centOS (running GUI), and then using ubunto with > this pathCould you please provide us ignorants with a link to an RDP server for Linux?> Umair Shakil > ETDAre you the same Umair Shakil as the one in <http://www.umairshakil.net/linux.html>? That explains a few things ;-)
I think you probably went from Linux to Windows, not from Windows to Linux. There is an RDP *client* for Linux that works quite well with Windows Remote Desktop, but RDP/Terminal Services is completely a Microsoft thing. Paul -------------- Original message ---------------------- From: "umair shakil" <umairshakeel at gmail.com>> Salam, > > Well, i have only used RDP as windows to linux (desktop), there should be no > issue... > for linux to linux, well x11 forwrding through ssh seems to be issue with > that.... not used > if i try i will let u know > > There is also another way if u can try.... > > www.nomachine.com and go to download section. > > U can find all details here, how to install, it also has client for ubunto. > what u will > do is to install the server, install the client on ur ubunto, and then use > it... it really very amazing i have used this.... > > Regards, > > Umair Shakil > ETD > > On 10/10/07, John R Pierce <pierce at hogranch.com> wrote: > > > > umair shakil wrote: > > > Why dont u enable RDP on centOS (running GUI), and then using ubunto > > > with this path > > > > > > > > RDP is a Microsoft Windows Remote Desktop Protocol. what good would > > that be for linux to linux ??!? > > > > > > _______________________________________________ > > CentOS mailing list > > CentOS at centos.org > > http://lists.centos.org/mailman/listinfo/centos > >-------------- next part -------------- An embedded message was scrubbed... From: "umair shakil" <umairshakeel at gmail.com> Subject: Re: [CentOS] How to export X displays Date: Wed, 10 Oct 2007 04:33:54 +0000 Size: 3610 URL: <http://lists.centos.org/pipermail/centos/attachments/20071010/a3472b27/attachment-0004.mht>
On Wednesday 10 October 2007, techlists at comcast.net wrote:> I think you probably went from Linux to Windows, not from Windows to Linux. > There is an RDP *client* for Linux that works quite well with Windows > Remote Desktop, but RDP/Terminal Services is completely a Microsoft thing.No, there is xrdp which allows a Linux box to serve RDP sessions. See http://xrdp.sourceforge.net/ -- Lamar Owen Chief Information Officer Pisgah Astronomical Research Institute 1 PARI Drive Rosman, NC 28772 (828)862-5554 www.pari.edu