Tuesday, October 21, 2008

Bittorrent Power




More Linkstation hacking. Buffalo have released a new Linkstation Live With Bittorrent and Bittorrent (henceforth known as BT) is the one thing I cannot get reliably running on my Linkstation. Many users have reported it working on fully hacked firmwares but others with stock firmware like mine (or open stock versions) have recurring "segmentation" faults and BT barfing like mad.

Anyway, a bit of hacking with the firmware from the new Linkstation means that you can extract the Bittorrent binaries and web interface from the new Linkstation and put it on the older models.

I can report it is totally stable, reliable and fast (as well as a pretty web interface). The only thing I could add to the mix - well maybe MLDonkey which does BT, HTTP, FTP and ED2K downloads all in one package. Might try that soon.

287 comments:

1 – 200 of 287   Newer›   Newest»
Steve said...

Seen a post by you on buffalo.nas-central.org regarding this. I just purchased a Linkstation Live (v2) and was interested in a stable bittorrent client.
-Did you have success on v1 or v2 hardware?
-Any specific hacking required to get the firmware working sound?

Methanoid said...

Steve, this works on any ARM LS. You need to untar the firmware, extract the Bittorrent folder from /usr/local/

Then make your conf file as below (change as you desire)

echo "dir_root: /mnt/disk1/share/downloads/torrents/" >> /etc/bittorrent.conf
echo "dir_active: /mnt/disk1/share/downloads/torrents/_active/" >> /etc/bittorrent.conf
echo "dir_completed: /mnt/disk1/share/downloads/torrents/"/ >> /etc/bittorrent.conf
echo "dir_torrent_files: /mnt/disk1/share/downloads/torrents/_torrent_files/" >> /etc/bittorrent.conf
echo "webui_dir_files: /usr/local/bittorrent/webui" >> /etc/bittorrent.conf
echo "dht: false" >> /etc/bittorrent.conf
echo "lsd: false" >> /etc/bittorrent.conf
mkdir /mnt/disk1/share/downloads/torrents -p -m 755
mkdir /mnt/disk1/share/downloads/torrents/_active -p -m 755
mkdir /mnt/disk1/share/downloads/torrents/_torrent_files -p -m 755


cd /var/run/ && /usr/local/bittorrent/bin/btdog /usr/local/bittorrent/bin/bt -daemon-loop --default-settings-file /etc/bittorrent.conf

Steve said...

Thank you kindly - I'll give it a shot. I had attempted a firmware flash (removing u-boot) of my v2 to the firmware of the new v3 and was seeing it work (kind of), but with the issue of reboots after about 2-3 mins due to bootcomplete not finalizing correctly. I was originally under the impression you were able to get the firmware flash working as the solution.

Methanoid said...

God know... use Open Stock or JTYMod firmware is my choice and then add stuff with Optware. Much more stable and reliable. The Bittorrent hack is also close to stock.

You could work out a Startup script and chuck it somewhere like /opt/etc/init.d/

Steve said...

Very new to this. Was able to extract bittorrent directory and place in /usr/local; created config file; created target dirs on /mnt/disk1; started bt. I'm assuming you are using the web interface to manage, how do you get there? My port 8080 is the pcast media manager...any help appreciated.

Methanoid said...

Errr disable PCast? I've never used it... the BT is fixed on 8080. See if you can put PCast on a new port?

h said...

I did the same steps as Steve, but still can not access Bittorrent webgui. I have disabled Media Server from http://ip address:8080/, but it will still enter to the PCast setup page.

Methanoid said...

I don't know how you REALLY stop PCast.... but if U are not seeing the Torrent UI then it sounds like you havent really killed the PCast. I assume you're on stock or Open Stock? Life would be much easier on JTYmod which also is about 10% faster on network transfers, is there any reason to stay on stock firmware?

Manaças said...

Can anyone please provide a guide or link on how to install this firmware with BT support on older linkstations?

much apreciated :)

Methanoid said...

Manacas, the post #2 tells you how to do it. Not sure what more you expect or did you miss reading #2 ??

Manaças said...

thanks Methanoid, im really just very new to this. i undestand now there are extra steps you need to take before you're able to install these mods

Methanoid said...

Have a look at nas-central.org for a thread titled Adding the Optware feed. I'd type more but I'm on a phone!!

Samson said...

I am using LS Live V2 with stock v1.2 firmware Japanese release, enabled ssh with Optware feed. Yesterday I just replaced PCast / mt-daapd with Optware Firefly. I found even if I disabled PCast from Web Admin, pcastd no longer show up from the ps task list but port 8080 is still allocated by the PCast Media Manager. I believe need to take out pcastd deamon check script from the rcS start up script. Will look into this later today... I also want to get this v3 BT working on my v2, thanks Methanoid for the tips... will get back.

Samson said...

For those who want to remove the stock PCast Manager from allocating port 8080 please "comment" the following line from /etc/init.d/httpd.sh:

#/usr/local/apache/bin/httpd -f /etc/apache/httpd8080.conf

Straight Edge Soldiers said...

Wonder if we can edit out the port numbers for the BT client to port 8081. Would be great if we can run PCast and the torrent client simultaneously.

Samson said...

I believe the above only remove the web Admin interface of PCast Manager. If you enable PCast before removing the web Admin it will work together with BT

Straight Edge Soldiers said...

Interesting. I'll try that on my box in a couple of minutes, thanks.

Straight Edge Soldiers said...
This comment has been removed by the author.
Straight Edge Soldiers said...

Still a no go for me. Followed Methanoid's instructions on the second post, uncommented the portion Samson mentioned on his post, rebooted and opened (in my case) http://192.168.0.2:8080/ on my browser, however it seems that the PCast page would still open (redirects to http://192.168.0.2:8080/cgi-bin/pcast.cgi).

If it helps I'm running an LS Live V1 with stock v1.2 firmware Japanese release, enabled ssh with Optware feed; almost the same as Samson's setup.

Is there anything I need to do further to get this working?

Thank you.

Straight Edge Soldiers said...

Oh that's commented, not uncommented by the way; silly typo.

I also get a Page Load Error when it redirects to the cgi-bin/pcast.cgi page so I'm assuming that the PCast service is off?

Methanoid said...

Sorry I cannot help on this. I've sold my Linkstations (see new blog post on Eee Box) but I think you're mad if you're running LS Live firmware on an LS Live. Flash the JTYMOD firmware which is based on the LS Pro. Its about 20% faster network performance, easy to add Optware and no PCast hassles. Just add Twonky or MediaTomb to replace it!?!

Samson said...

Take a look on:
/etc/melco/pcast_mp2000

if the first line "server=on" then PCast is probably on. The "Page Load Error" just indicate the PCast Web Admin page is off. I don't know why, Buffalo use another instant of Apache listen to port 8080 just for the PCast Web Admin Page...

Straight Edge Soldiers said...

