¡¾VNC¡¿Linux»·¾³VNC·þÎñ°²×°¡¢ÅäÖÃÓëʹÓÃ
1.È·ÈÏVNCÊÇ·ñ°²×°
ĬÈÏÇé¿öÏ£¬Red Hat Enterprise Linux°²×°³ÌÐò»á½«VNC·þÎñ°²×°ÔÚϵͳÉÏ¡£
È·ÈÏÊÇ·ñÒѾ°²×°VNC·þÎñ¼°²é¿´°²×°µÄVNC°æ±¾
[root@testdb ~]# rpm -q vnc-server
vnc-server-4.1.2-9.el5
[root@testdb ~]#
ÈôϵͳûÓа²×°,¿ÉÒÔµ½²Ù×÷ϵͳ°²×°Å̵ÄServerĿ¼ÏÂÕÒµ½VNC·þÎñµÄRPM°²×°°üvnc-server-4.1.2-9.el5.x86_64.rpm£¬°²×°ÃüÁîÈçÏÂ
rpm -ivh /mnt/Server/vnc-server-4.1.2-9.el5.x86_64.rpm
2.Æô¶¯VNC·þÎñ
ʹÓÃvncserverÃüÁîÆô¶¯VNC·þÎñ£¬ÃüÁî¸ñʽΪ“vncserver :×ÀÃæºÅ”£¬ÆäÖГ×ÀÃæºÅ”ÓÓÊý×Ö”µÄ·½Ê½±íʾ£¬Ã¿¸öÓû§Á¬¸öÐèÒªÕ¼ÓÃ1¸ö×ÀÃæ
Æô¶¯±àºÅΪ1µÄ×ÀÃæʾÀýÈçÏÂ
[root@testdb ~]# vncserver :1
You will require a password to access your desktops.
Password:
Verify:
xauth: creating new authority file /root/.Xauthority
New 'testdb:1 (root)' desktop is testdb:1
Creating default startup script. /root/.vnc/xstartup
Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/testdb:1.log
ÒÔ ÉÏÃüÁîÖ´ÐеĹý³ÌÖУ¬ÒòΪÊǵÚÒ»´ÎÖ´ÐУ¬ÐèÒªÊäÈëÃÜÂ룬Õâ¸öÃÜÂë±»¼ÓÃܱ£´æÔÚÓû§Ö÷Ŀ¼ÏµÄ.vnc×ÓĿ¼£¨/root/.vnc/passwd£©ÖУ»Í¬ ʱÔÚÓû§Ö÷Ŀ¼ÏµÄ.vnc×ÓĿ¼ÖÐΪÓû§×Ô¶¯½¨Á¢xstartupÅäÖÃÎļþ£¨/root/.vnc/xstartup£©£¬ÔÚÿ´ÎÆô¶¯VND·þÎñʱ£¬¶¼»á ¶ÁÈ¡¸ÃÎļþÖеÄÅäÖÃÐÅÏ¢¡£
BTW£º/root/.vnc/Ŀ¼Ï»¹ÓÐÒ»¸ö“testdb:1.pid”Îļþ£¬Õâ¸öÎļþ¼Ç¼×ÅÆô¶¯VNCºó¶ÔÓ¦ºóÌì²Ù×÷ϵͳµÄ½ø³ÌºÅ£¬ÓÃÓÚÍ£Ö¹VNC·þÎñʱ׼ȷ¶¨Î»½ø³ÌºÅ¡£
3.VNC·þÎñʹÓõĶ˿ںÅÓë×ÀÃæºÅµÄ¹Øϵ
VNC·þÎñʹÓõĶ˿ںÅÓë×ÀÃæºÅÏà¹Ø£¬VNCʹÓÃTCP¶Ë¿Ú´Ó5900¿ªÊ¼£¬¶ÔÓ¦¹ØϵÈçÏÂ
×ÀÃæºÅΪ“1” ---- ¶Ë¿ÚºÅΪ5901
×ÀÃæºÅΪ“2” ---- ¶Ë¿ÚºÅΪ5902
×ÀÃæºÅΪ“3” ---- ¶Ë¿ÚºÅΪ5903
……
»ùÓÚJavaµÄVNC¿Í»§³ÌÐòWeb·þÎñTCP¶Ë¿Ú´Ó5800¿ªÊ¼£¬Ò²ÊÇÓë×ÀÃæºÅÏà¹Ø£¬¶ÔÓ¦¹ØϵÈçÏÂ
×ÀÃæºÅΪ“1” ---- ¶Ë¿ÚºÅΪ5801
×ÀÃæºÅΪ“2” ---- ¶Ë¿ÚºÅΪ5802
×ÀÃæºÅΪ“3” ---- ¶Ë¿ÚºÅΪ5803
……
»ùÓÚÉÏÃæµÄ½éÉÜ£¬Èç¹ûLinux¿ªÆôÁË·À»ðǽ¹¦ÄÜ£¬¾ÍÐèÒªÊÖ¹¤¿ªÆôÏàÓ¦µÄ¶Ë¿Ú£¬ÒÔ¿ªÆô×ÀÃæºÅΪ“1”ÏàÓ¦µÄ¶Ë¿ÚΪÀý£¬ÃüÁîÈçÏÂ
Ïà¹ØÎĵµ£º
ÀýÒ»£º·¢ËÍSignaling Packet£º
Signaling CommandÊÇ2¸öBluetoothʵÌåÖ®¼äµÄL2CAP²ãÃüÁî´«Êä¡£ËùÒÔµÃSignaling CommandʹÓÃCID 0x0001.
¶à¸öCommand¿ÉÒÔÔÚÒ»¸öC-frame£¨control frame£©Öз¢ËÍ¡£
Èç¹ûÒªÖ±½Ó·¢ËÍSignaling Command.ÐèÒª½¨Á¢SOCK_RAWÀàÐ͵ÄL2CAPÁ¬½ÓSocket¡£ÕâÑù²ÅÓлú»á×Ô¼ºÌî³äCommand Code£¬Identi ......
LinuxϵͳÐÂÊÖѧϰµÄ11µã½¨Òé
Ëæ×ÅLinuxÓ¦ÓõÄÀ©Õ¹Ðí¶àÅóÓÑ¿ªÊ¼½Ó´¥Linux£¬¸ù¾ÝѧϰWindwosµÄ¾ÑéÍùÍùÓÐһЩãȻµÄ¸Ð¾õ£º²»Öª´ÓºÎ´¦¿ªÊ¼Ñ§Æð¡£ÕâÀï½éÉÜѧϰLinuxµÄһЩ½¨Òé¡£
Ò»¡¢´Ó»ù´¡¿ªÊ¼£º³£³£ÓÐЩÅóÓÑÔÚLinuxÂÛ̳ÎÊһЩÎÊÌ⣬²»¹ý£¬ÆäÖдó¶àÊýµÄÎÊÌⶼÊǺܻù´¡µÄ¡£ÀýÈ磺ΪʲôÎÒʹÓÃÒ»¸öÃüÁîµÄʱºò£¬ÏµÍ³¸æËßÎÒÕÒ² ......
Èý¡¢makeÊÇÈçºÎ¹¤×÷µÄ
ÔÚĬÈϵķ½Ê½Ï£¬Ò²¾ÍÊÇÎÒÃÇÖ»ÊäÈëmakeÃüÁî¡£ÄÇô£¬
1¡¢make»áÔÚµ±Ç°Ä¿Â¼ÏÂÕÒÃû×ֽГMakefile”»ò“makefile”µÄÎļþ¡£
2¡¢Èç¹ûÕÒµ½£¬Ëü»áÕÒÎļþÖеĵÚÒ»¸öÄ¿±êÎļþ£¨target£©£¬ÔÚÉÏÃæµÄÀý×ÓÖУ¬Ëû»áÕÒµ½“edit”Õâ¸öÎļþ£¬²¢°ÑÕâ¸öÎļþ×÷Ϊ×îÖÕµÄÄ¿±êÎļþ ......
LinuxÔÚϵͳÒýµ¼ÆÚ¼ä²éÕÒrootfs
×÷ΪһÃûLinux¹ÜÀíÔ±£¬Äú¿ÉÄÜ»áÔÚÔö¼ÓÍⲿ´æ´¢¾íÖ®ºó»òÕßÉõÖÁÔÚ°²×°Ð Linux ²Ù×÷ϵͳ֮ºó£¬³¢ÊÔÖØÐÂÆô¶¯·þÎñÆ÷ʱÓöµ½ÖîÈç cannot mount rootfs ºÍ kernel panic Ö®ÀàµÄ rootfs ´íÎó¡£±¾ÎĽ«¸ÅÒª½éÉÜ x86 ƽ̨É쵀 Linux Òýµ¼½ø³Ì£¬ÏÔʾ³öÏÖ´ËÎÊÌâµÄÔÒò£¬²¢Ìṩ±ÜÃâ»òÐÞÕý´ËÎ ......
linuxϵÄÎļþ½á¹¹£¬¿´¿´Ã¿¸öÎļþ¼Ð¶¼ÊǸÉÂðÓõÄ
/bin ¶þ½øÖÆ¿ÉÖ´ÐÐÃüÁî
/dev É豸ÌØÊâÎļþ
/etc ϵͳ¹ÜÀíºÍÅäÖÃÎļþ
/etc/rc.d Æô¶¯µÄÅäÖÃÎļþºÍ½Å±¾
/home Óû§Ö÷Ŀ¼µÄ»ùµã£¬±ÈÈçÓû§userµÄÖ÷Ŀ¼¾ÍÊÇ/home/user£¬¿ÉÒÔÓÃ~user±íʾ
/lib ±ê×¼³ÌÐòÉè¼Æ¿â£¬Óֽж¯Ì¬Á´½Ó¹²Ïí¿â£¬×÷ÓÃÀàËÆwindowsÀïµÄ.dllÎ ......