Forum
[Part 2] Download torrent & newsserver package(s) - Printable Version

+- Forum (http://forum.xbian.org)
+-- Forum: Software (/forum-6.html)
+--- Forum: Additional Packages (/forum-22.html)
+--- Thread: [Part 2] Download torrent & newsserver package(s) (/thread-479.html)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13


RE: [Part 2] Download torrent & newsserver package(s) - Styler - 27th Feb, 2013 10:17 PM

(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?


RE: [Part 2] Download torrent & newsserver package(s) - kraleksandr - 28th Feb, 2013 12:35 AM

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



[Part 2] Download torrent & newsserver package(s) - Richdotward - 28th Feb, 2013 04:00 AM

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


RE: [Part 2] Download torrent & newsserver package(s) - CurlyMo - 28th Feb, 2013 04:05 AM

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


RE: [Part 2] Download torrent & newsserver package(s) - Styler - 28th Feb, 2013 05:20 AM

(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


RE: [Part 2] Download torrent & newsserver package(s) - kraleksandr - 28th Feb, 2013 05:52 AM

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?


RE: [Part 2] Download torrent & newsserver package(s) - belese - 28th Feb, 2013 07:00 AM

Why not a script (python , bash or what you want),
that parse the xml and add torrent to transmission folder.

And use a cronjob.


RE: [Part 2] Download torrent & newsserver package(s) - kraleksandr - 28th Feb, 2013 02:04 PM

@belese
You said it as if it is easy for everyone.
Anyway, apps from the FP cant do what I want, right?


RE: [Part 2] Download torrent & newsserver package(s) - okinomo - 28th Feb, 2013 11:55 PM

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


RE: [Part 2] Download torrent & newsserver package(s) - kraleksandr - 1st Mar, 2013 12:14 AM

@okinomo
More than 2Mb/s over wifi (usb hdd, ext4) (transmission) (turbo OC mode)


RE: [Part 2] Download torrent & newsserver package(s) - okinomo - 1st Mar, 2013 12:24 AM

I'm connected through Ethernet usb hdd, and ext4.
Is ethernet my problem?


RE: [Part 2] Download torrent & newsserver package(s) - Faaz0 - 1st Mar, 2013 12:30 AM

Ethernet is definitely not the problem.
Is there a big difference with the speed u achieve on your desktop/laptop?


RE: [Part 2] Download torrent & newsserver package(s) - okinomo - 1st Mar, 2013 12:34 AM

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.


RE: [Part 2] Download torrent & newsserver package(s) - Faaz0 - 1st Mar, 2013 12:44 AM

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.


RE: [Part 2] Download torrent & newsserver package(s) - kraleksandr - 1st Mar, 2013 12:46 AM

@okinomo
iperf can help you test network speed.