Methanoid: I had that setup (also tried Freelink) but I couldn't find any conclusive download links for Twonky (seems that the product used to be freeware but is now payware/abandoned for the NAS units--plus there's a 30 day rolling limit?). Tried Mediatomb but I got lost (couldn't find any easy how-tos on the buffalo.nas-central wiki) and eventually gave up and rolled back to Open Stock.

Samson: Yup looks like the server's still switched on. Guess this means we LS Live owners can't use both at once, which is a shame as I like the simplicity of PCast and don't seem to have the know-how to get the alternatives up and running.

Samson said...

> Guess this means we LS Live owners can't use both at once,

@Straight Edge Soldiers:
What do you mean by "both"? If you mean V3 BT and the Live PCast, yes, you can by just disable the PCast Admin Page like what you have done because PCast daemon itself is not using port 8080. But I wonder you will only found PCast useful if you own Buffalo LinkTheater kind of hardware devices. For the iTune store feature it actually making use of a very old verion of mt-daapd in which you can easily replaced with the latest statble night build of Firefly i.e. mt-daapd via the Optware feed.

Straight Edge Soldiers said...

So in other words if I switch "server=on" to off on /etc/melco/pcast_mp2000 it'll just disable the admin page but not the daemon?

I like PCast because it streams video as well whereas Firefly only does audio. I'm currently using it on my PlayStation 3 to offload the videos I have stored on it. Really convenient. :)

Straight Edge Soldiers said...

Just so we're on the same page, here's what I did by the way:

1. Extracted the contents of the firmware's bittorrent folder to /usr/local/bittorrent
2. Did the following terminal commands per Methanoid's instruction:

echo "dir_root: /mnt/disk1/share/downloads/torrents/" >> /etc/bittorrent.conf
echo "dir_active: /mnt/disk1/share/downloads/torrents/_active/" >> /etc/bittorrent.conf
echo "dir_completed: /mnt/disk1/share/downloads/torrents/"/ >> /etc/bittorrent.conf
echo "dir_torrent_files: /mnt/disk1/share/downloads/torrents/_torrent_files/" >> /etc/bittorrent.conf
echo "webui_dir_files: /usr/local/bittorrent/webui" >> /etc/bittorrent.conf
echo "dht: false" >> /etc/bittorrent.conf
echo "lsd: false" >> /etc/bittorrent.conf
mkdir /mnt/disk1/share/downloads/torrents -p -m 755
mkdir /mnt/disk1/share/downloads/torrents/_active -p -m 755
mkdir /mnt/disk1/share/downloads/torrents/_torrent_files -p -m 755


cd /var/run/ && /usr/local/bittorrent/bin/btdog /usr/local/bittorrent/bin/bt -daemon-loop --default-settings-file /etc/bittorrent.conf

3. Uncommented this line from /etc/init.d/httpd.sh:

#/usr/local/apache/bin/httpd -f /etc/apache/httpd8080.conf

4. changed "server=on" to "server=off" on /etc/melco/pcast_mp2000

5. Rebooted

All I get now is a blank page. :(

Samson said...

We have some mis-understanding:
If you want PCast and mt-daapd:
/etc/melco/pcast_mp2000
server=on

PCast daemon itself or mt-daapd do not allocate port 8080 so you can use V3 BT with this config.

The one who allocated port 8080 is the Apache server which host the Web PCast Admin Page in which you already turn off by "commented" the httpd.sh line.

Samson said...

You turn-on the PCast Web Admin Page by:

/etc/init.d/httpd.sh:
#/usr/local/apache/bin/httpd -f /etc/apache /httpd8080.conf

So your comination should be turn-Off the PCast Web Admin Page by "UN-commented" the above i.e. take out the "#" AND set:

/etc/melco/pcast_mp2000
server=on

then "REBOOT

and you will get PCast daemon for PS3 together with mt-daapd for iTune AND V3 BT. By setting this the only thing missing is the Web Admin Page of PCast in which you don't need it because you can always turn PCast/mt-daapd on/off by editing /etc/melco/pcast_mp2000. Hope this clear the things up....

Samson said...

Sorry, I also mixed it up, the above should read:

You turn-ON the PCast Web Admin Page by:

/etc/init.d/httpd.sh:
/usr/local/apache/bin/httpd -f /etc/apache /httpd8080.conf

So your comination should be turn-OFF the PCast Web Admin Page by "commented" the above i.e. insert "#":
#/usr/local/apache/bin/httpd -f /etc/apache /httpd8080.conf

AND set: ....

Straight Edge Soldiers said...

So close... I see bt, btdog and two instances of pcastd when I do a ps, but going to ipaddresss:8080 just gives me a blank, white page. Pretty sure I copied over everything, including all the webui files successfully...

say170 said...

I'm stuck at the first hurdle - down to stupidity on my part I guess....
"You need to untar the firmware, extract the Bittorrent folder from /usr/local/"
The FW I downloaded from buffalo just has .img files in it - which are password protected... what am I missing?

Samson said...

You downloaded the wrong firmware, LS-CHL firmware is not password protected if I remember correctly.

say170 said...

1.02 is, but that's now disappeared.. 1.01_043 isn't though... that's worked.. thx

say170 said...

I now have the same problem as Straight Edge Soldiers. I can't get to the web interface. ps shows:
/usr/local/bittorrent/bin/btdog /usr/local/bittorrent/bin/bt -daemon-loop --default-settings-file /etc/bittorrent.conf
and
/usr/local/bittorrent/bin/bt -daemon-loop --default-settings-file /etc/bittorrent.conf

I've tried all combos of commenting the apache entry and setting server off or on. The web gui never loads for me if I go to 192.x.x.x:8080 using either IE or firefox.

Samson said...

What port it report if you simply enter: /usr/local/bittorrent/bin/bt -daemon-loop --default-settings-file /etc/bittorrent.conf

say170 said...

root@NAS-DRIVE:/var/run# /usr/local/bittorrent/bin/bt -daemon-loop --default-settings-file /etc/bittorrent.conf
main(): webui_port: 8080
EXCEPTION THROWN FROM MAIN LOOP: Address already in use
.
root@NAS-DRIVE:/etc/init.d# grep 8080 httpd.sh
#/usr/local/apache/bin/httpd -f /etc/apache/httpd8080.conf
.
root@NAS-DRIVE:/etc/init.d# ps | grep apache
685 root 928 S /usr/local/apache/bin/httpd
691 root 672 S /usr/local/apache/bin/httpd
692 root 672 S /usr/local/apache/bin/httpd
693 root 672 S /usr/local/apache/bin/httpd
694 root 672 S /usr/local/apache/bin/httpd
703 root 676 S /usr/local/apache/bin/httpd
.
root@NAS-DRIVE:/etc/melco# cat pcast_mp2000
server=on
...
(Although I've tried with off)

Samson said...

That's strange, another process allocated port 8080 already and the one who supposed to do so already commented in /etc/init.d/httpd.sh and I see no httpd using 8080 in the ps list.

Could you try a "killall httpd" and start bt again with the command line and see what output?

Please also show a full ps list after that...

say170 said...

I ran it with date so you can see it present... of course inetd respawns it....

root@NAS-DRIVE:/etc/melco# date && killall httpd
Mon Jan 5 15:06:20 GMT 2009
root@NAS-DRIVE:/etc/melco# date && ps
Mon Jan 5 15:06:22 GMT 2009
PID Uid VmSize Stat Command
1 root 564 S init
2 root SWN [ksoftirqd/0]
3 root SW< [events/0]
4 root SW< [khelper]
5 root SW< [kthread]
11 root SW< [kblockd/0]
14 root SW< [khubd]
29 root SW [crypto]
30 root SW [crypto_ret]
51 root SW [pdflush]
52 root SW [pdflush]
54 root SW< [aio/0]
55 root SW< [xfslogd/0]
56 root SW< [xfsdatad/0]
53 root SW [kswapd0]
180 root SW< [scsi_eh_0]
181 root SW< [scsi_eh_1]
195 root SW [mtdblockd]
279 root SW< [xfsbufd]
280 root SW< [xfssyncd]
492 root SW [kjournald]
522 root 292 S /sbin/dhcpcd -L /etc/dhcpc -h NAS-DRIVE -t 15 eth0
547 root 644 S syslogd -m 0
549 root 380 S klogd
553 root 684 S /usr/sbin/inetd
556 root 956 S /bin/sh /usr/local/sbin/kernelmon
562 root 416 S /usr/local/sbin/miconmon -d
567 root SW< [xfsbufd]
574 root 508 S cat /proc/buffalo/kernevnt
580 root SW< [xfssyncd]
609 root 416 S /usr/local/sbin/diskmon
612 root 372 S /usr/local/sbin/errormon
629 root 384 R /usr/sbin/telnetd
679 nobody 1028 S proftpd: (accepting connections)
680 root 632 S /usr/local/sbin/atalkd -f /etc/atalk/atalkd.conf
695 root 460 S lpd Waiting
704 root 2216 S /usr/local/sbin/smbd -D
706 root 1404 S /usr/local/sbin/nmbd -D
707 root 1828 S /usr/local/sbin/smbd -D
778 root 416 S sleep 3600
1038 root 524 S /usr/local/PCast/EPGd
1048 root 540 S /usr/local/PCast/iRCommander
1053 root 356 S /usr/local/bin/directcopy
1054 root 956 S /bin/sh /usr/local/bin/directcopy_job.sh
1066 root 764 S /usr/local/sbin/clientUtil_server -i eth0
1069 root 812 S /usr/local/sbin/lsprcvd
1073 root 412 S /usr/local/sbin/daemonwatch -a /etc/daemonwatch.list
1084 root 660 S /usr/sbin/crond
1089 root 372 S /usr/local/BootServer/rarpd
1094 root 196 S /usr/local/BootServer/tftpd
1102 root 360 S /usr/local/BootServer/rarpcfgd
1106 root 316 S /usr/local/sbin/logchkd
1109 root 220 S /usr/local/BootServer/fwupdated
1128 root 1228 S -sh
1165 root 620 S /sbin/getty -L ttyS0 115200 vt100
1166 root 368 S /mnt/disk1/twonky/twonkymedia
1167 root 28620 S /mnt/disk1/twonky/twonkymediaserver
1578 root 1404 S /usr/local/sbin/afpd -c 1000 -n NAS-DRIVE
9413 root 952 S /bin/sh /usr/local/PCast/Scheduler
9417 root 416 S sleep 3600
9419 root 540 S /usr/local/PCast/pcastd
9420 root 660 S /usr/local/PCast/pcastd
9584 nobody 768 S /usr/local/sbin/mt-daapd
9585 nobody 1660 S /usr/local/sbin/mt-daapd
9764 root 8640 S N /usr/mediaserver/mediaserver
10078 root 1056 S /bin/sh /usr/local/bin/chk_mediaserver.sh
28741 root 416 S sleep 1
28749 root 416 S sleep 1
28750 root 940 S sh -c miconapl -a int_get_switch_status >/tmp/input_switch
28751 root 368 S miconapl -a int_get_switch_status
28753 root 720 R ps

and this is where I kill it again, then run the bt command...

root@NAS-DRIVE:/etc/melco# date && killall httpd
Mon Jan 5 15:06:47 GMT 2009
root@NAS-DRIVE:/etc/melco# date && /usr/local/bittorrent/bin/bt -daemon-loop --default-settings-file /etc/bittorrent.conf
Mon Jan 5 15:06:49 GMT 2009
main(): webui_port: 8080
EXCEPTION THROWN FROM MAIN LOOP: Address already in use
root@NAS-DRIVE:/etc/melco#

Samson said...

When you set:
/etc/melco/pcast_mp2000
server=off

Did you reboot?

say170 said...

yes, I've now removed pcastd.sh from the rcS file... that seems to have had some effect...

root@NAS-DRIVE:/var/run# killall httpd
root@NAS-DRIVE:/var/run# /usr/local/bittorrent/bin/bt -daemon-loop --default-settings-file /etc/bittorrent.conf
main(): webui_port: 8080

although at this point the session is hung and I still can't access the gui...

I've chmod 777 all files in /usr/local/bittorrent (and subdirs)

root@NAS-DRIVE:/usr/local/bittorrent/bin# ls -lrt
-rwxrw-rw- 1 nobody nogroup 5973 Sep 2 08:18 btdog
-rwxrw-rw- 1 nobody nogroup 3891633 Sep 2 08:18 bt

still nothing doing...

say170 said...

root@NAS-DRIVE:/usr/local/bittorrent/bin# ls -lrt
-rwxrwxrwx 1 nobody nogroup 5973 Sep 2 08:18 btdog
-rwxrwxrwx 1 nobody nogroup 3891633 Sep 2 08:18 bt

even...

say170 said...

chown/grp to root:root - still no joy

Samson said...

Permission in /usr/local/bittorrent/bin shouldn't matter because bt run as root. What output for " ls -l /mnt/disk1/share/bittorrent" ?

say170 said...

I don't have that folder.. conf is pointing elsewhere..

root@NAS-DRIVE:/etc# cat bittorrent.conf
dir_root: /mnt/disk1/share/downloads/torrents/
dir_active: /mnt/disk1/share/downloads/torrents/_active/
dir_completed: /mnt/disk1/share/downloads/torrents/
dir_torrent_files: /mnt/disk1/share/downloads/torrents/_torrent_files/
webui_dir_files: /usr/local/bittorrent/webui
dht: false
lsd: false

root@NAS-DRIVE:/etc# ls -l /mnt/disk1/share/downloads/torrents
drwxrwxrwx 2 root root 6 Jan 5 15:43
drwxr-xr-x 2 root root 6 Jan 5 13:15 _active
drwxr-xr-x 2 root root 6 Jan 5 13:15 _torrent_files

Samson said...

Ok perpare these and use the official bittorrent.sh:

1) /etc/melco/bittorrent
bittorrent_status=on
bittorrent_dir=/mnt/disk1/share

2) /etc/nas_feature
SUPPORT_BITTORRENT=on

3) rm /etc/bittorrent.conf

