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

SUSE Linux ά»¤±Ê¼ÇÒ»

SUSE Linux ά»¤±Ê¼Ç Ò»
1. Linuxʱ¼ä¸üÐÂÉèÖÃ
ʱÇøÉ趨:
#Ö÷ÒªÎļþ
/etc/sysconfig/clock
#Óñ±¾©Ê±¼äµÄÕýÈ·ÄÚÈÝÓ¦¸ÃÊÇ
TIMEZONE="Asia/Beijing"
DEFAULT_TIMEZONE="Asia/Beijing"
#ͬʱȷ±£ /etc/localtimeÎļþÊÇ/usr/share/zoneinfo/Asia/BeijingµÄ¿½±´
±£³Ö¸üÐÂ:
ÔÚ/etc/crontabÖмÓÈëÒ»ÐÐ
10 5 * * * root /usr/sbin/ntpdate 221.139.48.11 && /sbin/hwclock -w
#±£Ö¤Ã¿ÌìÔçÉÏ5:10·ÖʱÓë ntp·þÎñÆ÷ 221.139.48.11½øÐиüÐÂ,ͬʱдÈëµ½bios
2£ºranlibºÍar
±¾ÎÄת×Ô£ºhttp://blog.ixpub.net/html/53/t-1033153.html
ranlib ¾ÍÊÇΪ .a µµ°¸ÎļþÖеÄÿ¸ö.oÄ¿±êÎļþµÄ·ûºÅ½¨Á¢Ò»¸öË÷Òý,ÒÔ´ËÀ´¼Ó¿ì¿âµÄ²éѯºÍÁ¬½ÓËÙ¶È.
GNU ranlib ÍêÈ«µÈͬÓÚ  ar -s. µäÐÍÔËÓÃÓÚ°ÑһϵÁÐ .o´ò³ÉÒ»¸ö .a ¾²Ì¬¿â.
Äã¿ÉÒÔÓÃ nm -s
 À´¿´ÆäË÷Òý.
ar -rc  libmy.a test.o test1.o
ranlib libmy.a
nm -s libmy.a
ÆäÖÐÔÚGNU ar, ¿ÉÒÔÓÃ ar -rcs  libmy.a test.o test1.oÀ´´úÌæ
ar -rc  libmy.a test.o test1.o
ranlib libmy.a
3:¹²ÏíÉÏÍø
iptables -t nat -A POSTROUTE -s 192.168.0.0/16 -o eth0 -j -SNAT --to-source 10.3.198.108
echo 1 > /proc/sys/net/ipv4/ip_forward
µÚÒ»¾äÖÐ
-t nat Öƶ¨²Ù×÷nat ±í
-A POSTROUTE Ö¸¶¨Ôö¼Ó×îºóµÄ³ö¹æÔò
-s 192.168.0.0/16Ö¸¶¨À´Ô´ÍøÂç
-o eth0 Ö¸¶¨Õë¶ÔÄĸöÍø¿¨
-j  jump
-SNAT --to-source 10.3.198.108 Ö¸¶¨½«Ô´µØÖ·ÐÞ¸ÄΪ10.3.198.108
#ÕâÑù±£Ö¤ËùÓÐÔÚ192.168.0.0/16Öз¢Ïòeth0µÄÊý¾ÝÔ´µØÖ·½«±»ÐÞ¸ÄΪ10.3.198.108
µÚ¶þ¾ä
¿ª·ÅÍøÂçµÄIPÖض¨Ïò
4£ºmartian source ½â¾ö
·þÎñÆ÷´óÁ¿³öÏÖ
Jan 12 14:52:50 node2 kernel: martian source 255.255.255.255 from 10.3.198.111, on dev eth1
Jan 12 14:52:50 node2 kernel: ll header: ff:ff:ff:ff:ff:ff:00:22:68:85:22:2e:08:00
Jan 12 14:52:54 node2 kernel: martian source 255.255.255.255 from 10.3.198.111, on dev eth1
Jan 12 14:52:54 node2 kernel: ll header: ff:ff:ff:ff:ff:ff:00:22:68:85:22:2e:08:00
Jan 12 14:52:58 node2 kernel: martian source 10.3.198.23 from 10.3.198.1, on dev eth1
Jan 12 14:52:58 node2 kernel: ll header: ff:ff:ff:ff:ff:ff:00:d0:f8:86:86:62:08:06
Jan 12 14:53:00 node2 kernel: printk:


