Buffalo NAS-Central Forums

Welcome to the Linkstation Wiki community
It is currently Thu Nov 23, 2017 12:25 pm

All times are UTC+01:00




Post new topic  Reply to topic  [ 17 posts ]  Go to page 1 2 Next
Author Message
PostPosted: Sat Mar 12, 2011 11:42 am 
Offline
Total Newbie

Joined: Sat Feb 26, 2011 2:38 pm
Posts: 2
This is a guide to how i set this up. This may be incorrect due to time it took me to do and type it. Reference guide for myself.

1.Download shonks 1.37 mod 1 from here and do a force update
2. http://nas and do a reset
3. Telnet nas from command prompt
4. Username - root, no password
5. passwd - select new password
6. Install optware
Code:
mkdir -p /mnt/array1/opt && ln -sf /mnt/array1/opt /opt

cd /tmp
wget http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/stable/ipkg-opt_0.99.163-10_arm.ipk
tar -xOvzf ipkg-opt_*_arm.ipk ./data.tar.gz | tar -C / -xzvf -

mkdir -p /opt/etc/ipkg
echo "src cross http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/stable" > /opt/etc/ipkg/armel-feed.conf
echo "src native http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/native/unstable" >> /opt/etc/ipkg/armel-feed.conf

# :/opt/bin:/opt/sbin --> /etc/profile/PATH
vim /etc/profile

/opt/bin/ipkg update

7. Install transmission
Code:
ipkg install transmission mc screen

8. Auto start/stop
Code:
echo '/opt/bin/transmission-daemon -a *.*.*.* -g /root/.config/transmission-daemon' >/opt/etc/init.d/S95transmission.sh
chmod 755 /opt/etc/init.d/S95transmission.sh
echo /opt/bin/transmission-daemon >/etc/rc.d/extensions.d/K05transmission.sh
chmod 755 /etc/rc.d/extensions.d/K05transmission.sh

9. Create directories
Code:
mkdir /mnt/array1/share/downloads
chmod -R 777 /mnt/array1/share/downloads
mkdir /mnt/array1/share/torrents
chmod -R 777 /mnt/array1/share/torrents

10. Config file
Code:
transmission-daemon

Code:
killall transmission-daemon
chmod 777 /root/.config/transmission-daemon/settings.json
screen mcedit /root/.config/transmission-daemon/settings.json

11. Replace with
Code:
"download-dir": "/mnt/array1/share/downloads",
"incomplete-dir": "/mnt/array1/share/torrents",
"incomplete-dir-enabled": true,
"peer-port": 45678, (Forward this port to NAS)
"rpc-authentication-required": true,
"rpc-password": "my password",
"rpc-username": "Transmission",
"rpc-whitelist-enabled": false,
"rpc-whitelist" "0.0.0.0",
"umask": 0,

12. Save (F2 and enter)
13. Quit (F10)
14. Type reboot
15. Install transmission remote gui from here
16. Install python
Code:
ipkg install python

17. Install flexget dependancies
Code:
ipkg install py25-setuptools
ipkg install py25-sqlalchemy
ipkg install py25-feedparser
ipkg install py25-yaml

18. Download flexget from here and save on share dir
19. Install flexget
Code:
easy_install-2.5 /mnt/array1/share/flexget.egg

20. Verify install
Code:
python /opt/local/bin/flexget -V

21. Download transmissionrpc from here and save to share dir again
22. Install
Code:
easy_install-2.5 transmissionrpc.egg

23. Create config.yml on share dir and move to /opt/local/config.yml
Code:
feeds:
  tv-shows:
    rss: http://www.myfeed.com
    accept_all: yes
    download: /mnt/array1/share/torrents
    transmission:
      host: localhost
      port: 9091
      username: Transmission
      password: password here

24. Call flexget
Code:
python /opt/local/bin/flexget

25. Create new cron to autorun
Code:
vi /etc/cron/crontabs/root

26. At end of file add
Code:
*/5 * * * * python /opt/local/bin/flexget

26. Restart cron daemon
Code:
/etc/init.d/cron.sh restart

27. Check crontab
Code:
crontab -l


References:
viewtopic.php?f=68&t=21865
http://forum.discountnetz.com/buffalo-l ... -t371.html
viewtopic.php?f=71&t=22891
viewtopic.php?f=71&t=22403
viewtopic.php?f=39&t=22155
http://forum.discountnetz.com/anleitung ... -t749.html
http://forum.qnap.com/viewtopic.php?f=16&p=109815
http://flexget.com/wiki/Plugins


Top
   
PostPosted: Sun Sep 04, 2011 9:48 pm 
Offline
Total Newbie

Joined: Fri Sep 02, 2011 9:38 am
Posts: 3
Nice guide.

I understand that its actually a self guide.
So I only used parts of it. What I understood of it mostly.

Thanks


Top
   
PostPosted: Fri Apr 27, 2012 9:24 pm 
Offline
Newbie

Joined: Fri Apr 27, 2012 3:52 pm
Posts: 7
Hello.

I've got some problems with install Transmission on LS-WXL4.
I don't use shonks 1.37 mod. According to this instruction I've got access via SSH.