4) Extract the official /etc/init.d/bittorrent.sh

and use it:
/etc/init.d/bittorrent.sh start

say170 said...

ok:
1) root@NAS-DRIVE:/etc/init.d# cat /etc/melco/bittorrent
bittorrent_status=on
bittorrent_dir=/mnt/disk1/share

2) root@NAS-DRIVE:/etc/init.d# cat /etc/nas_feature
SUPPORT_BITTORRENT=on
3) (this is the version it created on first run)
root@NAS-DRIVE:/etc/init.d# cat /etc/bittorrent.conf
dir_root: /mnt/disk1/share/bittorrent/
dir_active: /mnt/disk1/share/bittorrent/_active/
dir_completed: /mnt/disk1/share/bittorrent/
dir_torrent_files: /mnt/disk1/share/bittorrent/_torrent_files/
webui_dir_files: /usr/local/bittorrent/webui
dht: false
lsd: false

4) root@NAS-DRIVE:/etc/init.d# /etc/init.d/bittorrent.sh start
/etc/init.d/bittorrent.sh: line 30: NAS-Drive: command not found

Samson said...

Sorry I don't have bittorrent.sh for reference at the moment, what exactly it want in line 30?

say170 said...

I added some debugging lines:
StartBT()

{
[ "${bittorrent_status}" != "on" ] && echo "bittorrent is off" && exit 0
if [ ! -f ${BT_CONF_FILE} ] ; then
echo "at configure create"
configure create
else
echo "at configure"
pwd
configure
echo "after configure"
fi
pwd
(cd ${BT_CACHE_PLACE} && ${BT_DOG} ${BT} -daemon-loop --default-settings-file ${BT_CONF_FILE} )
}
echo "at stopbt"
StopBT()

root@NAS-DRIVE:/etc/init.d# /etc/init.d/bittorrent.sh start
at update_melconf
at configure
at startbt
at stopbt
at configure
/etc/init.d
/etc/init.d/bittorrent.sh: line 30: NAS-Drive: command not found
after configure
/etc/init.d

so it doesn't like the command "configure"

say170 said...

that's in the rootfs package in :
\usr\local\share\libtool\libltdl

27/06/2008 01:25 767,008 configure

say170 said...

should I install LS-GL_FW_103-jtymod5-29_3_2007 firmware (not BOOTFS of course) then start again?

Samson said...

> so it doesn't like the command "configure"

No "configure" is a shell script function inside bittorrent.sh, you can find it near the beginning...

say170 said...

ok, got it...

echo "before y-okumura line"
# 2008/07/28 y-okumura add : make symbolic link for BT's WebUI localize.
[ ! -f /etc/melco/info ] && return 1
. /etc/melco/info
echo "was it the melco line?"

the run log shows:
before y-okumura line
/etc/init.d/bittorrent.sh: line 30: NAS-Drive: command not found
was it the melco line?

say170 said...

the error is a red herring anyway. The script runs and ps then shows:

822 root 180 S /usr/local/bittorrent/bin/btdog /usr/local/bittorrent/bin/bt -daemon-loop --default-settings-file /etc/bittorrent.conf
823 root 3228 S /usr/local/bittorrent/bin/bt -daemon-loop --default-settings-file /etc/bittorrent.conf

but... guess what...
http://192.168.1.11:8080/ still does not open....

say170 said...

ok, where's the brick wall I need to bang my head against...

http://192.168.1.11:8080/btsettings.html

opens though....

Samson said...

Oh well, seems you can specify another port in the command line, try add "--webui-port 9090"

say170 said...

I can call it fine with http://192.168.1.11:8080/fe01.html, so I don't need to change the port.. thanks for all your help..

My only problem is now that I need moblock or something similar that can selectively block ip addresses so that I don't have any tom, dick or harry connecting to my shares...

Samson said...

Seems to me this BT SDK support ipfilter.dat but need to figure out where to store the .dat and how to enable...

Straight Edge Soldiers said...

No luck on my end. http://192.168.1.11:9090/fe01.html does show the page, but it's functionless for me.

say170 said...

Yes, there's definitely mention of ipfilter in the bt executable:

BitTorrent SDK 2.0 ....enable_ipfilter ·
ipfilter.dat ....

bjarke said...

Can somebody help? when i run

/usr/local/bittorrent/bin/bt -daemon-loop --default-settings-file /etc/bittorrent.conf

i get:


main(): webui_port: 8080
EXCEPTION THROWN FROM MAIN LOOP: boost::filesystem::basic_directory_iterator constructor
root

Samson said...

Collect more details are required... Describe the exact procedures step by step on how you prepare BT up to this point. Please also show FULL 'ps' output after bring up BT and contents of various config file that mentioned in this thread.

bjarke said...

Well i did i over now..
Running jtymod 1.03 (freestation)
followed post #2.

