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

Linux²Ù×÷ϵͳÆô¶¯Á÷³ÌÓëGrubµÄÅäÖ÷½·¨

 ×÷Õߣºsixth
Ò»¡¢LinuxµÄÆô¶¯Á÷³Ì
 
1. ´ÓBIOSµ½KERNEL
BIOS×Լ죭>MBR(GRUB)£­>KERNEL£­>KERNEL×Ô½âѹ£­>Äں˳õʼ»¯£­>ÄÚºËÆô¶¯
2. ÄÚºËÆô¶¯£º´´½¨1££½ø³Ì²¢Ö´ÐУ¬ÓÉËü´´½¨Èô¸ÉÄÚºËỊ̈߳¨kernel thread£©£¬È»ºó×°Èë²¢Ö´ÐгÌÐò/sbin/init£¨±ä³ÉÒ»¸öÓû§½ø³Ì£©¡£´Ëºó£¬init¸ù¾Ý/etc/inittabÅäÖÃÎļþÀ´Ö´ÐÐÏàÓ¦µÄ½Å±¾½øÐÐϵͳ³õʼ»¯£¬ÈçÉèÖüüÅÌ¡¢×ÖÌ壬װÔØÄ£¿é£¬ÉèÖÃÍøÂçµÈ¡£
 
¶ÔÓÚRedhatÀ´Ëµ£¬Ö´ÐеÄ˳ÐòΪ£º
/etc/rc.d/rc.sysinit # ÓÉinitÖ´ÐеĵÚÒ»½Å±¾
/etc/rc.d/rc $RUNLEVEL # initÖ´ÐÐÖ¸¶¨ÔËÐ춱ð£¨$RUNLEVELΪȱʡµÄÔËÐÐģʽ£©µÄ¸÷½Å±¾£»
/etc/rc.d/rc.local #ÔËÐÐģʽ2¡¢3¡¢5ʱ»áÔËÐеĽű¾
/sbin/mingetty£¨»ògetty£© # µÈ´ýÓû§µÇ¼
 
/etc/inittabÖÐÖ¸¶¨ÁËϵͳµÄÔËÐ춱ð£¨RUNLEVEL£©£¬init¸ù¾ÝÔËÐ춱ðÆô¶¯Ïà¹ØµÄ·þÎñ£¨Ò»Ð©ºǫ́½ø³Ì£©£¬ÊµÏÖ²»Í¬µÄ¹¦ÄÜ¡£
 
RUNLEVELֵΪ:0£­6
 
0£ºhalt£¬ 1£ºµ¥Óû§£¬2£º¶àÓû§£¬3£º¶àÓû§²¢Æô¶¯NFS·þÎñ
4£º±£Áô£¬5£ºÔËÐÐxdm£¨X window£©ÒÔͼÐνçÃ淽ʽµÇ¼
6£ºreboot
 
3./etc/inittabÎļþ
 
/etc/inittabµÄÎļþÄÚÈÝÈçÏ£º
 
# É趨ϵͳ¿ª»úÔ¤ÉèµÄRUNLEVEL£º
id:3:initdefault:
 
# ¿ªÊ¼½øÐÐRUNLEVELµÄ·þÎñÆô¶¯Ç°£¬Ê¹ÓÃÀ´Õì²âÓë³õʼ»¯ÏµÍ³»·¾³µÄÉ趨Îļþ£º
si::sysinit:/etc/rc.d/rc.sysinit
 
# 7 ¸ö²»Í¬ run level µÄ£¬ÐèÒªÆô¶¯µÄ·þÎñµÄ scripts ·ÅÖ÷¾¶£º
l0:0:wait:/etc/rc.d/rc 0
l1:1:wait:/etc/rc.d/rc 1
l2:2:wait:/etc/rc.d/rc 2
l3:3:wait:/etc/rc.d/rc 3
l4:4:wait:/etc/rc.d/rc 4
l5:5:wait:/etc/rc.d/rc 5
l6:6:wait:/etc/rc.d/rc 6
 
# ÊÇ·ñÔÊÐí°´Ï [ctrl]+[alt]+[del] ¾ÍÖØпª»úµÄÉ趨ÏîÄ¿£º
ca::ctrlaltdel:/sbin/shutdown -t3 -r now
 
