Linux ÄÚºËÅäÖü°±àÒë¼ò½é
1.ΪʲôҪ±àÒëLinux ÄÚºË
¡¡¡¡ÖÚËùÖÜÖª,LinuxÊÇ¿ª·ÅÔ´ÂëµÄ²Ù×÷ϵͳ,¿ª·ÅÔ´ÂëÈí¼þ´ø¸øÎÒÃÇÕâ¼ÆËã»úˮƽÏà¶ÔÂäºóµÄÈËȺµÄ×î´óºÃ´¦,¾ÍÊÇ¿ÉÒÔ¿ìËÙѧϰÊÀ½ç¸ßˮƽµÄ³ÌÐò(Ìåϵ½á¹¹¼°±à³Ì·½·¨µÈµÈ),´Ó¶ø¿ìËÙÌá¸ß×ÔÉíˮƽ¡£È»¶øÕâ±¾Éí£¬Ò²Ê¹¶àÊý¿ª·ÅÔ´ÂëÈí¼þÔÚ±àÂëÒ×ÓÃÐÔ¡¢Õë¶ÔÐÔ·½Ãæ±È²»ÉÏMicrosoftµÈרҵÈí¼þ¹«Ë¾µÄ²úÆ·¡£Ê¹Óÿª·ÅÔ´ÂëÈí¼þ£¬¶à¶àÉÙÉÙ¶¼Ò»Ð©²»Ì«Êæ·þµÄ¸Ð¾õ¡£ÕâÒ»µãÏë±ØÓùýLinux½ÏÔçÆÚ°æ±¾µÄÅóÓѶ¼ÓÐͬ¸Ð¡£ÓÐʱºò»¹²»½öÊDz»Êæ·þ£¬ÓÉÓÚÈí¼þ¿ª·¢Õß»ò°æ±¾µÄ²»Í¬£¬ÎÒÃÇÎÞ·¨±£Ö¤ËùÓеÄÈí¼þ¶¼Äܹ»¼òµ¥µØÔÚ²»Í¬µÄ»úÆ÷¼äÒÆÖ²£¬¶ÔÓÚijЩ´óÐÍÈí¼þ£¨È磺ORACLE 8.0.5£©ÓÈÆäÈç´Ë¡£Ðí¶àÇé¿öÏ£¬ÏµÍ³×´Ì¬£¬ÓÈÆäÊÇÄÚºË״̬£¬¶Ô³ÌÐòµÄ°²×°Ê¹ÓúÍÐÔÄÜÓÐÖÁ¹ØÖØÒªµÄÓ°ÏìºÍÖÆÔ¼×÷ÓᣴÓÁíÍâµÄ½Ç¶ÈÀ´½²£¬ÎÒÃÇÒ²¿ÉÒÔΪ×Ô¼ºµÄ¼ÆËã»úÁ¿Éí¶¨ÖÆÄںˣ¬ÕâÑù¾Í²»»á³öÏÖWindows 98ÄÇÑùµÄ´óÀ¬»øÏäÁË¡£
2.Á˽âLinux
¡¡¡¡Òª±àÒëLinuxµÄÄںˣ¬Ê×ÏÈÒª¶ÔËüÓиö´ó¸ÅµÄÓ¡Ïó¡£LinuxÊÇUnixµÄ·ÂÖÆÆ·£¬ËüÖ§³Ö¶àÈÎÎñ¡¢ÐéÄâ´æ´¢Æ÷£¬¶àÖնˣ¬ÐéÄâÎļþϵͳµÈÌØÐÔ¡£Ëü×îµÍ¿ÉÒÔÔËÐÐÔÚ386/486µÄ¸öÈ˼ÆËã»úÉÏ£¬ÆäËûһЩÌåϵ½á¹¹µÄ»úÆ÷£¬È磺SUN Sparc£¬M68000£¬DEC Alpha£¬PowerPCÉÏÒ²Öð½¥ÓÐÁËÊÊÓõÄLinux¡£
3.±àÒëÄں˵Ä×¼±¸¹¤×÷
1)Á˽âÏÖÓÐÄں˵İ汾ºÅ.
ÕâÖ÷ÒªÊÇΪÁËÈ·¶¨Ò»Ð©»úÆ÷µÄ»ù±¾ÐÅÏ¢£¬²»Ò»¶¨·ÇÕâô×ö²»¿É¡£¿ÉÒÔÓÃÈçϵÄÃüÁîÐУº
$ uname -a
Linux lark 2.2.15 #2 TUE DEC 26 10:55:20 CST 2000 i686
2)ÏÂÔØ×îа汾µÄLinuxÄÚºË.Ä¿Ç°¹úÄÚ½ÌÓýÍøµÄftpÕ¾µãÕâ·½ÃæµÄÄÚÈÝ(°üÀ¨Ñ¹ËõµÄÄںˡ¢²¹¶¡¡¢±àÒëÆ÷µÈ)¶¼±È½Ï·á¸»£¬¸üÐÂÒ²½Ï¿ì£¬È磺http://ftp.xjtu.edu.cn/ftp/pub/linux/kernel/£¬ftp://166.111.136.3/pub/linux/kernel£¬2.2.x°æ±¾ÊDZȽÏÎȶ¨µÄ£¬ÍƼöʹÓá£
3)°Ñ´ò°üµÄÄں˽⿪
ѹËõµÄÄںˡ¢²¹¶¡ºÍ½â¿ªµÄÔ´´úÂë×ܹ²ÒªÕ¼70M×óÓÒµÄÓ²Å̿ռ䣻ÓÃrootµÇ¼£¬½â¿ªµÄÔ´´úÂëÓ¦¸ÃÔÚ/usr/src/linux2.2.15ÏÂÃ棺
#tar zxvf linux-2.2.15.tar.gz
»òÕß
#gzip t linux-2.2.15.tar.gz
#tar x linux-2.2.15.tar
Èç¹ûÏÓÃüÁîÐÐÌ«Âé·³µÄ»°,Ò²¿ÉÒÔÔÚij̨windowsµÄ»úÆ÷ÉÏÓÃwinzipÖ®ÀàµÄÈí¼þ½â¿ª,ÔÙÓÃftp»òmountµÈ·½Ê½ÈÃlinux¿ÉÒÔ·ÃÎÊ¡£
4£©ÔÚϵͳÖа²×°gcc-2.7.2»ò¸üеÄc±àÒë°ü
5£©Èç¹ûûÓаÑÎÕ£¬¾Í°ÑÔÀ´µÄÄںˣ¨ÔÚ/bootÏ£©ÔÚ±ðµÄµØ·½ÖØб¸·ÝÒ»¸ö¡£±ðÍüÁËͬʱ±¸·ÝÄ£¿é£¨/lib/modules/2.x.x£©
4.Äں˱à¼
¡¡¡¡ÎªÁËʹÄں˷ûºÏ×Ô¼ºÏµÍ³ºÍÓ¦ÓóÌÐòµÄʵ¼ÊÐèÒª£¬Ò»°ã¶¼Òª¶ÔÆä½øÐÐijЩ±à¼¹
Ïà¹ØÎĵµ£º
°²×°OpenSSH
UbuntuȱʡûÓа²×°SSH Server£¬Ê¹ÓÃÒÔÏÂÃüÁî°²×°£º
sudo apt-get install openssh-server openssh-client
²»¹ýUbuntuȱʡÒѾ°²×°ÁËssh client¡£
ÅäÖÃÍê³ÉºóÖØÆð£º
sudo /etc/init.d/ssh restart
windows ¿Í»§¶ËÓÃputtyÁ¬½ÓÃüÁîshellģʽ ......
Executing a CommandSee also e90 Reading Output from a Command.
try {
// Execute a command without arguments
String command = "ls";
Process child = Runtime.getRuntime().exec(command);
// Execute a command with an argument
command = "ls /tmp"; ......
LinuxÍø¿¨µÄ¶Áд±à³Ìzz
LinuxϵͳµÄËùÓÐÉ豸¶¼ÊÇÒÔÎļþµÄÐÎʽ´æÔڵģ¬ËùÒÔ¶ÔϵͳµÄ²Ù×÷¿ÉÒÔת»»Îª¶ÔÎļþµÄ²Ù×÷¡£±¾³ÌÐòʵÏÖ¶ÔÍø¿¨Õâ¸öÓ²¼þÉ豸½øÐжÁÈ¡²Ù×÷£¬¼´Ò²ÊǶÔÉ豸µÄÎļþ½øÐжÁд²Ù×÷¡£´úÂë¿´ËÆÂé·³£¬µ«È´²»¸´ÔÓ¡£
Ö÷ÒªµÄϵͳº¯ÊýÓУºsocket(),ioctl(),memcpy(),strcpy()¡£
Á½¸ö¸´ÔӵĽṹÌ壺sockaddr_in,ifreq¡ ......
¡¾¼ò½é¡¿ÈçºÎ±àдlinuxÏÂnand flashÇý¶¯-1
version: 1.0
date:20090721
Author£ºcrifan
Mail:green-waste(At)163.com
¡¾±àдÇý¶¯Ö®Ç°ÒªÁ˽âµÄ֪ʶ¡¿
1. Ó²¼þÌØÐÔ£º
¡¾FlashµÄÓ²¼þʵÏÖ»úÖÆ¡¿
FlashÈ«Ãû½Ð×öFlash Memory£¬ÊôÓÚ·ÇÒ×ʧÐÔ´æ´¢É豸(Non-volatile Memory Devi ......
version: 1.0
date:20090721
Author£ºcrifan
Mail:green-waste(At)163.com
ÉϽӣº¡¾¼ò½é¡¿ÈçºÎ±àдlinuxÏÂnand flashÇý¶¯-1
http://green-waste.blog.163.com/blog/static/3267767820096221127554/
¡¾¶Á£¨read£©²Ù×÷¹ý³ÌÏê½â¡¿
ÒÔ×î¼òµ¥µÄread²Ù×÷ΪÀý£¬½âÊÍÈçºÎÀí½âʱÐòͼ£¬ÒÔ¼°½«Ê±Ðòͼ
ÖеÄÒªÇó£¬×ª»¯ ......