How to VNCServer and X

See How to X client on Solaris, Open a frame - GUI testing

VNC

Troubleshooting

ksh: ./vncserver: not found

Probably perl is in /usr/local/bin, change the first line of vncserver to point correctly

Unix tips

Change password using

>./vncpasswd

See any VNCServer running using:

>ps -ef | grep vnc

Kill a VNCServer using

>./vncserver -kill :1

Run using:

>vncserver -geometry 1024x768 -depth 24

Server on Solaris

Download vnc-4.0-sparc_solaris_2.5.tar.gz

>gunzip vnc-4.0-sparc_solaris_2.5.tar.gz

>tar -xfv vnc-4.0-sparc_solaris_2.5.tar

>rm -rf vnc-4.0-sparc_solaris_2.5.tar

>cd vnc-4.0-sparc_solaris_2.5

Install using:

>./vncinstall .

Add to PATH the current directory and the /usr/openwin/bin(use pwd to see the current directory)

>PATH=$PATH:/usr/openwin/bin

>PATH=$PATH:/opt/users/oracle/vnc/vnc-4.0-sparc_solaris_2.5

>export PATH

Run using:

>./vncserver

Settings working on Red Hat AS 3.0

vnc-4.0-x86_linux.tar.gz

run

    vi .vnc/xstartup

$HOME/.vnc/xstartup Some comments should be added to permit a clear view from clients

On Red Hat AS 3.0

#!/bin/sh

# Uncomment the following two lines for normal desktop:
# unset SESSION_MANAGER
exec /etc/X11/xinit/xinitrc

[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
#xsetroot -solid grey
#vncconfig -iconic &
#xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
#twm &

 

to launch server

>vncserver -geometry 1014x712 -depth 24

Client on Windows

Download and install vnc-installer-x86_win32.zip

Use best setting:

open it, click options, select the Full Color Level and Save the settings as default

Useful links:

http://developers.sun.com/tools/cc/articles/vnc.html#01

 

X

I will provide as example a connection to a host and run the Oracle Installer

C:\Documents and Settings\root>ipconfig

Configurazione IP di Windows

Scheda Ethernet Connessione alla rete locale (LAN):

Suffisso DNS specifico per connessione: fastwebit.ofc
Indirizzo IP. . . . . . . . . . . . . : 10.31.194.84
Subnet mask . . . . . . . . . . . . . : 255.255.255.0
Gateway predefinito . . . . . . . . . : 10.31.194.1

unix>export DISPLAY=10.31.194.84:0

(for Oracle 8)

unix>unset LD_LIBRARY_PATH

Launch an X client to your local pc, and remember to shut down any firewall active

unix>./runInstaller