Please follow the below steps to configure vnc server:
Server IP Address:- 172.66.249.5First Install Necessary Packages:-
[root@vncserver
~]# yum groupinstall "Desktop"
[root@vncserver
~]# yum groupinstall "X Window System"
[root@vncserver
~]# yum install pixman pixman-devel libXfont
Install VNC Server
[root@vncserver
~]# yum install vnc-server
Create Linux User Accounts:-
[root@vncserver
~]# useradd apple
[root@vncserver
~]# passwd --stdin apple
Changing
password for user apple.
apple123
passwd:
all authentication tokens updated successfully.
[root@vncserver
~]# useradd nokia
[root@vncserver
~]# passwd --stdin nokia
Changing
password for user nokia.
nokia123
passwd:
all authentication tokens updated successfully.
Set the vnc password for all accounts
[root@vncserver
~]# su - apple
[apple@vncserver
~]$ vncpasswd
Password:
Verify:
[apple@vncserver
~]$ logout
[root@vncserver
~]# su - nokia
[nokia@vncserver
~]$ vncpasswd
Password:
Verify:
[nokia@vncserver
~]$ logout
Start
VNC service:
[root@vncserver
~]# service vncserver start
Starting
VNC server: 1:apple xauth: creating new authority file
/home/apple/.Xa uthority
xauth:
(stdin):1: bad display name "vncserver.example.com:1" in
"add" command
New
'vncserver.example.com:1 (apple)' desktop is vncserver.example.com:1
Creating
default startup script /home/apple/.vnc/xstartup
Starting
applications specified in /home/apple/.vnc/xstartup
Log
file is /home/apple/.vnc/vncserver.example.com:1.log
2:nokia
xauth: creating new authority file /home/nokia/.Xauthority
xauth:
(stdin):1: bad display name "vncserver.example.com:2" in
"add" command
New
'vncserver.example.com:2 (nokia)' desktop is vncserver.example.com:2
Creating
default startup script /home/nokia/.vnc/xstartup
Starting
applications specified in /home/nokia/.vnc/xstartup
Log
file is /home/nokia/.vnc/vncserver.example.com:2.log
[
ok ]
Configure VNC Server for created local Users :-
Configuration file for vncserver is /etc/sysconfig/vncservers. Please edit this file.
VNCSERVERS="1:apple 2:nokia"
VNCSERVERARGS[1]="-geometry 800x600"
VNCSERVERARGS[2]="-geometry 1024x768"
[root@vncserver ~]# /etc/init.d/vncserver status
Xvnc
(pid 2529 2333) is running...
[root@vncserver
~]# chkconfig vncserver on
[root@vncserver
~]# chkconfig vncserver --list
vncserver
0:off 1:off 2:on 3:on 4:on 5:on 6:off
Now I am going to login vnc session from my windows machine by using TightVNC Software:-
Now I am going to login vnc session from my windows machine by using TightVNC Software:-
Enter the VNC user password here 01 is the apple user's session id so please enter the password of apple.
No comments:
Post a Comment