Visit Our UNIX and Linux User Community


How do I establish a remote CDE or JDS session on Solaris 10?


 
Thread Tools Search this Thread
Operating Systems Solaris How do I establish a remote CDE or JDS session on Solaris 10?
# 1  
Old 10-03-2006
How do I establish a remote CDE or JDS session on Solaris 10?

As stated above in the title "How do I establish a remote CDE or JDS session on Solaris 10?"

What I would like to do is be able to login to and use the machine remotely using either the CDE or JDS, preferably with out having to use a VNC, and be able to use the pretty GUI, instead of exclusively therough the CLI. I know that this can be done because I have many books on UNIX and they all say how cool X is and that you can do exactly what I am trying to do with it, except none of them explain HOW it can be done [LOL!]. I understand this could be because of all of the delicious flavors of UNIX.

Here's some info about the setup:
The machine is an AMD64 i86 running the most current version of Solaris 10 i86, pretty much out of the box-No big changes to the X system.
The X system being used is the sunX system.
The machine is NOT headless and dtterm is running since the console has the pretty solaris login window.

X and X tunneling is worrking properly because I can run X applications such as xclock, xman, and xlogo on the remote machine to the remote client. However, when performing a search in xman, as soon as a letter is pressed, it exits and the following is displayed in the window:

X Error of failed request: BadAccess (attempt to access private resource denied)
Major opcode of failed request: 102 (X_ChangeKeyboardControl)
Serial number of failed request: 502
Current serial number in output stream: 508

Not a major concern to me since I do not intend to use xman, but if the information helps find the problem, then the bytes are not wasted.

I am using the Apple X11 system on MacOS X 10.4.8 on the client machine, and using ssh -X user@host /usr/dt/bin/Xsession

I thought I knew how to do this, and I was excited to see it work-somewhat...
After entering the password for the account, the pretty screen that says "Starting Common Desktop Environment" appears in fullscreen with the little sun micro badge in the top left, except its brown and not blue, and a weird blue-green rectangle hovers above the sun badge. It sits there for a while... the screen doesnt change, and then it exits and dissapears.

I tried restarting the system, as it holds nothing important and belongs to me personally so i can do as iwish with it. Same thing.

I decided to try something different since I know that X is working. Rather than run Xsession in the fassion above, i tried running it with start-gnome.
This sorta worked...it starts, and the toolbar appears at the bottom of the screen, but there is no desktop and a blank error dialog appears. Also pressing the orange Launch button does nothing.

I've checked the Xerrors log, but nothing obvious was in there. Actually, there were no errors generated at the time I was doing all of this at all!

So-if anyone can help me out with this it woulod be greatly appreciated. Im sure its probably something simple such as a configuration script that needs some modification.

Also, if you can play nicely, if you wish to login to the machine and see for yourself whats going on, here is a login account and ip address for the machine:

host address: 72.193.221.139
username: fvallejo
password: 409elm

Normally this would be a huge security hole right here, but the machine is not important and the network it is on holds nothing important. ALSO, the ip address it is sitting on will change soon so if it quits working, let me know and i will repost the address.

I am not afraid to blow away the configuration. I ask that if you login to the system, please do not do anything harmful. Only test out the X stuff.
If the system becomes a zombie, ill unplug it and reinstall solaris immediately, and buy more books.

Thanks!
Halley Clark
# 2  
Old 10-04-2006
Hi.
Well, first of all, I do not know "Apple X11 system on MacOS X 10.4.8" at all, but I supopse that's X-Windows. So, assuming you have an X server running on your client machine, I would start a XDMCP session. To do so, just run on your client machine:
Code:
X :1 -query 72.193.221.139 vt9

Which means:
X - The X server executable.
:1 - The new display number, you can change it to whatever except the display you are using (usually :0).
-query 72.193.221.139 - XDMCP session against 72.193.221.139
vt9 - This launches the new X-server in your virtual terminal number 9.
This is the command I use in Linux. In my cygwin (Windows), it would be:
Code:
X :1 -query 72.193.221.139

because there are no virtual terminals...


I think Solaris 10 allows XDMCP connections by default, at least, Solaris 9 does.

I hope this helps.

Regards.
# 3  
Old 10-04-2006
Still Nothin...

Well I tried the command like you said, but had no luck with it. The Apple X11 terminal is a XFree86 terminal that runs within the GUI named "Quartz" of the MacOS. After executing the comand from the X terminal, a executable icon appears in the dock named Xquartz, and the following is displayed on the X terminal:

halley-clarks-ibook-g4:~ halley_clark$ X :1 -query 192.168.1.253

