Today I was trying to configure the VNC Server on one of my client machine and then I got an error:
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:
Save the .profile and logout.
To set it in the terminal for the current session:
bash-3.2$ export PATH
Now try giving the same command and it will run without any error:
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.