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

想請問依下
我現在每次重開機,都會跑回預設值,這該怎麼解決阿?
前幾天入手了這台

當然看了近上千篇的回覆,就是一定要改機的
依照土豆大大的文章,動手改機,開始使用rtorrent

http://tw.myblog.yahoo.com/hoyanan-16888/

果然效果相當的好,家裡用 HINET 8M/640K,大概平均可以跑到將近200KB/S
如此不關機一直下載,下載量也是很大的

但是有些時候還是要利用 MLDONKEY來下載,看了一下,似乎要更新到最新的版本下載的速度才夠快
所以改了 backdoor 內容 ,這樣才可以用 all/all 登入原本的系統
很順利的利用62頁 formosafox 大大編譯好的2.9.4 版本,順利簡單更換成最新的版本
果然用 rtorent 下載 BT,用MLDONKEY來下載其他的,看起來速度也很不錯喔。

這樣使用了幾天,一切順利...

不過今天竟然發現,我無法再利用all/all進入原本的系統

這是我啟動debian,backdoor的內容

#!/bin/sh

killall dms
killall mt-daapd

if [ -d /mnt/debian ]; then
/mnt/debian/bin/chroot /mnt/debian /etc/rc3.d/S20ssh restart
if [ ! -e /mnt/debian/proc/cpuinfo ]; then
mount -t proc proc /mnt/debian/proc
fi
fi


這是我原本進入原系統使用,backdoor的內容

#!/bin/sh

cp /mnt/Share/dropbear /mnt
cp /mnt/Share/dropbearkey /mnt
mkdir -p /etc/dropbear
/mnt/dropbearkey -t rsa -f /etc/dropbear/dropbear_rsa_host_key
/mnt/dropbearkey -t dss -f /etc/dropbear/dropbear_dss_host_key
chmod 777 /tmp
/mnt/dropbear


但是現在都無法用all/all登入
請問不知道大家有什麼看法?

使用版大所發佈的 final版 有些時間了 但都未有 MySQL & PHP的新版本更新 不知是否有高手能更新 MySql4 & PHP5 for NAS-01G (No debian) 呢? 或有人願意指點一下小弟 如何重新編譯 MySql4 & PHP5 for NAS-01G (No debian) 的版本 因越來越多的 Blog軟體至少須要 MySQL 4.0 & PHP5 以上的環境 希望大家能在討論 P2P之餘 能也伸出援手協助一下 Web Server的小眾們 謝謝!!!
使用版大所發佈的 final版 有些時間了 但都未有 MySQL & PHP的新版本更新 不知是否有高手能更新 MySql4 & PHP5 for NAS-01G (No debian) 呢? 或有人願意指點一下小弟 如何重新編譯 MySql4 & PHP5 for NAS-01G (No debian) 的版本 因越來越多的 Blog軟體至少須要 MySQL 4.0 & PHP5 以上的環境 希望大家能在討論 P2P之餘 能也伸出援手協助一下 Web Server的小眾們 謝謝!!!
kipa wrote:
前幾天入手了這台當然...(恕刪)


你已經進入 Debian 模式,
只能用 nas01g/nas01g 登入了!
又有新版的 nTorrent 0.50 出來了!
這是一個 rTorrent 的遠端管理程式, 最重要的是 gui 介面,
再也不用 在 nas-01g 上操作困難的 screen , 還怕按錯鍵(因為記不住指令)!

近日, 為我的 nas-01g 更換了一個大硬碟 ( sataII 250G)
那就重新安裝一次囉!

首先我按照這一篇:

http://www.ezdiy.org/punbb/viewtopic.php?id=204

把 debian 裝進!
(為什麼我不依照土豆大大的文章
http://tw.myblog.yahoo.com/hoyanan-16888/
, 因為我要enable lighttpd 給 nTorrent 使用)

接著 請[參照]土豆大大的: 簡簡單單安裝新版 rtorrent

http://tw.myblog.yahoo.com/hoyanan-16888/article?mid=207&prev=-1&next=153

