Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Remote X displays from Solaris

Status
Not open for further replies.

Bluecrack

MIS
Apr 9, 2001
180
US
I'm running Redhat 7.1 on my box a work and I am hoping to be able to run remote X sessions to a Solaris 8 server. I can successfully do it if I kill my X server and run

X -query <servername>

However I'd really like to be able to have my X server up and run the remote X session to the Solaris box. Does anyone know how I can do this?

thanks
Bluecrack
 
For each individual X-based program you can define in your environment where the GUI is displayed.
depending on the shell you are using either;
> export DISPLAY=IP:0.0
or
> setenv DISPLAY IP:0.0

then
> ./program &

This will run the GUI in the background on your local box and send it's display to a remote IP. Ian

&quot;IF&quot; is not a word it's a way of life
 
ianf,

Thanks for the info. I have it working but not quite the way I was expecting it to work. Exporting the display on Solaris is pretty straighforward and works fine. The more complicated part is configuring Linux to accept the remote connection. I actually had to start a seperate instance of the X server to accept remote connections. So now I can fire it all up but have to ALT-F8 to get to the Solaris windows.

Do you know how to configure Linux, specifically RedHat 7.1, to accept remote X connections on display 0?

Thanks,
Bluecrack
 
if you type &quot;xhost -&quot; then the solaris box will be able to connect to your X-server. this also means that anyone else can connect to it too so if you're worried about this then look at the docs for xhost. &quot;xhost +&quot; will block any connections again.
 
Already added the solaris server to the xhost database of authorized machines. But I still had to start X on display 1 to get a connection.

It's not that big of a deal. I was just wondering if it could be done.

Thanks,
Bluecrack
 
Hi,

If you mean run a complete cde session or suchlike (vs a single X app) from within XFree86, I don't think you can do this as such but you could maybe use virtual consoles to get something similar. In other words login and startx then ctl-alt-f2 to get another tty and login again then connect to solaris. Toggle the two gui sessions with ctl-alt-f7 (linux) and ctl-alt-f8 (solaris). This is just a thought - I haven't tested it.

If you were desperate you could install another linux or even windows with X-client on vmware under redhat and then connect to the solaris box from the virtual machine. See -->
Regards
 
Thanks all. I'll still with the solaris CDE GUI on the other virtual console.

Bluecrack
 
I want to use a solari machine to use matlab in a linux box, but I cannot run remote X sessions successfully. I have tried &quot;xhost +&quot; to add linux box to solari machine. I also &quot;setenv DISPLAY solari-machine:0.0&quot; for the linux machine I want to connect. After that, if I tried &quot;xterm&quot;, the command just hang on and nothing comes up.

Can you tell me what may be the problem?

thanks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top