god rid of the error i mentioned before..
now when i run:
cd /var/run/ && /usr/local/bittorrent/bin/btdog

i get:
Usage: btdog exe [args]

And when i run:
/usr/local/bittorrent/bin/bt -daemon-loop --default-settings-file /etc/bittorrent.conf

i get:
main(): webui_port: 8080

when i run ps -e:
root@LS-GLDEE:/var/run# ps -e
PID TTY TIME CMD
1 ? 00:00:05 init
2 ? 00:00:00 ksoftirqd/0
3 ? 00:00:00 events/0
4 ? 00:00:00 khelper
5 ? 00:00:00 kthread
11 ? 00:00:00 kblockd/0
14 ? 00:00:00 khubd
29 ? 00:00:00 crypto
30 ? 00:00:00 crypto_ret
51 ? 00:00:00 pdflush
52 ? 00:00:00 pdflush
54 ? 00:00:00 aio/0
53 ? 00:00:00 kswapd0
55 ? 00:00:00 xfslogd/0
56 ? 00:00:00 xfsdatad/0
57 ? 00:00:00 xfsbufd
181 ? 00:00:00 scsi_eh_0
182 ? 00:00:00 scsi_eh_1
196 ? 00:00:00 mtdblockd
267 ? 00:00:00 xfssyncd
467 ? 00:00:00 kjournald
517 ? 00:00:00 syslogd
519 ? 00:00:00 klogd
523 ? 00:00:00 inetd
526 ? 00:00:00 kernelmon
532 ? 00:00:00 miconmon
539 ? 00:00:00 xfssyncd
551 ? 00:00:00 diskmon
557 ? 00:00:00 errormon
571 ? 00:00:00 cat
625 ? 00:00:00 atalkd
626 ? 00:00:00 httpd
632 ? 00:00:00 httpd
633 ? 00:00:00 httpd
634 ? 00:00:00 httpd
635 ? 00:00:00 httpd
636 ? 00:00:00 smbd
638 ? 00:00:00 httpd
639 ? 00:00:00 nmbd
643 ? 00:00:00 smbd
644 ? 00:00:00 clientUtil_serv
646 ? 00:00:00 lsprcvd
649 ? 00:00:00 daemonwatch
653 ? 00:00:00 crond
656 ? 00:00:00 logchkd
670 ? 00:00:00 sshd
674 ttyS0 00:00:00 getty
676 ? 00:00:00 sshd
679 pts/0 00:00:00 sh
683 ? 00:00:00 afpd
695 ? 00:01:02 btdog
699 ? 00:00:00 httpd
874 ? 00:00:00 httpd
15710 pts/0 00:00:00 ps


when i go to http://192.168.1.100:8080 nothing happens

Sorry i no NOTHING about unix or linux!!

Samson said...

How about http://192.168.1.100:8080/fe01.html

bjarke said...

no didnt work :-(

isnt there suppossed to run a process called bt?

bjarke said...

WEEEEEEEEEEE

did this:

Ok perpare these and use the official bittorrent.sh:

1) /etc/melco/bittorrent
bittorrent_status=on
bittorrent_dir=/mnt/disk1/share

2) /etc/nas_feature
SUPPORT_BITTORRENT=on

3) rm /etc/bittorrent.conf

4) Extract the official /etc/init.d/bittorrent.sh

and use it:
/etc/init.d/bittorrent.sh start


And voila! it works!!!!
Thx!

Samson said...

Great, so you haven't tried everything yet :-) I'm glad it finally work for you...

msisi said...

Guys, thanks for providing all the information.

At the first attempt, I have the Bittorrent Client running on my open stock LS Live (v2) firmware 2.10.

Here is a summary of the steps I followed to make it a bit easier for others to understand:

1. Downloaded latest LS-CHL firmware 1.06, requires password to extract, but a quick Google found it: 1NIf_2yUOlRDpYZUVNqboRpMBoZwT4PzoUvOPUp6l

2. Extract the bittorrent folder from /etc/usr/local and copy to same location on LS

3. Now I followed Samson's instructions on using the official bittorrent.sh, retyped here for completeness:

4. echo "bittorrent_status=on" >> /etc/melco/bittorrent

5. echo "bittorrent_dir=/mnt/disk1/share" >> /etc/melco/bittorrent

6. echo "SUPPORT_BITTORRENT=on" >> /etc/nas_feature

7. if it exists rm /etc/bittorrent.conf

8. extract the official /etc/init.d/bittorrent.sh and copy to same location on LS

9. edit /etc/init.d/httpd.sh and comment out (put a # infront of) the line: /usr/local/apache/bin/httpd -f /etc/apache/httpd8080.conf, this will stop the PCast admin page from running and grabbing port 8080

10. optional if you want to auto start the Bittorrent client on boot up: echo "/etc/init.d/bittorrent.sh start" >> /etc/init.d/rcS or just run it manually: /etc/init.d/bittorrent.sh start

I hope this helps others.

Samson said...

Thanks msisi for consolidate everything.

msisi said...

I have just upgraded the firmware on my LS Live to Japanese 1.20 to enable the sleep function.

I have had to reinstall the BTClient and have noticed a mistake in step 2 of my instructions above, remove the /etc.

It should read:
2. Extract the bittorrent folder from /usr/local and copy to same location on LS

Now I'm looking for a bit of help.

Whenever I make changes to the BTClient settings, they work ok until I need to reboot the LS, the settings then resort back to the original default settings. It looks as if the settings are not being saved.

Can anyone help?

Thanks.

Methanoid said...

I am really pleased to see everyone helping each other on this. Funnily enough I am missing my Linkstation a bit.. ( have bought, sold and bought and sold my Linkstations - so another isn't out of the question)

Can someone, when the niggles are all sorted out, post a complete summary/guide including how to extract the bits from firmware (I think they changed it since I did mine).

I'll then update the blog post and we can put a link to it elsewhere.

Samson said...

@Methanoid, thanks for providing this corner for our prolonged discussion in this subject...

@msisi
Can you give example on what kind of changes you've made to BT and cannot retain upon reboot?

msisi said...

The settings can be anything on the settings webpage, for example the bandwidth management settings.

I have now noticed a rather annoying noise coming from the LS since the firmware upgrade, it sounds like a soft clicking sound(every second or so), it seems to be the hard disk head tracking, never noticed it before.

Stevie Wonder said...

I have made a Custom firmware

for the live/pro

from the jap 1.20 firmware as its the fastest and newest out of the live firmware's

It has

BitTorrent and Twonky built into it

I have sent it to Meth if he wants to pass it on

as I dont want people knowing who i am

Stevie Wonder said...

I also have one based on the Pro 1.15 firmware

but i need a print server atm so am using the one based on live 1.20

Stevie Wonder said...

I Uploaded it to megaupload

http://www.megaupload.com/?d=TWTGQOQ8

Let me know what you guys think

Methanoid said...

I seem to recall that Pro firmware has faster transfers to/from box (Samba/FTP) according to all reviews. Would it not make sense to base FW on those and add the missing stuff, like Printer support and Bittorrent?

Anyway, feel free to test the FW and post comments here...

Personally if I still had my LS and was able to build a custom FW it would also include NZBget, remove Apache and replace with Lighttpd, remove PCast and replace with Twonky and so on....

Manaças said...

Hi guys, does this BT client support auto downloading from a watched folder or an rss feed? Or do you have to manualy add all downloads?

Thanks in advance

monsta said...

I've intalled the modd'ed FW on my HS-DH500GL & everything seems to be working fine - thanks Stevie :)) I'd be interested in trying the LS Pro FW if it has faster throughput? I don't need a print server, but I do like having a nice web interface, BT, sleep timers & Twonky (in that order of importance) - are there any other differences (other than the print server) between the Pro & Live FWs?

I am having the same problem as msisi with the BT settings reverting to default values after a reboot - it's no biggie but it would be nice to have them stick.

Stevie Wonder said...

The Live 1.20 jap firmware is very similar to the 1.15 pro firmware build wise

I doubt there will be much in it speed wise thats why i used it

esp after i ripped out all the pcast junk and all ref's to it in the web interface

Stevie Wonder said...

they dont stick in the buffalo firmware either

there's not alot that can be done until buffalo update to a newer build of the bittorrent client

samjoandco said...

Stevie!

thanx for the custom firmware I will try it out.

I like your notes
"dont install this on a linkstation live with bittorrent linkstation live v3 (just incase your stupid)"
that was funny!!

Stevie Wonder said...

Let me know what you think

samjoandco said...

hi Stevie!