XFree86 Version 4.4.0 / X Window System
(protocol Version 11, revision 0, vendor release 6600)
_XSERVTransmkdir: Owner of /tmp/.X11-unix should be set to root
[DRI] screen 0 installation complete
Screen 0 added: 1024x768 @ (0,0)
error opening security policy file /usr/X11R6/lib/X11/xserver/SecurityPolicy
Could not init font path element /usr/X11R6/lib/X11/fonts/CID/, removing from list!

Fatal server error:
XDMCP fatal error: Session failed Session 6 failed for display 192.168.2.1:1: Cannot open display

OsVendorFatalError
AbortDDX
Quitting XDarwin...

Now looking at this where it ways XDMCP fatal error, I'm assuming whats going on is the session cannot be established, possibly something on the Solaris-maybe a difference from 9 and 10?

Also, 192.168.1.253 is the location of the server behind my NAT server.

I have tried both addresses with the same results.

I seemed to go further with just the Xsession through ssh. It would connect and display the "starting CDE" screen, only in the wrong color and with wrong fonts, and it just stays there. But I dont know enough about how X works and how to use it to figure out why.

Now also I would like to ask what a good book on X would be. I am new to X, but I am not new to Unix and I have many animal books. I first started with Linux, but then moved on to some work with AIX, and then Solaris 7 (!) and irix (uggh!) and FreeBSD and now the freeBSD based MacOS (yay!). But all of my skills I have gained strictly through a CLI. I have had very little experience with window systems on unix because I have always used SSH or RSH to work with a machine.

ps-you are welcome to try and connect to the machine with you solris 9 machine.

the username and password are in the top thread.

thank you very much for your help!
# 4  
Old 10-04-2006
Hi again.
There are a few things to take into account.
- XDMCP, allows you to display remote apps in your local Xserver. So there must be an X server running on your Apple (the one you use when you login) plus another one (the one in which your XDCP session is displayed).
- ssh (tunnel) is not the same case. Xsession is executed on the solaris server, X server included, but everything is displayed on your X server. Tere are only one X server running on each machine.
- NAT is another "problem". You will have to open/NAT some TCP ports if you want to use XDMCP (177/TCP/UDP at least)...
- If your Apple doesn't use virtual terminals, you won't be able to start an XDMCP session this way. You could use "Xnest" in case it's available on your MAC, instead of "X". I've only seen virtual terminals on Linux boxes though this does not mean it's not possible on other systems Smilie
Then, try with Xnest:
Code:
Xnest :1 -query <IP>

This will launch an X server on a window, if everything else is OK, with a XDMC session against your Sun server.

Good luck!

Regards.
# 5  
Old 10-04-2006
Sunbox

I tried that on the Mac, and a window with the crossweaving and the X cursor appears, then dissapears. I am trying all of this on the local network and not through any firewalls or routers. My next attempt will be to try on a Linux machine, and on another Solaris. If i can get a system using a real X system to work properly, then I know its something funky with the Apple X system. Now I have used the Apple X system with applications such as OpenOffice on the local machine just fine. I have also been able to execute applications such as xlogo remotely and display on the local machine. To me that means that it is capable of connecting and passing data. However, the X system runs under Apple's Quartz display system, so it is possible that because of this, some minor adjustments were made to accomodate for how displays are utilized on the system, which could be why it is having some trouble.

Again, thankyou very much for your help!

Halley Clark
# 6  
Old 10-05-2006
Well, I don't know what could be the problem...
In my Sun workstation, running Solaris 9, /usr/dt/config/Xaccess contains a line like:
Code:
*                       # grant service to all remote displays

Which means that XDMCP sessions are allowed for all hosts. Check your Xaccess, just in case...

Can you post Xnest output?

Make sure also that your MAC allows incoming network connections (no ip filters, etc)...

Regards.
# 7  
Old 10-05-2006
Holy $??? it worked! (XDMCP host connections under MacOS)

When I had a chance to sit down, i thought about the output from my previous Xnest attempt where it said something about interface 192.168.2.1. My iBook has two network interfaces, one for the wired ethernet, and one for the wireless. I already knew this was odd since the host i was connecting to was on the 192.168.1.0 network, which is the network the primary interface was on, while the 192.168.2.0 network's interface was not even active. I checked all of the network configurations making sure there were no firewalls enabled and no services that could be conflicting. Upon first glance there was not. I then noticed that the connection on one interface was being shared to another, and I have found that this feature when enabled, doesnt just route packets and issue dhcp configurations, but also sets up its own DNS server on the local machine among a few other things. For the sake of minimizing possible interfering services, I disabled this feature since I was not using it anyway. I then tried executing Xnest in the same syntax that i have been in the Apple X system and a window appears this time black instead of the default crossweaved pattern, and then soon after I am greeted to the system and asked for a login! I loged in and started the Java Desktop Session and then cried tears of joy! (ok i didn't cry, but i did log in as if i was at the console)