在編譯 rtorrent 時 請依下列:
[編譯libtorrent]
進入剛才下載原始檔目錄
應該是/usr/src/trunk/libtorrent
./autogen.sh
./configure
make
make install

以上指令可以打成
./autogen.sh;./configure;make;make install
以下如法炮製

[編譯xmlrpc-c]
進入剛才下載原始檔目錄
應該是/usr/src/xmlrpc-c
./configure --disable-cplusplus
make
make install

[編譯rtorrent]
進入剛才下載原始檔目錄
應該是/usr/src/trunk/rtorrent
./autogen.sh
./configure --with-xmlrpc-c
make
make install

rtorrent執行檔會放在 /usr/local/bin中

到此, 你已經完成 95%了, 剩下一些設定, 就可以 enable rTorrent/nTorrent
1. 修改 /etc/rtorrent.rc 增加一行:
scgi_port = 127.0.0.1:5000

2. 修改 /etc/lighttpd/lighttpd.conf
a. 找到...
server.modules = (
"mod_access",
"mod_alias",
"mod_scgi", ### 插入這一行 (很重要)
"mod_accesslog",

b. 在這檔案最後加入:
scgi.server = (
"/RPC2" => #RT_DIR
( "127.0.0.1" =>
(
"host" => "127.0.0.1", #Ip where rtorrent is listening
"port" => 5000, # port specified in .rtorrent.rc
"check-local" => "disable"
)
)
)

我的 rtorrent.rc :

min_peers = 40
max_peers = 200
max_uploads = 10
download_rate = 0
upload_rate = 15
directory = /share/tmp
session = /tmp/rtorrent

schedule = watch_directory,10,10,load_start=/share/torrent/*.torrent
schedule = tied_directory,10,10,start_tied=
schedule = untied_directory,10,10,close_untied=
schedule = ratio,60,60,"stop_on_ratio=100,100M,100"

#== Scheduling Upload rate ==
schedule = throttle_3,00:30:00,24:00:00,upload_rate=45
schedule = throttle_4,07:20:00,24:00:00,upload_rate=15
schedule = throttle_5,09:00:00,24:00:00,upload_rate=30
schedule = throttle_6,19:10:00,24:00:00,upload_rate=15

port_range = 16881-16881
use_udp_trackers = yes
send_buffer_size = 1M
receive_buffer_size = 2M
encoding_list = UTF-8

# on | off | auto
dht = on
dht_port = 16882

on_finished = move_complete,"execute=mv,-u,$d.get_base_path=,/share/done/ ;d.set_directory=/share/done/"
on_erase = move_complete,"execute=mv,-u,$d.get_base_path=,/share/done/"

scgi_port = localhost:5000
encryption = allow_incoming,enable_retry,prefer_plaintext
peer_exchange = yes
umask = 0000



我的 backdoor :
#!/bin/sh

killall dms
killall mt-daapd

if [ -d /mnt/debian ]; then
/mnt/debian/bin/chroot /mnt/debian /etc/rc3.d/S20ssh restart
if [ ! -e /mnt/debian/proc/cpuinfo ]; then
mount -t proc proc /mnt/debian/proc
fi

if [ -e /mnt/debian/etc/init.d/lighttpd ]; then
/mnt/debian/bin/chroot /mnt/debian /etc/init.d/lighttpd restart
fi
if [ -e /mnt/debian/usr/sbin/mysqld ]; then
/mnt/debian/bin/chroot /mnt/debian /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-file=/var/run/mysqld/mysqld.pid --skip-external-locking --port=3306 --socket=/var/run/mysqld/mysqld.sock&
fi
fi

if [ -e /mnt/debian/tmp/rtorrent/rtorrent.lock ]; then
rm /mnt/debian/tmp/rtorrent/rtorrent.lock
fi

if [ -e /mnt/debian/usr/bin/rtorrent ]; then
/mnt/debian/bin/chroot /mnt/debian /usr/bin/screen -d -m /usr/bin/rtorrent -n -o import=/etc/rtorrent.rc
fi

if [ -e /mnt/debian/usr/local/bin/noip2 ]; then
/mnt/debian/bin/chroot /mnt/debian /usr/local/bin/noip2 -c /etc/no-ip2.conf
fi

#ln -s /mnt/debian/share /mnt/Share/download


接著你可以去下載 nTorrent (新版 0.5)
http://code.google.com/p/ntorrent/
PS: nTorrent 需有 java ( 可到 http://www.java.com/zh_TW/download/manual.jsp 下載)

有2種設定可以管理 你的 rTorrent :
1. HTTP: (這就是為什麼我要你 enable lighttpd)
只要設定4 項:
a. 選擇 http
b. host : 填入你 nas01g 的 ip
c. port : 80 (除非你另外設定)
d. mountpoint : /RPC2

2. SSH: 需要設定 6 項
a. 選擇 ssh
b. host : 填入你 nas01g 的 ip
c. port : 22
d. socket port : 5000
e. username : 填入你可以 login debian user (你若沒改, 應該是 nas01g)
f. passwd : nas01g(你若還是沒改)

ok, 到此 你已大功告成了, 可以擺脫 screen 去操作 rTorrent 的文字介面了!





wult54 wrote:
你已經進入 Debi...(恕刪)


大大你好..
因為我想要進入原本的模式
所以我將backdoor 改成

這是我原本進入原系統使用,backdoor的內容

#!/bin/sh

cp /mnt/Share/dropbear /mnt
cp /mnt/Share/dropbearkey /mnt
mkdir -p /etc/dropbear
/mnt/dropbearkey -t rsa -f /etc/dropbear/dropbear_rsa_host_key
/mnt/dropbearkey -t dss -f /etc/dropbear/dropbear_dss_host_key
chmod 777 /tmp
/mnt/dropbear


這樣重新開機以後不是會進入原本的模式嗎?
還是我搞錯了...
UniCode的另一個問題

原本用2.8.2檔案變底線的問題已經解決
升級到2.9.4 Unicode版本即可

但最近用Mac連回Nas時發現在PC下打的中文目錄全部變"?"
在PC上開iTunes時, 直接連NAS自動抓歌時, 中文字也變亂碼,
這種Unicode的問題有沒有哪種程式可以解決???
UniCode的另一個問題

原本用2.8.2檔案變底線的問題已經解決
升級到2.9.4 Unicode版本即可

但最近用Mac連回Nas時發現在PC下打的中文目錄全部變"?"
在PC上開iTunes時, 直接連NAS自動抓歌時, 中文字也變亂碼,
這種Unicode的問題有沒有哪種程式可以解決???
請各位大大幫忙
小弟最近想更換大一點硬碟,
所以我把舊的硬碟拆下直接與新的硬碟作複製
可是複製後nas無法抓到硬碟來使用
我懷疑是否是因為複製的過程ghost把新的硬碟規劃成ext2
因為我把新的硬碟用nas規劃成ext3就可以正常的使用
可是再用ghost又會被重新規劃成ext2
不知道還有甚麼辦法可以無痛升級硬碟
因為我不想再重新安裝所有的軟體
我現在用的是論壇中大大所指導的rtorrent

硬碟都已經準備好了就只差不知如何更換
請有經驗的大大幫幫忙

4/28
改用ghost14確認可以複製ext3
但是完成後安裝上去 nas還是無法抓到這顆硬碟
若用原廠附的Backup程式 因為現在內部大慨有40G
我複製第一個目錄經過2hr進度才一格 那個長度至少要二十格
沒想到要更換一個硬碟 這麼困難
我想明天直接打電話到PCI去詢問好了
還是希望有試過的大大可以幫忙一下

4/29
PCI的客服態度不錯
只不過還是沒有比較好的解決方式,
看樣子真的要重新安裝

後來發現ghost複製後的ext3是有問題的, 因為我使用ext3的瀏覽器觀看
發現複製後的硬碟完全無法開啟
這一點跟客服講的一樣

文章分享
評分
評分
複製連結
請輸入您要前往的頁數(1 ~ 160)

今日熱門文章 網友點擊推薦!