این قسمت از نصب بر روی لینوکس انجام می شود:
(توجه: خطوط سبز رنگ بیانگر توضیحات می باشد و خطوط صورتی رنگ دستور های اجرایی می باشد.)
Install VNC Server to operate Fedora with GUI remotely from Windows client:
[root@ns ~]#yum -y install vnc-server
[root@ns ~]#vi /etc/sysconfig/vncservers
# line 20: uncomment and set as '(diplay number):(user name)' like follwing example
VNCSERVERS="1:fedora"
# line 21: uncomment and remove '-localhost' like below
# And set any screen resolution you like
VNCSERVERARGS[1]="-geometry 1024x768 -nolisten tcp -nohttpd"
[root@ns ~]#su - fedora
[fedora@ns ~]$ vncpasswd
Password:
Verify:
[fedora@ns ~]$ su -
Password:
[root@ns ~]# /etc/rc.d/init.d/vncserver start
Starting VNC server: 1:fedora
New 'ns.server-linux.info:1 (fedora)' desktop is ns.server-linux.info:1
Creating default startup script /home/fedora/.vnc/xstartup
Starting applications specified in /home/fedora/.vnc/xstartup
Log file is /home/fedora/.vnc/ns.server-linux.info:1.log
[ OK ]
[root@ns ~]# vi /home/fedora/.vnc/xstartup
#twm & # at the bottom: make it comment
exec gnome-session & # run Ghome
[root@ns ~]# /etc/rc.d/init.d/vncserver restart
Shutting down VNC server: 1:fedora[ OK ]
Starting VNC server: 1:fedora
New 'ns.server-linux.info:1 (fedora)' desktop is ns.server-linux.info:1
Starting applications specified in /home/fedora/.vnc/xstartup
Log file is /home/fedora/.vnc/ns.server-linux.info:1.log
[ OK ]