VNCServer Installation Steps KrishnaKishore Pilla Steps for installing VNC Server in fedora system 1. Open terminal and execute the command # yum install tigervnc-server Note:- you should be root before doing this. 2. After you give the permission for installation enter #vncserver This will prompt you to setup a password, enter a password and remember this will have to be entered while you connect from vnc viewer. 3. In the applications->RemoteDesktopSharing change the settings to allow every one for remote desktop sharing. 4. Open the terminal and view the iptables by entering the following command #vi /etc/sysconfig/iptables Then you can see all the opened ports in your machine as shown below -A INPUT -m state --state NEW -m tcp -p tcp --dport 53 -j ACCEPT -A INPUT -m state --state NEW -m udp -p udp --dport 53 -j ACCEPT -A INPUT -m state --state NEW -m udp -p udp --dport 1194 -j ACCEPT -A INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT -A INPUT -m state --state NEW -m tcp -p tcp --dport 16509 -j ACCEPT -A INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT -A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 22 --j ACCEPT -A INPUT -j REJECT --reject-with icmp-host-prohibited -A FORWARD -j REJECT --reject-with icmp-host-prohibited COMMIT ~ By default vncserver will be listening on port no 22. If the port no 22 was not opened add a line to ~ this configuration file in the vi editor. ~ -A INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT ~
VNCServer Installation Steps KrishnaKishore Pilla 5. Also we need to say the firewall to accept the connections from port no 22, by adding this line -A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 22 --j ACCEPT 6. Finally run the command for activating the “sshd”, this is to make sure that daemon program for accepting connections from other systems. # /sbin/service sshd start 7. Restart the machine once and connect the system through VNC viewer.