2/10/24, 12:36 AM Configure VNC Server on Solaris Machine – DevOps Learning
Configure VNC Server on Solaris Machine
Gaurav Bhaskar August 27, 2013 Unix
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$
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
bash-3.2$
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:
PATH=$PATH:/usr/X11/bin:/usr/openwin/bin
export PATH
https://getsomeoracle.wordpress.com/2013/08/27/configure-vnc-server-on-solaris-machine/ 1/3
2/10/24, 12:36 AM Configure VNC Server on Solaris Machine – DevOps Learning
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:
Password must be at least 6 characters – try again
Password:
Verify:
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
bash-3.2$
Now change below:
https://getsomeoracle.wordpress.com/2013/08/27/configure-vnc-server-on-solaris-machine/ 2/3
2/10/24, 12:36 AM Configure VNC Server on Solaris Machine – DevOps Learning
To:
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.
https://getsomeoracle.wordpress.com/2013/08/27/configure-vnc-server-on-solaris-machine/ 3/3