LinuxQuestions.org
Visit Jeremy's Blog.
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 09-18-2008, 12:09 PM   #1
john test
Member
 
Registered: Jul 2008
Distribution: ubuntu 9.10
Posts: 527
Blog Entries: 1

Rep: Reputation: 35
X Windows Display issue - Second time around


Two ubuntu boxes
Source box = Ununtu 6 (LIVE CD) > U6 > 1192.168.1.101
Destination= ubuntu 7 > U7 > 192.168.1.102

On U7 > boot > xhost + > export DISPLAY=192.168.1.101:0.0
with display exported to U6 gedit hangs as if displaying on U6
On U7 sshd and X are running
On U6 > boot > export DISPLAY=0.0 > xhost +
On U6 sshd is NOT running but X is running (gives me an S srvr on U6??)

On U6 > ssh -x 192.168.1.102 (logs me in as Root on U7)
From U6 on U7 xhost fails to open display > export DISPLAY=0.0 AND xhost outputs "can connect from any host" on U6 display

With U7 display exported to 0.0 from U6 "gedit" will open a gedit window over on U7

THEN, from U6 on U7 via ssh as root on U7 export DISPLAY=192.168.1.101:0.0 should redirect graphic application to display on the U6 display??
but, it does not. I get "can not open DISPLAY=192.168.1.101:0.0

Looking for a step by step process to start an X server and an x client and ssh in and execute gedit, firefox, tec. across the LAN??

Thanks in advance! :-)
 
Old 09-18-2008, 02:46 PM   #2
David1357
Senior Member
 
Registered: Aug 2007
Location: South Carolina, U.S.A.
Distribution: Ubuntu, Fedora Core, Red Hat, SUSE, Gentoo, DSL, coLinux, uClinux
Posts: 1,302
Blog Entries: 1

Rep: Reputation: 107Reputation: 107
Quote:
Originally Posted by john test View Post
Two ubuntu boxes
Source box = Ununtu 6 (LIVE CD) > U6 > 1192.168.1.101
Destination= ubuntu 7 > U7 > 192.168.1.102

On U7 > boot > xhost + > export DISPLAY=192.168.1.101:0.0
with display exported to U6 gedit hangs as if displaying on U6
You need to run "xhost +" on U6 first to get this to work.

Quote:
Originally Posted by john test View Post
On U7 sshd and X are running
On U6 > boot > export DISPLAY=0.0 > xhost +
On U6 sshd is NOT running but X is running (gives me an S srvr on U6??)

On U6 > ssh -x 192.168.1.102 (logs me in as Root on U7)
Do you mean to use "-X" here? "-x" "Disables X11 forwarding."

Quote:
Originally Posted by john test View Post
Looking for a step by step process to start an X server and an x client and ssh in and execute gedit, firefox, tec. across the LAN??
I use the X server that comes with Cygwin. I create an "/etc/X0.hosts" file and add all the hosts I want to use to it. Then I ssh into the remote machine (without "-X"). I "export DISPLAY=X.X.X.X:0.0" where "X.X.X.X" is the IP address of the Cygwin machine. Then I run the X application and the GUI displays on the Cygwin machine.

From the man page for ssh (X11 FORWARDING section):
"The user should not manually set DISPLAY."

Try to get things working without messing with X11 forwarding first.
 
Old 09-20-2008, 04:55 PM   #3
john test
Member
 
Registered: Jul 2008
Distribution: ubuntu 9.10
Posts: 527
Blog Entries: 1

Original Poster
Rep: Reputation: 35
Thanks for the response!
Finally got a third load of cygwin/X to work, but its mickey mouse. X Window startup process seems to vary by iteration. Doesn't seem ready for prime time.
 
Old 09-22-2008, 02:04 PM   #4
David1357
Senior Member
 
Registered: Aug 2007
Location: South Carolina, U.S.A.
Distribution: Ubuntu, Fedora Core, Red Hat, SUSE, Gentoo, DSL, coLinux, uClinux
Posts: 1,302
Blog Entries: 1

Rep: Reputation: 107Reputation: 107
Quote:
Originally Posted by john test View Post
Thanks for the response!
Finally got a third load of cygwin/X to work, but its mickey mouse. X Window startup process seems to vary by iteration. Doesn't seem ready for prime time.
Well, I agree that the rendering is pretty ugly, but I have never found an application that would not work. It would probably get better if more people used it, but many people see the ugliness and say, "Bleh, not ready for prime time...".
 
  


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
NTP time sync with windows 2000 AD time csghosh Linux - Enterprise 7 02-24-2012 03:46 PM
why does time of windows chnages when linux time is set ankitp Linux - Newbie 3 08-04-2008 03:02 PM
Long time Windows users, first time Linux user Towjam LinuxQuestions.org Member Intro 1 06-21-2008 12:08 PM
Debian & Windows dual boot, system time issue Vigacmoe Debian 8 08-31-2006 12:14 AM
Display the date and time from another time zone lothario Linux - Software 4 07-31-2004 03:27 PM


All times are GMT -5. The time now is 05:25 AM.

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