I just flashed the firmware that you modified & it looks great.

BitTorrent was up and running in 5 minutes.
Now i will start installing acp_commander and enabling ssh access etc.

Thanks a lot for the firmware.

Stevie Wonder said...

Just reset to factory defaults
in the web interface and it will reset the telnet password

samjoandco said...

Thnks Stevie!
reset to factory default worked. I got telnet access to the unit.

Ray said...

OK got it working, but for some reason the torrent starts to download, then stops after a few mins for no reason

samjoandco said...

Stevie,

I dont see "web access" option on left hand menubar in web UI.
steps for configuring web access is mentioned here

is there any setting required to enable that?

Ray said...

also, is anyone else experiencing slower download speeds using this vs one on their computer?

Stevie Wonder said...

Are you using my firmware or did you install it your self?

I have no problems at all with speed

Quote

Ray said...

OK got it working, but for some reason the torrent starts to download, then stops after a few mins for no reason

February 7, 2009 7:13 AM

Stevie Wonder said...

Its based on the japan firmware
which doesnt come with webaxis

as the usa/europe firmware is slow

Quote
samjoandco said...

Stevie,

I dont see "web access" option on left hand menubar in web UI.
steps for configuring web access is mentioned here

is there any setting required to enable that?

February 7, 2009 7:29 AM

Ray said...

I installed myself, i have a TS live, and i couldnt use your firmware. NOw i have other problems, how can i flash using your firmware? will it work?

samjoandco said...

just download it from the link above and flash it like you flash the default firmware.

reset to factory default from web interface and you should be up and running in 5 minutes

Stevie Wonder said...

I wouldnt try it on a TS Live


Quote
Ray said...

I installed myself, i have a TS live, and i couldnt use your firmware. NOw i have other problems, how can i flash using your firmware? will it work?

February 7, 2009 8:08 PM

samjoandco said...

Stevie!

the bittorrent upload / download has stopped working completely after i restarted the machine (actually i turned off the power plug by mistake).

I did start bittorrent from command line but it does not who any errors.

i tried to install transmission using optware feed but uninstalled it later due to segmentation fault issues.

Stevie Wonder said...

Im not sure what you would have done

i would force an update of rootfs with the flasher and then reset back to defaults in the web admin

samjoandco said...

Stevie!
I followed ur suggestions and got it working again!
Thx

monsta said...

I took the plunge over the weekend & upgraded the 500GB disk in my LS Live to 1TB. This went ok, but getting the FW updater to re-partition the new drive took a bit of to-ing & fro-ing due to the LS reseting its IP address to the default halfway through the update process & subsequently cancelling the update - easily fixed once caught.

I've used Stevie's modded FW as my base install & I have a slight error which I need some help with - on the LS web gui, clicking on either the 'Basic' or 'System Status' tab gives me the following error:

Software error:

[BufBasicNTP._load_refresh_time]File Open Error - /etc/melco/ntp_result

All the other tabs perform as expected, & the LS Live seems to be operating ok. I'm just restoring ~250GB of data so I haven't had chance to fully check out the Print Server, sleep timer, Twonky or BT, but all corresponding bits of the web gui appear to be functioning properly.

Any ideas what needs to be done? Should I try a vanila FW first & then update to the modded one?

monsta

Stevie Wonder said...

Reset to factory defaults in the web interface

Stevie Wonder said...

The reason it does it btw
is for some reason the ntp server isnt running

but the web interface thinks it should be


reset to defaults sets the web interface to expect the ntp server to be not running

you can then turn the ntp server back on in the web interface just fine

monsta said...

Thanks Stevie

All tabs on the web gui fuctioning as normal.

monsta

msisi said...

Installed Stevie Wonder's updated firmware and all is working perfectly.

The annoying clicking from the hard disk has gone as well.

Excellent work, thank you!

Is it possible to disable the Twonky media server?

samjoandco said...

to disable twonky remove twonky from rcS file in /etc/init.d folder

yazyazoo said...

StevieWonder,
I was wondering if your firmware already has optware installed on it? If not do you have any suggestions on how to install optware on your firmware? Would I have to follow the instructions for a openstock or jtymod firmware or do I go by the stock firmware for adding Optware.

I want to install NZBget onto your firmware. By the way the torrent works great and the Twonky works so great with my 360.

Thanks!

key said...
This comment has been removed by the author.
key said...
This comment has been removed by the author.
key said...

Hey, Im having the same problems as msisi and the other guys, Everytime the LS reboots it looses the bit torrents upload / download speed settings

In /etc/ theres the bttorrent.conf file but its blank not sure if its ment to be!

Wondering if its a permission problem, I dunno im no linux pro

I was wondering to stop the settings from resetting can any dig up a BitTorrent config file to put in place of the blank one or isnt this possible?

Ill try anything to get this working im desperate!

Also going off the subject a little (sorry guys) but apache and vhosts - is it possible to move the default :80 to :82 and have another site running off port 80?

Ive tried before on the original stock firmware and i ended up bricking the box

Thanks in advanced,
Key

Habibians92 said...

Hi Stevie,

Followed your post, downloaded LS-DHGL_FW_220-shmod1.rar, installed it on my Linkstation pro.. worked beautifully.
Then for no apparent reason, I tried updating to the latest Linkstation Live firmware, and now, am sitting on a brick.

I've followed a few of the de-bricking posts on the net, opened the box, removed the hard drive, but no luck.

The point I'm at is, connected to a router, the Linkstation is getting an IP of 192.168.11.150 from my router, I'm unable to ping it,and obviosuly, there any version of LSUpdater is not working.

Any thoughts on how I can reocver from this?.

Samson said...

Have you tried de-bricking vai tftp boot? Setup a tftp-server using IP address 192.168.11.1 and you should have a good copy of initrd.buffalo and uImage.buffalo served by tftp.

Methanoid said...

http://buffalo.nas-central.org/index.php/Revive_your_arm9_box_from_scratch

Always worked for me.. never failed

Methanoid said...

Stevie isnt around.... I tried both topics!

Habibians92 said...

I think I've got the ultimate box now!!!!.

The recover from scratch method revived the box. I then started looking around for a better torrent client. Came across mldonkey. followed the instrutions from

http://mldonkey.sourceforge.net/forums/viewtopic.php?t=4825 , used the normal version of the armeabi cores (detailed install instructions on page 5 or 6 of the post) - couldn't untar using the command line, so I just used winrar to extract the folder to the desired location on the Linkstation Hard drive..

Started mldonkey by going to the directory With this setup (./mlnet with the & starts mldonkey in some mode which keeps it running even if you close the telnet session)

root@Nas: cd /mnt/disk1/Public/mldonkey/normal
root@Nas:/mnt/disk1/Public/mldonkey/normal# ./mlnet &
[1] 9620
root@Nas:/mnt/disk1/Public/mldonkey/normal# 2009/03/16 11:59:07 [cO] Starting ML
Donkey 2.9.7.CVS ...
2009/03/16 11:59:07 [cO] Language EN, locale ANSI_X3.4-1968, ulimit for open fil
es 1024
2009/03/16 11:59:07 [cO] MLDonkey is working in /root/.mldonkey
2009/03/16 11:59:07 [Gettext] Loading language resource mlnet_strings.EN_ANSI_X3
.4-1968
2009/03/16 11:59:08 [cO] loaded language resource file
2009/03/16 11:59:08 [DNS] Resolving [Nas] ...
2009/03/16 11:59:08 [DNS] Resolving [www.mldonkey.org] ...
2009/03/16 11:59:09 [cO] Logging in /root/.mldonkey/mlnet.log
2009/03/16 11:59:10 [dMain] Core started

2009/03/16 11:59:07 [cO] MLDonkey is working in /root/.mldonkey gives the working directory created by mldonkey. So, modified /root/.mldonkey/downloads.ini with the following (had to kill the process by issuining top at the command line, noting the PID of the mlnet process from the 1st column (say 1234), q to quit top, then kill 1234. then, vi /root/.mldonkey/downloads.ini and changed (i to go into interactive mode to edit, made the changes, pressed ESC, then :wq to exit vi):

a) allowed_ips = [
"192.168.1.127/8";
"127.0.0.1";]
Without doing this, I wasn't able to access the mldonkey web interface at http://IPofLinkstation:4080 and wasted quite a bit of time thinking it wasnt really installed.

b) Removed the lines containing geoip,dat and guarding.p2p to reduce the footprint to mldonkey (there are 2 lines each that needed deleting).

