Labels

Linux (6) OpenCV (4) Deep Learning (3) MATLAB (3) Mac OS X (3) Windows (2) C# (1) Node JS (1)

2013年12月29日 星期日

Setup VNC server on Fedora

The VNC server can support multi-user desktops and is very useful for Linux system (On Windows I prefer to use Teamviewer). There is a great tutorial written by Jack Wallen. However on Fedora there is minor difference on setting up firewall. The steps of setting up VNC server on Fedora is listed below:

1. Install VNC server
yum -y install tigervnc-server


2. Add VNC user
su vncuser1
vncpasswd


3. Edit VNC config file
sudo vim /etc/sysconfig/vncservers
add the following lines:
VNCSERVERS="1:vncuser1 2:vncuser2 "
VNCSERVERARGS[1]="-geometry 1800x1200"
VNCSERVERARGS[1]="-geometry 1440x960"


4. Start VNC server
sudo service vncserver start


5. Enable firewall port 5901 by running config (Note editing iptable doesn't work on Fedora). Remember to add port 5902 for second user.
sudo system-config-firewall


6. Connect with VNC viewer (I use Mac version). Remember to add :1 after your IP address!








沒有留言:

張貼留言