Follow by Email

Install TigerVNC Server On Fedora 17

Q: How to install and configure TigerVNC Server in Fedora 17?

Install VNC server packages from YUM in Fedora 17
[root@server ~]# yum -y install tigervnc-server

Create 2 new user for VNC access (also can use existing users) and set user passwords
[root@server ~]# useradd james
[root@server ~]# passwd james
[root@server ~]# useradd john
[root@server ~]# passwd john

VNC Remote Control

Setup a password for user's VNC access
Login as the new user (James). The VNC password must be at least 6 charactors 
[root@server ~]# su james
[james@server ~]# vncpasswd
Password:  <type a password>
Verify:    <retype same password>

Now logout from james and login as "john"
[james@server ~]# su john
[john@server ~]# vncpasswd
Password:  <type a password>
Verify:    <retype same password>

Now logout and login as root user
[john@server ~]# su

Configure vnc service in Fedora17
[root@server ~]# vi /etc/sysconfig/vncservers
Now add the below 3 lines to the bottom of the configuration file.
VNCSERVERS="1:james 2:john"
 VNCSERVERARGS[1]="-geometry 950x700"
 VNCSERVERARGS[2]="-geometry 950x700"
#Now save the file

Open firewall for VNC Server ports (TCP/5901 and TCP/5902) in Fedora 17
[root@server ~]# iptables -A INPUT -p tcp -m state --state NEW -m tcp --dport 5901 -j ACCEPT
[root@server ~]# iptables -A INPUT -p tcp -m state --state NEW -m tcp --dport 5902 -j ACCEPT

Start VNC Server service (Start both VNC1 and VNC2)
[root@server ~]# service vncserver start

Start each VNC individually (Login as appropriate user first)
[james@server ~]# vncserver :1
[john@server ~]# vncserver :2

Download VNC viewer for windows
Or install VNC viewer for Linux from YUM (Fedora and CentOS)
[root@server ~]# yum -y install tigervnc

Access VNC by the below method <ipaddress>:<VNC number>

Was this helpfull ?


Related Posts Plugin for WordPress, Blogger...

Design by Free WordPress Themes | Bloggerized by Lasantha - Premium Blogger Themes | Bluehost Coupons