ǶÈëʽlinuxÉÕд(¶þ)—LinuxÄں˵IJüôºÍ±àÒë
Ò»¡¢Äں˵ĻñµÃ
¿ÉÒÔ´ÓÍøÉÏÏÂÔØÄÚºËÎļþ£¬http://www.kernel.org¡£Èç¹ûÊÇΪÁËÁ·Ï°£¬¾¡Á¿ÏÂÔØ£².4.xµÄÄںˡ£ÒòΪ2.6.xµÄÄں˱Ƚϴ󣬵±È»±àÒëÒ²ÐèÒª¸ü¶¼µÄʱ¼ä¡£
¶þ¡¢Äں˵ıàÒë
LinuxÄں˵ıàÒë²Ëµ¥Ö÷ÒªÓÐÈý¸ö°æ±¾£º
£±£©make config£º½øÈëÃüÁîÐУ¬¿ÉÒÔÒ»ÐÐÒ»ÐеÄÅäÖá£
£²£©make menuconfig£º¿ª·¢ÈËÔ±±È½ÏÊìϤµÄmenuconfig²Ëµ¥¡£
£³£©make xconfig£ºÔÚ2.4.XÒÔ¼°ÒÔÇ°°æ±¾ÖÐxconfig²Ëµ¥ÊÇ»ùÓÚTCL/TKµÄͼÐοâµÄ£®
ÎÒÃDzÉÓÃmenuconfig²Ëµ¥
±àÒëÄÚºËÐèÒªrootȨÏÞ£¬ÒÔϲÙ×÷¶¼¼Ù¶¨ÄãÊÇrootÓû§.ÏÈÔÚ¸ùĿ¼Ï½¨Á¢ÃûΪARM2410µÄĿ¼£®È»ºó¡¡
°ÑÄãÐèÒªÉý¼¶µÄÄں˿½µ½/usr/src/Ï£¨ÏÂÎÄÖÐÒÔ2.4.18µÄÄں˵Älinux-2.4.18.tar.gzΪÀý£©£¬ÃüÁîΪ
¡¡ #cp linux-2.4.18.tar.gz /usr/src
È»ºó½âѹ¸ÃÎļþ£¬ÃüÁîΪ£º
¡¡ #tar -zxvf linux-2.4.18.tar.gz
¡¡¡¡Èç¹ûÄãËùÏÂÔصÄÊÇ.bz2Îļþ£¬ÀýÈçlinux-2.4.0test8.tar.bz2£¬ÇëʹÓÃÏÂÃæµÄÃüÁî
¡¡¡¡#bzip2 -d linux-2.4.18.tar.bz2
¡¡¡¡#tar -xvf linux-2.4.18.tar
ÏÂÃæÎÒÃÇ¿ªÊ¼±àÒ룺
µÚÒ»²½£ºÔÚÖÕ¶ËϽøÈëÄÚºËËùÔÚĿ¼ "/arm2410";
µÚ¶þ²½£º¼üÈëmake menuconfig,½øÈëÄÚºËÅäÖò˵¥£¬ÈçÏÂͼ£º
×¢Ò⣺
£±£©´øÓУ¢£££¾£¢±íʾ¸ÃÑ¡Ïî°üº¬Ñ¡Ï
£²£©Ã¿¸öÑ¡ÏîÇ°ÃæÓÐ[ ]»ò< >£¬ÖÐÀ¨ºÅ±íʾ½öÓУ²ÖÖÑ¡Ôñ£¨*»ò¿Õ£©£¬¼âÀ¨ºÅ±íʾÓУ³ÖÖÑ¡Ôñ£¨M,*»ò¿Õ£©£¬°´¿Õ¸ñ¼ü¿ÉÏÔʾÕ⼸¸öÑ¡Ôñ£»
£³£©M±íʾÒÔÄ£¿é·½Ê½±àÒë½øÄںˣ¬ÔÚÄÚºËÆô¶¯ºó£¬ÐèÒªÊÖ¹¤Ö´ÐÐinsmodÃüÁî²ÅÄÜʹÓøÃÏîÇý¶¯£»*±íʾֱ½Ó±àÒë½øÄںˣ»¿Õ±íʾ²»±àÒë½øÄںˣ»
µÚÈý²½£º°´×Å×Ô¼ºµÄÐèÇó£¬ÅäÖÃÄںˣ®Ò»¹²ÓУ²£±Ï
µÚËIJ½£º¼üÈëmake cleanÃüÁɾ³ýÒÑÉú³ÉµÄÄ£¿éºÍÄ¿±êÎļþ£®
µÚÎå²½£º¼üÈëmake depÃüÁ±àÒë±äÁ¿ÒÀÀµ¹ØϵµÈ£»
µÚÁù²½£º¼üÈëmake zlmageÉú³É¾Ñ¹ËõÒÔºóµÄÄÚºËÓ³ÏñÎļþzlmage;
µÚÆß²½£º¼üÈëmake modules±àÒëÄ£¿é£»
µÚ°Ë²½£º¼üÈëmake modules_install°²×°±àÒëÍê³ÉµÄÄ£¿é£»
ÄÚºËÓ³ÏñÎļþzlmage´æ·ÅÔÚ ./arch/arm/boot/Ŀ¼Ï£®
Ïà¹ØÎĵµ£º
Service Discovery Protocol(SDP)ÌṩһÖÖÄÜÁ¦£¬ÈÃÓ¦ÓóÌÐòÓз½·¨·¢ÏÖÄÄÖÖ·þÎñ¿ÉÓÃÒÔ¼°ÕâÖÖ·þÎñµÄÌØÐÔ¡£
·þÎñ·¢ÏÖÐÒé(SDP»òBluetooth SDP)ÔÚÀ¶ÑÀÐÒéÕ»ÖжÔÀ¶ÑÀ»·¾³ÖеÄÓ¦ÓóÌÐòÓÐÌØÊâµÄº¬Ò⣬·¢ÏÖÄĸö·þÎñÊÇ¿ÉÓõĺÍÈ·¶¨ÕâЩ¿ÉÓ÷þÎñµÄÌØÕ÷¡£SDP¶¨ÒåÁËbluetooth client·¢ÏÖ¿ÉÓÃbluetooth server·þÎñºÍËüÃǵÄÌØÕ÷µÄ·½·¨¡£ ......
Ò»¡¢Óû§¹ÜÀí»ù´¡
ÔÚLinux»·¾³Ï¶ÔÓû§µÄ¹ÜÀíÓжàÖÖ·½Ê½£¬°üÀ¨Óñ༹¤¾ßVi¡¢emacsµÈ¶Ô/etc/passwd½øÐвÙ×÷»òÖ±½ÓʹÓÃ
addusr¡¢deleusrµÈÓû§¹ÜÀíÃüÁîÒÔ¼°Ê¹ÓÃpwconvÃüÁîʹ/etc/passwdÓëshadowÎļþ±£³ÖÒ»Ö¡£ÎÒÃÇÏÈÀ´¿´¿´LinuxÏÂÓÃ
»§¹ÜÀíµÄ³£ÓòÙ×÷¶¼×öÁËЩʲô°É¡£
1¡¢Ôö¼ÓÓû§
Ôö¼ÓÓû§ÓÐÈý¸ö¹ý³Ì:
(1) ÔÚ/etc ......
MySQL :: Linux ÏÂ×Ô¶¯±¸·ÝÊý¾Ý¿âµÄ shell ½Å±¾
Linux ·þÎñÆ÷ÉϵijÌÐòÿÌ춼ÔÚ¸üРMySQL Êý¾Ý¿â£¬ÓÚÊǾÍÏëÆðдһ¸ö shell ½Å±¾£¬½áºÏ crontab£¬¶¨Ê±±¸·ÝÊý¾Ý¿â¡£Æäʵ·Ç³£¼òµ¥£¬Ö÷Òª¾ÍÊÇʹÓà MySQL ×Ô´øµÄ mysqldump ÃüÁî¡£
½Å±¾ÄÚÈÝÈçÏ£º
#!/bin/sh
# File: /home/mysql/backup.sh
# Database info
......
ÕʺŹÜÀí
/etc/passwd ϵͳÕʺÅÐÅÏ¢
/etc/shadow ÕʺÅÃÜÂëÐÅÏ¢ ¾MD5 32λ¼ÓÃÜ
ÔÚÃÜÂëÀ¸Ç°Ãæ¼Ó¡º * ¡»¡º ! ¡»½ûֹʹÓÃijÕʺÅ
/etc/group &nb ......
1.ÅäÍøÂç
<1># vi /etc/sysconfig/network-scripts/ifcfg-eth0
BOOTPROTO×Ô¶¯Îªdhcp¾²Ì¬¸ÄΪstatic
¼´£ºBOOTPROTO=static
IPADDR=?
NETMASK=?
GATEWAY=?
ÎÒµÄÅäÖÃÈçÏ£º
DEVICE=eth0
BOOTPROTO=static
IPADDR=10.10.19.234s
NETMASK=255.255.254.0
GETEWAY=10.10.18.254
ONBOOT=yes
TYPE=Ethernet
×¢£ ......