LinuxÄÚºËÉý¼¶(ubuntu+virtual Box)
ÄÚºËÖÕÓÚ±à¹ý²¢ÇÒÉý¼¶ÁË£¬±¾À´´òËã×¥½ô¼ÌÐøÍùÏÂѧϰ¡£µ«ÊÇÔÚÀÏÆŵĹÄÀøÏ£¬¸Ð¾õ»¹ÊÇÍ£ÏÂÀ´×ܽáϱȽϺã¬ÕâÑù¶Ô×Ô¼º¶Ô±ðÈ˶¼ÓÐËù°ïÖú¡£
0¡¢»·¾³½éÉÜ
ÎÒÊÇÔÚVirtualBox-3.1.6-59338-WinµÄÐéÄâ»úÉÏ°²×°ÁËubuntu-9.10-desktop-i386.iso¡£µçÄÔ±¾ÉíÊÇXPϵͳ¡£
×¢Ò⣬ÔÚ½øÐÐÏÂÃæ֮ǰ×îºÃ×öÒÔϹ¤×÷£º
1) °²×°ÁËÔöÇ¿°ü¡£Õâ¸ö×°ÉϺóÐéÄâ»úºÍÎÒÃǵĵçÄÔÖ®¼äÇл»ºÜÊÇ·½±ã£¬²»ÐèÒª°´ÓÒctl¼üÁË¡£ÖÁÓÚÆäËûµÄºÃ´¦£¬ÏÖÔÚ»¹Ã»Òâʶµ½£¬ºÇºÇ¡£
2) ºÍÖ÷»ú£¨XPϵͳ£©Ö®¼äÉèÖúù²ÏíÎļþ¼Ð¡£ÕâÑù±È½Ï·½±ã»¥Í¨×ÊÁÏ¡£
3) ÐéÄâ»úµÄÓ²ÅÌ¿Õ¼ä×îºÃÒª20GÒÔÉÏ¡£ÒòΪÄں˽âѹºó¾ÍÕ¼ºÜ´ó¿Õ¼äÁË£¬ÔÙ×öÆäËûµÄ£¬¿ÉÄܾͲ»·½±ãÁË¡£
1
¡¢ÏÂÔØÄÚºËÔ´Âë
µØַΪ
www.kernel.org
£¬ÔÚ“
Latest
Stable
Kernel”ÏÂÃæÓиöÂÌÉ«µÄ¼ýÍ·£¬µã»÷¾ÍÄÜÏÂÔØÁË¡£
ÎÒÏÂÔØ
ÊÇ2.6.33.2£¬ÏÂÃæÒÔÕâ¸ö°æ±¾ÎªÀý½øÐн²½â¡£
½«ÏÂÔØÏÂÀ´µÄ
linux-2.6.33.2.tar.bz2
·ÅÔÚ
/usr/src
Ï¡£
2
¡¢½âѹÄÚºËÔ´Âë
ÔËÐÐÃüÁ
#cd
/usr/src
#tar
-jxvf linux-2.6.33.2.tar.bz2
#ln
-s linux-2.6.33.2 linux (
½«
linux
·ûºÅÁ´½ÓÓ³Éäµ½
linux-2.6.33.2)
#cd
linux
3
¡¢#
make
mrproper
¸ÃÃüÁîÈ·±£Ô´´úÂëĿ¼ÏÂûÓв»ÕýÈ·µÄ.oÎļþÒÔ¼°ÎļþµÄÏ໥ÒÀÀµ¡£
ÒòΪÊǸÕÏÂÔصÄÍêÕûÔ´³ÌÐò°ü£¬±¾²½Öè¿ÉÒÔÊ¡ÂÔ¡£µ«ÊÇÈç¹ûÕâЩԴ³ÌÐò±»¶à´ÎʹÓùý£¬ÄÇô±¾²½Öè²»¿ÉÒÔºöÂÔ¡£
4
¡¢ÅäÖÃÄÚºË
×¢Ò⣺ִÐÐÕⲽ֮ǰ£¬ÐèÒªÏÈ°²×°
libncurses
£¬ÒòΪ
ubuntu
ĬÈÏûÓа²×°¡£°²×°ÃüÁîΪ£º
#apt-get
install libncurses5-dev
ÅäÖÿÉÒÔʹÓÃÏÂÃæÃüÁîÖеÄÒ»¸ö£º
#make
config £¨»ùÓÚÎı¾µÄ×ͳµÄÅäÖýçÃ棬²»ÍƼöʹÓã©
#make
menuconfig £¨»ùÓÚÎı¾²Ëµ¥µÄÅäÖýçÃ棩
#make
xconfig £¨ÐèÒªQTÒѾ±»°²×°£©
#make
gconfig £¨ÐèÒªGTK+ÒѾ±»°²×°£©
ͨ³£ÎÒÃǶ¼Óõڶþ¸ö£º
#make
menuconfig
Ïà¹ØÎĵµ£º
´´½¨×ÀÃæͼ±ê
Ä¿Ç°½«ÍøÂçÓ¦ÓÃÀ©Õ¹µ½×ÀÃæÊÇÒ»¸öÇ÷ÊÆ£¬´æÔÚןܶà½â¾ö·½°¸£¬±¾ÎÄÒÔ Mozilla Prism ΪÀý£¬ÀàËƵķ½·¨Í¬ÑùÊÊÓÃÓÚ Google Chrome ¡£
1. µ½ Mozilla Prism µÄÍøÕ¾ÉÏÏÂÔØ Prism£¬µã»÷ Download Now Ö®ºó»áÌáʾÓÐÁ½ÖÖ£¬Ò»ÖÖÊÇÒÔ Mozilla Firefox À©Õ¹µÄ·½Ê½£¬ÊʺÏÒѾ°²×°ÓÐ Firefox µÄÅóÓÑ£»Ò»Ö ......
http://club.topsage.com/thread-1201128-1-1.html
ºÜ¶àÈ˶¼¶Ô¹ýÃüÁîÐÐÌáʾµÄÖØÒªÐÔ²»Ð¼Ò»¹Ë£¬ÉõÖÁÊÇÒ»µã¶¼²»¹ØÐÄ¡£µ«ÊÇÎÒÈ´Ò»µã¶¼²»ÕâôÈÏΪ£¬Ò»¸öºÃµÄÃüÁîÐÐÌáʾ¿ÉÒԸıäÄãʹÓÃÃüÁîµÄ·½Ê½¡£Îª´Ë£¬ÎÒÔÚinternetÉÏÕÒµ½Ò»Ð©·Ç³£ÊµÓã¬ÓÅÐ㣬²¢ÓÐȤµÄbashµÄÃüÁîÐÐÌáʾ¡£ÏÂÃæÎÒ½«ÎÒ×îϲ»¶Ê¹ÓõÄһЩÃüÁîÐÐÌáʾÂÞÁÐÈçÏ¡£
¡¡¡ ......
ÕâÊÇCµÄÔ³ÌÐò
#include <stdio.h>
#include <regex.h>
int main(int argc, char** argv)
{
regex_t reg;
regmatch_t pm[10];
char *pattern;
char buf[50];
const size_t nmatch = 10;
pattern = argv[1];
int result = regcomp(®, pattern, REG_EXTENDED);
while( fgets ......
ÓÖÅöµ½ÓʼþÎÊÌ⣬ÔÚmagentoǰ̨ע²áÐÂÓû§£¬Ï¶©µ¥¶¼Ã»ÓÐÊÕµ½Óʼþ¡£µ«ÊÇÌáʾ¶¼ÊÇ˵Õý³£¡£
Ö±½ÓÔÚsshÖÐʹÓÃÏÂÁÐÃüÁî²âÊÔ£¬Á¬½Ó³¬Ê±£º
echo "Subject: test" | /usr/lib/sendmail -v xinhaozheng@gmail.com
Ìáʾ£º
WARNING: local host name (server) is not qualified; see cf/README: WHO AM I?
xinhaozheng ......
×÷ÕߣºÀîÇ¿,»ªÇåÔ¶¼ûǶÈëʽѧԺ½²Ê¦¡£
ÔÚLinuxÉ豸Çý¶¯ÖУ¬É豸ºÅÉèÒ»¸öºÜÖØÒªµÄ¸ÅÄîºÍ±äÁ¿¡£²»ÂÛÊÇÖ÷É豸ºÅ£¬»¹ÊÇ´ÎÉ豸ºÅ£¬ÔÚÉ豸Çý¶¯Öж¼Õ¼¾ÝÁ˺ÜÖØÒªµÄµØλ¡£ÄÇôËûÔÚKernelÖÐÊÇÈçºÎ²Ù×÷µÄ£¿Õâ¸öÊý¾Ý½á¹¹¶¼ÊÇͨ¹ýÄÇЩº¯Êý¿ÉÒÔºÜÈÝÒ×µÄÔÚÎÒÃÇдLinuxÉ豸Çý¶¯Ä£¿éʱ±»ÎÒÃÇËùʹÓÃÄØ£¿
ÔÚinclude/linux/type.hÎļþÖÐÎÒÃÇÄ ......