ºìÁªLinuxÃÅ»§
Linux°ïÖú
µ±Ç°Î»ÖÃ: ºìÁªLinuxÃÅ»§ > Debian

°ÚÍѵôdebianÓÃoleg optware°²×°mldonkey

·¢²¼Ê±¼ä:2008-02-19 11:25:20À´Ô´:ºìÁª×÷Õß:Luoall
Èç¹ûÒÔÇ°°²×°ÁËoptware for dd-wrtÇë´Ó´Ë´¦¿ªÊ¼¿´

µÚÒ»²½ ±¸·ÝÒÔÇ°µÄÉèÖÃ

Çë°Ñ/opt/etc¡¢/opt/shareÀïÃæµÄÄÚÈÝÓÃWinscp±¸·Ý³öÀ´£¬Ò»±ßÒÔºó½øÐлָ´¡£

µÚ¶þ²½ ɾ³ýÔ­ÏȵÄ/optÄÚ²¿µÄÆô¶¯Ïî

±à¼­Æô¶¯½Å±¾£¬ÔÝʱÆÁ±Îµô´Ó

mount -o bind /jffs/opt /opt

ÕâÒ»ÐпªÊ¼ËùÓкÍ/optÀïÃæ³ÌÐòÓйصÄÆô¶¯ÏÆÁ±Î·½·¨ÊÇÔÚÿһÐÐÇ°¼Ó#ºÅ

È»ºóÖØÆô·ÓÉÆ÷£¬ÕâÑùËùÓкÍOPTÏà¹ØµÄ³ÌÐò¾Í²»»áÆô¶¯ÁË

µÚÈý²½ ½«Ô­ÏȵÄoptĿ¼¸üÃû¡£

Èç¹ûÔ­ÏȵÄoptĿ¼·¾¶ÊÇ/jffs/opt£¬ÔòÊäÈë

mv /jffs/opt /jffs/ddopt

½øÐиüÃû£¬´ôÒ»»á¶ùÍê³É¸üкó¾Í¿ÉÒÔɾµôÁË¡£

Èç¹ûÊÇȫа²×°Çë´Ó´Ë´¦¿´

µÚËIJ½ °²×°ÐµÄoleg opt

µ½ÕâÀȥÏÂÔØÒ»¸ö .tar.gzµÄÎļþ

http://code.google.com/p/oleg-for-mss-base/downloads/list

ÔÚÒ³ÃæÖв¿¾Í¿ÉÒÔ¿´¼ûÁË

Ôڴ˸ÐлÂÛ̳ÉϵÄhlideaͬ־£¬ÊÇËû±àÒëµÄ

ÏÂÔØÍê³Éºó£¬°ÑËü¶ª½ø/jffsÀïÃ棬Ȼºótelnet½øÈ¥£¬ÊäÈë

cd /jffs

tar zxvf opt.tar.gz

½âѹ֮ºó£¬/jffsÀïÃæ¾ÍÓÐеÄoptĿ¼ÁË¡£

µÚÎå²½ ÔÙ°ÑÒÔÇ°µÄÈí¼þ¶¼×°»ØÈ¥

Ö´ÐÐmount -o bind /jffs/opt /opt

Äã»á·¢ÏÖ£¬/optÏÂÃæÓÖÓж«Î÷À²

È»ºó¾Í¼òµ¥ÁË£¬·Ö±ðÖ´ÐÐ

/opt/bin/ipkg update

/opt/bin/ipkg install XXXXXXX¡£¡£¡£¡£

ÂýÂý°Ñʲôsamba¡¢thttpd¡¢proftpdÖ®ÀàµÄ¶¼×°»ØÈ¥¾ÍÐÐÁË

µÚÁù²½ »Ö¸´ÉèÖÃ

¸Õ²Å²»ÊDZ¸·Ý¹ý/opt/etcô£¿Èí¼þ¶¼×°ÍêÒԺ󣬰Ñ.confÉèÖÃÎļþ¶¼¿½»ØÈ¥£¬Èç¹ûÄ㻹ÓÐweb½çÃ棬°Ñ/opt/share±¸·ÝµÄÄÚÈÝÒ²¶¼¿½»ØÈ¥¡£

