1833824 Members
2098 Online
110063 Solutions
New Discussion

Re: How to start CDE

 
SOLVED
Go to solution
Maxim Yakimenko
Super Advisor

How to start CDE

Hi all,

Sorry for stupid question, but I failed to find solution myself :)

How to start CDE from command line? I logged into server via ssh, set DISPLAY and run X-emulation software on my Windows PC, what command I must issue to start CDE Environment? Or point me a link about it to read.

Thanks.
10 REPLIES 10
Matti_Kurkela
Honored Contributor
Solution

Re: How to start CDE

As far as I understand, the correct command is /usr/dt/bin/dtsession. It might be a good thing to ensure /usr/dt/bin is in PATH before running that.

And by the way, if you're using SSH, you should use SSH's X11 forwarding. It sets up DISPLAY and xauth keys automatically, so you don't need (and in fact *should not*) set DISPLAY manually.

The automatic value may look a little strange: the IP is either 127.0.0.1 or the server's own IP address, and the display number is :10.0 or the first free number above that. Nevertheless, it will work: the variable actually points to X11 encryption proxy which is automatically set up by sshd whenever X11 forwarding over SSH is requested. The proxy will encrypt the X11 traffic and relay it to your workstation's SSH client, which will pass it to the X emulation software.

The end result is that X window system will simply just work without setting DISPLAY or entering any xhost or xauth commands.

MK
MK
Maxim Yakimenko
Super Advisor

Re: How to start CDE

Well, Matti
I use putty and exceed.nt - how can I use ssh X forwaring with this tools?
Matti_Kurkela
Honored Contributor

Re: How to start CDE

1.) start Exceed but don't do anything with it; just leave it running.

2.) start PuTTY. Before connecting, select the "X11" branch in the configuration "tree" and select "Enable X11 forwarding". Then return to "Session" branch, type in your host name or IP address and connect.

Or if you have a saved session, load it first, then enable SSH forwarding and connect.

3.) enter your password/passphrase as normal.

4.) When you get to Unix command prompt, type "xclock". It should appear on your workstation with no further configuration needed. (You can use any X program for this; xclock is just quick to start and unambiguous.)

5.) When you've confirmed that X forwarding works, run "export PATH=/usr/dt/bin:$PATH", then "dtsession".

Note: Whenever I need X-emulation on a Windows PC, I currently tend to use Reflection-X or the free Cygwin/X, but I seem to recall that Exceed has several modes you can use. One mode allows the X windows to exist among the native windows, and in the other mode all X windows are sub-windows of one big window (X desktop). For "dtsession", this latter mode might be better.

MK
MK
Andrew Rutter
Honored Contributor

Re: How to start CDE

hi,

did you export the display to your pc

export DISPLAY=your ip:0.0

check this thread for more details

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=964698

To start/stop/reset CDE, you must first su to root.

To start CDE (/usr/dt/bin/dtlogin):

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

To stop CDE (kill the dtlogin process):

# /sbin/init.d/dtlogin.rc stop

To Reset CDE (tell the dtlogin process to reread CDE config files to
incorporate any changes):

# /sbin/init.d/dtlogin.rc reset

Andy
Maxim Yakimenko
Super Advisor

Re: How to start CDE

Matti, I did what you told, but when I try to start xlock it says
Xlib: connection to "x.x.x.x:10.0" refused by server
Xlib: Client is not authorized to connect to Server
Error: Can't open display: x.x.x.x:10.0
Error: Couldn't find per display information

xhost +server_name fails with them same error messages
Maxim Yakimenko
Super Advisor

Re: How to start CDE

Made xclock working, but dtsession hangs for 20-30 sec, then help viewer appears, but I see no desktop - whats wrong?
Rasheed Tamton
Honored Contributor

Re: How to start CDE

Hi Maxim,

If xclock is working,

/usr/dt/bin/Xsession &

If still you have problems:
Uncomment the below line on /usr/dt/config/Xservers and may be /etc/dt/config/Xservers files

* Local local@console /usr/bin/X11/X :0

Regards.
Maxim Yakimenko
Super Advisor

Re: How to start CDE

Well, it stil does not work.
When I start Xsession a screen appears with startup banner "Startin CDE...Copyrights.." and a window with title X Client.
Maxim Yakimenko
Super Advisor

Re: How to start CDE

Thanks all, I've made it working with reflection X.
Maxim Yakimenko
Super Advisor

Re: How to start CDE

No comments