c) Specified temp file location under the paths section (modify as per your choice):
(* The directory where temporary files should be put *)
temp_directory = "/mnt/disk1/Public/Torrentdn"
d)Specified completed file and directory location further down:
shared_directories = [
{ dirname = shared
strategy = all_files
priority = 0
};
{ dirname = "/mnt/disk1/Public/Torrentdn/completedtorrent"
strategy = incoming_files
priority = 0
};
{ dirname = "/mnt/disk1/Public/Torrentdn/completedtorrent"
strategy = incoming_directories
priority = 0
};]

e)Then, in the same folder, edited bittorrents.ini to specify the port I want mldonkey to use:

(* The port to bind the client to *)
(* changing this option requires restart of MLDonkey core *)
client_port = 50555

f) Then, edited /etc/init.d/rcS and changes

echo "** step3 **"
# removed directcopy.sh ltbootd.sh
for cmd in recover_shareinfo.sh micon_setup.sh atalk.sh ftpd.sh httpd.sh lprng.sh smb.sh clientUtil_servd.sh lsprcvd.sh daemonwatch.sh cron.sh logchkd.sh checkconfig.sh init_sem.sh bittorrent.sh twonky

sshd.sh

to:

echo "** step3 **"
# removed directcopy.sh ltbootd.sh
for cmd in recover_shareinfo.sh micon_setup.sh ftpd.sh httpd.sh lprng.sh smb.sh clientUtil_servd.sh lsprcvd.sh daemonwatch.sh cron.sh logchkd.sh checkconfig.sh init_sem.sh

basically removed: atalk.sh, bittorrent.sh (as don't need to use the built-in torrent client in Stevie's f/ware) and twonky (dont plan on using twonky)

I've managed to download over a gigabyte worth of ISO's at speeds 200 kilobYte/s - (very happy with that btw, never used to be able to achieve that high on a dedicated windows computer ONLY running Azureus).

Habibians92 said...

Also found Sancho, a windows based GUI for torrent clients. Installed the windows version from:
http://sancho.awardspace.com/

(make sure you're doin this from a PC whose IP has been added to the "alloed IPs" section of downloads.ini.

That has made life real easy.

Now, the only thing I'm missing is the ability to choose a specific file from a torrent for downloading. Haven't found this in mldonkey yet... hope the feature exists.

Samson said...

"ability to choose a specific file from a torrent" not found in any of the Linux BT clients...

travis said...

Anymore updates?

awdark said...

I know this post is a little old, but it has so much information

Has anyone done anymore progress in terms of enabling the ipfilter? Perhaps someone can look through the bittorrent.sh file as that seems to generate the bittorent.conf

I know if you go to the bin folder with bt and btdog you can type ./bt and it will generate a btsettings.dat file which might be useful.. because I don't know how we could possible test to see if its even working.

Methanoid said...

Sorry not got a Linkstation right now. I see that the various problems we've spotted have also been reported on the official Buffalo forums and so far no fixes...

monsta said...
This comment has been removed by the author.
monsta said...

I seem to have developed a problem with my Twonky install & wondered if someone could help me out.

I think it's been running fine for months (I didn't use it too much tbh) but having recently taken delivery of a WDTV & loaded it up with a uPNP app.bin, I was hoping to finally make use make full use of Twonky.

I noticed that I couldn't access the Twonky web gui, so I googled 'restart Twonky Linkstation' & found an entry on the buffalo NAS-Central wiki, telneted in & entered the following

root@HS-DHGL8D1:~# cd /etc/init.d
root@HS-DHGL8D1:/etc/init.d# ./twonky restart
This temporerily re-enables the web gui, but then this is returned

route: SIOC[ADD|DEL]RT: File exists
root@HS-DHGL8D1:/etc/init.d# TwonkyMedia Version 4.4.8
LOG_SYSTEM: reading ini file: "/usr/local/twonky/twonkyvision-mediaserver.ini".
/usr/local/twonky/twonkymediaserver: relocation error: /usr/local/twonky/twonkymediaserver: symbol inotify_init, version GLIBC_2.4 not defined in file libc.so.6 with link time reference
& I loose access to the web gui & if I run top there aren't any Twonky processes running. Can someone explain what is happening & how to fix it?

Thanks

monsta

Oz said...

Those with LS Live v2 and StevieWonder firmware can you comment is your fan working ok?

Furthermore, could someoone test these console commands if are they working for you:

Set fan to fast speed:
/bin/echo -n ']]]]' > /dev/ttyS1

Set fan to slow speed:
/bin/echo -n '\\\\' > /dev/ttyS1

My LS's fan isn't spinning at all and I'm trying to test is it really a dead fan or is the firmware not controlling the fan correctly.

Stevie Wonder said...

Fan works fine

1 of mine is showing as stop atm
2 low

Stevie Wonder said...

at monsta

have you got scan hd set to 0
on twonky?

as that messes the twonky install up on nas installations

Oz said...

Big thanks for a quick reply StevieW! Now I know I will need to buy a replacement fan for the box.

monsta said...

Cheers Stevie

It was set to -1 so I've set it back to an integer value.

It's still up & running after 20 minutes (it was gone after <1 minute previously) so it looks to have been the cause of the problem.

Thanks for the help

monsta

Stevie Wonder said...

You might find it messed up the twonky install it did with me atleast once

if its fine all's good

if not reinstall the firmware and dont set to -1 again

it does it on any twonky its a bug

Methanoid said...

Favour needed from one of you LS-Bittorrent users!! I've not got my LS any more but am getting a new LS-XHL soon. Treat this as some payback from the benefit you've received from the info on my Blog!!!

Question is how you seed a torrent you already have. Example, download a torrent, complete it, delete the torrent file from the LS web UI, move files elsewhere.

Then decide next day you want to see that torrent but not re-download the content. So you download the torrent file. You have the content already.

Q: How do you link them together?
Q: Do you have to put the content where the LS would download the files to and open the torrent file? That is what I would expect.
Q: I forget but does the LS always download content to one location - you cannot set this on a per-torrent basis.
Q: Does LS torrent allow selective file downloading?

monsta said...

Hey Meth

Can only answer a couple of your Q's:

Q: I forget but does the LS always download content to one location - you cannot set this on a per-torrent basis.
Downloads content to one location

Q: Does LS torrent allow selective file downloading?
No

monsta

Hyderbasti said...

Ok i know this might be said before if so i'h missed it.

But using Stevie Wonder's firmware I will be able to get BT and Twonky? but no web interface? and does upgrading to the SW firmware as easy as uploading with buffalo's uploader? or will i need to optware the box before doing FW upgrade?

After a successful SW upgrade can i have access to WebGui? or do i need to enable it? if so where can i find the info to enable the GUI?

Methanoid said...

Talk about lazy.. its all there in the comments

Yes, you get BT but you also keep your web interface. This basically makes your LS Pro/Live into "LS Live with BT"

As easy as a normal FW update. Now read the comments yourself ;)

Hyderbasti said...

what is the root password for the box?

Hyderbasti said...

what is the root password for this firmware? btw when i flashed the box with the Stevie wonder firmware it retained the admin password that i changed. and some of the changes that i made before on the box

Stevie Wonder said...

Yes he is lazy

read the txt file

Baraynavab said...
This comment has been removed by the author.
Baraynavab said...
This comment has been removed by the author.
Baraynavab said...

ok i am stupid. i do not see the password in this file. unless i got the wrong file. So i know we had to reset the box so i did. Now i can not login the webgui or telnet.

i am not stuck at this telnet screen.

BUFFALO INC. LinkStation series HS-DHGL(JINMU):

i put in admin : admin,BLANK, password does not work,
root : (root, BLANK, password) does not work. So what is the password. Please help. I might the older file notes and need some guidance.

Below is the Firmware note file i got.
--------------------------------
Some Quick Notes

Reset to factory defaults to clear out the telnet password
It resets the workgroup to Lan so if yours is something else dont forget to change it

Bittorrent defaults to /mnt/disk1/share and will make its own folder if one isnt present
if you need to change it edit /etc/melco/bittorrent and reboot

the media server's on ip:9000
bittorrent is ip:8080 and also in the web interface

there's no webaxis as the latest build for the live is the jap firmware 1.20 (10/2008)
2.10 and 2.11 usa/euro firmware are 2007 builds

I had a quick go at adding webaxis but had problems with the web interface

I also had problems with the web interface module for bittorrent
thats why you have to edit the directory from /etc/melco/bittorrent

I have no skills at all with cgi sorry

if someone wants so send me a working tar for webaxis or the bittorrent web submenu
I will add them on

What was added

