Re: Enabling VNC

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Jeremy,

> Now, how can I configure the firewall to accept 
> vnc connections without turning it off?

you need a rule such as
$IPTABLES -A INPUT -p tcp -d <linuxmachine> --destination-port 5901 -m state --state NEW -j ACCEPT

(all one line)

and something like

$IPTABLES -A INPUT   -m state --state ESTABLISHED,RELATED -j ACCEPT
$IPTABLES -A OUTPUT  -m state --state ESTABLISHED,RELATED -j ACCEPT
$IPTABLES -A FORWARD -m state --state ESTABLISHED,RELATED -j ACCEPT

where $IPTABLES is the path to the iptables binary.


> And how can I get vncserver to 
> start on boot?

In Red Hat you have a file /etc/sysconfig/vncservers. There you can put the servers in that should be started by the vncserver initscript. The syntax is:

VNCSERVERS="1:<username>"

to start a vncserver as user <username> on display 1.

Then you have to enable vncserver in your initscripts with the graphical tool or chkconfig. That should bring it up automatically at boot.

 -volker


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux