Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

Èý´ó¶¥¼¶Linux·¢ÐÐ°æ ½ñÌìÄãÓÃÁËÂð£¿

ÕªÒª£ºÕ§¿´ÉÏÈ¥£¬RedHatµÄFedora 12¡¢NovellµÄOpenSUSE 11.2ºÍCanonicalµÄUbuntu 9.10ÕâÈý¸öÄ¿Ç°×¼¶µÄLinux·¢Ðа漸ºõûÓÐʲôÇø±ð¡£ËüÃǶ¼»ùÓÚ×îеÄLinuxÄںˣ¬¶¼°üº¬ÁËÈçOpenOfficeºÍFirefoxµÈ¿ªÔ´Ó¦Óᣲ»¹ý£¬Ö»ÒªÄã×Ðϸ¹Û²ì¾Í»á·¢ÏÖÕæÕýµÄ²î±ð£¬Ã¿¸ö·¢Ðа涼Õë¶Ô×Ų»Í¬µÄÓû§¡£
¡¾51CTO.com¿ìÒë×Ô12ÔÂ18ÈÕÍâµçÍ·Ìõ¡¿Õ§¿´ÉÏÈ¥£¬RedHatµÄFedora 12¡¢NovellµÄOpenSUSE 11.2ºÍCanonicalµÄUbuntu 9.10ÕâÈý¸öÄ¿Ç°×¼¶µÄLinux·¢Ðа漸ºõûÓÐʲôÇø±ð¡£ËüÃǶ¼»ùÓÚ×îеÄLinuxÄںˣ¬¶¼°üº¬ÁËÈçOpenOfficeºÍFirefoxµÈ¿ªÔ´Ó¦Óᣲ»¹ý£¬Ö»ÒªÄã×Ðϸ¹Û²ì¾Í»á·¢ÏÖÕæÕýµÄ²î±ð£¬Ã¿¸ö·¢Ðа涼Õë¶Ô×Ų»Í¬µÄÓû§£¬Ö®Ç°51CTO.comÒ²±¨µÀ¹ýÈçºÎÑ¡ÔñLinux°æ±¾µÄÑ¡Ì⣬Éæ¼°µÄ°æ±¾²»¾ÖÏÞÓÚÕâÈý¸ö°æ±¾£¬ÓÐÐËȤµÄ51CTO.com¶ÁÕß¿ÉÒԲο´¡¶ÈçºÎÑ¡Ôñ×îÊʺϵÄLinux°æ±¾¡·¡¶Ñ¡ÔñLinux·¢Ðа汾ÐèÒª¿¼ÂǵÄ10¼þÊÂÇé¡·¡£
ÔÚ×îµ×²ã£¬Èý¸öϵͳʹÓõĶ¼ÊÇ2.6.31 LinuxÄںˣ¬µ«ÏòÉÏ×ߣ¬ËüÃÇÖ®¼äµÄ·ÖÆ翪ʼ³öÏÖ¡£ÀýÈçFedoraºÍUbuntuʹÓÃGNOME 2.28£¬¶øOpenSUSEʹÓÃKDE 4.3.1¡£
²âÊÔ»·¾³
ΪÁËʹËüÃǵIJ½µ÷Ïàͬ£¬ÎÒÔÚһ̨´÷¶ûInspiron 530SÉϱ¾µØ°²×°ÁËÕâÈý¸ö·¢Ðа棬»úÆ÷µÄÅäÖÃΪ2.2 GHz Intel Pentium E2200Ë«ºË´¦ÀíÆ÷£¨800MHzÇ°¶Ë×ÜÏߣ©£¬4GBµÄÄڴ棬500GBµÄSATAÓ²ÅÌ£¬Ö÷°å¼¯³ÉIntel 3100 GMAоƬ×é¡£
ÎÒ»¹½«Èý¸öÑ¡ÊÖ·Ö±ð×÷ΪÖ÷²Ù×÷ϵͳ°²×°ÔÚSunµÄVirtualBox 3.0.12ÐéÄâ»ú×öÁ˲âÊÔ¡£×îºó£¬ÎÒÔÚLenovo ThinkPad R61±Ê¼Ç±¾ÉÏ°²×°ÁËFedoraºÍOpenSUSE£¬ÔÚ´÷¶ûMini 9ÉÏÍø±¾ÉÏ°²×°ÁËUbuntu¡£
ÔÚ°²×°Ê±ÎÒûÓÐÅöµ½ÈκÎÂé·³£¬ÔÚÿһÖÖÇé¿öÏ£¬ÎÒËùÐèÒª×öµÄ¾ÍÊDzåÈëCD¡¢DVD»òUSB¼ÇÒä°ô£¬È»ºó°´ÕÕÒªÇóÆô¶¯PC£¬È÷¢Ðаæ×Ô¼ºÍê³É°²×°¡£
Fedora 12
Red HatµÄFedoraÏîÄ¿¸ºÔðÈËPaul FrieldsÔø¾­ÐÎÈÝFedoraΪ“¿ªÔ´¹±Ï×ÕߵĵÚһѡÔñ”¡£Òò´Ë£¬Èç¹ûÄãÊÇÒ»¸öLinuxµÄ×ÊÉîÓû§£¬Äã»áϲ»¶Fedora¡£µ«Èç¹ûÄã²»ÊÇ£¬Ëü¿ÉÄܾͲ»ÊÇÊʺÏÄãµÄ·¢Ðа档
Õâ²¢²»ÊÇ˵FedoraºÜÄÑʹÓã¬ËäÈ»Ëü²»ÏñUbuntuÄÇÑù¶ÔÐÂÊַdz£ÓѺ㬵«´ó¶àÊýLinuxÓû§ÉÏÊÖÆðÀ´Ó¦¸ÃûÓÐʲôÎÊÌ⣬¼´Ê¹ËûÃDz»ÊÇLinux¿ª·¢Õß¡£
Fedora 12µÄÌÖÈËϲ»¶Ö®´¦Óкܶ࣬ËüµÄÆô¶¯Ëٶȳ¬¿ì£¬ÓÈÆäÊÇÔÚʹÓÃIntel AtomÕâÑùµÄµÍÄܺĴ¦ÀíÆ÷ʱ¡£Æô¶¯Ö®ºó£¬Æ¯ÁÁµÄGNOME½çÃæʹÓÃÆðÀ´Ò²ºÜ·½±ã¡£ÔÚÄÚ²¿£¬GNOME 2.28ÒѾ­¾­¹ýÓÅ»¯£¬ÔڵͶËÓ²¼þÉϱíÏÖÁ¼ºÃ¡£ÄÚ´æ¹ÜÀíÒ²±È¹ýÈ¥¸üºÃ£¬ÕâÌåÏÖÔÚFedoraÖÐÔËÐÐKVMÐéÄâ»úʱ£¬ÏÖÔÚÄã¿ÉÒÔÔÚͬһӲ¼þÉÏÔËÐбÈÒÔÇ°¸ü¶