Bittorrent from Live v3 1.06 firmware
Twonky exe from Live v3 1.06 firmware
Twonky web interface from 4.4.11 twonkymedia
su
zip
ps (full ver)
maybe a few other commandline things
NASNavi2 on info share
Putty on the info share
-------------------------

Stevie Wonder said...

Mod 2


http://www.mediafire.com/?dwl4o2rmljw

Stevie Wonder said...

Firmware 2.22

Fixed The timeserver web interface expected to be on problem
Updated Bittorrent to latest version in LS-XHL 1.10
Updated NASNavi2 to 2.18 from LS-XHL 1.10

What Buffalo has to say about the bittorrent update (dodgy google translation)

BitTorrent client has the following modifications.
Fixed a timing problem when changing the port configuration settings when you change the port settings
correct the problem was still waiting old port settings
"stop the seeds in the ratio of Rhodes set up" when setting Fixed seeds do not work
DHT increase the stability of the operation of the E06 error, correct the problem may not be invoked.

Stevie Wonder said...

Ls Live v3 users dont have the new bittorrent yet btw

Stavros said...

Stevie, you sir are a genius. I only just got my LinkStation this morning, but installed your 1st mod which I'd downloaded in preparation the other day. I'll install mod2 over it now :P

1 question, I don't need Twonky, is there an easy way of removing it, or any chance you can make a build with BitTorrent only? Would be much appreciated, cheers.

Methanoid said...

It won't consume resources (really).. so no need to worry about it...

Stavros said...

Oh okay, wasn't sure just how much space and resources it used, but if it's minimal then no problem!

Is this the only place you post updates for your modded firmware, or is there somewhere else (easier to find) I could check for updates in the future? Thanks.

Methanoid said...

Well it's Stevie's firmware so it's up to him but so far this is where it's been announced I think so keep watching.

Personally I think Stevie's should consider whether there are additional things that could or should be added. Given suggestions of XFS risking data corruption (all LS have XFS) it might be nice if EXT3 or JFS could be used for the Data partition.

Anyway, I hope you're all reading the other "important" stuff on my Blog ;)

Stevie Wonder said...

There is no way to change from xfs from a firmware update unless buffalo make a new firmware update program

The Bittorrent update seems to have fixed the random webinterface lockup bug with firefox

also it checks
http://update.sdk.bittorrent.com/
on first boot

so we may see it auto update at some point

Samson said...

It is possible but need a lot of changes in the scripts inside initrd.buffalo

Stevie Wonder said...

You keep saying that

I will belive it when you do it :p

Stevie Wonder said...

Stavros

Twonky is very light on hd space and cpu use
unlike pcast in v1/v2's

thats why everyone uses it

I wouldnt worry about it

you can either set it to never scan for file changes in the twonky web interface

or disable it from starting in /etc/init.d/rcS

via telnet

or of you want to delete it

remove twonky from rcS
/etc/init.d/rcS

then
rm -r /etc/init.d/twonky
rm -r /usr/local/twonky

I wouldnt delete it though
as you might want it at some point
for streaming to xbox360/ps3 etc

Hugo said...

Stevie,
btw brill firmware, tried the older version yesterday and was amazed.
I removed townky and replaced it with uShare as it is free.
Also was wondering, if you are thinking of adding NZBget, for usenet downloading.
I was wondering, if I added another program like NZBget could I edit the web admin interface to add something like the bitorrent?

Stevie Wonder said...

Twonky was free also :p

Methanoid said...

And Twonky just WORKS.... I was not a believer but it really is rather good. Installed on my "NAS PC" now.

Hugo said...

I like Townky also, but it asks for key after 30 days!
It's also easier to install than ushare, installed nzbget, want to modify the web admin to add a link to nzbgetweb.

Stevie Wonder said...

No it doesnt

maybe you should have looked before u deleted it

lol

Stevie Wonder said...

Why would buffalo put a 30 day trial in a product..

samjoandco said...

I want to setup a media server like TVERSITY that can transcode and stream to the clients.

Has anybody setup mediatomb on LS LIVE?
currently I am using Stevie's firmware V1 on LS Live

Samson said...

I don't have time to dig out all the required changes, but I can provide some finding... for example, changes required to replace XFS mount to EXT3 / JFS. XFS partition formating call became JFS. Please noted that this is the script inside initrd.buffalo, it will replace the same script file in the HDD upon every reboot so you much made the changes in the RAM disk image... You also need to compile jfsutils such as mkfs.jfs and copy it to the RAM image:

usr/local/bin/libbuffalo:
--- libbuffalo.old 2009-01-17 09:57:16.000000000 +0800
+++ libbuffalo 2009-01-17 18:38:13.000000000 +0800
@@ -480,9 +480,11 @@ mount_share()
# mount
#
if [ $BUFFALO_CONFIG_QUOTA -eq 1 ]; then
- mount -t xfs -o noatime,uquota,gquota /dev/${DEV_SHARE} ${MPT_SHARE}
+ # mount -t xfs -o noatime,uquota,gquota /dev/${DEV_SHARE} ${MPT_SHARE}
+ # No quota for JFS in Kernel
+ mount -t jfs /dev/${DEV_SHARE} ${MPT_SHARE}
else
- mount /dev/${DEV_SHARE} ${MPT_SHARE}
+ mount -t jfs /dev/${DEV_SHARE} ${MPT_SHARE}
fi

if [ $? -ne 0 ]; then
@@ -699,7 +701,9 @@ format_SystemArea()
echo "write test fail."
return 1
fi
- mkfs.xfs -f $1
+ ## Switch from XFS to EXT3 for sda2
+ ## mkfs.xfs -f $1
+ mkfs.ext3 -f $1
ret=$?
if [ $ret -ne 0 ] ; then
echo "[$1] format fail."
@@ -756,7 +760,9 @@ format_XFS()
echo "write test fail."
return 1
fi
- mkfs.xfs -f $1
+ ## mkfs.xfs -f $1
+ ## XFS not use due to unstable with ARM machine
+ mkfs.jfs -q $1
ret=$?
if [ $ret -ne 0 ] ; then
echo "[$1] format fail."

Hugo said...

Stevie,
It does ask for it, well it says key is not registered for this server, something along those lines.
I'll enable it and see what is up.
Thanks for the replies!

Stevie Wonder said...

No it doesnt

Stevie Wonder said...

License information: The Server is registered.

Stevie Wonder said...

You couldnt put a key in if you wanted to

its a pre registered exe with no
call home for key checking

if your running something that says key isnt valid its another version of twonky

Hugo said...

Stevie,
You are correct, apologies for a noob mistake, I had run a twonky update to a newer version.
My apologies again!

Stevie Wonder said...

4.4.8 is the best one atm
otherwise i would have installed that
with a disabled call home

anything after 4.4.8 is unstable

Stevie Wonder said...

dont forget to delete
/mnt/disk1/twonky

it wont get run after a firmware update but will waste a touch of space

buffalo twonky is in

/usr/local/twonky

Bryan said...

Just wanted to say THANKS Stevie!

gj said...

i've just received a linkstation hs-dh320gl. i've installed navigator. i have browser access to the nas using the default admin password.
i downloaded the latest version of steviewonder's firmware 2.22.02. I followed the instructions: namely reset to factory settings and edit LSUpdater.ini (change ProductID = 0x0009). But when i run lsupdater it returns a message "HS-DHGL that needs updating wasn't found". I disabled firewall on my pc. The nas is behind my adsl router. I can see it via the web interface and navigator. But why can't the lsupdater see it?
Please help.
thanks
gj

Stevie Wonder said...

Read the readme again

Stevie Wonder said...

You didnt read it properly
you only edit the ini for a pro
you have a live

gj said...

thanks steve.

sorry. i read it several times. but some how i was unconsciously ignoring the first line. sorry again.

The Evil Monkey! said...

Thanks Steviewonder 2.22 is excellent! but is there any way of adding the web use or any way of getting to the nas online? (im new to the nas world) any help would be appriciated!!

Stevie Wonder said...

I had a quick go at looking into buffalo's module system
when i made shmod1

id need to sit down for a good few hours to fully work it all out

and havnt got the time atm

the easiest way of getting web access to files is to enable the ftp server and set up a port forward on your router for port 21

webaxis is a bit dodgy if you ask me

The Evil Monkey! said...

Thanks Stevie,wow that was a quick response! right i,ll try that (as its txt files i need on the move),So would this be safer than using the webaxis I gather? So i just enable the ftp, and alter port 21 on router, then, sorry im new to this once this is done how do i log on from another location? do i just use the ls web adress and log in that way? Thanks.

Crooksee said...

Hi Stevie,

