Re: Access Unix server on client site (230 Views)
Reply
Respected Contributor
Respected Contributor
P_D
Posts: 297
Registered: ‎04-20-2009
Message 1 of 7 (230 Views)

Access Unix server on client site

Hi Experts,

I need to access Solaris servers on client site. I can access client network using VPN. I have Cent OS installed on a vmware on my system & I have also installed Cygwin on my system. How can I launch server GUI on my Cent OS? I have tried a few steps given below:

On Cent OS:
1) Launched terminal window & tried using the following command:
[user@xyz]$ xterm
[user@xyz]$ X :1 -query ip

This launches a black x-windows.

On windows using Cygwin:
1) Launched cygwin & ran the following commands in cygwin console:
$ startx (to launch the xwindows)
$ export DISPLAY=:0.0
$ setenv +localhost ip
2) in the x-windows ran the following commands:
$ ssh -l username ip/hostname
$ setenv DISPLAY localip:0.0

Here I do not know what command should I give to launch the server GUI.

Thank you for helping me out. I appreciate it.

Regards,
P.D.
Honored Contributor
Goran Koruga
Posts: 1,191
Registered: ‎06-14-2009
Message 2 of 7 (230 Views)

Re: Access Unix server on client site

Hello.

For black window try starting X server in the same depth that is used on the Solaris server.

Cygwin also has startx command so you can use that with '-query'.

You can also try Xming, which is simpler to use and has some GUI controls to choose startup options.

Regards,
Goran
Valued Contributor
emha_1
Posts: 59
Registered: ‎07-14-2005
Message 3 of 7 (230 Views)

Re: Access Unix server on client site

hi,

using cygwin I do it usually following way:

- start cygwin shell console
- from the cygwin console start X win: startx
- from opened X win terminal allow any connection: xhost +
- start separate session to destination server, e.g. via putty
- set DISPLAY variable in this session pointing back to my local machine
- start X win application in this session e.g. xclock


emha.
Honored Contributor
Matti_Kurkela
Posts: 6,271
Registered: ‎12-02-2001
Message 4 of 7 (230 Views)

Re: Access Unix server on client site

By "server GUI" you probably mean the CDE Desktop, right?

The CDE start-up command is normally /usr/dt/bin/dtsession.

Try this procedure:
1.) Launch cygwin & startx

2.) in the x-windows, ssh -X -l username ip/hostname

(don't setenv DISPLAY, ssh -X should set it automatically if X11 forwarding has been enabled at the remote sshd configuration. The value of DISPLAY in this case may look a little strange: this is because the remote sshd sets up an encryption proxy to transport the X11 protocol securely over the network. If you change DISPLAY you'll lose the security.)

3.) /usr/dt/bin/dtsession

MK
MK
Respected Contributor
Respected Contributor
P_D
Posts: 297
Registered: ‎04-20-2009
Message 5 of 7 (230 Views)

Re: Access Unix server on client site

.
Honored Contributor
Steven Schweda
Posts: 9,096
Registered: ‎02-23-2005
Message 6 of 7 (230 Views)

Re: Access Unix server on client site

> .

It might be helpful to some future reader of
this thread if you explained what you did to
solve your problem.

> [...] you probably mean [...]

When someone says this, it probably means
that your question was not clear enough.
Respected Contributor
Respected Contributor
P_D
Posts: 297
Registered: ‎04-20-2009
Message 7 of 7 (230 Views)

Re: Access Unix server on client site

There was some issue on the client side.
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.