1830525 Members
2643 Online
110006 Solutions
New Discussion

CDE start desktop

 
SOLVED
Go to solution
Lonny Balderston
Frequent Advisor

CDE start desktop

I am running Kea! X on my PC and attempting run CDE. I guessed at the command to start: /usr/bin/X11/hpterm -display %DISPLAY% -e /usr/dt/bin/Xsession & (as root). This does light up CDE, but after the blue copyright screen, I get "help view" and "file manager" windows, but no desktop. What is the correct CDE X-command, or what do I need to configure to get a desktop? Now no file manager window, error window "file manager open directory error - /home/root/~ does not exist". Thank you.
9 REPLIES 9
Steven E. Protter
Exalted Contributor

Re: CDE start desktop

Make sure on the server the DISPLAY variable is set to point at your Windows PC.

DISPLAY=192.168.0.15:0.0
export DISPLAY

Use the actual IP address of the PC.

ipconfig to get it.

You need to create a folder called /home/root because the CDE or X client is configured to create temporary files there.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Ermin Borovac
Honored Contributor

Re: CDE start desktop

Not familiar with this X emulator s/w, but you should be able to configure it to do "direct query" to the server. This should get you CDE login prompt so you'll be able to login and start your applications.
Artyom Voronchihin
Respected Contributor

Re: CDE start desktop

Attempt to start it by command
/usr/bin/X11/hpterm -display $DISPLAY -e /usr/dt/bin/dtsession
"Intel inside" is not a label, it's a warning.
Christian Deutsch_1
Esteemed Contributor

Re: CDE start desktop

Dear Mahlon,

May I recommend for you to try using RealVNC? RealVNC is free and survives every PC reboot! All you need to do is get a VNC server running on your HP-UX system and then you can access this VNC server using a VNC client running "anywhere". My VNC server has been running uninterrupted and flawlessly for almost four months now! I've been using it Monday-Friday for about six hours a day, memory is currently at 170MB, which is very good, considering that it has been running for almost four months already.

Kind regards, Christian
Yeshua loves you!
Laurent Laperrousaz
Regular Advisor

Re: CDE start desktop

I use Reflection X (from WRQ) to start X sessions on HPUX boxes with no problem.
The initial command line is:
/usr/bin/X11/hpterm -fn 6x13 -sb -ls -display %IP#% -name %T% &

can you try this? (adapted to your Kea!X)
Lonny Balderston
Frequent Advisor

Re: CDE start desktop

Thank you for the responses. Still can't get CDE to run properly. I am unclear on the command to run in PC Xwindows hpterm that will start CDE. Command "/usr/bin/X11/hpterm -display %DISPLAY% -e /usr/dt/bin/dtsession" results in hpterm window, which in turn runs CDE Help Viewer window. RealVNC does not solve the problem, as my HP is not running CDE on the console. Command "/usr/bin/X11/hpterm -fn 6x13 -sb -ls -display %IP#% -name %T% &" results in a hpterm window. To recap, what I am looking for is the command to enter from PC Xwindows hpterm that will light up the CDE desktop from the HP-UX server. Thank you.
Rick Garland
Honored Contributor
Solution

Re: CDE start desktop

Sounds as if not all of the CDE applications are set to run automatically.

From the /usr/contrib/bin/X11 directory is a file called 'dr_dt' This will look through the CDE configs and report any problems.

Christian Deutsch_1
Esteemed Contributor

Re: CDE start desktop

Dear Mahlon,

1. Well, I don't get money for recommending RealVNC so that's not a problem. Since you want a solution just for the record I'll be more precise how you can make VNC work for you:

1.1. Make sure you have this line in /etc/rc.config.d/xfs: "RUN_X_FONT_SERVER=1"

1.2. Here is how I start my VNC server on HP-UX:

(Xvnc :1 -ac -query localhost -geometry 1600x1200 -depth 24 -fp tcp/myhpuxsystem:7000 -rfbauth ~/.vnc/passwd&)

1.3. To start CDE in your VNC server:

1.3.1. export DISPLAY=myhpuxsystem:1

1.3.2. /sbin/init.d/dtlogin.rc start

1.3.3. The important point is if you want CDE, your dtlogin process must be running. File /etc/rc.config.d/desktop must have the line "DESKTOP=CDE" in it. On my system I use Gnome, so I have DESKTOP=GNOME. If you want to use Gnome I can you some more tips on that. The -query option to Xvnc will query the dtlogin (or Gnome gdm) to display the desktop for you.

2. Reflection X: assuming your dtlogin process is running (see above) you can use the XDMCP method to get access to your CDE desktop from your PC. I wouldn't try getting to CDE from an hpterm. Reflection X knows XDMCP out of the box.

Let us know how you get on, Christian
Yeshua loves you!
Lonny Balderston
Frequent Advisor

Re: CDE start desktop

OK, we've got CDE running now - thank you all for your input. dt_dr is clean now (thanks). However, I do not feel we have this set up right on the PC side. Using Kea!X, we are running rexec of hpterm -e Xsession (as described in the original post), and it sounds from the last post like we could be running XDMCP-direct. Also, we are getting frequent XDMCP timeout messages. Thank you.