Forum

Full Version: [Part 2] Download torrent & newsserver package(s)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13
(27th Feb, 2013 03:38 AM)kraleksandr Wrote: [ -> ]
(27th Feb, 2013 03:36 AM)Styler Wrote: [ -> ]
(26th Feb, 2013 12:33 AM)kraleksandr Wrote: [ -> ]@Styler u can mount ur HDDs by UUID.

Cool. How do I do this?
Terminal
xbian@xbian ~ $ cat /etc/fstab
proc /proc proc defaults 0 0
/dev/mmcblk0p1 /boot vfat defaults 0 2
/dev/mmcblk0p2 / ext4 defaults,noatime 0 1
UUID=839aea66-ad3d-4c3a-9d10-7f8f4d91ec9f /media/hdd ext4 defaults,noatime 0 0
/var/swapfile swap swap defaults 0 0
To find your UUID do this
Terminal
xbian@xbian ~ $ ls -l /dev/disk/by-uuid/

Okay so I did the following (with 1 flashdrive plugged into the RPi):

Terminal

xbian@xbian ~ $ ls -l /dev/disk/by-uuid/
total 0
lrwxrwxrwx 1 root root 15 Jan 1 1970 29b6c2f5-5469-49f2-abd5-daa9149021cc -> ../../mmcblk0p2
lrwxrwxrwx 1 root root 10 Feb 27 11:36 769B-0DEF -> ../../sda1
lrwxrwxrwx 1 root root 15 Jan 1 1970 8B12-9112 -> ../../mmcblk0p1
xbian@xbian ~ $

Is the UUID of my flash drive 769B-0DEF?

I then did this:

Terminal

xbian@xbian ~ $ cat /etc/fstab
proc /proc proc defaults 0 0
/dev/mmcblk0p1 /boot vfat defaults 0 2
/dev/mmcblk0p2 / ext4 defaults,noatime 0 1
/var/swapfile swap swap defaults 0 0
xbian@xbian ~ $

Should I just edit this in nano (sudo nano /etc/fstab) to add the line:

Terminal

UUID=769B-0DEF /media/usb0 vfat defaults,noatime 0 0

If this is correct, would I then issue the following commands to always download files to that particular flashdrive?

Terminal

mv /home/xbian/downloads /media/usb0
mv /home/xbian/incomplete /media/usb0
mv /home/xbian/torrents /media/usb0
ln -s /media/usb0/downloads /home/xbian/downloads
ln -s /media/usb0/incomplete /home/xbian/incomplete
ln -s /media/usb0/torrents /home/xbian/torrents

I assume other harddrives/flashdrives need to get added to fstab as usb1, usb2... etc?
I have an RSS feed with torrent-files (with cookie-auth) and I want to automatically download some files from there (filter by name). Can packages from the first post help me?

@Styler
MAybe it will be better if you ceate separated dir for this device. Something like this
Terminal
sudo mkdir /media/flashdrive
sudo chown xbian:xbian /media/flashdrive
sudo chmod 777 /media/flashdrive
mv /home/xbian/downloads /media/flashdrive
ln -s /media/flashdrive/downloads /home/xbian/downloads
Just wondering if there is any benefit to updating to version 2 of the download package ?

Currently on version 1 and all working perfectly together. No issues apart from a corrupted sd card a few weeks back / dropping the over clock to normal fixed it.

Sickbeard / coach pot and headphones all auto update anyhow.

Sabnzb is around 500 to 1.2 meg which is fine by me.

Just finished adding minidlna server last night to the mix.

No bothering unless something decent added.

Thanks.

Rich
Version 1 was massively buggy for some people and didn't include low resources programs. Version 2 does. Don't fix it if it ain't broken
(28th Feb, 2013 12:35 AM)kraleksandr Wrote: [ -> ]I have an RSS feed with torrent-files (with cookie-auth) and I want to automatically download some files from there (filter by name). Can packages from the first post help me?

@Styler
MAybe it will be better if you ceate separated dir for this device. Something like this
Terminal
sudo mkdir /media/flashdrive
sudo chown xbian:xbian /media/flashdrive
sudo chmod 777 /media/flashdrive
mv /home/xbian/downloads /media/flashdrive
ln -s /media/flashdrive/downloads /home/xbian/downloads

Great! Thanks, I will try that.

With regards to your question on automating downloads... Not sure what type of files you want to download, but Sickbeard automates tv show downloads, Couch Potato automates movie downloads and Headphones automates music album downloads. I'm not sure about Headphones and Couch Potato, but I know that Sickbeard works with newsservers as well as torrents. See the post earlier in this thread about getting a custom torrent provider (Kickass Torrents) working with Sickbeard. I'm busy setting up my Raspberry Pi as a media, print and download server. I'm not that familiar with linux so its taking me a while to get everything working. XBMC and the printer are working great so far. Smile
Maybe I must explain again what I need with more words and examples Smile
I have a rss feed with address like this:
Code:
http://site.com/rssdd.xml:COOKIE:uid=1425362;pass=fb76d7cb.....bd434;usess=1289.....9895
uTorrent every 30 mins refreshes feed and search there for torrents with <name>+720p OR <name1>+720p and then it downloads this torrents to name dir or name1 dir.
How to do something like this on my pi?
Why not a script (python , bash or what you want),
that parse the xml and add torrent to transmission folder.

And use a cronjob.
@belese
You said it as if it is easy for everyone.
Anyway, apps from the FP cant do what I want, right?
Perhaps this is a stupid question, but what kind of download speeds are you guys getting on your rpis? NzbGet tops out at about 50kbs for me
@okinomo
More than 2Mb/s over wifi (usb hdd, ext4) (transmission) (turbo OC mode)
I'm connected through Ethernet usb hdd, and ext4.
Is ethernet my problem?
Ethernet is definitely not the problem.
Is there a big difference with the speed u achieve on your desktop/laptop?
My laptop maxes out at about 500kb/s. That’s why I was confused. I'm considering just doing a fresh install of everything this weekend.
maybe you can try to reduce the load of the rpi and check your d/l speed, see if it improves. There shouldn't be such difference.
@okinomo
iperf can help you test network speed.
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13
Reference URL's