LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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, 05: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, 12: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-22-2006, 11:57 PM   #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, 04:44 AM   #4
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

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

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-28-2006, 11:40 PM   #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, 01:49 AM   #7
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
olwm isn't launching CDE, you need to run dtwm instead, but I guess you already know that.
 
Old 10-29-2006, 01: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, 03:12 PM   #9
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
More likely a bug in this legacy application.
 
Old 10-30-2006, 10: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



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 07:52 PM
XDMCP Linux->Solaris CDE mwsmith44 Linux - Networking 2 09-16-2005 04:41 PM
export CDE solaris 9 BusterZee Solaris / OpenSolaris 7 08-09-2005 01:28 PM
Solaris 10: CDE okay, cannot launch JDS jfi Solaris / OpenSolaris 5 04-19-2005 12:40 PM
solaris 9 with CDE and IPF aetengoku Solaris / OpenSolaris 4 01-15-2004 10:07 AM

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

All times are GMT -5. The time now is 10:12 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
Open Source Consulting | Domain Registration