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

Linux϶ÁÓ²ÅÌÐòÁкŵijÌÐò


Linux϶ÁÓ²ÅÌÐòÁкŵijÌÐò
/*
* gethddsn.c
*
* Get serial number of ide hard disk.
* example: my Maxtor 15G 's s/n is K306S04C.
*
* Compile with: gcc -O2 gethddsn.c
*
* Xiaoming DONG <xmdong@263.net>
* Aug 24, 2000
*
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>  /* ioperm() */
#include <asm/io.h>  /* outb(), inb() */
/* get serial number */
int gethddsn(char *ide)
{
  unsigned int ide_info[257];
  unsigned int info_off;
  unsigned long loop2=0;
  int loop, loop1=0;
  if (ioperm(0x1f6, 1, 1)) {
    perror("ioperm"); exit(-1);
  }
  outb(0xa0, 0x1f6);
  if (ioperm(0x1f7, 1, 1)) {
    perror("ioperm"); exit(-1);
  }
  outb(0xec, 0x1f7);
  do {
    if (ioperm(0x1f7, 1, 1)) {
       perror("ioperm"); exit(-1);
    }
  } while (inb(0x1f7) != 0x58 && loop2++ < 0xffff);
  for (info_off=0; info_off != 256; info_off++) {
    if (ioperm(0x1f0, 2, 1)) {
     perror("ioperm"); exit(-1);
    }
    ide_info[info_off] = inw(0x1f0);
  }
  for (loop=10, loop1=0; loop<=19; loop++)
  {
    ide[loop1++] = (char)(ide_info[loop] / 256);
    ide[loop1++] = (char)(ide_info[loop] % 256);
  }
  ide[loop1] = 0;
  if (loop1 > 40) printf("*error*\n");
  return 0;
}
void main()  /* print hard disk number */
{
  static char serial[41];
  gethddsn(serial);
  printf("IDE hard disk s/n: %s\n", serial);
}
/* end of gethddsn.c */


Ïà¹ØÎĵµ£º

Linux Adobe Reader 9 ÏÔʾÖÐÎÄ£¨°²×°ÖÐÎÄÓïÑÔ°ü£©

        Ïë°²×°adobe reader£¬À´µ½¹Ù·½ÍøÕ¾ÏÂÔØÊÇ·¢ÏÖÓÐreader9,ËäÈ»ÊÇÓ¢ÎİæµÄÏÂÏÂÀ´ÔÙ˵£¬½á¹û´ò²»¿ªÖÐÎÄÎĵµ£¬googleÁËÏ·¢ÏÖÕâôƪÎÄÕ½â¾öÁËÎÒµÄÎÊÌâ¡£²»´í£¬²»¹ýÄǸöÏÂÔØÖÐÎÄÎĵµµÄµØÖ·ÕâÀï¾ÀÕýÒ»ÏÂÊÇ£ºhttps://www.adobe.com/cn/products/acrobat/acrrasianfontpack.html
ά»¤Ô­´´£¡Ô­´´µ ......

linuxÖеĿéÉ豸ºÍ×Ö·ûÉ豸

ϵͳÖÐÄܹ»Ëæ»ú£¨²»ÐèÒª°´Ë³Ðò£©·ÃÎʹ̶¨´óСÊý¾ÝƬ£¨chunks
£©µÄÉ豸±»³Æ×÷¿éÉ豸£¬ÕâЩÊý¾ÝƬ¾Í³Æ×÷¿é¡£×î³£¼ûµÄ
¿éÉ豸
ÊÇÓ²ÅÌ£¬³ý´ËÒÔÍ⣬»¹ÓÐÈíÅÌÇý¶¯Æ÷¡¢CD-ROM
Çý¶¯Æ÷ºÍÉÁ´æµÈµÈÐí¶à
ÆäËû
¿éÉ豸¡£×¢Ò⣬ËüÃǶ¼ÊÇÒÔ°²×°ÎļþϵͳµÄ·½Ê½Ê¹Óõė—ÕâÒ²ÊÇ¿éÉ豸һ°ãµÄ·ÃÎÊ·½Ê½
¡£
ÁíÒ»ÖÖ»ù±¾µÄÉ豸Àà ......

Ubuntu/linuxÏÂ×îÇ¿´óµÄÏÂÔØ¹¤¾ß£­aria2


aria2ÊÇÎÒ½ñÌìÐÂѧµ½µÄÒ»¸öÃüÁîÐеÄÏÂÔØ¹¤¾ß£¬ËäÈ»»¹Ã»Ñо¿Í¸£¬µ«ÊÇËû¾ø¶Ô±Èwget¸üºÃ.
aria2 ÊÇ Linux ÏÂÒ»¸ö²»´íµÄ¸ßËÙÏÂÔØ¹¤¾ß
¡£ÓÉÓÚËü¾ßÓзֶÎÏÂÔØÒýÇæ£¬ËùÒÔÖ§³Ö´Ó¶à¸öµØÖ·»òÕß´ÓÒ»¸öµØÖ·µÄ¶à¸öÁ¬½ÓÀ´ÏÂÔØÍ¬Ò»¸öÎļþ¡£ÕâÑù×ÔÈ»¾Í´ó´ó¼Ó¿ìÁËÎļþµÄÏÂÔØËÙ ¶È¡£aria2 Ò²¾ßÓжϵãÐø´«¹¦ÄÜ£¬ÕâʹÄãËæÊ±Äܹ»»Ö¸´ÒѾ­ÖÐ¶Ï ......

LinuxÄÚºË: ÐÞ¸ÄTCP/IPµ÷ÓŲÎÊý

ÔÚTimesTenµÄÓÅ»¯ÖУ¬Èç¹ûÉæ¼°µ½ Replication »òÕßCache GroupµÄ»°£¬ÄÇôÕë¶Ô TCP/IPÏà¹ØµÄ²ÎÊýµÄÓÅ»¯¶ÔÐÔÄÜÊÇÓÐÒæµÄ¡£ÒòΪËüÃÇÁ©¶¼ÊÇͨ¹ýTCP/IPЭÒé½øÐÐÊý¾Ý½»»¥µÄ¡£ÔÚ°²×°Îĵµ(install.pdf)µÄ39Ò³ÓоßÌåµÄ˵Ã÷£º
 
For replication, TCP send and receive buffers should be increased to a minimum of 512KB. To ......

linux×ÊÔ´ÍøÕ¾

=======================================================================
һЩ¹ØÓÚLinuxµÄ×ÊÔ´Õ¾µã£¬Ï£Íû¶Ô´ó¼ÒÓаïÖú
http://www.linux.org/ ;
Linux¹Ù·½ÐÂÎźÍÐÅÏ¢ÍøÕ¾¡£
http://freesoft.cei.gov.cn/ ;
ÖйúÈí¼þÐÐҵЭ»á¹ú¼Ê×ÔÓÉÈí¼þÓ¦ÓÃÑо¿·¢Õ¹·Ö»áµÄ×ÔÓÉÈí¼þ¿â£¬ÉÏÃæÌṩÓи÷ÖÖLinuxÈí¼þ¿É¹©ÏÂÔØ£¬²¢ÓÐLinux ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