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

linux¿âÎļþ±àдÈëÃÅ¡¾Õª×Ô chinaunix¡¿

תÌù×Ô: http://hi.baidu.com/harrybobo/blog/item/ae3347b51711afc637d3ca69.html
Ò»¡¢ÎªÊ²Ã´ÒªÊ¹ÓÿâÎļþ
ÎÒÃÇÔÚʵ¼Ê±à³Ì¹¤×÷Öп϶¨»áÓöµ½ÕâÖÖÇé¿ö£ºÓм¸¸öÏîÄ¿ÀïÓÐһЩº¯ÊýÄ£¿éµÄ¹¦ÄÜÏàͬ£¬
ʵÏÖ´úÂëÒ²Ïàͬ£¬Ò²ÊÇÎÒÃÇËù˵µÄÖظ´´úÂë¡£±ÈÈ磬ºÜ¶àÏîÄ¿ÀﶼÓÐÒ»¸öÓû§ÑéÖ¤µÄ¹¦ÄÜ¡£
´úÂë¶ÎÈçÏ£º
//UserLogin.hÎļþ£¬Ìṩº¯ÊýÉùÃ÷
int IsValidUser(char* username, int namelen);
    //UserLogin.cÎļþ£¬ÊµÏÖ¶ÔÓû§ÐÅÏ¢µÄÑéÖ¤
int IsValidUser(char* username, int namelen)
{
   int IsValid = 0;
   /*ÏÂÃæÊǾßÌåµÄ´¦Àí´úÂ룬ÂÔÈ¥*/
   return IsValid
}
Èç¹ûÿ¸öÏîÄ¿¶¼±£´æ×ÅÕâÁ½¸öUserLogin.hºÍUserLogin.cÎļþ£¬»áÓÐÒÔϼ¸¸ö±×¶Ë:
1¡¢Ã¿¸öÏîÄ¿ÀﶼÓÐÖظ´µÄÄ£¿é£¬Ôì³É´úÂëÖظ´¡£  
2¡¢´úÂëµÄÖØÓÃÐÔ²»ºÃ£¬Ò»µ©IsValidUserµÄ´úÂë·¢ÉúÁ˱仯£¬ÎªÁ˱£³ÖÉè¼ÆµÄÒ»ÖÂÐÔ£¬ÎÒÃÇ»¹ÒªÊÖ¹¤ÐÞ¸ÄÆäËûÏîÄ¿ÀïµÄUserLogin.cÎļþ£¬¼È·ÑʱÓÖ·ÑÁ¦£¬»¹ÈÝÒ׳ö´í¡£  
¿âÎļþ¾ÍÊǶԹ«¹²´úÂëµÄÒ»ÖÖ×éÖ¯ÐÎʽ¡£
ΪÁ˽â¾öÉÏÃæÁ½¸ö±×¶Ë£¬¾ÍÌá³öÁËÓÿâÎļþ´æ·Å¹«¹²´úÂëµÄ½â¾ö·½°¸£¬ÆäÒªµã¾ÍÊǰѹ«¹²µÄ£¨Ò²¾ÍÊÇ¿ÉÒÔ±»¶à´Î¸´Óõģ©Ä¿±ê´úÂë´ÓÏîÄ¿ÖзÖÀë³öÀ´£¬Í³Ò»´æ·Åµ½¿âÎļþÖУ¬ÏîÄ¿ÒªÓõ½ÕâЩ´úÂëµÄʱºò£¬ÔÚ±àÒë»òÕßÔËÐеÄʱºò´Ó¿âÎļþÖÐÈ¡µÃÄ¿±ê´úÂë¼´¿É¡£¿âÎļþÓÖ·ÖÁ½ÖÖ£º¾²Ì¬¿âºÍ¶¯Ì¬¿â¡£
¶þ¡¢¾²Ì¬¿âÓ붯̬¿â
    Èç¹û³ÌÐòÊÇÔÚ±àÒëʱ¼ÓÔØ¿âÎļþµÄ£¬¾ÍÊÇʹÓÃÁ˾²Ì¬¿â¡£Èç¹ûÊÇÔÚÔËÐÐʱ¼ÓÔØÄ¿±ê´úÂ룬¾Í³ÉΪ¶¯Ì¬¿â¡£»»¾ä»°Ëµ£¬Èç¹ûÊÇʹÓþ²Ì¬¿â£¬Ôò¾²Ì¬¿â´úÂëÔÚ±àÒëʱ¾Í¿½±´µ½Á˳ÌÐòµÄ´úÂë¶Î£¬³ÌÐòµÄÌå»ý»áÅòÕÍ¡£Èç¹ûʹÓö¯Ì¬¿â£¬Ôò³ÌÐòÖÐÖ»±£Áô¿âÎļþµÄÃû×ֺͺ¯ÊýÃû£¬ÔÚÔËÐÐʱȥ²éÕÒ¿âÎļþºÍº¯ÊýÌ壬³ÌÐòµÄÌå»ý»ù±¾±ä»¯²»´ó¡£
