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

Æß´óʵÓÃÃüÁîÐй¤¾ß ÍæתLinuxÍøÂçÅäÖÃ

¡¾51CTO¾«Ñ¡ÒëÎÄ¡¿ËäÈ»ÏÖÔÚ´ó¶àÊýLinux·¢Ðаæ϶¼ÓÐGUIµÄÍøÂç¹ÜÀíÅäÖ㬲»¹ýÊìϤÃüÁîÐй¤¾ß»¹ÊÇ´óÓÐÖúÒæµÄ¡£ÏÂÃæÎÒÃÇÀ´¿´¿´ÕâЩÁ÷ÐÐLinux·¢ÐаæÏÂÃæµÄ³£ÓÃÃüÁî¡£¶ÔÁË£¬Èç¹ûÄãÏëÒªÁ˽â¸Ã¹¤¾ßºÍÑ¡ÏîµÄÏêϸÇé¿ö£¬¿ÉÒÔÊäÈëmanÔÙÊäÈëÕâ¸ö¹¤¾ßµÄÃû×Ö·ÃÎÊÆämanÒ³Ãæ¡£
ÏÖÔھʹò¿ªÄãµÄterminal³¢ÊÔһϰɣ¡
ÓÃÓÚ»ù±¾½Ó¿ÚÓëIPÅäÖõÄifconfig
ifconfig¹¤¾ß£¨interface configurator£¬½Ó¿ÚÅäÖÃÆ÷£©ÌṩÁËһЩ·Ç³£»ù±¾µ«ÊǷdz£ÖØÒªµÄ¹¦ÄÜ¡£Ëü¿ÉÒÔ´ò¿ªºÍ¹Ø±ÕÍøÂçÊÊÅäÆ÷£¬·ÖÅäIPµØÖ·ÓënetmaskÐÅÏ¢¡£Ò»Ð©³£ÓÃÖ¸ÁîÈçÏ£º
²é¿´ÍøÂç½Ó¿Úµ±Ç°ÅäÖÃÓë½Ó¿ÚÃüÃû£º
ifconfig
´ò¿ª£¨up£©»ò¹Ø±Õ£¨down£©ÊÊÅäÆ÷
ifconfig <ÍøÂçÃû> <up|down>
ΪÊÊÅäÆ÷·ÖÅäIPµØÖ·£º
ifconfig <ÍøÂçÃû> <ipµØÖ·>
ΪÊÊÅäÆ÷·ÖÅäµÚ¶þ¸öIPµØÖ·£º
ifconfig <ÍøÂçÃû:ʵÀýÊý> <ipµØÖ·>
·¶Àý£ºifconfig eth0:0 192.168.1.101
Ïêϸ½éÉÜ£ºLinuxÃüÁîÍøÂç²Ù×÷Ö®ifconfig
ÓÃÓÚ¹ÜÀíÒÔÌ«Íø¿¨µÄethtool¹¤¾ß
Ethtool¿ÉÒԲ鿴ºÍÐÞ¸ÄÒÔÌ«ÊÊÅäÆ÷µÄ¸÷ÖÖÉèÖ㨲»°üÀ¨Wi-FiÍø¿¨£©£¬°üÀ¨tx/rx£¬checksummingºÍwake-on-LANÉèÖá£ÏÂÃæÊÇһЩÓÐÓõÄÃüÁ
ÏÔʾij¸öÍøÂçÊÊÅäÆ÷µÄÇý¶¯ÐÅÏ¢£¬ÊÊÓÃÓÚ²éѯÈí¼þ¼æÈÝÐÔµÄÇé¿ö£º
ethtool -i <½Ó¿ÚÃû>
ÏÔʾÍøÂçÊý¾Ý£º
ethtool -S
ÉèÖÃÊÊÅäÆ÷Á¬½ÓËٶȣ¨Mbps£©
ethtool speed <10|100|1000>
Ïêϸ½éÉÜ£ºLinux/UnixÃüÁîÖ®Ethtool
iwconfigÅäÖÃÎÞÏßÍøÂç
iwconfig¹¤¾ß¿ÉÒÔËãÊÇÎÞÏßÍø¿¨µÄifconfigºÍethtool¡£Äã¿ÉÒÔ¼ì²é»ù±¾µÄWi-FiÍøÂçÉèÖã¬ÈçSSID¡¢channelºÍ¼ÓÃܵÈϸ½Ú¡£´ËÍ⻹¿ÉÒÔÐÞ¸ÄһЩ¸ß¼¶ÉèÖ㬰üÀ¨½ÓÊÕÃô¸Ð¶È£¬RTS/CTS£¬ËéƬ£¬ÒÔ¼°ÖØÊÔÊý¡£ÏÂÃæ½éÉܼ¸¸öÓÐÓõÄÃüÁ
ÏÔʾµ±Ç°ÎÞÏßÉèÖ㬰üÀ¨½Ó¿ÚÃû³Æ£º
iwconfig
ÉèÖÃESSID£¨À©Õ¹·þÎñÉèÖÃʶ±ðÆ÷£©»òÍøÂçÃû£º
iwconfig <½Ó¿ÚÃû> essid <ÍøÂçÃû>
·¶Àý£ºiwconfig <½Ó¿ÚÃû> "my network"
·¶Àý£ºExample: iwconfig <½Ó¿ÚÃû> any
ÉèÖÃradioµÄÎÞÏßchannel£¨1-11£©£º
iwconfig <½Ó¿ÚÃû> <channel>
ÊäÈëWEP¼ÓÃÜÃÜÔ¿£¨WPAºÍWPA1Éв»Ö§³Ö£¬ÐèÒªwpa_supplicantµÄÖ§³Ö£©£º
iwconfig eth0 key <HEX¸ñʽµÄÃÜÔ¿>
ÏÞÖÆÊÊÅäÆ÷½öÄÜÔÚÖ¸¶¨MACµØÖ·ÏÂÁ¬½Óµ½AP£º
iwconfig <½Ó¿ÚÃû> ap <macµØÖ·>
·¶Àý£ºiwconfig eth0 ap 00:60:1D:01:23:45
ÉèÖÃradioµÄ·¢ÉäÇ¿¶È£¬½öÔÚÎÞÏßÍø¿¨Ö§³ÖµÄÇé¿öÏÂÓÐЧ¡£Ä¬Èϵ¥Î»ÎªdBm£¬¿ÉÉ


