Tips for VNCServer config

时间:2025-04-02 19:35:19

Tips for VNCServer

After the ClearCase server reboot by Jingwei, my vncserver background process is also being shutdown. then I use vncserver
cmd to create a new connection to wait VNCView connect again. but always report the following log:

xauth:  error in locking authority file /home/xr/wangliang1/.Xauthority
xauth:  error in locking authority file /home/xr/wangliang1/.Xauthority

even

su to root to rm .vnc
rm -fr /home/xr/wangliang1/.vnc
no work!!!

after check many times, found the reason is what i did all in the situation of enter a clearcase view, so even you change to root,
you have no rights to remove .vnc dir, so exit to the top shell then do as follow:

exit;
exit;
...
cd ~
l.
rm -fr .vnc
vncserver
...

ps -aux|grep vnc

check the wait port:
 -httpd /usr/share/vnc/classes -auth /home/xr/wangliang1/.Xauthority .../home/xr/wangliang1/.vnc/passwd -rfbport -pn

use vncView

connect: HostIP:5901

enter your preset passwd, it will be ok.