ÓÃVNCʵÏÖÔ¶³Ì×ÀÃæ¹²Ïí(Ö§³ÖWindows, Linux, ¡)
VNC£¬È«³ÆΪVirtual Network Computing£¬ËüÊÇÒ»¸ö×ÀÃæ¹²Ïíϵͳ¡£ËüµÄ¹¦ÄÜ£¬ÀàËÆÓÚwindowsÖеÄÔ¶³Ì×ÀÃ湦ÄÜ¡£VNCʹÓÃÁËRFB(Remote FrameBuffer£¬Ô¶³ÌÖ¡»º³å£©ÐÒéÀ´ÊµÏÖÔ¶³Ì¿ØÖÆÁíÍâһ̨¼ÆËã»ú¡£Ëü°Ñ¼üÅÌ¡¢Êó±ê¶¯×÷·¢Ë͵½Ô¶³Ì¼ÆËã»ú£¬²¢°ÑÔ¶³Ì¼ÆËã»úµÄÆÁÄ»·¢»Øµ½±¾µØ¡£
VNC¼¼ÊõÓëƽ̨Î޹أ¬VNC Viewer¿ÉÒÔºÍVNC ServerÔÚ²»Í¬µÄ²Ù×÷ϵͳÉÏ¡£VNC¼¸ºõÖ§³ÖËùÓеIJÙ×÷ϵͳ£¬Ò²Ö§³ÖJava£¬ÉõÖÁ¿ÉÒÔͨ¹ýÖ§³ÖJavaµÄä¯ÀÀÆ÷À´·ÃÎÊVNC Server¡£¶à¸öVNC¿Í»§¶Ë¿ÉÒÔͬʱÁ¬½Óµ½Ò»¸öVNC ServerÉÏ¡£
VNC×î³õÓÉAT&T¿ª·¢µÄ£¬ËüµÄÔ´´úÂëÊÇ¿ªÔ´µÄ¡£
ÔÚCentOs 4.3ÉÏÅäÖÃVNC·þÎñºÜ¼òµ¥(ÕâÀï¼Ù¶¨ÄãµÄ¼ÆËã»úÉÏÒѾ°²×°ÁËVNCÈí¼þ)
Ê×ÏÈÐèÒªÅäÖÃVNCÃÜÂ룬ÃÜÂëÔÚʹÓÿͻ§¶ËÁ¬½Ó·þÎñÆ÷ʱʹÓá£
×¢Ò⣺VNCÃÜÂë±£´æÔÚÓû§µÄÖ÷Ŀ¼ÖУ¬Ã¿¸öÓû§¶¼¿ÉÒÔÉèÖÃ×Ô¼ºµÄÃÜÂë¡£Òò´Ë£¬ÇëʹÓÃÄãµÄÓû§Ãû(¾¡Á¿²»ÒªÊ¹ÓÃroot)ÔËÐÐÏÂÁÐÃüÁ
vncpasswd
È»ºóÊäÈëÃÜÂë¡£
½ÓÏÂÀ´¾Í¿ÉÒÔÆô¶¯VNC serverÁË¡£ÔÚÆô¶¯VNC serverʱ£¬ÐèҪΪÄãµÄserverÖ¸¶¨Ò»¸ödisplay²ÎÊý¡£Äã¿ÉÒÔ°ÑdisplayÀí½âΪһ¸ö×ÀÃ棬ÿ¸öÓû§¶¼¿ÉÒÔÓÐ×Ô¼ºµÄ×ÀÃæ¡£VNC¿Í»§¶ËÔÚÁ¬½Óʱ£¬¿ÉÒÔÖ¸¶¨Á¬½Óµ½Äĸö×ÀÃæÉÏ¡£ÔÚϵͳÖУ¬displayºÅ²»ÄÜÖظ´£¬Ò²¾ÍÊÇ˵£¬Èç¹ûÓÐÓû§ÒѾ½¨Á¢ÁËÃûΪ“:1”µÄdisplay£¬ÁíÍâÒ»¸öÓû§¾Í²»ÄÜÔÙʹÓÓ:1”ÁË£¬Ëû¿ÉÒÔʹÓÓ:2”¡£
Æô¶¯VNC serverµÄÃüÁîÊÇ£º
vncserver <display>
ÀýÈ磬
vncserver :1
×îºó£¬ÐèÒªÅäÖÃһϷÀ»ðǽ£¬ÔÊÐíVNC¿Í»§¶ËÁ¬½ÓVNC server¡£VNC server¼àÌýµÄ¶Ë¿Ú´Ó5900¿ªÊ¼£¬display :1µÄ¼àÌý5901£¬display :2¼àÌý5902£¬ÒÔ´ËÀàÍÆ¡£CentOsµÄ·À»ðǽȱʡÊDz»ÔÊÐíÁ¬½ÓÕâЩ¶Ë¿ÚµÄ£¬ËùÒÔÐèҪʹÓÃÏÂÃæµÄ²½Öè´ò¿ª·À»ðǽ£¨ÐèÒªrootȨÏÞ)£º
vi /etc/sysconfig/iptables
ÕÒµ½ÏÂÃæµÄÓï¾ä£º
-A RH-Firewall-1-INPUT -j REJECT –reject-with icmp-host-prohibited
ÔÚ´ËÐÐ֮ǰ£¬¼ÓÉÏÏÂÃæµÄÄÚÈÝ£º
-A RH-Firewall-1-INPUT -m state –state NEW -m tcp -p tcp –dport 5900:5903 -j ACCEPT
Õâ¾ä»°µÄº¬ÒåÊÇ£¬ÔÊÐíÆäËü»úÆ÷·ÃÎʱ¾»úµÄ5900µ½5903¶Ë¿Ú£¬ÕâÑù£¬display:1, display:2, display:3µÄÓû§¾Í¿ÉÒÔÁ¬½Óµ½±¾»ú¡£
È»ºóʹÓÃrootÉí·ÝÖØÐÂÆô¶¯·À»ðǽ£º
/sbin/service iptables restart
ºÃÁË£¬ÏÖÔھͿÉÒÔÔËÐпͻ§¶ËÈí¼þ£¬Á¬½Óµ½VNC serverÉÏÁË¡£
VNC¿Í»§¶ËÈí¼þºÜ¶à£¬ÔÚlinuxÏÂÓÐvncviewer£¬KDE»¹ÌṩÁËÒ»¸ökrdc£¨Ëü
Ïà¹ØÎĵµ£º
´´½¨×ÀÃæͼ±ê
Ä¿Ç°½«ÍøÂçÓ¦ÓÃÀ©Õ¹µ½×ÀÃæÊÇÒ»¸öÇ÷ÊÆ£¬´æÔÚןܶà½â¾ö·½°¸£¬±¾ÎÄÒÔ Mozilla Prism ΪÀý£¬ÀàËƵķ½·¨Í¬ÑùÊÊÓÃÓÚ Google Chrome ¡£
1. µ½ Mozilla Prism µÄÍøÕ¾ÉÏÏÂÔØ Prism£¬µã»÷ Download Now Ö®ºó»áÌáʾÓÐÁ½ÖÖ£¬Ò»ÖÖÊÇÒÔ Mozilla Firefox À©Õ¹µÄ·½Ê½£¬ÊʺÏÒѾ°²×°ÓÐ Firefox µÄÅóÓÑ£»Ò»Ö ......
linuxÔÚ2.6°æ±¾ÒÔºó½«ÅäÖÃÎļþÓÉÔÀ´µÄconfig.in¸ÄΪkconfig£¬¶ÔÓÚkconfigµÄÓï·¨ÔÚ/Documentation/kbuild/kconfig-language.txtÖÐ×öÁËÏêϸµÄ˵Ã÷£¬ÔÚÕâÀï¸ø³ökconfig-language.txtµÄÖÐÎÄ°æ¡£
½éÉÜ
----
ÔÚÅäÖÃÊý¾Ý¿âµÄÅäÖÃÑ¡ÏîÊÇÒÔÊ÷µÄÐÎʽ×éÖ¯µÄ£º
+- Code maturity level options
| +- ......
1¡¢ÓÃGCC±àÒë
1.1¡¢´´½¨Ô´Îļþ
(main.c) C Ô´Îļþ - main.c
#include
#include “reciprocal.hpp”
int main (int argc, char **argv)
{
int i;
i = atoi (argv[1]);
printf (“The reciprocal of %d is %g\n”, i, reciprocal (i ......
ÿ´Î¶¼ÊÇÓõ½£¬²éһϣ¬Ð´Ï£¬Õâ´ÎÉÔ΢¼Ç¼Ï±ʼǡ£
ºÍThreadÏà¹Ø£¬»ù±¾µÄÓÐ3¸ö¸ÅÄÏ̵߳Ľ¨Á¢ºÍÏú»Ù£»Ïß³ÌËø£»Ïß³ÌÌõ¼þ
¹ØÓÚ½¨Á¢Ị̈߳º
ret = pthread_create(&thread_id, NULL, Do_Thread, &Do_Thread_Para);
// µÚ2²ÎÊýÊÇthread ÊôÐÔ£¬Ò»°ãÎÒ²»ÓÃÉèÖÃ
// µÚ4¸ö²ÎÊýÊÇDo_ThreadµÄÈë¿Ú²ÎÊý£¬Ò»°ãÎÒ´«Ò»¸ö½á ......
http://linux.chinaitlab.com/safe/794893.html
Ðí¶à¸Õ½Ó´¥LinuxµÄÍøÂç¹ÜÀíÔ±·¢ÏÖ£¬ËûÃǺÜÄÑÓÉÖ¸Ïòµã»÷ʽµÄ°²È«
ÅäÖýçÃæת»»µ½ÁíÒ»ÖÖ»ùÓڱ༸´ÔÓ¶øÄÑÒÔ×½ÃþµÄÎı¾ÎļþµÄ½çÃæ¡£±¾ÎÄÁгöÆßÌõ¹ÜÀíÔ±Äܹ»Ò²Ó¦¸Ã¿ÉÒÔ×öµ½µÄ²½Ö裬´Ó¶ø°ïÖúËûÃǽ¨Á¢¸ü¼Ó°²È«
µÄLinux·þÎñÆ÷
£¬²¢ÏÔÖø½µµÍËûÃÇËùÃæÁٵķçÏÕ¡£
&nbs ......