Cau Hinh VNC Cho Linux

You might also like

Download as doc, pdf, or txt
Download as doc, pdf, or txt
You are on page 1of 4

Step-by-step cu hnh Linux cho remote qua VNC Hng dn cch cu hnh my ch Linux cho php Remote desktop

bng VNC view 1. SSH vo Server Linux cn bt remote desktop g lnh #vncpasswd->sau t pass.

2. Edit the file /etc/sysconfig/vncservers by type vi /etc/sysconfig/vncservers.lm nh hnh

di sau thot khi vi v save file li

Note:Nu mun cho nhiu user c remote qua VNC th thm va tham s VNCSERVER=1:root 2:duynv 3:inet
3. Tip theo cu hnh bt VNC t ng khi my boot li g lnh #chkconfig vncserver

on.ng thi bt VNC server trn Linux cn remote ti g ln #service vncserver start
4. Nu firewall iptables c bt th cn m port tcp 5901 5. Trn Linux server cn remote ti g ln vi /home/username/.vnc/xstartup. Trong v d ny

ti s dng root remote g lnh #vi /root/.vnc/xstartup. tm n 2 dng nh hnh di v b du # 2 dng nh di.Nu s dng user duynv th g lnh vi /home/duynv/.vnc/xstartup

6. Khi ng li VNC server trn linux g #service vncserver restart (ch phi c quyn

root mi thc hin stop,start servervice dch v ny)

7. Down load vnc view hoac Tight VNC cho window v ci v remote ti server Linux

sau khi ci t, bt vncview hoc tightVNC g a ch IP v s phin cu hnh mc 2

Note:Nu mun cho nhiu user c remote qua VNC th thm va tham s VNCSERVER=1:root 2:duynv 3:inet - y ti remote vo bng root s phin l 1 nn g vo phn VNC server trn s l ip_address:1->nu remote vo bng duynv th s l ip_address:2 8. Nhp password va t bc 1 #vncpasswd (nu remote bng duynv th phi t passwd duynv hoc user khc)

Kt qu remote c nh bn di

You might also like