Ïà¹ØÎĵµ£º

Linux Óû§²ãÈçºÎµ÷ÓýӿÚÉèÖüĴæÆ÷

ÏÂÃæµÄ´úÂë·ÖÎöÊǸù¾Ýlinux-2.6.17.14_stm22°æ±¾
#define STSYS_WriteRegDev32LE(Address_p, value)          writel((u32)value, (void*)Address_p)
ÔÚinclude/asm-sh/io.h
#define writel(v,a) ({__raw_writel((v),(a));mb();})
#define __raw_write(v,a)  __writ ......

Linux²é¿´ÏµÍ³ÅäÖó£ÓÃÃüÁî

ϵͳ
# uname -a               # ²é¿´ÄÚºË/²Ù×÷ϵͳ/CPUÐÅÏ¢
# head -n 1 /etc/issue   # ²é¿´²Ù×÷ϵͳ
°æ±¾
# cat /proc/cpuinfo      # ²é¿´CPUÐÅÏ¢
# hostname      &n ......

һЩlinux ÃüÁî

#include<unistd.h>
¡¡¡¡¶¨Ò庯Êý£º
¡¡¡¡int execvp(const char *file ,char * const argv []);
¡¡¡¡º¯Êý˵Ã÷£º
¡¡¡¡execvp()»á´ÓPATH »·¾³±äÁ¿ËùÖ¸µÄĿ¼ÖвéÕÒ·ûºÏ²ÎÊýfile µÄÎļþÃû£¬ÕÒµ½ºó±ãÖ´ÐиÃÎļþ£¬È»ºó½«µÚ¶þ¸ö²ÎÊýargv´«¸ø¸ÃÓûÖ´ÐеÄÎļþ¡£
¡¡¡¡·µ»ØÖµ£º
¡¡¡¡Èç¹ûÖ´Ðгɹ¦Ôòº¯Êý²»»á·µ»Ø£¬Ö´ÐÐʧ°ÜÔ ......

linux/init.h ÖÐ__init

ԭʼ¶¨Òå:include/linux/init.h
__initºÍ__exit±ê¼Çº¯Êý£¬__initdataºÍ__exitdata±ê¼ÇÊý¾Ý¡£
´Ëºê¶¨Òå¿ÉÖª±ê¼ÇºóµÄº¯ÊýÓëÊý¾ÝÆäʵÊǷŵ½ÁËÌض¨µÄ£¨´úÂë»òÊý¾Ý£©¶ÎÖС£±ê¼ÇΪ³õʼ»¯µÄº¯Êý,±íÃ÷¸Ãº¯Êý¹©ÔÚ³õʼ»¯ÆÚ¼äʹÓá£ÔÚÄ£¿é×°ÔØÖ®ºó£¬Ä£¿é×°ÔؾͻὫ³õʼ»¯º¯ÊýÈÓµô¡£ÕâÑù¿ÉÒÔ½«¸Ãº¯ÊýÕ¼ÓõÄÄÚ´æÊͷųöÀ´¡£
 
__ ......

Á½Ì¨ÐéÄâ»úLinuxϵͳsocketͨÐÅ

·þÎñÆ÷£º
#include <stdio.h>
#include <sys/socket.h>
#include <unistd.h>
#include <sys/types.h>
#include <netinet/in.h>
#include <stdlib.h>
#include <time.h>
#define SERVER_PORT 20000 // define the defualt connect port id
#define LENGTH_OF_LISTEN_QU ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