windowsºÍlinuxµÄÔ¶³Ì×ÀÃæÁ¬½Ó
windowsºÍlinuxµÄÔ¶³Ì×ÀÃæÁ¬½Ó Ò».ÔÚwindowsƽ̨ÉÏ£º
1.windows to windows mstsc
2.windows to linux
ÔÚlinuxÉÏÅäÖÃVNC»òXDMCP£¬ÔÚwindowsÉÏ°²×°ÏàÓ¦µÄÈí¼þºó·ÃÎÊ¡£
=================================XDMCPÅäÖãº==============================
1.ÐÞ¸Ä/etc/gdm/custom.conf£¬ÔÊÐíʹÓÃxdmcp [xdmcp] Enable=1
Èç¹ûÐèÒªrootÓû§Ò²ÄÜͨ¹ýXDMCPÔ¶³ÌµÇ¼£¬¿ÉÌí¼Ó [security]
AllowRemoteRoot=true
2.´ò¿ª·À»ðǽÉèÖÃ
´ò¿ªXDMCPµÄ¶Ë¿Ú£ºUDP 177 ´ò¿ªTCP 6000µ½6010¶Ë¿Ú
¿ÉÖ±½ÓÐÞ¸Ä/etc/sysconfig/iptables
-A RH-Firewall-1-INPUT -m state --state NEW -m udp -p udp --dport 177 -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 6000:6010 -j ACCEPT
È»ºóÖØÆôiptables
/etc/init.d/iptables restart
3.Æô¶¯µ½Í¼ÐνçÃærunlevel #init 5
Èç¹û±¾ÉíÒѾ½øÈëͼÐνçÃ棬ÐèÖØÆô #init 3;init 5
4.ÔÚwindowsÉÏÓÃxmanagerµÇ½µ½linuxÉÏ¡£ ============================XDMCPÅäÖà END===============================
=============================VNCÅäÖÃ======================================
1.ͼÐνçÃ淽ʽÉèÖãº
ServerÉÏ´ò¿ªÔ¶³Ì×ÀÃæ-----------------ΪԶ³ÌÓû§·ÃÎÊÉèÖÿÚÁî--------------VNC ServerÆô
¶¯--------------Client ͨ¹ýVNC Viewer·ÃÎÊ VNC Server 2.¸ü¸ÄÎļþģʽ£º
1¡¢°²×°°ü
[root@pps ~]# rpm -qa | grep vnc-server vnc-server-4.1.2-9.el5
2¡¢ÉèÖÃVNC×ÀÃæ
ÎÒÃÇҪΪÓÐȨ¿ÉÒԵǼµÄÓû§ÉèÖõǼ×ÀÃ棬ÐÞ¸ÄÅäÖÃÎļþ/etc/sysconfig/vncservers £º VNCSERVERS=\
VNCSERVERARGS[2]=\
²ÎÊý˵Ã÷£º
-geometry 800x600 ×ÀÃæ·Ö±æÂÊ
-nolisten tcp ×èֹͨ¹ýTCPÁ¬½ÓVNC·þÎñÆ÷
¡¾×¢Òâ¡¿ÎÒ²âÊÔ¹ý´Ë¹¦ÄܺÃÏñ²»Æð×÷Óã¬Çë´ó¼ÒÖ¸Õý£¡
-nohttpd ×èÖ¹»ùÓÚä¯ÀÀÆ÷µÄVNC¿Í»§¶ËÁ¬½Ó¡£ÓÃä¯ÀÀÆ÷µÄ·½Ê½Á¬½ÓVNCͼÏóÖÊÁ¿²»´óÂúÒ⣬ËÙ¶ÈÒ²²»¿ì£¬Ò²
²»°²È«¡£Èç¹ûûÓнûÖ¹ä¯ÀÀÆ÷Applet´°¿ÚµÇ¼£¬ÎÒÃÇ¿ÉÒÔÔÚä¯ÀÀÆ÷ÀïÊäÈ룺[url]http://vnc-server-
ip:5802[/url] ÕâÑù¾Í»á³öµ¯³öÀ´Ò»¸öÀàËÆVNC viewer¿Í»§¶ËµÄµÇ¼С´°¿Ú¡£ ¡¾×¢Òâ¡¿VNCSERVERS=\ÕâÀï¸øzhaozhÓû§·ÖÅäÁË×ÀÃæºÅΪ\µÄVNC×ÀÃæ¡£×ÀÃæºÅ´óÓÚ1£¬²»Í¬µÄ
Óû§ÐèÒªÖ¸¶¨²»Í¬µÄ×ÀÃæºÅ¡£
3¡¢ÅäÖÃÊÚȨÓû§µÄVNCÁ¬½Ó
¡¾×¢Òâ¡¿Èç¹ûÓû§±»ÏµÍ³Ëø¶¨µÄ»°£¬Ôòvnc-serverÊÇÆô¶¯²»ÆðÀ´µÄ
±ÈÈ磬ÎÒÏëÈÃzhaozhÓû§¿ÉÒԵǼ£¬ÎÒÐèÒªÀ´µ½ /home/zhaozh Ŀ¼Ï£º [root@pps ~]# cd /home/zhaozh/ [root@pps zhaozh]# ls -a
Èç¹ûûÓз¢ÏÖÓû§Ä¿Â¼ÏÂÓÐ .vnc £¨Òþ²ØµÄ£©Ä¿Â¼£¬ÎÒÃÇÐèÒª¸øÓû§Ð½¨¸ÃĿ¼£¬ÏÈת»»Óû§½ÇÉ«£¬ÓÉroot
Óû§±äΪzhaozhÓû§£º
[root@pps zhaozh]# su zhaozh [zhaozh@pps ~]$ mkdir .vnc [zhaozh@pps ~]$ cd .vnc/
È»ºó£¬ÐèҪΪ¸ÃÓû§½¨Á¢µÇ¼vnc-serverµÄÃÜÂ룺 [zhaozh@pps .vnc]$ vncpasswd Password:xxx Verify:xxx
Í˳özhaozhÓû§½ÇÉ«£¬·´»Øµ½rootÓû§£º [zhaozh@pps .vnc]$ exit exit
[root@pps zhaozh]#
ÏÖÔھ͡°Ó¦¸Ã¡±¿ÉÒÔÆô¶¯vnc-serverÁË£¡
[root@pps zhaozh]# service vncserver start
Æô¶¯ VNC ·þÎñÆ÷£º2:zhaozh xauth: creating new authority file /home/zhaozh/.Xauthority
New 'pps.hoho.com:2 (zhaozh)' desktop is pps.hoho.com:2 Creating default startup script /home/zhaozh/.vnc/xstartup Starting applications specified in /home/zhaozh/.vnc/xstartup Log file is /home/zhaozh/.vnc/pps.hoho.com:2.log
[È·¶¨]
²»¹ýÎÒÃÇ¿ÉÒÔÔÙÅäÖÃÒ»ÏÂzhaozhÓû§µÄ½çÃæʹÓã¬Ä¬ÈϵǼºóµÄ½çÃæÊÇ¡°»Ò°×¡±µÄ£¬Ö»ÊÇÓÐÒ»¸öxterm£¬»¹²»
Èçputtyͨ¹ýsshÁ¬½ÓµÄ½çÃæÀ²£¡
[root@pps ~]# cat /home/zhaozh/.vnc/xstartup #!/bin/sh
# Uncomment the following two lines for normal desktop: # unset SESSION_MANAGER
# exec /etc/X11/xinit/xinitrc
[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup [ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources xsetroot -solid grey vncconfig -iconic &
#xterm -geometry 80x24+10+10 -ls -title \#twm &
gnome-session &
ÎÒ½«xtermºÍtwmÁ½ÐÐ×¢ÊÍÁË£¬È»ºóÔÚºóÃæÌí¼ÓÎÒϲ»¶µÄgnome½çÃæ¡£