I have just bought a Buffalo Linkstation HS-DHGL because someone told me I can install a bit torrent client on it using your firmware but I can't find a guide to do it. Can you help?

Alex

Paul said...

Stevie,

Many thanks for your firmware- much improved on the standard version. One quick question though- how do you change the location for Bittorent downloads?

Methanoid said...

@Crooksee

You can blame the person who told you to buy for not telling you how or alternatively take some responsibility, man up, and RTFM. We're not going to teach you hopw to flash when there are guides out there if someone can use Google.

Hint: nas-central.org


@Paul

Going from memory it there is a bittorrent.conf file on the box you need to edit. Have a look or hope that Stevie comes for a browse and tells you?

Crooksee said...

Hi

Thanks, I spent ages yesterday trying to find a decent guide but couldnt find one. If anyone can help please do:)

Alex

monsta said...

@Paul

Bittorrent defaults to /mnt/disk1/share and will make its own folder if one isnt present
if you need to change it edit /etc/melco/bittorrent and reboot

Crooksee said...

Do you need to take drive out and put in a PC to install telnet first?

Methanoid said...

@Crooksee,

Nas-central.org - look for Telnet and if that isn't something you can do then look for ACP Commander.

Its obvious you are totally new to this but try to walk before running. Read the Guides on the Wiki at Nas-central. Start with looking for Open Stock firmware and how to add Optware. That will give you a basic grounding of whats going on as understanding the changes may mean you don't need to ask embarrassing questions

Bryan said...

@Crooksee

Once you've installed Stevie's firmware on the NAS, open a browser and go to http://[your nas IP]:8080

You can do the same for Twonky on :9000

Cal_G said...

Excellent firmware :)

I have been looking at adding a Usenet Client from this thread:

http://forum.buffalo.nas-central.org/viewtopic.php?f=39&t=11856&start=0&st=0&sk=t&sd=a

However, I have no idea what I am doing :(

Would it be possible to add this into the next firmware?

Many Thanks

Methanoid said...

@Cal, I have asked Stevie before about this but in the meantime try Search at NAS-central and you;ll find the guide. You can also find my guide for HellaNZB and other NZB downloaders

http://forum.buffalo.nas-central.org/viewtopic.php?f=39&t=9206&hilit=+nzbget

Cal_G said...

Cheers Methanoid, I have read through that thread you linked to a good few times but having no Linux experience at all nothing makes any sense to me :(

Cal_G said...
This comment has been removed by the author.
Cal_G said...

Can someone please explain how the timers work?

The wakeup time has 0-23 in the list, the suspend has 0-27?

is there anyway to get it to just shut off at 1am and not turn back on?

Thanks

Samson said...

Suspend 0-27 is to handle suspend time passing over mid-night. It cannot handle for example: today 01AM -> tomorrow 02AM, in this case you have to set: 01 Start -> 26 Suspend.

Also,time slot cannot over each others.

Cal_G said...

Thanks Samson. I though 01 Start -> 26 Suspend would turn on at 1am and turn off at 3pm?

At the moment I have it set at 00 Start and 01 Suspend. Seems to be working out ok as it turns itself off at night and I manually switch it on in the morning.

Still a bit confused by it all, anywhere I can read up on it?

Thanks

Samson said...

For example:

01 JUL 23 Start
=> 01AM JUL-23

26 Suspend
=> 02AM JUL-24

If you want suspend at JUL-23 3PM then you should have suspend simply set at 15

It mean 24 = 00(Next Day), 25 = 01(Next Day), 26 = 02(Next Day) and so on ...

Amit said...
This comment has been removed by the author.
samjoandco said...

I cannot map the NAS on my windows XP /Windows 7 boxes anymore. every time i try to browse share from NAS Navigator I get "Could not open shared folder, Confirm Drive status" message.

I can still see it from MAC or SSH / FTP or telnet to the box from Windows / MAC machine.
there seems to be problem with samba configuration.
is it related samba version because it started happening after i installed MEDIATOMB.

Here is the info printed on smb restart
Here is the log for smb start up
====start====
/etc/init.d# ./smb.sh restart
Shutting down SMB services:
Shutting down NMB services:
Shutting down WINBIND services: killall: winbindd: no process killed
Shutting down PAMSMBD services: killall: pamsmbd: no process killed
configure samba
optarg:samba
LoadConfFileString:key=[local_auth] not found in /etc/melco/info.
load_info ItemValue = off
LoadConfFileString:key=[ad_dns] not found in /etc/melco/info.
LoadConfFileOnOff:key=[info_visible] not found in /etc/melco/info.
LoadConfFileString:key=[msdfs_function] not found in /etc/melco/msdfs.
LoadConfFileString:key=[msdfs_root_as_link] not found in /etc/melco/msdfs.
LoadConfFileString:key=[msdfs_root_name] not found in /etc/melco/msdfs.
LoadConfFileString:key=[msdfs_root_path] not found in /etc/melco/msdfs.
LoadConfFileString:key=[msdfs_link1_name] not found in /etc/melco/msdfs.
Can't Open : /etc/melco/offlinefile
file:/etc/samba/smb.conf
>IconvCodeCharset CodePage=1,charset=CP437
file:/etc/pam_smb.conf
Starting SMB services:
Starting NMB services:
======End======

cat /var/log/log.smbd
====start====
[2009/08/10 09:23:02, 0] smbd/server.c:main(847)
smbd version 3.0.24-1.22_OSSTECH started.
Copyright Andrew Tridgell and the Samba Team 1992-2006
[2009/08/10 09:23:03, 1] param/loadparm.c:lp_do_parameter(3435)
WARNING: The "printer admin" option is deprecated
======End======

Stevie Wonder said...
This comment has been removed by the author.
Stevie Wonder said...
This comment has been removed by the author.
Methanoid said...

Do a custom FW for the LS XHL.... ;)

Stevie Wonder said...

shmod3

http://www.mediafire.com/?czeyizdztym

Faster Web interface
Added Web Access
Added Twonky link from web interface
Added Bittorrent Buffalo web interface (you cant change anything just use the link to port 8080)
Updated NasNavi2 to 2.20
Twonky Port Changed to 9050 so webaxis can use 9000

The Evil Monkey! said...

Way to go Stevie, just downloaded the link, will install tomorrow,I gather you got it to run stable then!
Thanks in advance, its gonna make life easier (i hope), Ill post once ive installed this weekend.

Stevie Wonder said...

I inserted webaxs into shmod2 which is based on jap 1.20 in the end as the unfinished usa firmware
wasnt in good shape

they did a bad job of adding webaxis to the jap firmware and messed up lots on the firmware in the process

Stevie Wonder said...

im quite far into 2.24

http://img62.imageshack.us/img62/1293/wipk.jpg

Stevie Wonder said...

http://www.mediafire.com/?jtdkyjwyvow

Firmware 2.24

Either reset to defaults after the update
or turn turn off any services you dont need
as /etc/melco/info doesnt get overwritten unless is doesnt exist
so all services will be default on after the update

Twonky 4.4.18
Added Firefly for people wanting to stream to iTunes/roku WebConfig = ip:9025 l=mt-daapd p=password
Added Twonky stop/start in web menu (remembers setting after reboot)
Added SSH stop/start in web menu (remembers setting after reboot)
Added Telnet stop/start in web menu (remembers setting after reboot)
Added Firefly start/stop in web menu (iTunes)

Stevie Wonder said...

oh firefly is set to scan every 600 seconds i would set this to something higher
maybe 36000 (10 hours)

it can be done at ip:9025
just change 600 to 36000 and save

say170 said...

Hi Stevie, re:
Added Twonky stop/start in web menu (remembers setting after reboot)
Added SSH stop/start in web menu (remembers setting after reboot)
Added Telnet stop/start in web menu (remembers setting after reboot)
Added Firefly start/stop in web menu (iTunes)

Where are these - or did I forgot to check something in the upgrade?

Stevie Wonder said...

Click Shared Folders
then
Service Setup

Cal_G said...

Hi Stevie, many thanks for the constant updates. Any chance of installing NZBGet into the next firmware?

Cheers

Stevie Wonder said...

maybe

i have no use for itunes but people seemed to want it

same for usenet

i may add it at some point

I have tried to make the web interface on firefly look a tad less ugly and added fireplay

but it doesnt justify a release
it will be in the next release

Images to see what people think

http://yfrog.com/1yfireflyp

http://yfrog.com/1yfireplayp

tinti said...

Thanks!,I think SHMOD is the best firmware for LS pro,live !

«Oldest ‹Older   1 – 200 of 287   Newer› Newest»