Installing & Configuring RealVNC Server on Solaris 10

# Download RealVNC server package (Download & Use -> confirm form -> Find the latest Solaris package) (update: As of March 2007 there is no Solaris/x86 package available for download - it has been removed. I don't know why. Alternative is Solaris Companion DVD's SFWvnc package instead - pkgadd -d /mnt/tmp/Solaris_Software_Companion/Solaris_i386/P ackages SFWvnc)

We will discuss first about RealVNC. Below are the steps to install & configure
# Install package

pkgadd -d vnc-4_1_1-x86_solaris.pkg

# Add the 'vnc' service to /etc/services:

echo 'vnc 5900/tcp' >>/etc/services

# Convert and import the inetd configuration line to Solaris 10's new Service Management Framework:

echo 'vnc stream tcp nowait nobody /usr/local/bin/Xvnc Xvnc -inetd -query localhost -once securitytypes=none' >> vnc.inetd.conf
inetconv -i vnc.inetd.conf

(note, if using the Companion CD package, command is /opt/sfw/bin/Xvnc)

To later change the resolution of the spawned server, or any other options, change the exec property as follows:

inetadm -m network/vnc/tcp exec="/usr/local/bin/Xvnc -inetd -query localhost -once securitytypes=none -screen 0 1280x1024x16"

Then you can use inetadm to manage it:

inetadm -l svc:/network/vnc/tcp:default (show details - giving full service name)
inetadm -d network/vnc/tcp (disable - you can abbreviate the service name like this)
inetadm -e network/vnc/tcp (enable)

May be necessary to restart inetd:

svcadm restart inetd

# Connect to VNC port 5900 to see the desktop login!

To Allow Root access via X11 follow below step Obviously its not the most secure otion, but for testing purposes...


edit the file /etc/default/login and comment out the following line as follows: 
# If CONSOLE is set, root can only login on that device.
# Comment this line out to allow remote login by root.
#
# CONSOLE=/dev/console

Comments

Popular posts from this blog

How To Add Print Button to Blogger Posts

INSTALL CISCO VPN CLIENT ON WINDOWS 10 (32 & 64 BIT). FIX REASON 442