Configure VNC Server on Solaris Machine

Today I was trying to configure the VNC Server on one of my client machine and then I got an error:

bash-3.2$ vncserver

vncserver: couldn’t find “xauth” on your PATH.


bash-3.2$ cat /etc/release

Oracle Solaris 10 1/13 s10s_u11wos_24a SPARC

Copyright (c) 1983, 2013, Oracle and/or its affiliates. All rights reserved.

Assembled 17 January 2013


Obviously, it needs the application to be mentioned in the PATH; also you may receive the similar error as:

vncserver: couldn’t find “Xvnc” on your PATH. (However I didn’t get this in my case)

In fact Xvnc is under the directory /usr/X11/bin while xauth is under /usr/openwin/bin so add them to path, open .profile file in your home directory, add them as followed:

export PATH

Save the .profile and logout.

To set it in the terminal for the current session:

bash-3.2$ PATH=$PATH:/usr/X11/bin:/usr/openwin/bin

bash-3.2$ export PATH

Now try giving the same command and it will run without any error:

bash-3.2$ vncserver

You will require a password to access your desktops.


Password must be at least 6 characters – try again



xauth:  creating new authority file /export/home/oracle/.Xauthority

New ‘mydb:1 (oracle)’ desktop is mydb:1

Creating default startup script /export/home/oracle/.vnc/xstartup

Starting applications specified in /export/home/oracle/.vnc/xstartup

Log file is /export/home/oracle/.vnc/mydb:1.log


Now change below:




We commented twm session and add gnome session for us to use. Otherwise you will keep on getting the twm session while using VNC Viewer.

Now simple use VNC Viewer to connect to- mydb:1 and use the password you configured above and you are done.

Let me know if any issue.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: