Redhat Linux Ó²Å̹ÒÔØ·½·¨£¡£¡£¡
²Î¿¼×ÊÁÏ£ºhttp://www.blogjava.net/lijun_li/archive/2009/04/02/263491.html
http://www.chinalinuxpub.com/read.php?wid=1080
Ó²Å̹ÒÔزÙ×÷¹¤×÷²½Ö裺
1¡¢ÏȲ鿴Ŀǰ»úÆ÷ÉÏÓм¸¿éÓ²ÅÌ£¬²é¿´ÃüÁîÓÐÁ½ÖÖ£º
ÃüÁî1£º# fdisk –l
ÃüÁî2£º# dmesg | grep sd
ÆäÖУºfdiskÃüÁî˵Ã÷ÈçÏ£º
fdiskÃüÁîÓÃ;£º¹Û²ìÓ²Å̵ÄʵÌåʹÓÃÇéÐÎÓë·Ö¸îÓ²ÅÌÓá£
fdiskÃüÁîʹÓ÷½·¨£º
¡¡ Ò»¡¢ÔÚ console ÉÏÊäÈë fdisk -l £¬¹Û²ìÓ²ÅÌ֮ʵÌåʹÓÃÇéÐΡ£
¶þ¡¢ÔÚ console ÉÏÊäÈë fdisk /dev/sda£¨¾ßÌå´ÅÅÌÃû³Æ£©£¬¿É½øÈë·Ö¸îÓ²ÅÌģʽ¡£
Ø ÊäÈë m ÏÔʾËùÓÐÃüÁîÁÐʾ¡£
Ø ÊäÈë p ÏÔʾӲÅÌ·Ö¸îÇéÐΡ£
Ø ÊäÈë a É趨ӲÅÌÆô¶¯Çø¡£
Ø ÊäÈë n É趨еÄÓ²ÅÌ·Ö¸îÇø¡£
Ø ÊäÈë e Ó²ÅÌΪ[ÑÓÉì]·Ö¸îÇø(extend)¡£
Ø ÊäÈë p Ó²ÅÌΪ[Ö÷Òª]·Ö¸îÇø(primary)¡£
Ø ÊäÈë t ¸Ä±äÓ²ÅÌ·Ö¸îÇøÊôÐÔ¡£
Ø ÊäÈë d ɾ³ýÓ²ÅÌ·Ö¸îÇøÊôÐÔ¡£
Ø ÊäÈë q ½áÊø²»´æÈëÓ²ÅÌ·Ö¸îÇøÊôÐÔ¡£
Ø ÊäÈë w ½áÊø²¢Ð´ÈëÓ²ÅÌ·Ö¸îÇøÊôÐÔ¡£
dmesgÃüÁî˵Ã÷ÈçÏ£º
¹¦ÄÜ˵Ã÷£ºÏÔʾ¿ª»úÐÅÏ¢¡£
Óï¡¡¡¡·¨£ºdmesg [-cn][-s ]
²¹³ä˵Ã÷£ºkernel»á½«¿ª»úÐÅÏ¢´æ´¢ÔÚring bufferÖС£ÄúÈôÊÇ¿ª»úʱÀ´²»¼°²é¿´ÐÅÏ¢£¬¿ÉÀûÓÃdmesgÀ´²é¿´¡£¿ª»úÐÅÏ¢Òà±£´æÔÚ/var/logĿ¼ÖУ¬Ãû³ÆΪdmesgµÄÎĵµÀï¡£
²Î¡¡¡¡Êý£º
¡¡-c ¡¡ÏÔʾÐÅÏ¢ºó£¬Çå³ýring bufferÖеÄÄÚÈÝ¡£
¡¡-s ¡¡Ô¤ÅäÖÃΪ8196£¬¸ÕºÃµÈÓÚring bufferµÄ´óС¡£
¡¡-n ¡¡ÅäÖüǼÐÅÏ¢µÄ²ã¼¶¡£
2¡¢¶ÔÒª¹ÒÔصÄÓ²ÅÌ´´½¨´ÅÅÌ·ÖÇø
´´½¨´ÅÅÌ·ÖÇø²½Öè¾ÙÀýÈçÏ£º
# fdisk /dev/sdb
½øÈëfdiskģʽ£º
Command (m for help):m &nbs
Ïà¹ØÎĵµ£º
Service Discovery Protocol(SDP)ÌṩһÖÖÄÜÁ¦£¬ÈÃÓ¦ÓóÌÐòÓз½·¨·¢ÏÖÄÄÖÖ·þÎñ¿ÉÓÃÒÔ¼°ÕâÖÖ·þÎñµÄÌØÐÔ¡£
·þÎñ·¢ÏÖÐÒé(SDP»òBluetooth SDP)ÔÚÀ¶ÑÀÐÒéÕ»ÖжÔÀ¶ÑÀ»·¾³ÖеÄÓ¦ÓóÌÐòÓÐÌØÊâµÄº¬Ò⣬·¢ÏÖÄĸö·þÎñÊÇ¿ÉÓõĺÍÈ·¶¨ÕâЩ¿ÉÓ÷þÎñµÄÌØÕ÷¡£SDP¶¨ÒåÁËbluetooth client·¢ÏÖ¿ÉÓÃbluetooth server·þÎñºÍËüÃǵÄÌØÕ÷µÄ·½·¨¡£ ......
1¡¢ ¹ØÓÚÍøÂç½Ó¿Ú¼°ÅäÖù¤¾ß˵Ã÷£»
ÍøÂç½Ó¿Ú(interface)ÊÇÍøÂçÓ²¼þÉ豸ÔÚ²Ù×÷ϵͳÖеıíʾ·½·¨£¬±ÈÈçÍø¿¨ÔÚLinux²Ù×÷ϵͳÖÐÓà ethX,ÊÇÓÉ0¿ªÊ¼µÄÕýÕûÊý£¬±ÈÈçeth0¡¢eth1...... ethX¡£¶øÆÕͨèºÍADSLµÄ½Ó¿ÚÊÇ pppX£¬±ÈÈçppp0µÈ£»
ÔÚLinux²Ù×÷ϵͳÖÐÅäÖÃÍøÂç½Ó¿Ú£¬Ò»°ãÊÇͨ¹ýÍøÂçÅäÖù¤¾ßʵÏֵģ¬µ«×îÖÕÄ¿µÄ»¹ÊÇͨ¹ýÍ ......
gcc mousekey.c -lX11 -IX11
´ò¿ªmousekeysÔËÐÐ./a.out
¹Ø±ÕmousekeysÔËÐÐ./a.out 1,ÕâÀïÔÚa.outºóÃæËæ±ã¼ÓÒ»¸ö²ÎÊý¾Í¿ÉÒÔÁË£¬ÒòΪÅжÏÌõ¼þΪ if(argc < 2)
/*********source code***************/
#include <stdio.h>
#include <string.h>
#include <X11/Xlib.h>
#include <X ......
ÉèÖÃdsnºóËäÈ»ÐéÄâ»ú¿ÉÒÔÉÏÍøÁË£¬µ«ÊÇÓû§Ãû±ä³ÉÁËbogon£¬¶ø²»ÊÇ֮ǰµÄlocalhost£¬È¥µôDNSºóÖØÆôÐéÄâ»ú¾ÍÓÖ±ä³ÉÁËlocalhost
È»ºó¾Í¿ÉÒÔmount±¾»úÁË
»¹ÓÐÒ»ÖÖ·½·¨£º
hostname ÏÔʾµ±Ç°Ö÷»úÃû
hostname localhost ÉèÖõ±Ç°Ö÷»úÃûΪlocalhost
¹À¼ÆÒ²¿ÉÒÔ½â¾öÉÏÊö²»ÄÜmountµÄÎÊÌâ¡£ ......
typedef struct siginfo
{
int si_signo; /* Signal number.*/
&n ......