# ±¾»ú¶ËÖն˻úÆô¶¯µÄ¸öÊý£º
1:2345:respawn:/sbin/mingetty tty1
2:2345:respawn:/sbin/mingetty tty2
3:2345:respawn:/sbin/mingetty tty3
4:2345:respawn:/sbin/mingetty tty4
5:2345:respawn:/sbin/mingetty tty5
6:2345:respawn:/sbin/mingetty tty6
 
# ÔÚ X Window (RUNLEVEL 5) »·¾³ÏµÄÆô¶¯ script É趨ÏîÄ¿£º
 
x:5:once:/etc/X11/prefdm -nodaemon
 
Õâ¸öÎļþµÄÓï·¨ÊÇÕâÑùµÄ£º
 
±êʶ·û£º¼¶±ð£ºinit µÄ¶¯×÷ÐÐΪ:Ö¸ÁîÏî


Ïà¹ØÎĵµ£º

ʵսLinux Bluetooth±à³Ì(Áù) 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 ......

linuxÔý¼Ç

 :::::::Linux ϵÄһЩ³£ÓÃÃüÁî
# uname -a # ²é¿´ÄÚºË/²Ù×÷ϵͳ/CPUÐÅÏ¢
# head -n 1 /etc/issue # ²é¿´²Ù×÷ϵͳ°æ±¾
# cat /proc/cpuinfo # ²é¿´CPUÐÅÏ¢
# hostname # ²é¿´¼ÆËã»úÃû
# lspci -tv # ÁгöËùÓÐPCIÉ豸
# lsusb -tv # ÁгöËùÓÐUSBÉ豸
# lsmod # Áгö¼ÓÔصÄÄÚºËÄ£¿é
# env # ²é¿´»·¾³±äÁ¿
×ÊÔ´ ......

¡¾Linux¡¿LinuxΪÍø¿¨¾²Ì¬ÅäÖÃIPµØÖ·µÈ

linuxÖÐÓÃifconfigΪÍø¿¨ÅäÖÃIPµØÖ·µÈ£¬ÔÚϵͳÖØÆôºó¾ÍʧЧÁË¡£ÎªÁ˱£Ö¤ÅäÖÃÓÀ¾ÃÉúЧ£¬ÐèÒª²ÉÓÃÐÞ¸ÄÅäÖÃÎļþµÄ¾²Ì¬ÅäÖ÷½·¨£¬×ܽáÈçÏ£º
1. cd /etc/sysconfig/network-scripts¡£
2. vi ifcfg-eth0(Ò²¿ÉÄÜÊÇeth1£¬eth2£¬·Ö±ð¶ÔÓ¦²»Í¬µÄÍø¿¨)
3. ÅäÖÃÄÚÈÝÈçÏ£º
    DEVICE=eth0   //Íø¿¨É豸à ......

linux»ñÈ¡ÍøÂç½Ó¿ÚÃû£ºÈçeth0

 #include<stdio.h>
#include<string.h>
#include<stdlib.h>
#include<net/if.h>
static char *bad_interface_names[] = {
            "lo:",
            "lo",
&n ......

LinuxϵͳÍøÂçÅäÖÃÏê½â

       £±¡¢²é¿´IP¡¡¡¡Ifconfig
¡¡¡¡£²¡¢ÅäÖÃIPµÄ·½·¨£º
¡¡¡¡A¡¢ ÕâÖÖ·½·¨Á¢¼´ÉúЧ¡¡µ«ÊÇÖØÆô½«²»»á±£´æ¡££¨³ýÁËÕâ¸ö·½·¨µÄÆäËü·½·¨¶¼¿ÉÒÔ±£´æÏÂÀ´£©
¡¡¡¡Ifconfig eth£° 1.1.1.1 netmask 255.0.0.0 up
¡¡¡¡Ifconfig eth0:1 1.1.1.3 up¡¡¡¡ÉèÖÃÒ»¸öÍø¿¨¶à¸öIPµÄ·½·¨£¨ÔÚÉèÖÃÐéÄâÖ÷»úʱÓÐ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