Everything goes easy to step 8:
Code:
echo '/opt/bin/transmission-daemon -a *.*.*.* -g /root/.config/transmission-daemon' >/opt/etc/init.d/S95transmission.sh
chmod 755 /opt/etc/init.d/S95transmission.sh
echo /opt/bin/transmission-daemon >/etc/rc.d/extensions.d/K05transmission.sh
chmod 755 /etc/rc.d/extensions.d/K05transmission.sh

No such file or directory

I checked and haven't /root/.config/ and /opt/etc/init.d/ folders. What do I wrong? Is it problem I didn't use shonks 1.37 mod?

Step 10
Code:
transmission-daemon

command not found

Code:
killall transmission-daemon

no process killed

Thanks for any help.


Top
   
PostPosted: Fri Apr 27, 2012 9:50 pm 
Offline
Moderator

Joined: Mon Apr 26, 2010 10:24 am
Posts: 2691
"Everything goes easy to step 8:"

I dont think so.

What is the Output from
Code:
ipkg update


ipkg command not found


Top
   
PostPosted: Sat Apr 28, 2012 1:01 pm 
Offline
Newbie

Joined: Fri Apr 27, 2012 3:52 pm
Posts: 7
Code:
ipkg update
Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/stable/Packages
Updated list of available packages in /opt/lib/ipkg/lists/cross
Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/native/unstable/Packages
Updated list of available packages in /opt/lib/ipkg/lists/native
Successfully terminated.


Top
   
PostPosted: Sat Apr 28, 2012 9:58 pm 
Offline
Moderator

Joined: Mon Apr 26, 2010 10:24 am
Posts: 2691
OK then use
Code:
ipkg install transmission
transmission-daemon


Top
   
PostPosted: Sat Apr 28, 2012 10:34 pm 
Offline
Newbie

Joined: Fri Apr 27, 2012 3:52 pm
Posts: 7
Code:
ipkg install transmission
Package transmission (2.50-1) installed in root is up to date.
Nothing to be done
Successfully terminated.
transmission-daemon

First time - command not found
Second time - prompt ~#: looks fine?
Code:
killall transmission-daemon

~#:
Code:
transmission-daemon

~#:

Now I have /root/.config/ but there is no /opt/etc/init.d/
Code:
 echo '/opt/bin/transmission-daemon -a *.*.*.* -g /root/.config/transmission-daemon' >/opt/etc/init.d/S95transmission.sh
-bash: /opt/etc/init.d/S95transmission.sh: No such file or directory


Top
   
PostPosted: Sat Apr 28, 2012 10:57 pm 
Offline
Moderator

Joined: Mon Apr 26, 2010 10:24 am
Posts: 2691
I use LS-XHL. Directory exists. Find your way to autostart!


Top
   
PostPosted: Sun Apr 29, 2012 6:42 am 
Offline
Moderator

Joined: Fri Jun 29, 2007 10:39 am
Posts: 2604
I assume that "/opt" does not exist.
I assume again, you forgot to rename the optware startscript.
Look into /etc/init.d/rcS at the last lines. You will find something
like "/etc/init.d/rc.optware", but you won't find this file in /etc/init.d.
You will find a file named "optware" instead.
Rename this file to rc.optware then and restart.

This is pure assumption and can be totally wrong.

_________________
Please do not use private mail (PN/M) to ask questions. Use the proper forum instead. (me)

If there is no verified backup of a dataset, the dataset, by definition, is unimportant. (c't 2012)

RAID (no matter which level) never ever substitutes a backup. (me)


Top
   
PostPosted: Sun Apr 29, 2012 7:05 pm 
Offline
Newbie

Joined: Fri Apr 27, 2012 3:52 pm
Posts: 7
oxygen8 wrote:
I use LS-XHL. Directory exists. Find your way to autostart!


Thanks for help oxygen8, transmission daemon works fine :) I don't know what's happen and why it works now :shock: We did nothing else than some test according to tutorial.

kenatonline wrote:
I assume that "/opt" does not exist.

/opt exist.
kenatonline wrote:
I assume again, you forgot to rename the optware startscript.
Look into /etc/init.d/rcS at the last lines. You will find something
like "/etc/init.d/rc.optware", but you won't find this file in /etc/init.d.
You will find a file named "optware" instead.
Rename this file to rc.optware then and restart.
This is pure assumption and can be totally wrong.

Code:
vi /etc/init.d/rcS

I can't find nothing like "/etc/init.d/rc.optware"
There's no optware in "/etc/init.d".

Maybe I should manually make dir init.d in /opt/etc or there's some other way to put transmission-daemon to autostart?


Top
   
PostPosted: Mon Apr 30, 2012 8:07 am 
Offline
Moderator

Joined: Fri Jun 29, 2007 10:39 am
Posts: 2604
You don't have something like this at the end of your rcS?
Code:
# Optware setup        
[ -x /etc/init.d/rc.optware ] && /etc/init.d/rc.optware start