¾²Ì¬¿âµÄÔ­ÔòÊÇ“ÒԿռ任ʱ¼ä”£¬Ôö¼Ó³ÌÐòÌå»ý£¬¼õÉÙÔËÐÐʱ¼ä;
¶¯Ì¬¿âÔòÊÇ“ÒÔʱ¼ä»»¿Õ¼ä”£¬Ôö¼ÓÁËÔËÐÐʱ¼ä£¬µ«¼õÉÙÁ˳ÌÐò±¾ÉíµÄÌå»ý¡£
ÏÂÃæÎÒÃǾÍÒÔʵ¼ÊÀý×ÓÀ´¿´¿´ÈçºÎʹÓÃÕâÁ½ÖÖ¿â.
Èý¡¢¾²Ì¬¿âµÄ±àдºÍʹÓÃ
1¡¢¸ÅÊö
¾²Ì¬¿âÎļþµÄÀ©Õ¹ÃûÒ»°ãΪ.a,Æä±àд²½ÖèºÜ¼òµ¥¡£
¢Å±àдº¯Êý´úÂë
¢Æ±àÒëÉú³É¸÷Ä¿±êÎļþ
¢ÇÓÃarÎļþ¶ÔÄ¿±êÎļþ¹éµµ£¬Éú³É¾²Ì¬¿âÎļþ¡£
×¢Òâ¹éµµÎļþÃû±ØÐëÒÔlib´òÍ·¡£
ʹÓÃÒªµã£º
¢ÅÔÚgcc µÄ-I²ÎÊýºó¼ÓÉϾ²Ì¬¿âÍ·ÎļþµÄ·¾¶¡£
¢ÆÔÚgcc µÄ-L²ÎÊýºó¼ÓÉÏ¿âÎļþËùÔÚĿ¼
¢ÇÔÚgcc µÄ-l²ÎÊýºó¼Ó


Ïà¹ØÎĵµ£º

linuxϵÄssh¡¢telnetµÇ¼½Å±¾£¨tcl£©

 ²Ù×÷ϵͳ£ºlinux£¨feroda4£©
tcl°æ±¾£ºtclsh8.4
expect£º5.43.0
sshµÇ¼½Å±¾
#!/usr/bin/tclsh8.4
package require Expect
set user "root"
set host "10.2.26.30"
spawn ssh $user@$host
expect {
             -re "password: $"       ......

linux cÎÊÌ⼯½õ

1.ΪʲôÎÒдµÄMakefile£¬Ôڱ༭ÁËÔ´´úÂëÎļþºó£¬Ê¹ÓÃmake£¬makeÈ´ÌáʾĿ±êÎļþÒѾ­Îª×îеÄÁË£¡
2.OpenGL,ÔÚ´°¿ÚÖл­µãʱ£¬ÔõÑùʹÓÃglVertexi()º¯Êý£¿ÒòΪ´«µÝµÄ²ÎÊýÈç¹ûÊÇ´óÓÚ1µÄintÐÍ£¬Ôò²»ÐУ¬¶ø±ØÐë´«µÝ[-0.1~0.1]Ö®¼äµÄfloat£¬¶øÇÒʹÓú¯Êý
gVertex2f().
3.OpenGL,ʹÓò˵¥Ê±£¬ÔõÑù½â¾öµã»÷²Ëµ¥ºó²»Òª²¶×½GLUT_UPÊ ......

ʹÓÃyumÉý¼¶ºÍyumʹÓüò½é(LInux, RedHat, Fedora)

ʲôÊÇ yum£¿
yum ÊÇ yellowdog updater modified µÄËõд¡£yellowdog ÊÇÒ»¸ö Linux µÄ distribution£¬RH ½«ÕâÖÖÉý¼¶¼¼ÊõÀûÓõ½×Ô¼ºµÄ distribution ÐγÉÁËÏÖÔÚµÄ yum£¬¸Ð¾õÉÏ yum ºÍ apt µÄÔ­ÀíÀàËÆ£¬µ«ÊÇ apt ÊDZàÒë´úÂ룬ִÐÐЧÂÊÔ¶¸ßÓÚʹÓà python д³ÉµÄ yum¡£ÕâÊÇ yum µÄÖ÷Ò³¡£
yum µÄÀíÄîÊÇʹÓÃÒ»¸öÖÐÐÄ²Ö ......

Ò»¸ölinuxÏÂg++ʹÓÃµÄ makefile Ä£°å

 refer:http://www.cnblogs.com/diylab/archive/2008/04/24/1169771.html
Õâ¸ömakefile¿ÉÓÃÓÚ±àÒë´ó¶àÊýµÄc++¹¤³Ì¡£
Äã¿ÉÒÔ¸ù¾ÝÐèÒªÐÞ¸ÄÏÂÃæµÄ²ÎÊý£º
VPATH: Ô´ÎļþµÄÎļþ·¾¶¡£¶à¸öÎļþ¼Ð·¾¶Óÿոñ·Ö¸ô
OBJ£º ±àÒëÄ¿±êËùÐèÒªµÄ.oÎļþ
µ±È»£¬ÄãÒ²¿ÉÒÔ²»¸Ä¶¯´ËÎļþ£¬¶øÖ±½ÓÔÚ make ÃüÁîµÄ²ÎÊýÖÐÖ¸¶¨
È磺
make ......

Linux miscÉ豸

²Î¿¼£º
http://longer.spaces.eepw.com.cn/articles/article/item/60415
http://imganquan.org/blog/?p=350
ÍøÉÏÕҵģ¬¹éÄÉһϣº
ÔÓÏîÉ豸£¨misc device£©
ÔÓÏîÉ豸ҲÊÇÔÚǶÈëʽϵͳÖÐÓõñȽ϶àµÄÒ»ÖÖÉ豸Çý¶¯¡£ÔÚ Linux Äں˵Äinclude\linuxĿ¼ÏÂÓÐMiscdevice.hÎļþ£¬Òª°Ñ×Ô¼º¶¨ÒåµÄmisc device´ÓÉ豸¶¨ÒåÔÚÕâÀï¡ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