Ïà¹ØÎĵµ£º

ʵսLinux Bluetooth±à³Ì£¨ËÄ£© L2CAP²ã±à³Ì

£¨L2CAPЭÒé¼ò½é£¬L2CAPÔÚBlueZÖеÄʵÏÖÒÔ¼°L2CAP±à³Ì½Ó¿Ú£©
Ò»£ºL2CAPЭÒé¼ò½é£º
Logical Link Control and Adaptation Protocol(L2CAP)
Âß¼­Á¬½Ó¿ØÖƺÍÊÊÅäЭÒé (L2CAP) ΪÉϲãЭÒéÌṩÃæÏòÁ¬½ÓºÍÎÞÁ¬½ÓµÄÊý¾Ý·þÎñ£¬²¢Ìṩ¶àЭÒ鹦ÄܺͷָîÖØ×é²Ù×÷¡£L2CAP ³äÐíÉϲãЭÒéºÍÓ¦ÓÃÈí¼þ´«ÊäºÍ½ÓÊÕ×î´ó³¤¶ÈΪ 64K µÄ L2CAP Ê ......

linux mountÓ÷¨

mount [-t vfstype] [-o options] device dir
¡¡¡¡ÆäÖУº
¡¡¡¡1.-t vfstype Ö¸¶¨ÎļþϵͳµÄÀàÐÍ£¬Í¨³£²»±ØÖ¸¶¨¡£mount »á×Ô¶¯Ñ¡ÔñÕýÈ·µÄÀàÐÍ¡£³£ÓÃÀàÐÍÓУº
¡¡¡¡¹âÅÌ»ò¹âÅ̾µÏñ£ºiso9660
¡¡¡¡DOS fat16Îļþϵͳ£ºmsdos
¡¡¡¡Windows 9x fat32Îļþϵͳ£ºvfat
¡¡¡¡Windows NT ntfsÎļþϵͳ£ºntfs
¡¡¡¡Mount WindowsÎļþ ......

firefox ¼òµ¥ ²å¼þ±àÒë ¡¾linux¡¿

#ifdef XP_UNIX
/*
* Set up the plugin function table that Netscape will use to
* call us. Netscape needs to know about our version and size
* and have a UniversalProcPointer for every function we
* implement.
*/
pluginFuncs->version = (NP_VERSION_MAJOR << 8) + NP_VERSION_MINOR;
......

building firefox ¡¾linux¡¿

  
sudo apt-get build-dep firefox
Èô³öÏÖÏÂÃæµÄ´íÎó£º
²»ÄÜÂú×ãÈí¼þ°ü firefox ËùÒªÇóµÄ¹¹½¨ÒÀÀµ¹Øϵ
Ç뽫 /etc/apt/sources.list ¸ÄΪĬÈϵÄÔ´ ÓоÍÊÇ ×°Íêϵͳºó×Ô´øµÄ£º
#deb cdrom:[Ubuntu 9.04 _Jaunty Jackalope_ - Release i386 (20090421.3)]/ jaunty main restricted
# See http://help.ubuntu ......

Linux C + + Training


Linux C + + Training
Syllabus
________________________________________
1, Linux Operating System
System Environment: Ubuntu GNU / Linux, RedHat Linux AS5,
FreeBSD
Course Requirements: proficient use of commonly used Linux
/ UNIX commands.
Time: 1 week.
______________________________ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