These are some basic steps I follow when I need to setup a VNC Server session on a
system so I can use the VNC client (useful for running programs like SAPINST remotely).
Log into the server and execute the command ‘vncserver’
Record the server and the port echoed by the command above (example: 192.168.0.1:3.0)
Issue this command to make the xwindows session available from any incoming connection:
xhost + (note on some systems you may need to issue the command: ‘vncconfig -iconic -nowin&’
first to keep the vnc session resident on the system)