Enabling VNC
Volker Kindermann
ml at ps102.de
Tue Oct 19 18:02:10 UTC 2004
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
More information about the fedora-list
mailing list