ºìÁªLinuxÃÅ»§
Linux°ïÖú

LinuxÓ¦ÓÃÎÊ´ðϵÁÐÖ®×ÀÃæFAQ£¨Ð£©

·¢²¼Ê±¼ä:2005-09-30 00:03:10À´Ô´:ºìÁª×÷Õß:reing
×÷ÕߣºÂíÅæ¡¡À´Ô´:ÈüµÏÍø¼¼ÊõÌìµØ-¿ª·ÅϵͳÊÀ½ç

ÎÊ£ºÈçºÎÖØÆôX-Window£¿

´ð£ºÊ¹ÓÃCtrl+Alt+BackSpace¼ü¼´¿É¡£

ÎÊ£ºÔÚFedora Core 2.0ϵͳµÄKDE»·¾³Ï£¬ÔõÑùÔÚ¿ª»úºó×Ô¶¯´ò¿ªÐ¡¼üÅÌ£¿

´ð£º¿ÉÔÚ¡°¿ØÖÆÖÐÐÄ¡úÍâÉè¡ú¼üÅÌ¡±ÄÇÀïÉèÖá£

ÎÊ£º¹ÒÔØWindows·ÖÇøºó£¬ÎÞ·¨ÏÔʾÖÐÎÄÊÇÔõô»ØÊ£¿

´ð£ºÇëÓÃÈçÏÂÃüÁî½øÐйÒÔØ£º


#mount -t ntfs -o iocharset=cp936 /dev/hdb5 /mnt/d


¹ÒÔØNTFSºÍFAT32Ò»Ñù£¬¶¼ÊÇÐèÒª¼ÓÉÏ¡°iocharset=cp936¡±²ÎÊý²ÅÄÜÏÔʾÖÐÎÄ¡£

ÎÊ£ºÓÐÖ§³ÖFirefox 0.9¶àÒ³Ãæä¯ÀÀµÄ²å¼þô£¿

´ð£ºÄ¿Ç°£¬ÕâÖÖ²å¼þÓÐÁ½¸ö£ºSingle Window ºÍTabbrowser Preferences¡£ÕâÁ½¸ö²å¼þ¶¼¿ÉÒÔÔÚhttp://update.mozilla.org/ÉÏÕÒµ½¡£

ÎÊ£ºÒòΪÎÒµÄϵͳ»µÁË£¬Ê¹ÓÃdfÃüÁîÖ»ÄÜÏÔʾ¸ùĿ¼µÄÇé¿ö¡£ÇëÎÊÓÐûÓÐÆäËü·½·¨²éÕÒÎļþϵͳ¶ÔÓ¦µÄÉ豸£¿±ÈÈ磬ѰÕÒ/homeĿ¼¶ÔÓ¦µÄ/dev/hdan(nÊÇ×ÔÈ»Êý)¡£

´ð£º¿ÉÒÔͨ¹ý²é¿´fstabÎļþÕÒµ½ÎļþϵͳºÍÉ豸µÄ¶ÔÓ¦¹Øϵ£º


#cat /etc/fstab


ÁíÍ⣬»¹¿ÉÒÔͨ¹ý/procÎļþϵͳ²é¿´£º


#cat /proc/mount


ÎÊ£ºÎÒʹÓÃRays LX beta 2£¬ÆäÖеÄXpdf²»ÄÜÕý³£ÏÔʾÖÐÎÄÔõô°ì£¿

´ð£º±à¼­/etc/apt/source.listÎļþ£¬Ìí¼ÓÈçÏÂÒ»ÐУº


ftp://mirrors.geekbine.org/debian sarge main non-free contrib


È»ºóÖ´ÐÐÒÔÏÂÁ½¸öÃüÁ


#apt-get update
#apt-get install xpdf-chinese-simplified
ÎÄÕÂÆÀÂÛ

