To see the vncserver currently running:-
[root@localhost ~]# which vncserver
/usr/bin/vncserver
To set the vncserver to a port suppose 0:-
[root@localhost ~]# vncserver :0
To set the vncserver to a port suppose 0:-
[root@localhost ~]# vncserver :0
You will require a password to access your desktops:-
Password:
Verify:
Warning: localhost.localdomain:0 is taken because of /tmp/.X0-lock
Verify:
Warning: localhost.localdomain:0 is taken because of /tmp/.X0-lock
A VNC server is already running as :0
Remove this file if there is no X server localhost.localdomain:0 or
connect with another port such as 1:-
[root@localhost ~]# ps -ef | grep -X
root 2732 2727 0 16:03 ? 00:00:12 /usr/X11R6/bin/X :0 -audit 0 -auth /var/gdm/:0.Xauth -nolisten tcp vt7
root 3005 2960 0 16:38 pts/1 00:00:00 grep X
Now the vncserver is created/connected with :1:-
[root@localhost ~]# vncserver :1
xauth: creating new authority file /root/.Xauthority
root 2732 2727 0 16:03 ? 00:00:12 /usr/X11R6/bin/X :0 -audit 0 -auth /var/gdm/:0.Xauth -nolisten tcp vt7
root 3005 2960 0 16:38 pts/1 00:00:00 grep X
Now the vncserver is created/connected with :1:-
[root@localhost ~]# vncserver :1
xauth: creating new authority file /root/.Xauthority
No comments:
Post a Comment