Then I would assume, that the installation of Optware was not
completely successful.
You have to find the startup script of optware (rc.optware) and
get it called at startup of the box as late as possible.
The missing /opt/etc/init.d directory is another sign of a not
successful installation.
Which bootstrap file did you use to install Optware?

_________________
Please do not use private mail (PN/M) to ask questions. Use the proper forum instead. (me)

If there is no verified backup of a dataset, the dataset, by definition, is unimportant. (c't 2012)

RAID (no matter which level) never ever substitutes a backup. (me)


Top
   
PostPosted: Tue May 01, 2012 12:08 am 
Offline
Newbie

Joined: Fri Apr 27, 2012 3:52 pm
Posts: 7
kenatonline wrote:
You don't have something like this at the end of your rcS?
Code:
# Optware setup        
[ -x /etc/init.d/rc.optware ] && /etc/init.d/rc.optware start

Then I would assume, that the installation of Optware was not
completely successful.

No, I don't.

kenatonline wrote:
Which bootstrap file did you use to install Optware?

I use the install instuction from first post. I've installed ipkg-opt but I didn't see anything like "bootstrap" in here.


Top
   
PostPosted: Tue May 01, 2012 9:14 am 
Offline
Moderator

Joined: Fri Jun 29, 2007 10:39 am
Posts: 2604
This explains "everything".
The instructions from first post are just the rudimentary part of a
complete Optware installation.
A "bootstrap" (in Optware terms) is a file, which is a selfexpanding
"binary" script, which does all the installation stuff needed for a
successful Optware installation. This includes creating all the
necessary files and directories. There are "bootstrap"s for different
boxes.
You will need to create the files and directories manually now.

I am not sure if this is all you need to do:
Code:
mkdir /opt/etc/init.d

Code:
cat << EOF > /etc/init.d/rc.optware
#!/bin/sh

# Start all init scripts in /opt/etc/init.d
# executing them in numerical order.
#
for i in /opt/etc/init.d/S??* ;do

        # Ignore dangling symlinks (if any).
        [ ! -f "$i" ] && continue

        case "$i" in
           *.sh)
                # Source shell script for speed.
                (
                        trap - INT QUIT TSTP
                        set start
                        . $i
                )
                ;;
           *)
                # No sh extension, so fork subprocess.
                $i start
                ;;
        esac
done
EOF

Code:
chmod 700 /etc/init.d/rc.optware

Code:
cat << EOF >> /etc/init.d/rcS
# Optware setup       
[ -x /etc/init.d/rc.optware ] && /etc/init.d/rc.optware start
EOF

You can, of course, use vi instead of the here documents to create
rc.optware and append the stuff to rcS.

_________________
Please do not use private mail (PN/M) to ask questions. Use the proper forum instead. (me)

If there is no verified backup of a dataset, the dataset, by definition, is unimportant. (c't 2012)

RAID (no matter which level) never ever substitutes a backup. (me)


Top
   
PostPosted: Wed May 02, 2012 10:16 am 
Offline
Newbie

Joined: Fri Apr 27, 2012 3:52 pm
Posts: 7
Thanks for this reply - I'll try that solutions, but I want to ask you something.

Let me help to understand:
1. SSH access.
2.
Code:
mkdir -p /mnt/array1/opt && ln -sf /mnt/array1/opt /opt

cd /tmp
wget http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/stable/ipkg-opt_0.99.163-10_arm.ipk
tar -xOvzf ipkg-opt_*_arm.ipk ./data.tar.gz | tar -C / -xzvf -

mkdir -p /opt/etc/ipkg
echo "src cross http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/stable" > /opt/etc/ipkg/armel-feed.conf
echo "src native http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/native/unstable" >> /opt/etc/ipkg/armel-feed.conf

# :/opt/bin:/opt/sbin --> /etc/profile/PATH
vim /etc/profile

/opt/bin/ipkg update


or
2. IPGK, bootstrap

Can I install this bootstrap now? Maybe I have to delete /opt and makes it one more time? Should I install only bootstrap or install both?

P.S. Maybe I'm wrong, but it seems that tutorial (first post) is incomplete :?:


Top
   
PostPosted: Wed May 02, 2012 12:24 pm 
Offline
Moderator

Joined: Fri Jun 29, 2007 10:39 am
Posts: 2604
As I already wrote, the tutorial of the first post is the rudimentary
necessary to use Optware and needs a lot more manual work to
get to the state you get with the bootstrap.
If you want to use the bootstrap, you will have to delete /opt and
(maybe?) the complete rest of ipkg (aka. optware).
Depending on your disk configuration (RAID or non-RAID), the link
you quoted seems correct (it is for RAID configured boxes).
Another link is this:
http://buffalo.nas-central.org/wiki/Ipkg_on_the_Linkstation_(for_end-users)

_________________
Please do not use private mail (PN/M) to ask questions. Use the proper forum instead. (me)

If there is no verified backup of a dataset, the dataset, by definition, is unimportant. (c't 2012)

RAID (no matter which level) never ever substitutes a backup. (me)


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 17 posts ]  Go to page 1 2 Next

All times are UTC+01:00


Who is online

Users browsing this forum: No registered users and 8 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Limited