¹²ÓÐ 7 ÌõÆÀÂÛ

  1. zhijk ÓÚ 2005-10-30 15:16:07·¢±í:

    ¸Ðл·ÖÏí

  2. ºÎ¸ç ÓÚ 2005-09-30 11:23:38·¢±í:

    ²»´í£¬Ö§³Ö

  3. reing ÓÚ 2005-09-30 00:06:18·¢±í:

    ÎÊ£ºÎÒÓÃtopÃüÁî²é¿´ÏµÍ³ÐÅϢʱ£¬·¢ÏÖswap·ÖÇøÒ»Ö±´¦ÓÚ¿ÕÏÐ״̬£¬²¢Ã»Óзֵ£ÏµÍ³ÄÚ´æ¡£ÇëÎÊÔõÑù²ÅÄÜÆô¶¯swap£¿

    ´ð£ºÈç¹ûÓÃtopÃüÁî¿ÉÒÔ¿´µ½swap·ÖÇø£¬¾Í±íʾswap·ÖÇøÒѾ­ÆôÓá£

    swap·ÖÇø´¦ÓÚ¿ÕÏÐ״̬ÊÇÒòΪϵͳ²»Ò»¶¨»áÓõ½Ëü¡£Ò»°ãÔÚÔËÐбȽϴóµÄ³ÌÐòʱ²Å»áÓõ½swap·ÖÇø¡£ÆôÓÃswap·ÖÇøµÄÃüÁîÊÇswapon£¬Ïêϸ²é¿´ÓйØswapÃüÁîµÄÐÅÏ¢¿ÉÒÔÖ´ÐÐman swaponÃüÁî¡£

    ÎÊ£ºÎÒʹÓõÄFreeBSD 5.3 Beta3ÒѾ­°²×°ÁËGNOME£¬ÈçºÎʹµÃ¿ª»úºóÖ±½Ó½øÈëͼÐεǼ½çÃ棿

    ´ð£º¿ª»ú½øÈëͼÐνçÃæÓÐÁ½ÖÖ·½·¨£ºÒ»ÖÖÊDZ༭/etc/ttysÎļþ£¬½«¡°getty¡±ºóÃæµÄ¡°off¡±¸ÄΪ¡°on¡±£»ÁíÒ»ÖÖÊÇÔÚ/etc/rc.localÎļþÖмÓÒ»ÐС°exec xdm¡±¡£

    ÎÊ£ºÈçºÎʹ×Ô¼º¶¨ÒåµÄеĻ·¾³±äÁ¿±£ÁôÔÚϵͳÄÚ£¬²»»áÿ´ÎÖØеǼ¾ÍÏûʧ£¿

    ´ð£º±à¼­Îļþ~/.profile£¬½«Òª¶¨ÒåµÄ±äÁ¿Ð´ÔÚÕâ¸öÎļþÀï¼´¿É¡£

    ÎÊ£ºWindows·ÃÎÊLinuxϵÄvsftpd·þÎñÏÔʾÂÒÂ룬µ«ÊÇÓÃSambaÈ¥¿´ÊÇÕý³£µÄ¡£Ôõô°ì£¿

    ´ð£ºÄãÐèÒª±à¼­/etc/sysconfig/i18nÎļþ£¬°ÑĬÈϵÄÓïÑÔÓÉUTF-8¸ÄΪ¼òÌåÖÐÎÄ£¬Ôٱ༭smb.confÎļþ£¬¼ÓÈëÈçÏÂÄÚÈÝ£º


    unix charset=cp936
    dos charset=cp936

    ÎÊ£ºÎÒÔÚRed Hat AS 3ϵÄOpenOffice 1.0Öдò¿ªÔÚWindowsϵÄPowerPointÖбàдµÄÎĵµ£¬·¢ÏÖÀïÃ涼ÊÇÂÒÂë¡£ÎÒ¸ÃÔõô°ì£¿

    ´ð£ºÄã¿ÉÒÔ°´ÏÂCtrl+A¼ü£¬È»ºó¸øÎĵµÖ¸¶¨ÐµÄÖÐÎÄ×ÖÌå¼´¿É¡£

    ÎÊ£º·ÇÕý³£¹Ø»úºó£¬´ÅÅÌÓлµÊý¾Ý£¬ÈçºÎÐÞ¸´»µÊý¾Ý£¿

    ´ð£ºÔËÐÐÈçÏÂÃüÁîÓ¦¸Ã¿ÉÒÔ×Ô¶¯ÐÞ¸´»µÊý¾Ý£º


    #e2fsck -y

    ÎÊ£ºÎÒÏë°Ñ/varĿ¼tar³öÀ´£¬µ«²»Ïë°üº¬ÆäϵÄdataĿ¼£¬Óа취Âð£¿

    ´ð£ºÊ¹ÓÃtarÃüÁîµÄ¡°-X¡±²ÎÊýÈ¥³ýdataĿ¼¼´¿É¡£¸üÏêϸµÄ½éÉÜ¿ÉÒÔÓÃman tarÃüÁî²é¿´¡£

    ÎÊ£ºÎÒÏëÈÃcron¶¨Ê±Ö´ÐÐÖ¸¶¨Ä¿Â¼ÏµÄÈ«²¿½Å±¾£¬¸ÃÔõôÅäÖÃcron£¿

    ´ð£º½«½Å±¾ËùÔÚµÄĿ¼Ìí¼Óµ½/etc/crontabÖУ¬²¢¼ÓÈërun-parts²ÎÊý¼´¿É¡£

    È¥µôÕâ¸ö²ÎÊýÒ²¿ÉÒÔ£¬µ«ÊÇ£¬¾ÍҪдÉÏÒªÔËÐеÄÿ¸ö½Å±¾µÄÃû³Æ£¬¶ø²»ÊÇÖ»ÒªÎļþ¼ÐÃû¾Í¿ÉÒÔÁË¡£

  4. reing ÓÚ 2005-09-30 00:05:45·¢±í:

    ÎÊ£ºÓÐʲôÃüÁî¿ÉÒÔÏÔʾϵͳÖÐÉèÖõÄËùÓл·¾³±äÁ¿£¿

    ´ð£º¿ÉÒÔÓÃÈçÏÂÃüÁ

    #env

    ÎÊ£ºÔÚʹÓá°init 3¡±ÃüÁîµÇ½ºó£¬ÈçºÎ×Ô¶¯Ö´ÐÐÒ»¸ö³ÌÐò£¿

    ´ð£ºÔÚ/etc/rc.d/rc3.dÎļþϽ¨Á¢ÐèÒª×Ô¶¯Ö´ÐÐÎļþµÄ·ûºÅÁ¬½Ó£¬È»ºó£¬ÔÚ~/.bashrcÎļþÀïд³öÐèÒªÖ´ÐеÄÄÚÈݼ´¿É¡£

    ÎÊ£ºÈçºÎ½ûÓÃÆÁÄ»±£»¤³ÌÐò£¿

    ´ð£º¶ÔÓÚLinux¿ØÖÆ̨£¬¿ÉʹÓÃÈçÏÂÃüÁ


    # setterm -powersave off

    Èç¹ûÊÇÔÚX-WindowÏ£¬Ôò¿ÉÖ´ÐÐÈçÏÂÃüÁ


    # xset s off

    ÎÊ£ºDebianÏÂÈçºÎ²é¿´Èí¼þ°üµÄ°æ±¾£¿

    ´ð£º¿ÉʹÓÃapt-cacheÃüÁî²é¿´Èí¼þ°üµÄ°æ±¾£¬±ÈÈ磬²é¿´gnome-panel¿ÉʹÓÃÈçÏÂÃüÁ

    #apt-cache showpkg gnome-panel

    ÎÊ£ºÈçºÎ°ÑÒ»¸öÎļþ¼ÐϵÄÎļþÀ©Õ¹ÃûÓÉHTMLÈ«²¿¸Ä³Éhtml£¿

    ´ð£ºÊ¹ÓÃrenameÃüÁî¿ÉÒÔʵÏִ˹¦ÄÜ¡£

    ÎÊ£ºÔÚDebianÏ£¬ÈçºÎ½«DOSÎı¾Îļþ£¨ÐÐβ=^M^J£©×ª»»³ÉUnixÎı¾Îļþ£¨ÐÐβ=^J£©£¿

    ´ð£º¿ÉÒÔ°²×°sysutilsÈí¼þ°ü£¬´ËÈí¼þ°üÖаüº¬¶à¸öСӦÓ㬰üÀ¨DOSÎı¾ÎļþÏòUnixÎı¾ÎļþµÄת»»¹¦ÄÜ¡£Ö´ÐÐÒÔÏÂÃüÁ


    # apt-get install sysutils
    # dos2unix

  5. reing ÓÚ 2005-09-30 00:05:01·¢±í:

    ÎÊ£ºÇëÎÊLinuxÏÂÓÐûÓÐBTÏÂÔع¤¾ß£¿

    ´ð£ºÍ¼ÐνçÃæºÍ×Ö·û½çÃæϵÄBTÏÂÔع¤¾ß¶¼ÓУ¬·Ö±ðÊÇAzureus£¨ÏÂÔصØÖ·ÊÇhttp://azureus.sourceforge.net/£©ºÍLibBT£¨ÏÂÔصØÖ·ÊÇhttp://sourceforge.net/projects/libbt/£©¡£

    ÎÊ£ºÎÒÓÃÈçÏÂÃüÁî³É¹¦Ó³ÉäÁËWindowsÏÂCÅ̵ÄÄÚÈÝ£º

    #mount -t fat /dev/hda1/mnt/c


    µ«ÏÖÔÚÎÒ²»ÏëÔÚ/mntϼûµ½ËüÁË£¬¸ÃÔõô×ö£¿

    ´ð£ºÖ»ÒªÊ¹ÓÃÈçÏÂÃüÁÆäжÔؾͿÉÒÔÁË£º


    #umount /mnt/c

    ÎÊ£ºÈçºÎÔÚ¿ØÖÆ̨ϲ鿴ϵͳÈÕÖ¾£¬°üÀ¨Æô¶¯ÈÕÖ¾ºÍµÇ¼ÈÕÖ¾µÈ£¿

    ´ð£ºÔÚ/var/logĿ¼ÏÂÓÐÒ»¸ömessagesÎļþ£¬°üº¬ËùÓеÄÈÕÖ¾£¬¿ÉÓÃÏÂÁÐÃüÁî²é¿´£º


    #cd /var/log
    #cat messages | more

    ÎÊ£ºLinuxÏÂÓÐЩ³ÌÐòʧȥÏìÓ¦£¬ÎÒ¸ÃÈçºÎ¹Ø±ÕËüÃÇÄØ£¿

    ´ð£ºÔÚ×Ö·û½çÃæÏ£¬¿ÉÒÔʹÓÃÈçÏÂÃüÁîÕÒ³öҪɱËÀµÄ³ÌÐòµÄ½ø³ÌºÅ£¨PID£©£º


    #ps -aux | grep //ÔËÐеijÌÐò

    È»ºóʹÓÃÈçÏÂÃüÁ³ÌÐòɱËÀ£º


    #kill -9 //½ø³ÌºÅ

    Èç¹ûÔÚͼÐνçÃæÏ£¬¿ÉÒÔʹÓÃxkillÃüÁî¹Ø±ÕʧȥÏìÓ¦µÄ³ÌÐò¡£

  6. reing ÓÚ 2005-09-30 00:04:25·¢±í:

    ÎÊ£ºDebianϼǼÆô¶¯ÐÅÏ¢µÄÎļþÊÇÄĸö£¿dmesg¼Ç¼µÄÖ»ÓÐÓ²¼þÏà¹ØµÄÐÅÏ¢£¬ÓÐûÓÐÍêÕûµÄ¼Ç¼Îļþ£¿

    ´ð£ºDebianËùÓеÄÆô¶¯ÐÅÏ¢Îļþ¶¼´æ·ÅÔÚ/var/log/Ŀ¼Ï£¬ÈçÏÂÊÇÍêÕûµÄ¼Ç¼Îļþ£º

    /var/log/kern.log
    /var/log/message
    /var/log/syslog
    /var/log/daemon.log
    /var/log/boot

    ÎÊ£ºWindowsÏÂʹÓÃPutty SSH¿Í»§¶Ë¹¤¾ßÁ¬½ÓÔ¶³Ìµ½Red HatÖÐÎÄϵͳºó£¬È´ÎÞ·¨Õý³£ÏÔʾÖÐÎÄ£¬²¢ÇÒlsµÈÃüÁî³öÏÖÂÒÂë¡£ÔõôÄܹ»ÈÃPutty SSH¿Í»§¶ËÕý³£Ê¹ÓÃÖÐÎĵÄLinuxϵͳ£¿

    ´ð£º½â¾ö´ËÎÊÌâÐèÒªÔÚPuttyÖе¥»÷Ñ¡µ¥¡°Windows¡úAppearance¡úfont setting¡±£¬Ñ¡ÔñÖÐÎÄ×ÖÌ壬×Ö·û¼¯Ê¹ÓÃGB2312¼´¿É¡£

    ÎÊ£ºÎÒÔÚWindowsϲ»Ð¡ÐÄ°Ñswap·ÖÇø¸ñʽ»¯ÁË£¬ÇëÎÊÓÐʲôÃüÁî¿ÉÒÔ»Ö¸´£¿

    ´ð£ºÊ¹ÓÃmkswapÃüÁÁ¢swap·ÖÇø£¬ÔÙʹÓÃswaponÃüÁîÆôÓÃswap·ÖÇø¼´¿É¡£¹ØÓÚÃüÁîµÄʹÓ㬾ÙÀýÈçÏ£º


    #mkswap /dev/sda7
    #swapon /dev/sda7

    ÎÊ£ºÎÒ°²×°ÁËDebian Sarge£¬ÏëÈ¥³ýÄÚºËÖв»ÐèÒªµÄÄ£¿é£¬±ÈÈ磬Vedio for LinuxµÈ£¬¸ÃÔõô×ö£¿

    ´ð£ºDebianÏÂÓÐÒ»¸öModconfͼÐι¤¾ß£¬¿É½øÐÐÄÚºËÄ£¿éµÄ×°ÔغÍжÔØ¡£¿Éͨ¹ýÒÔÏÂÃüÁî°²×°¸Ã¹¤¾ß£º


    #apt-get install modconf

    °²×°Íê±Ïºó£¬Ö´ÐÐmodconfÃüÁî¼´¿É½øÐÐÄ£¿éÉèÖá£

    ÎÊ£ºÎÒÏëÕÒÒ»¸öLinuxϵIJÆÎñÈí¼þ£¬×îºÃÊÇ¿ªÔ´µÄ,ÇëÍƼö¡£

    ´ð£ºSourceForge£¨http://sourceforge.net/projects/sql-ledger/£©ÉÏÓиöSQL-LedgerÏîÄ¿£¬Ó¦¸ÃÄÜÂú×ãÄãµÄÐèÒª¡£

  7. reing ÓÚ 2005-09-30 00:03:50·¢±í:

    ÎÊ£º±¾ÈË°´ÕÕһƪÎÄÕ³ɹ¦µØΪϵͳ°²×°ÁË×ÖÌ壬²¢°Ñ×ÖÌåÎļþ¿½±´µ½/usr/share/fonts/zh_CN/TrueTypeÏ£¬È»ºóÖ´ÐÐfc-cache¡£È»¶ø£¬ÖØÆôºó£¬ÔÚ¡°¿ØÖÆÖÐÐÄ¡±ÀïµÄ¡°×ÖÌ塱ѡÏîÈ´ÎÞ·¨ÕÒµ½ÎÒ°²×°µÄ×ÖÌå¡£ÕâÊÇÔõô»ØÊ£¿

    ´ð£ºÓ¦¸ÃÔÚÔËÐÐfc-cacheÇ°È·ÈÏÒ»ÏÂ/usr/share/fonts/zh_CN/TrueTypeĿ¼ÀïÊÇ·ñÓÐfonts.cache-1Îļþ£¬ÈôûÓУ¬ÏµÍ³¾Í²»»á¸üÐÂ×ÖÌå¡£

    ÁíÍ⣬»¹ÒªÔÚ/etc/X11/XF86Config(»òÕßXF86Config-4)ÎļþÖмÓÈëÈçÏÂÒ»ÐУº


    FontPath "/usr/share/fonts/zh_CN/TrueType"

    È»ºóÔÙÖ´ÐÐÈçÏÂÃüÁ

    #fc-cache -v

    ÎÊ£ºLinuxÏÂÓÃä¯ÀÀÆ÷²¥·ÅFlash¶¯»­Ê±£¬×Ü»áÔì³Éä¯ÀÀÆ÷µÄ¹Ø±Õ£¬ÇëÎÊÓÐʲô±È½ÏºÃÓõIJå¼þ¿ÉÒÔ½â¾ö´ËÎÊÌ⣿

    ´ð£ºÓÐÒ»¸öºÃÓõIJå¼þ£¬¿ÉÒÔµ½http://www.collaborium.org/onsite

    /jos2000/related/soft/flash_linux.tar.gzÏÂÔØ¡£ÓÃÈçÏÂÃüÁî½âѹËõ£º


    #tar zxvf flash_linux.tar.gz


    Ôò»á¿´µ½Ò»¸ölinuxÎļþ¼Ð£¬°Ñ´ËÎļþ¼ÐÖеÄlibflashplayer.soºÍshockwaveflash.classÎļþ¿½±´µ½/usr/lib/mozilla-1.0.1/pluginsĿ¼Àï¼´¿É¡£×¢Ò⣬ä¯ÀÀÆ÷²»Í¬²å¼þµÄλÖÃÒ²¿ÉÄܲ»Í¬¡£

    ÎÊ£ºµ±Ò»²»Ð¡ÐÄcatÁËÒ»¸ö²¢²»ÊÇÎı¾µÄÎļþʱ£¬ÆÁÄ»»á±ä»¨£¬Õâʱ¸ÃÔõô°ì£¿

    ´ð£ºÓöµ½ÕâÖÖÇé¿ö£¬¿ÉÒÔ°´Á½Ï¡°Enter¡±¼ü£¬ÔÙ¼üÈë¡°reset¡±£¬ÆÁĻӦ¸Ã¾Í»Ö¸´Õý³£ÁË¡£

    ÎÊ£ºÎÒµÄCÅÌÖÐÔ­ÓÐWindows XPϵͳ£¬ÎҾͰÑRed Hat 9.0°²×°µ½ÁíÍâÒ»¸ö·ÖÇø£¬GRUB×°ÔÚMBRÉÏ£¬Ä¬ÈÏÒýµ¼Red Hat 9.0¡£ÎÒÔÚWindows XPÏÂɾ³ýÁËRed Hat 9.0ËùÔڵķÖÇøºó£¬ÖØÆôʱGRUB¾ÍÎÞ·¨Òýµ¼½øÈëϵͳÁË£¬ÎÒ¸ÃÔõô°ìÄØ£¿

    ´ð£ºÄã¿ÉÒÔÓùâÅÌÒýµ¼½øÈëµ½DOSÏ£¬È»ºóÖ´ÐÐÈçÏÂÃüÁ


    fdisk /mbr

    Èç¹ûÒýµ¼¹âÅÌÓõÄÊÇWindows XP°²×°ÅÌ£¬Ôò½øÈë»Ö¸´¿ØÖƽçÃæºó£¬ÓÃfixmbrÃüÁî¼´¿É»Ö¸´Windows XPµÄÒýµ¼¡£