• 160

[分享][更新mldonkey]支援BT的窮人NAS-PCI NAS-01G

DEAR 大大

小弟灌了大大所提供的final-10122007之後
曾經快樂的玩過apache + php + mysql

但不知為何, 畫面變成FTP檔案的畫面
就算重灌之後依然如此





同時附上 BACKDOOR 的內容

#!/bin/sh

chmod 777 /mnt/tmp
\rm -r /mnt/tmp/var /mnt/tmp/tmp
\mkdir -m 777 -p /mnt/tmp/var /mnt/tmp/tmp
mv /var/* /mnt/tmp/var/
mv /tmp/* /mnt/tmp/tmp/
\rm -r /var /tmp
ln -sf /mnt/tmp/var /var
ln -sf /mnt/tmp/tmp /tmp
ln -sf /mnt/Share/php.ini /lib/php.ini #

mkdir -p /mnt/Share/upnpav
mkdir -p /etc/dropbear


#sed -i "/telnet/s/.*/telnet stream tcp nowait root telnetd/" /etc/inetd.conf
#killall inetd
#inetd

rm -f /mnt/mldonkey/*.tmp
ln -sf /mnt/mldonkey /mnt/Share/mldonkey

cp /mnt/Share/php.ini /lib
cp /mnt/Share/mlnet /mnt
cp /mnt/Share/mkEXT3disk.sh /etc/rc.d

[ -f /mnt/Share/nas-01g.tgz ] && tar zxf /mnt/Share/nas-01g.tgz -C /mnt && rm -f /mnt/Share/nas-01g.tgz
[ -f /mnt/Share/coppermine.tgz ] && tar zxf /mnt/Share/coppermine.tgz -C /mnt/www && rm -f /mnt/Share/coppermine.tgz

/mnt/dropbearkey -t rsa -f /etc/dropbear/dropbear_rsa_host_key
/mnt/dropbearkey -t dss -f /etc/dropbear/dropbear_dss_host_key

[ -f /mnt/mysql/scripts/mysql_install_db ] && {
/mnt/mysql/scripts/mysql_install_db
mv /mnt/mysql/scripts/mysql_install_db /mnt/mysql/scripts/mysql_install_db.backup

}

[ ! -d /mnt/www/phpMyAdmin ] && {
tar zxf /mnt/phpMyAdmin.tgz -C /mnt/www
mv /mnt/www/phpMyAdmin-2.8.2.4 /mnt/www/phpMyAdmin
}

[ -f /mnt/etc.tgz ] && tar zxf /mnt/etc.tgz -C /

if ! grep mysql /etc/passwd ; then
echo "mysql:*:0:0:mysql:/mnt:/bin/sh" >> /etc/passwd
fi

chmod 777 /tmp


PORT=`grep ADMIN_PORT /etc/config | cut -d"'" -f2`
[ "$PORT" -eq "80" ] && {
killall httpd
httpd -p 8080&
sed -i /ADMIN_PORT/s/.*/ADMIN_PORT=\'8080\'/ /etc/config
/etc/rc.d/save_config.sh
}

#/mnt/noip2
/mnt/mysql/bin/safe_mysqld&
/mnt/mDNSResponder
/mnt/mt-daapd
/mnt/apache/bin/apache
/mnt/ushare -n NAS-01G -p 49152 -c /mnt/Share/upnpav -D
/mnt/dropbear
/mnt/mysql/bin/mysqladmin -u root password 'password'

cat /mnt/Share/smb_tw.conf >> /etc/smb.conf

懇請大大幫我解決
garykuang wrote:
DEAR 大大小弟灌...(恕刪)


找到"httpd.conf"這個apache設定檔,然後搜尋:
Options Indexes FollowSymLinks MultiViews

將其中的Indexes去掉或者改成-Indexes

將設定檔儲存後,重開就可以了.
PunBB論壇程式愛好者 http://www.ezdiy.org
感謝大大提供的方法

但試過後問題仍然無法解決
mldonkey-2.9.7 已經出了
有大大編譯過了嗎?(求檔)
建議從2.96更換到2.97嗎?
(PS. 有篇post有編譯的教學,我忘了MARK起來現在找不到了)
最進入手一台二手nas01g

經過幾天的奮鬥

安裝完rtorrent

看到下載速度

太值得了~~


土豆大的那個改機...我有try..過....之前的....很好用...

下載了好幾百G....之後...HDD掛了......

最近,又開始改裝新版的.........................

不過有些bt..下載怪怪的....下載已經complete...在done目錄下卻看不到該檔or目錄...

但是....我的rtorrent卻能upload.....
cy
http://tw.myblog.yahoo.com/hoyanan-16888/article?mid=502&prev=-2&next=-2&page=1&sc=1#yartcmt

土豆大的文章改機教學

跑sh rtorrent.sh後出現

rtorrent.sh: line 1: svn: command not found

rtorrent.sh: line 14: cd: trunk/libtorrent: No such file or directory
rtorrent.sh: line 15: ./configure: No such file or directory
make: *** No targets specified and no makefile found. Stop.
make: *** No rule to make target `install'. Stop.
rtorrent.sh: line 17: ./configure: No such file or directory
make: *** No targets specified and no makefile found. Stop.
make: *** No rule to make target `install'. Stop.

請執行下列修改並放入原本的資料夾中setp 2、setp3

resolv.conf
nameserver 168.95.1.1

sources.list
deb http://ftp.tw.debian.org/debian/ etch main contrib non-free
deb-src http://ftp.tw.debian.org/debian/ etch main contrib non-free
deb http://security.debian.org/ etch/updates main contrib non-free
deb-src http://security.debian.org/ etch/updates main contrib non-free

否則都會出現svn 錯誤...套件沒裝...
大大您的方法可以用在升級是沒問題的但是..重新安裝會有很多錯誤

rtorrent.sh
#aptitude install kernel-image-2.6.0-powerpc
此行不知是否需要加上?
關於 kernel 的安裝 aptitude install kernel-image-2.6.0-powerpc 的問題請看這裡,所以在 Nas-01g 下昇級沒有什麼用。
wult54 wrote:
又有新版的 nTor...(恕刪)


大大抱歉打擾 小弟因看了這片文章入手NAS01G 但完全是網路新手

昨天花了半天的時間終於看著土豆大大的文章把debian,rtorrent裝上

也正常抓檔使用~但就是不習慣文字的模式

所以想試試大大的ntorrent

想問的是:

如果已經照土豆大大的步驟裝好 debian,rtorrent

NAS-01G 安裝 debian - rTorrent 0.8.4版 980227 測試整理ok

應該要修改哪裡可以使用ntorrent呢?
請問一下,當我下sh t按土豆大的步驟下了sh tw.sh後
NAS-01G:/home/nas01g# sh tw.sh
Generating locales...
en_US.UTF-8...
便出現PieTTY Fatal Error - Server unexpectedly closed network connection
怎麼辦啊?!Thanks

我NAS-01G的版本是 Version V3.00(01-10-2007),需要升級到3.33嗎?
  • 160
內文搜尋
X
評分
評分
複製連結
請輸入您要前往的頁數(1 ~ 160)
Mobile01提醒您
您目前瀏覽的是行動版網頁
是否切換到電腦版網頁呢?