µÚÆß²½ °²×°mldonkeyÐèÒªµÄ¿â

ΪÁË´ó¼Ò·½±ãÎÒ°ÑÎҵĿâ´ò°üÉÏ´«ÁËÒѾ­£¬¼û¸½¼þ

ÏÂÔØÒÔºó½âѹ³öÀ´Ò»¸ö.tar.gzÎļþ£¬ÈÓµ½/optÏÂÃ棬Ȼºó

cd /opt

tar zxvf optlib.tar.gz

½â¿ª¾ÍÐÐÁË

µÚ°Ë²½ °²×°mldonkey±¾Éí

µ½Õâ¸öÌû×ÓÖÐÕÒµ½4¸öѹËõ°ü£¬ÏÂÔص½PC½âѹ

http://www.right.com.cn/forum/viewthread.php?tid=12053&highlight=mldonkey

½âѹËõÒԺ󶪵½/opt/binÀïÃ棬ÎļþÃûÊÇmlnet.lite

È»ºóchmod +x /opt/bin/mlnet.lite

¼ÓÉÏ¿ÉÖ´ÐÐȨÏÞ¡£

µÚ¾Å²½ ¸ømldonkey½¨Ò»¸öÆô¶¯shell

ÒòΪmldonkeyÿ´Î¶¼°ÑÅäÖÃÎļþ·ÅÔÚHOMEÕâ¸ö»·¾³±äÁ¿ÀËùÒԵøøËû½¨Á¢Ò»¸öÆô¶¯½Å±¾£¬Ã¿´ÎÉèÖÃÒ»ÏÂHOMEÕâ¸ö±äÁ¿¡£

ÎÒ¾ÍÌùÒ»ÏÂÎҵİɣ¬ÓÃvi´´½¨Ò»¸öÎı¾Îļþ£¬·ÅÔÚÄÄÀïËæÒ⣺

#!/bin/sh

if [ -n "`pidof mlnet.lite`" ]; then

echo "Kill old program..."

killall mlnet.lite

sleep 10

fi

export HOME=/jffs/root

rm /jffs/root/.mldonkey/*.tmp 2>/dev/null

rm /jffs/root/.mldonkey/mlnet.log 2>/dev/null

rm /jffs/root/.mldonkey/*.pid 2>/dev/null

/opt/bin/mlnet.lite&

ÎÒ°ÑÕâ¸ö½Å±¾·ÅÔÚ/opt/etc/init.dÁË£¬Ãû½Ðmlnet£¬±ðÍüÁË»¹Òªchmod +x /opt/etc/init.d/mlnet

È»ºó½¨Á¢Ò»¸öÁÙʱĿ¼

mkdir /jffs/root

Ö®ºó¾ÍÖ´ÐÐ/opt/etc/init.d/mlnet

¾ÍÐÐÁË£¬µÚÒ»´Îmlnet»á×Ô¼ºÔÚ/jffs/root/.mldonkeyÏÂÃæ´´½¨Ò»´ó¶ÑµÄÆô¶¯Îļþ£¨×¢ÒâÕâ¸öĿ¼ÊÇÒþ²ØµÄ£©

µÚÊ®²½ °ÑmldonkeyµÄÉèÖÃŪһÏ¡£

ÏÈÍ£Ö¹mldonkey£¬ÓÃÃüÁîkillall mlnet.lite

ÎÒÒѾ­ÅäÖúÃÁË£¬²Î¼û

http://www.right.com.cn/forum/viewthread.php?tid=12106

¸½¼þÖеÄsettings.rar£¬½âѹËõÒÔºóWinscpÈÓµ½/jffs/root/.mldonkeyÏÂÃ渲¸ÇÔ´Îļþ¾ÍÐÐÁË£¬Ö®ºóÖØÐÂÆô¶¯mlnet¾ÍÐÐÁË¡£

ÖÁ´Ë½áÊø
ÎÄÕÂÆÀÂÛ

¹²ÓÐ 0 ÌõÆÀÂÛ