LinuxQuestions.org
Review your favorite Linux distribution.
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 10-21-2006, 06:18 PM   #1
commander_crash
LQ Newbie
 
Registered: Oct 2006
Distribution: gentoo, ubuntu, fedora
Posts: 5

Rep: Reputation: 0
forwarding CDE from Solaris to X.org?


Does anyone know how I can forward the CDE desktop from a Solaris box to an X server running on linux (red hat or ubuntu)?

I've tried:
ssh -X <server>
Xsun

And get:
Fatal server error:
Server already running !!!

I'm trying to avoid using XDMCP such as:
Xnest -query <server>
or
X -query <server>

As our applications don't always work with that approach and I want to be able to go through our firewall.

Any suggestions?
 
Old 10-22-2006, 01:54 AM   #2
Jerre Cope
Member
 
Registered: Oct 2003
Location: Texas (central)
Distribution: ubuntu,Slackware,knoppix
Posts: 323

Rep: Reputation: 37
Xnest

You probably are looking for Xnest

Something like:

ssh -X theserver

$Xnest :1 -query localhost

You may need to install Xnest
 
Old 10-23-2006, 12:57 AM   #3
commander_crash
LQ Newbie
 
Registered: Oct 2006
Distribution: gentoo, ubuntu, fedora
Posts: 5

Original Poster
Rep: Reputation: 0
I'll look into installing Xnest, in the meantime,I found out that we have Exceed on the PCs in the office and they issue a command to the solaris box something like this:

rexec olwm

Is there any way I could get something like that working with my Xserver?

It's not as simple as:
ssh -X <server>
olwm

Because it says that a server is already running on the display.
 
Old 10-28-2006, 05:44 AM   #4
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.3, Oracle Linux, Mint
Posts: 9,724

Rep: Reputation: 434Reputation: 434Reputation: 434Reputation: 434Reputation: 434
Why are you trying to avoid xdmcp, which I believe does just what you need ?
 
Old 10-28-2006, 11:10 AM   #5
frob23
Senior Member
 
Registered: Jan 2004
Location: Roughly 29.467N / 81.206W
Distribution: OpenBSD, Ubuntu, FreeBSD
Posts: 1,449

Rep: Reputation: 48
First you start a new instance of X on your local computer. Then you set that as the default display for the shell session you're in. Then you use the "ssh -X" command. Finally you issue the window manager start command.

Code:
X :1 &
env DISPLAY=:1 ssh -X user@host
olwm &
The first command starts a new X server on your local machine. The second says to use that for the DISPLAY variable for the ssh command, which starts X forwarding to it and logs you into that machine. Note: this will probably switch you to the X session a couple times during this process. Use <ctl>-<alt>-<f1> or <f6> or whatever it takes to get you to the place where you were typing these commands. By default, I use <f1> just so I'm not starting a new X session from inside X.

The last command starts the window manager, it will open and run on the new display.

I use this occassionally and it works just fine.
 
Old 10-29-2006, 12:40 AM   #6
commander_crash
LQ Newbie
 
Registered: Oct 2006
Distribution: gentoo, ubuntu, fedora
Posts: 5

Original Poster
Rep: Reputation: 0
Thanks frob23! That worked nearly perfectly - one piece of software is a little finicky but that might be because of the display resolution.
 
Old 10-29-2006, 02:49 AM   #7
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.3, Oracle Linux, Mint
Posts: 9,724

Rep: Reputation: 434Reputation: 434Reputation: 434Reputation: 434Reputation: 434
olwm isn't launching CDE, you need to run dtwm instead, but I guess you already know that.
 
Old 10-29-2006, 02:37 PM   #8
commander_crash
LQ Newbie
 
Registered: Oct 2006
Distribution: gentoo, ubuntu, fedora
Posts: 5

Original Poster
Rep: Reputation: 0
With both CDE and OLWM I get an error when running two apps. I can get one of the apps to load under XDMCP, but sometimes it's not drawing the graphics correctly (Fedora doesn't, but Xubuntu did and gentoo did).

The error says:

Quote:
server: X Error of failed request: BadValue (integer parameter out of range for operation)
Major opcode of failed request: 53 (X_CreatePixmap)
Value in failed request: 0x8
Serial number of failed request: 1178
Current serial number in output stream: 1521
Any ideas? Basically I can run just about everything but this legacy software. Could it be a font issue?

Also under Fedora Core 6, the SSH forwarding looks to be blocked. I tried turning off the firewall, but it continues to not go through.
 
Old 10-29-2006, 04:12 PM   #9
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.3, Oracle Linux, Mint
Posts: 9,724

Rep: Reputation: 434Reputation: 434Reputation: 434Reputation: 434Reputation: 434
More likely a bug in this legacy application.
 
Old 10-30-2006, 11:08 AM   #10
commander_crash
LQ Newbie
 
Registered: Oct 2006
Distribution: gentoo, ubuntu, fedora
Posts: 5

Original Poster
Rep: Reputation: 0
Now my follow up, I have to make this work on fedora core 6 for another staff member. Using the same steps as listed above:

%:Xnest :2
%:env DISPLAY=:2 ssh -X <ip>
server: olwm &

I get the following error:
AUDIT: Mon Oct 30 10:05:01 2006: 3265 Xnest: client 1 rejected from local host
Quote:
AUDIT: Mon Oct 30 10:05:01 2006: 3265 Xnest: client 1 rejected from local host
Auth name: MIT-MAGIC-COOKIE-1 ID: -1
Xlib: connection to "localhost:11.0" refused by server
Xlib: Invalid MIT-MAGIC-COOKIE-1 key
olwm: cannot connect to (NULL DISPLAY)
I've checked the ssh_config and sshd_config and both have X11 forwarding on, I saw some things on another board about PAM being setup incorrectly, but the entire PAM file is commented out. PAM is set to yes in the sshd file of the fedora box, but I'm using fedora as the client. Any thoughts?
 
  


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
How to start CDE for non root user on Solaris 10 kiranherekar Solaris / OpenSolaris 2 01-18-2006 08:52 PM
XDMCP Linux->Solaris CDE mwsmith44 Linux - Networking 2 09-16-2005 05:41 PM
export CDE solaris 9 BusterZee Solaris / OpenSolaris 7 08-09-2005 02:28 PM
Solaris 10: CDE okay, cannot launch JDS jfi Solaris / OpenSolaris 5 04-19-2005 01:40 PM
solaris 9 with CDE and IPF aetengoku Solaris / OpenSolaris 4 01-15-2004 11:07 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:21 PM.

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