LinuxÆô¶¯ÓÅ»¯
¿ª»ú°´[CTRL]+[ALT]+[F7]/[F8]¿É²é¿´ÏµÍ³Æô¶¯Ê±ÕýÔÚÆô¶¯µÄ·þÎñ£¡£¡£¡£¡
¡¡¡¡ÖÚËùÖÜÖªLinux¸øÎÒÃÇÌṩÁË7Öв»Í¬µÄÆô¶¯¼¶±ð0¡«6£¬ÄÇô²»Í¬µÄÆô¶¯¼¶±ð¶¼»áÆô¶¯ÄÇЩ·þÎñÄÄ¡£¿ÉÒÔʹÓÃchkconfig ——list ²é¿´£¬¿ÉÒÔʹÓÃchkconfig ·þÎñÃû ——level 3 £ûon|of£ýÐÞ¸ÄÊÇ·ñÒªÔÙij¸ö¼¶±ðÆô¶¯»òÍ£Ö¹¡£
¡¡¡¡1. ÀýÈ磺Ҫ°Ñsshd·þÎñÔÚµÚ3ÖÖÆô¶¯¼¶±ðÖÐÍ£Ö¹¡£
[root@team4 rc3.d]# chkconfig sshd --level 3 off ÖйúÍø¹ÜÁªÃËwww.bitscn.com
¡¡¡¡2. »¹¿ÉÒÔÊÖ¹¤Ð޸ģ¬ÔÚ/etc/rc.d/Õâ¸öĿ¼ÀïÓкܶ಻ͬrunlevel¶ÔÓ¦µÄĿ¼£¬ÀïÃæ±íÃ÷½øÈëij¸öÆô¶¯¼¶±ðʱҪÆô¶¯ºÍÍ£Ö¹ÄÇЩ·þÎñ¡£
¡¡¡¡ÀýÈ磺 ÖйúÍø¹ÜÁªÃËwww¡¢bitsCN¡¢com
[root@team4 etc]# ls /etc/rc.d
init.d rc0.d rc2.d rc4.d rc6.d rc.sysinit
rc rc1.d rc3.d rc5.d rc.local
ÎÒÃÇÓÃrc3.dÕâ¸öĿ¼ΪÀý£¬Õâ¸öĿ¼ÀïÃæ¼Ç¼µÄÊǽøÈëinit 3ʱÐèҪֹͣºÍÆô¶¯ÄÇЩ·þÎñ¡£
ÏÂÃæΪrc3.dĿ¼µÄÄÚÈÝ£º
[root@team4 etc]# ls /etc/rc.d/rc3.d/
K02avahi-dnsconfd K89pand S25bluetooth
K02dhcdbd K89rdisc S25netfs
K02NetworkManager K91capi S25pcscd
K02NetworkManagerDispatcher K99readahead_later S26apmd
K05conman S04readahead_early S26hidd
¡¡¡¡K¿ªÍ·´ú±íÕâ¸öÆô¶¯¼¶±ðÐèҪֹͣµÄ·þÎñ£¬±àºÅÊÇÍ£Ö¹µÄʱºòÖ´ÐеÄ˳Ðò£¬ÔÙºóÃæ¾ÍÊÇ·þÎñÃ÷ÁË¡£
¡¡¡¡S¿ªÍ·ÔòÊÇÒªÆô¶¯ÄÇЩ·þÎñ¡£ Íø¹ÜÍøbitsCN_com
¡¡¡¡×¢Ò⣺ÏÈÖ´ÐÐK¿ªÍ·µÄ£¬ºóÖ´ÐÐS¿ªÍ·µÄ¡£ËùÒÔS¿ªÍ·µÄ·þÎñ»á¸²¸ÇK¿ªÍ·µÄ·þÎñ¡£
LinuxÉèÖóÌÐòµÄ¿ª»ú×ÔÆô¶¯ÓëLinux·þÎñ
ÕâÀïֻ˵ÎÒËùÖªµÀµÄ£¬¾ÙÀýÈçÏÂ
ÐèÇóÊÇÎÒÒªÓÃWindowsϵÄVNC ViewerÁ¬½Óµ½Linux Server. ÎÒÔÚLinuxÏÂÃæÊäÈë
#vncserver
ÉèÖúÃÃÜÂ룬ºÃÏÖÔÚÎҾͿÉÒÔÔÚWindowsÏÂÃæʹÓÃVNCÁ¬½Óµ½Linux×ÀÃæÁË£¬Õâ¸öʱºòÈç¹ûÎÒµÄLinux ServerϵͳÖØÆôÁË£¬ÄÇôÎÒ»¹µÃÔÙÇÃÒ»´ÎvncserverÕâ¸öÃüÁËùÒÔÎÒÏÖÔÚÒªÈÃLinux ServerÔÚ¿ª»úʱ×Ô¶¯Æô¶¯vncserver
ÓÐÄÄЩ·½·¨ÄØ£¿
1. ÎÒ¿ÉÒÔ°ÑvncserverÉèÖóÉϵͳµÄ·þÎñ£¬²¢Æô¶¯ÆðÀ´£¬Ê¹ÓÃÈçÏÂÃüÁî²é¿´vncserverÊÇ·ñÒѾÊÇϵͳµÄ·þÎñ
#chkconfig --list|grep vnc
vncserver 0:off 1:off 2:off 3:off 4:off 5:off 6:off
ÏÖÔÚÎÒÃÇÒªÉèÖÃvncserver¿ª»ú×ÔÆô¶¯£¬Ê¹ÓÃÈçÏÂÃüÁî
#chkconfig --level 5 vnc
Ïà¹ØÎĵµ£º
Ç°ÑÔ£º
µ±ÎÒÃÇʹÓÃǶÈëʽlinux ½øÐпª·¢Ê±£¬kernel ÅÜÆðÀ´Ö®ºó£¬ÎÒÃÇÏ£ÍûÄÜͨ¹ý´®¿Ú£¨±ê×¼ÊäÈë¡¢Êä³ö£©£¬ÔÚÓ¦ÓóÌÐòÕýÔÚÔËÐеĹý³ÌÖУ¬½øÐÐһЩµ÷ÊÔ¹¤×÷£¬ÀýÈ磬¶ÔCPUһЩ¼Ä´æ½øÐе÷Õû£¬ÒÔ¹Û²âµ÷ÕûÒÔºóµÄ½á¹û£¬²¢ÇÒ£¬µ±ÎÒÃÇÎÞ·¨°ÑÎÒÃǵÄÓ¦ÓóÌÐò·ÅÔÚºǫ́ÔËÐУ¬ÄÇôÎÒÃǾÍÐèÒªÊ ......
À´Ô´linux-2.6.20.21/Documentation/kbuild/makefiles.txt
* obj-y
+= foo.o ±íʾ±àbuild-in£¬obj-m += foo.o±íʾ±à³Émodule.
* kbuild
»á±àÒëËùÓеÄ$(obj-y)Îļþ£¬È»ºóµ÷ÓÃ$(LD) -r°ÑÕâЩÎļþºÏ²¢µ½Ò»¸öbuilt-in.oÎļþÖС£Õâ¸öbuilt-in.oÉÔºó»á±»¸¸¼¶Makefile linkµ½vmlinux
* ÓÃlib-y
:= checksum.o ......
gcc mousekey.c -lX11 -IX11
´ò¿ªmousekeysÔËÐÐ./a.out
¹Ø±ÕmousekeysÔËÐÐ./a.out 1,ÕâÀïÔÚa.outºóÃæËæ±ã¼ÓÒ»¸ö²ÎÊý¾Í¿ÉÒÔÁË£¬ÒòΪÅжÏÌõ¼þΪ if(argc < 2)
/*********source code***************/
#include <stdio.h>
#include <string.h>
#include <X11/Xlib.h>
#include <X ......