Ïà¹ØÎĵµ£º

LinuxÏÂI2CÉ豸Çý¶¯¿ª·¢ºÍʵÏÖ

¡¡I2C×ÜÏß¾ßÓнṹ¼òµ¥Ê¹Ó÷½±ãµÄÌص㡣±¾ÎÄÃèÊöÁËlinuxÏÂI2CÇý¶¯µÄ½á¹¹£¬²¢ÔÚ´Ë»ù´¡Éϸø³öÁËI2CÉ豸Çý¶¯ºÍÓ¦ÓõÄʵÏÖ¡£
¡¡¡¡1  ÒýÑÔ
¡¡¡¡I2C (Inter£­Integrated Circuit)×ÜÏßÊÇÒ»ÖÖÓÉPHILIPS¹«Ë¾¿ª·¢µÄÁ½Ïßʽ´®ÐÐ×ÜÏߣ¬ÓÃÓÚÁ¬½Ó΢¿ØÖÆÆ÷¼°ÆäÍâΧÉ豸¡£I2C×ÜÏß×îÖ÷ÒªµÄÓŵãÊÇÆä¼òµ¥ÐÔºÍÓÐЧÐÔ¡£ÓÉÓÚ½Ó¿ÚÖ±½ÓÔÚ×é¼þÖ ......

¸ß¼¶Linux³ÌÐòÉè¼ÆµÚÒ»Õ£ºÈëÃÅ

1¡¢ÓÃGCC±àÒë
1.1¡¢´´½¨Ô´Îļþ
(main.c) C Ô´Îļþ - main.c
#include
#include “reciprocal.hpp”
int main (int argc, char **argv)
{
    int i;
    i = atoi (argv[1]);
    printf (“The reciprocal of %d is %g\n”, i, reciprocal (i ......

Linux shared library Loading class

Linked from: http://www.faqs.org/docs/Linux-mini/C++-dlopen.html
//1.==== main.cpp =============================================================
// How to build?
// g++ main.cpp -ldl
//=============================================================================
#include "polygon.h"
......

LinuxÉèÖû·¾³±äÁ¿Ð¡½á

1¡¢×ܽᱳ¾°
ÔÚlinuxϵͳÏ£¬Èç¹ûÄãÏÂÔز¢°²×°ÁËÓ¦ÓóÌÐò£¬ºÜÓпÉÄÜÔÚ¼üÈëËüµÄÃû³Æʱ³öÏÖ“command not found”µÄÌáʾÄÚÈÝ¡£Èç¹ûÿ´Î¶¼µ½°²×°Ä¿±êÎļþ¼ÐÄÚ£¬ÕÒµ½¿ÉÖ´ÐÐÎļþÀ´½øÐвÙ×÷¾ÍÌ«·±ËöÁË¡£ÕâÉæ¼°µ½»·¾³±äÁ¿PATHµÄÉèÖÃÎÊÌ⣬¶øPATHµÄÉèÖÃÒ²ÊÇÔÚlinux϶¨ÖÆ»·¾³±äÁ¿µÄÒ»¸ö×é³É²¿·Ö¡£±¾°¸Àý»ùÓÚRedHat AS4½² ......

linuxϸü¸Ä¹²ÏíÄÚ´æµÄ×î´óÖµ

System V
IPC
²ÎÊý


Ãû×Ö
ÃèÊö
ºÏÀíÈ¡Öµ


SHMMAX
×î´ó¹²ÏíÄÚ´æ¶Î³ß´ç£¨×Ö½Ú£©
×îÉÙÈô¸ÉÕ×£¨¼ûÎı¾£©
SHMMIN
×îС¹²ÏíÄÚ´æ¶Î³ß´ç£¨×Ö½Ú£©
1
SHMALL
¿ÉÓù²ÏíÄÚ´æµÄ×ÜÊýÁ¿£¨×Ö½Ú»òÕßÒ³Ã棩
Èç¹ûÊÇ×Ö½Ú£¬¾ÍºÍ SHMMAX
Ò»Ñù£»Èç¹ûÊÇÒ³Ã棬ceil(SHMMAX/P ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