I am absolutely thrilled that this worked and I must say that I am very impressed with the MacOS, although at times I am a bit frustrated with the extra fatware, but never enough to wish it was not included.

So the lesson learned here is that for some odd reason, the "internet sharing " features in the MacOS interfere with XDMCP connections, and the service must be disabled in order for XDMCP and Xnest to work properly.

Thank you grial for your swift responses and patience to continue helping me. I appreciate it very much and I hope the value of what we have found out here will help other users on this forum as well.

Previous Thread | Next Thread
Test Your Knowledge in Computers #809
Difficulty: Easy
The CSS3 RGB Hex Code for DarkOrange is #FF4500.
True or False?

10 More Discussions You Might Find Interesting

1. HP-UX

Canīt get a remote desktop login through CDE

Hi all, I canīt get a remote desktop login through CDE only with root user. There are messages in the Xerror file: /usr/bin/X11/xset: bad font path element (#0), possible causes are: Directory does not exist or has wrong permissions Directory missing fonts.dir Incorrect font... (5 Replies)
Discussion started by: the0m3n
5 Replies

2. UNIX Desktop Questions & Answers

How to migrate Solaris 10 CDE config to HP-UX CDE.

Hello, Do you guys by any chance know what is the best (if any ) way to move CDE configuration from a SOLARIS 10 machine to HP-UX? Just the config (actions, text files etc). Thanks in advance! (0 Replies)
Discussion started by: binary0x01
0 Replies

3. HP-UX

Start SAM in TUI from CDE session

how can i start sam in TUI mode from a CDE session. i'm using hp-ux 11iv3 i tried to start SAM from a terminal from CDE session but each time i try to start it System Managment Homepage starts , so i telneted to server from a pc to start sam in TUI mode is there any other way to set my SAM to... (2 Replies)
Discussion started by: h@foorsa.biz
2 Replies

4. UNIX for Advanced & Expert Users

Xserver connect and run CDE session from Windows PC

Hope someone can help. I have 5 Unix Tru64 ver 4.0/5.1B, boxes and I'm trying to connect and run CDE session from my PC. I have tried using Reflections, and Xming with no luck. Can someone tell me what exactly needs to be running on the Tru64 boxes in order for this to work. Along with what or how... (4 Replies)
Discussion started by: Troberts50
4 Replies

5. HP-UX

Can not login to CDE -- only Fail Safe Session permitted

Hi, I am a hobbyist with a very old machine I have been trying to get up and running. I have an HP 9000/C240 with 1G of RAM and 3-8.5G HD. It is configured with 1G SWAP/DUMP. Currently only one drive is in use via LVM. I have not gotten around to creating more volumes just yet. It is running... (11 Replies)
Discussion started by: Dirk_
11 Replies

6. Solaris

Not able to login through JDS but able to login through CDE

Dear All I am in a strange situation where I have install the Solaris 10 5/08 OS on Netra 1280 server. When I connect it through my laptop so that I can take the GUI from xmanager. When I try to login as root or any other users also through Java Destop Environment which accepted it after few... (3 Replies)
Discussion started by: girish.batra
3 Replies

7. Solaris

I am not able to login in gnome session and java session in Sun solaris 9& 10

I am not able to login in gnome session and java session in Sun solaris 9& 10 respectively through xmanager as a nis user, I am able to login in common desktop , but gnome session its not allowing , when I have given login credentials, its coming back to login screen, what shoul I do to allow nis... (0 Replies)
Discussion started by: durgaprasadr13
0 Replies

8. Solaris

CDE Remote Login is not Working !!!

Hi , I have SunBlade 150 Workstation (Solaris 9), I installed the OS again then when I try to login to any server using ( Options > Remote Login > Enter Host Name) after I entered any host name nothing happened just white page for 2 or 3 mintues then the login screen reseted to the local... (4 Replies)
Discussion started by: adel8483
4 Replies

9. AIX

No Keyboard in CDE session

Hi, AIX 5.3 , no Graphical adapter no Keyboard..... I set up CDE to start without graphical boot, dtlogin process is running, when start a xserver from Cygwin to access this box. I can't login, because I have no Keyboard. The Mouse works fine, but when I try to type in the username or... (1 Reply)
Discussion started by: hookerxy
1 Replies

10. HP-UX

remote CDE

Is there a way to connect to CDE remotely? Preferably using 'VNC'. I'd like to do this! (4 Replies)
Discussion started by: satinet
4 Replies

Featured Tech Videos