ÀÏÊÖ¾Ñé:LinuxÇý¶¯³ÌÐò¿ª·¢Ñ§Ï°²½Öè [תstonly]
2009-10-21
1. ѧ»áд¼òµ¥µÄmakefile
2. ±àÒ»Ó¦ÓóÌÐò£¬¿ÉÒÔÓÃmakefileÅÜÆðÀ´
3. ѧ»áдÇý¶¯µÄmakefile
4. дһ¼òµ¥charÇý¶¯£¬makefile±àÒëͨ¹ý£¬¿ÉÒÔinsmod, lsmod, rmmod. ÔÚÇý¶¯µÄinitº¯ÊýÀï´òÓ¡hello world, insmodºóÓ¦¸ÃÄܹ»Í¨¹ýdmesg¿´µ½Êä³ö¡£
5. дһÍêÕûÇý¶¯£¬ ¼ÓÉÏread, write, ioctl, pollingµÈ¸÷ÖÖº¯ÊýµÄÇý¶¯ÊµÏÖ¡£ ÔÚioctlÀïÍê³É´ÓÓû§¿Õ¼äÏòÄں˿ռ䴫µÝ½á¹¹ÌåµÄʵÏÖ¡£
6. дһblockÇý¶¯£¬ ¼ÓÉÏread,write,ioctl,pollµÈ¸÷ÖÖº¯ÊýʵÏÖ¡£
7. ¼òµ¥Ñ§Ï°ÏÂÄÚ´æ¹ÜÀí£¬ Õâ¸öÊÇ×îÄѵģ¬Ã÷°×¸÷ÖÖmemory allocµÄº¯ÊýʵÏÖϸ½Ú¡£ÕâÊÇlinux¿ª·¢µÄ»ù±¾¹¦¡£
8. ѧϰËø»úÖƵÄÓ¦Óã¬Õâ¸ö²»ÊÇ×îÄѵĵ«ÊÇ×îÈÝÒ×·¸´íµÄ£¬Éæ¼°µ½ºÜ¶àͬ²½ºÍ²¢·¢µÄÎÊÌâ¡£
9. ¿´ÄÚºËÖÐʵ¼ÊÓ¦ÓõÄÇý¶¯´úÂë¡£ Äã»á·¢ÏÖ×î»ù±¾µÄÄãÒѾ֪µÀÁË£¬ ´óµÄ¿ò¼Ü¶¼ÊÇÒ»ÑùµÄ£¬ ÎÞ·ÇÊÇread, write, ioctlµÈº¯ÊýµÄʵÏÖ£¬ µ«ÀïÃæ°üº¬Á˺ܶàºÜ¶àϸСµÄʵÏÖϸ½ÚÊÇ֮ǰ²»ÖªµÀµÄ¡£ Õâʱºò¾ÍÒª¿¼Âǵ½ºÜ¶à±ðµÄÎÊÌâ¶ø²»½ö½öÊÇ»ù±¾¹¦ÄܵÄʵÏÖ¡£
ÍƼöÄú¿´2.6.20ÖÐintegratedµÄÒ»¸öÇý¶¯ kvm£¬¼ÇµÃÊÇÔÚdriver/lguestÏ£¬ºÜºÃÍæµÄ£¬¾ÍÊÇlinuxϵÄÐéÄâ»úÇý¶¯£¬´úÂë²»³¤£¬µ«¹¦ÄÜÇ¿´ó¡£ÓÐÄÜÁ¦µÄ¿ÉÒÔ×Ô¼ºÐ´Ò»²Ù×÷ϵͳ°´ÕÕÒªÇó×ö³É´ÅÅ̾µÏñ¼ÓÔص½ÐéÄâ»úÖУ¬È»ºó¿Í»§»ú¿ÉÒÔÓÐ×Ô¼ºµÄ4GÐéÄâµØÖ·¿Õ¼ä¡£
10. ¿´ÍêÇý¶¯»¶ÓÄú½øÈëLinux kernelѧϰÖÐÀ´¡£
×î¼òµ¥µÄ·½·¨£¬¸ú×Åldd(linux devive driver)×öÒ»±é¡£
Ïà¹ØÎĵµ£º
×ÜÀÀ
ÓÃiptables -ADC À´Ö¸¶¨Á´µÄ¹æ
Ôò
£¬-AÌí¼Ó -Dɾ³ý -C ÐÞ¸Ä
iptables - [RI] chain rule num rule-specification[option]
ÓÃiptables - RI ͨ¹ý¹æÔòµÄ˳ÐòÖ¸¶¨
iptables -D chain rule num[option]
ɾ³ýÖ¸¶¨¹æÔò
iptables -[LFZ] [chain][option]
ÓÃiptables -LFZ Á´Ãû [Ñ¡Ïî]
iptables -[NX] chain
ÓÃ -NX ......
2009 Äê 4 ÔÂ 23 ÈÕ
±¾ÎÄÖÐÎÒÃÇÕë¶Ô Linux É϶àÏ̱߳à³ÌµÄÖ÷ÒªÌØÐÔ×ܽá³ö 5 Ìõ¾Ñ飬ÓÃÒÔ¸ÄÉÆ Linux ¶àÏ̱߳à³ÌµÄÏ°¹ßºÍ±ÜÃâÆäÖеĿª·¢ÏÝÚå¡£ÔÚ±¾ÎÄÖУ¬ÎÒÃÇ´©²åһЩ Windows µÄ±à³ÌÓÃÀýÓÃÒÔ¶Ô±È Linux ÌØÐÔ£¬ÒÔ¼ÓÉî¶ÁÕßÓ¡Ïó¡£
±³¾°
Linux ƽ̨ÉϵĶàÏ̳߳ÌÐò¿ª·¢Ïà¶ÔÓ¦ÆäËûƽ̨£¨±ÈÈç Windows£©µÄ¶àÏß³Ì API ÓÐһЩϸ΢ ......
¶ÔÓÚ¶¯Ì¬Á´½Ó¿âºÍ¾²Ì¬Á´½Ó¿âµÄ¸ÅÄîÒÔ¼°Á´½Ó·½Ê½²»ÔÙÀÛ׸¡£Ö±½Ó¿ªÊ¼ÉÏ´úÂëºÍ½øÐбàÒë¡£-__-||¡£
´úÂëºÜ¼òµ¥£¬ºáÊú¾ÍÈý¸öµ±¼ÒµÄ¡£
¿âÍ·Îļþcorey.hpp:
#ifndef LIBRARY_H
#define LIBRARY_H
void add(int,int,int*);
#endif
¿âʵÏÖÎļþcorey.cpp
#include "corey.hpp"
void add(int a,int b,int *c){
int total=a ......
²¥·ÅÎļþ
ʹÓà MPlayer ²¥·ÅýÌåÎļþ×î¼òµ¥µÄ·½Ê½ÊÇ£º
mplayer <somefile>
MPlayer »á×Ô¶¯¼ì²âÎļþµÄÀàÐͲ¢¼ÓÒÔ²¥·Å£¬Èç¹ûÊÇÒôƵÎļþ£¬Ôò»áÔÚÃüÁîÐÐÖÐÏÔʾ¸Ã²¥·ÅÎļþµÄ״̬ÐÅÏ¢£»¶ø¼ÙÈçÊÇÊÓƵÎļþµÄ»°£¬Ôò»á´ò¿ªÒ»¸öеIJ¥·Å´°¿Ú¡£
µ¹ÍËÓë¿ì½ø
ÔÚ²¥·ÅÎļþµÄʱºò£¬Äã¿ÉÒÔͨ¹ýÒÔÏÂÈý×é¿ì½Ý¼üÀ´¶Ô²¥·Å½ø³Ì½øÐе¹ÍËÓ ......
´ó¼Ò¶¼ÖªµÀÐÞ¸ÄlinuxϵÄDNS¿ÉÒÔÖ±½ÓÐÞ¸Ä/etc/resolv.conf:
root@xuanfei-desktop:~#vim /etc/resolv.conf
nameserver ip //ÌîÉÏÄãµ±µØʹÓõÄ×î¿ìDNS·þÎñÆ÷IPµØÖ·
nameserver ip
µ±È»Ò²¿ÉÒÔÖ±½ÓʹÓÃÍøÂç¹ÜÀíÆ÷Ð޸ġ£
µ«ÊÇÈç¹ûÄãËùÔÚ»ú¹¹»òÕß¹¤×÷µÄµØ·½±ØÐëÒªÇóÄãÓÃDHCP»ñµÃ×Ô¼º·Ç¹Ì¶¨¶¯Ì¬IP ......