uvnc_viewer.jpg

 

第一次接觸到 VNC, 還蠻好玩的. 接觸到 VNC 這個 Project 當初是我和公司的 MIS 一起為協力廠商在機房建置的. 使用了 CentOS, 我重新編譯了 Kernel, 使它擁有了 4GB 的 Ram-Disk. VNC 和 4GB 的 Ram-Disk 對我而言都是一個新體驗. 

 

VNC4SERVER Installation

 

$ sudo apt-get install vnc4server
...

 

VNC Password
 

ubuntu@fpga01:~$ sudo rm -rf .vnc
...
ubuntu@fpga01:~$ vncserver

You will require a password to access your desktops.

Password:<--Put your VNC password 
Verify:<--Put your VNC password
Password too long - only the first 8 characters will be used
xauth:  file /home/ubuntu/.Xauthority does not exist

New 'fpga01:1 (ubuntu)' desktop is fpga01:1

Creating default startup script /home/ubuntu/.vnc/xstartup
Starting applications specified in /home/ubuntu/.vnc/xstartup
Log file is /home/ubuntu/.vnc/server1:1.log

ubuntu@fpga01:~$
...

 

Startup VNC Server
 

$ sudo vi /etc/rc.local
...
iptables -F
su ubuntu -c 'vncserver :1 -geometry 1024x768 -depth 24 -alwaysshared'
...
iptables -t nat -A PREROUTING -i em1 -p tcp --dport 34001 -j DNAT --to 192.168.1.221:22
iptables -t nat -A PREROUTING -i em1 -p tcp --dport 5901 -j DNAT --to 192.168.1.221:5901
iptables -t nat -A PREROUTING -i em1 -p tcp --dport 34002 -j DNAT --to 192.168.1.222:22
iptables -t nat -A PREROUTING -i em1 -p tcp --dport 5902 -j DNAT --to 192.168.1.222:5901
...

 

Port Mapping VNC Server
 

jason@monta:~$ sudo vi /etc/rc.local
...
...
iptables -t nat -A PREROUTING -i em1 -p tcp --dport 34001 -j DNAT --to 192.168.1.221:22
iptables -t nat -A PREROUTING -i em1 -p tcp --dport 5901 -j DNAT --to 192.168.1.221:5901
...

 

UtlaVNC
 

ownload from:

http://www.uvnc.com/downloads/ultravnc.html

 

Accessing by UtlaVNC Viewer

uvnc_presetting.jpg

 


uvnc_viewer.jpg
 

 

 

 

 


 

 

 

 

z.png
 

 

arrow
arrow

    Lexra 發表在 痞客邦 留言(0) 人氣()