ÐéÄâ»úÏÂlinux¹ÒÔØUÅÌ
ÐèÒªÈÃÄãµÄÐéÄâ»úGuest OS(Linux)ÄÜ×Ô¶¯Ê¶±ðUÅÌ¡£
·½·¨ÈçÏ£º
±£³Ö½¹µãÔÚLinuxÉÏ£¬²åÈëUÅÌ£¬ÕâʱËÞÖ÷²Ù×÷ϵͳWindows»áµ¯³ö“ÕÒµ½ÐÂÉ豸µÄÌáʾ”£¬È»ºóÒ»²½Ò»²½
µÄµãÏÂÒ»²½£¬½áÊøÒԺ󣬾ͿÉÒÔÔÚlinuxʹÓÃfdisk -l /dev/sdbÃüÁî²é¿´µ½/dev/sdb1¡£
ÔÚÐéÄâ»úʶ±ð³öUSBÖ®ºó£¬ÓÃ
fdisk -l /dev/sdb
»ò
fdisk -l /dev/hdb(Èç¹ûfdiskÃüÁî²»ÄÜÓ㬽â¾ö°ì·¨¼ûÎÒÏÂһƪÎÄÕ£©
²é¿´£¬»á¿´µ½UÅ̱»Ê¶±ðΪsdb1£¬Ê¹ÓÃmountÃüÁî¹ÒÔؼ´¿É£¬ÏÈÔÚ/mnt½¨Ò»¸öеÄÎļþ¼Ð£¬ÀýÈçusb
Ôò¿Éͨ¹ý£º
mount -t vfat /dev/sdb1 /mnt/usb
¹ÒÔØÉÏUÅÌ
×¢Ò⣺µÚÒ»²½ºÜÖØÒª£¬·ñÔòfdisk -l /dev/sdb¿´²»µ½/dev/sdb1Õâ¸öÐÂÉ豸
жÔØʹÓãº
umount /dev/sdb1
±¾ÎÄÀ´×ÔCSDN²©¿Í£¬×ªÔØÇë±êÃ÷³ö´¦£ºhttp://blog.csdn.net/xqt8888/archive/2007/09/19/1790908.aspx
Ïà¹ØÎĵµ£º
1. HCI²ãÐÒé¸ÅÊö£º
HCIÌṩһÌ×ͳһµÄ·½·¨À´·ÃÎÊBluetoothµ×²ã¡£ÈçͼËùʾ£º
´ÓͼÉÏ¿ÉÒÔ¿´³ö£¬Host Controller Interface(HCI) ¾ÍÊÇÓÃÀ´¹µÍ¨HostºÍModule¡£Hostͨ³£¾ÍÊÇPC£¬ ModuleÔòÊÇÒÔ¸÷ÖÖÎïÀíÁ¬½ÓÐÎʽ£¨USB,serial,pc-cardµÈ£©Á¬½Óµ½PCÉϵÄbluetooth Dongle¡£
ÔÚHostÕâÒ»¶Ë£ºapplication,SDP,L2capµÈÐÒé ......
1 ´´½¨ºÍʹÓþ²Ì¬¿â
´´½¨Ò»¸ö¾²Ì¬¿âÊÇÏ൱¼òµ¥µÄ¡£Í¨³£Ê¹Óà ar ³ÌÐò°ÑһЩĿ±êÎļþ£¨.o£©×éºÏÔÚÒ»Æð£¬
³ÉΪһ¸öµ¥¶ÀµÄ¿â£¬È»ºóÔËÐÐ ranlib£¬ÒÔ¸ø¿â¼ÓÈëһЩË÷ÒýÐÅÏ¢¡£
2 ´´½¨ºÍʹÓù²Ïí¿â
ÌØÊâµÄ±àÒëºÍÁ¬½ÓÑ¡Ïî
-D_REENTRANT ʹµÃÔ¤´¦ÀíÆ÷·ûºÅ _REENTRANT ±»¶¨Ò壬Õâ¸ö·ûºÅ¼¤»î ......
ÔÚlinuxϵͳÏ£¬Èç¹ûÄãÏÂÔز¢°²×°ÁËÓ¦ÓóÌÐò£¬ºÜÓпÉÄÜÔÚ¼üÈëËüµÄÃû³Æʱ³öÏÖ“command not found”µÄÌáʾÄÚÈÝ¡£Èç¹ûÿ´Î¶¼µ½°²×°Ä¿±êÎļþ¼ÐÄÚ£¬ÕÒµ½¿ÉÖ´ÐÐÎļþÀ´½øÐвÙ×÷¾ÍÌ«·±ËöÁË¡£ÕâÉæ¼°µ½»·¾³±äÁ¿PATHµÄÉèÖÃÎÊÌ⣬¶øPATHµÄÉèÖÃÒ²ÊÇÔÚlinux϶¨ÖÆ»·¾³±äÁ¿µÄÒ»¸ö×é³É²¿·Ö¡£±¾ÎÄ»ùÓÚRedHat 9.0£¬Ïêϸ½²½âÁË»·¾ ......
linux shell pwd ÏÔʾµ±Ç°Â·¾¶
¼ÙÈôÓÐtest.cpp
g++ test.cpp -o test
./test
ÏëÔÚtestÖÐÕÒµ½µ±Ç°Ö´ÐгÌÐòËùÔڵķ¾¶
¿ÉÒÔÔÙtest.cppÖÐʹÓÃreadlinkº¯Êý
¾ßÌå¼ûÈçÏÂʵÀý£º
#include<iostream>
#include<unistd.h>
#include<dirent.h>
#include<string.h>
#include<string>
using ......