LinuxÖÐÌí¼Ósudoer
ʹÓÃsudo¿ÉÒÔÔÚÒÔ·ÇrootÓû§µÇ¼ʱÁÙʱ»ñµÃrootȨÏÞ£¬²¢Ö´ÐÐÐèÒªµÄÃüÁî¡£
¿ÉÒÔʹÓÃsudoµÄÓû§¿ÉÒÔ½Ð×ösudoer¡£
Ìí¼ÓsudoerµÄ·½·¨£¨¼ÙÉèÄúÒѾ°²×°sudo£©£º
Ö´ÐÐ
# visudo
»ò
# sudoedit
Ìáʾ£º
ÓÐЩ·¢ÐаæµÄsudoÌṩÁËsudoedit£¬ÓеÄÔòÌṩÁËvisudo£¬¹¦ÄÜÉÏ»ù±¾ÊÇÒ»ÑùµÄ¡£
ÄãÒ²¿ÉÒÔʹÓÃÆäËû±à¼Æ÷Èçvi½øÐбà¼/etc/sudoers£¬µ«ÓÉÓÚÎļþÊÇÖ»¶ÁµÄ£¬ÇëÇ¿ÖƱ£´æ£¨Èçw!£©»òÈ¥³ýÖ»¶ÁÊôÐÔÔÙ±£´æ¡£
²éÕÒ
root ALL=(ALL) ALL
ÔÚÏÂÃæ¼ÓÈë
%adm ALL=(ALL) ALL
Èç¹ûsudoʱ²»ÏëÊäÈëÃÜÂ룬¿ÉÒÔ°ÑÉϾä¸Ä³É£º
%adm ALL=(ALL) NOPASSWD: ALL
±£´æÎļþ£¬È»ºóÖ´ÐÐ
#gpasswd -a ̞ adm
È»ºóÕâ¸öÓû§¾Í¿ÉÒÔÓÃsudoÁË¡£
Ïà¹ØÎĵµ£º
1. HCI²ãÐÒé¸ÅÊö£º
HCIÌṩһÌ×ͳһµÄ·½·¨À´·ÃÎÊBluetoothµ×²ã¡£ÈçͼËùʾ£º
´ÓͼÉÏ¿ÉÒÔ¿´³ö£¬Host Controller Interface(HCI) ¾ÍÊÇÓÃÀ´¹µÍ¨HostºÍModule¡£Hostͨ³£¾ÍÊÇPC£¬ ModuleÔòÊÇÒÔ¸÷ÖÖÎïÀíÁ¬½ÓÐÎʽ£¨USB,serial,pc-cardµÈ£©Á¬½Óµ½PCÉϵÄbluetooth Dongle¡£
ÔÚHostÕâÒ»¶Ë£ºapplication,SDP,L2capµÈÐÒé ......
£¨L2CAPÐÒé¼ò½é£¬L2CAPÔÚBlueZÖеÄʵÏÖÒÔ¼°L2CAP±à³Ì½Ó¿Ú£©
Ò»£ºL2CAPÐÒé¼ò½é£º
Logical Link Control and Adaptation Protocol(L2CAP)
Âß¼Á¬½Ó¿ØÖƺÍÊÊÅäÐÒé (L2CAP) ΪÉϲãÐÒéÌṩÃæÏòÁ¬½ÓºÍÎÞÁ¬½ÓµÄÊý¾Ý·þÎñ£¬²¢Ìṩ¶àÐÒ鹦ÄܺͷָîÖØ×é²Ù×÷¡£L2CAP ³äÐíÉϲãÐÒéºÍÓ¦ÓÃÈí¼þ´«ÊäºÍ½ÓÊÕ×î´ó³¤¶ÈΪ 64K µÄ L2CAP Ê ......
ÀýÒ»£º·¢ËÍ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 ......
¶ÔÐí¶àÓû§À´Ëµ£¬ÔÚDOSºÍWindows»·¾³ÏÂÀûÓù¤¾ßÈí¼þWinZip¡¢ARJµÈѹËõ»ò½âѹÎļþÊDZȽÏÈÝÒ×µÄÊ¡£µ«ÊÇ£¬ÔÚLinuxÖÐÈçºÎ¶ÔÎļþ½øÐÐѹËõÓë½âѹÄØ£¿
ÓÃtar½¨Á¢´æµµ
tarÊÇ“tape archive”(´Å´ø´æµµ)µÄ¼ò³Æ£¬Ëü³öÏÖÔÚ»¹Ã»ÓÐÈíÅÌÇý¶¯Æ÷¡¢Ó²Å̺͹âÅÌÇý¶¯Æ÷µ ......
ÏñPHPºÍperlÒ»Ñù£¬MySQLÒ²ÌṩµÄCÓïÑÔʹÓõÄAPI. C´úÂëµÄAPIÊÇËæMySQLÒ»Æð·¢²¼µÄ¡£ Ëü°üº¬ÔÚmysqlclient¿âÖУ¬ ¿ÉÒÔʹC³ÌÐòÀ´·ÃÎÊÊý¾Ý¿â¡£
MySQLÔ´Âë°üÖеÄÐí¶à¿Í»§¶Ë¶¼ÊÇÓÃCдµÄ¡£ Èç¹ûÄãÕýÔÚÕÒʹÓÃÕâЩC APIµÄÀý×Ó£¬ ¿ÉÒÔ¿´¿´¿Í»§¶ËµÄд·¨¡£Äã¿ÉÒÔÔÚMySQLÔ´Âë°üµÄclientsĿ¼ÕÒµ½ÕâЩÀý×Ó¡£
& ......