qBittorrent, headless, on a Raspberry Pi

Linux specific questions, problems.
Post Reply
munificent

qBittorrent, headless, on a Raspberry Pi

Post by munificent »

Hi there,

I read the article on the Wiki about running a headless server and the various steps needed to compile this version of the qBittorrent client. Though I am no Linux expert, I went over it step by step but sadly the act of compiling did not work. Whether this is due to the SD card nature of Raspbian or the limitations of the Pi itself, I do not know, but what I do know is that I am no closer to my goal.

So, my question would be: is there anywhere a headless version of qBittorrent that I can run from the WebUI from my Raspberry Pi? Has anyone else succeeded with this approach, and if so, what was your secret? It seems like this should be fairly straightforward to do, but that's not much not comfort  :-\

Thanks.
User avatar
Peter
Administrator
Administrator
Posts: 3046
Joined: Wed Jul 07, 2010 6:14 pm

Re: qBittorrent, headless, on a Raspberry Pi

Post by Peter »

Of course you can run it on the raspberry.
Could you paste here the error/compilation log?
sledgehammer_999
Administrator
Administrator
Posts: 2443
Joined: Sun Jan 23, 2011 1:17 pm

Re: qBittorrent, headless, on a Raspberry Pi

Post by sledgehammer_999 »

I don't know how Raspbian works but does it use debian's repos or does it have its own?
If it uses Debian's, then libtorrent 0.16.10 is in unstable and qbittorrent-nox 3.0.9 is in experimental. (-nox is the headless version)

If it doesn't use Debian's repos, then can you tell us more how the build fails? What messages are you getting? Which version are you trying to compile?
loki

Re: qBittorrent, headless, on a Raspberry Pi

Post by loki »

There is a Debian flavor for raspberry pi, that's most likely the easiest way to get qbit for it.
http://www.raspbian.org/ "wheezy" This site actually redirects back to the http://www.raspberrypi.org/downloads for the recommended build specifically for/from the pi.

Then its just a matter of updating from the repos.
munificent

Re: qBittorrent, headless, on a Raspberry Pi

Post by munificent »

I was not able to get error logs for the build because it eventually hung the Pi as it tried to compile. It seemed to me (bear in mind this was my first time attempt at compiling) that it got progressively slower and slower as it went on. I was following the wiki guide for compiling a headless version to the letter. It was after several hours of trying to follow through on the command:

./configure --disable-debug --prefix=/usr && make clean && make

That the Pi gave up. If you could let me know how to make an external log I could try and compile it again and paste the results, but it would most likely be a long log as there were a lot of 'architecture' errors (which I understand are normal)

Raspbian does indeed run on wheezy as a base, Loki, when you say that I should get it from the repos - and excuse my ignorance here - are you talking about apt-get? Because I tried that and it told me there was no such package.
munificent

Re: qBittorrent, headless, on a Raspberry Pi

Post by munificent »

Ok I take back the bit about the repos. I just did apt-get and it installs on the Pi via that route. I must have made a typo or something daft like that. That's positive.

But running it headless is still an issue. The regular install is asking for an X server. The compile it headless route is not compiling. I'm still stuck  :-\
sledgehammer_999
Administrator
Administrator
Posts: 2443
Joined: Sun Jan 23, 2011 1:17 pm

Re: qBittorrent, headless, on a Raspberry Pi

Post by sledgehammer_999 »

Code: Select all

sudo apt-get install qbittorrent-nox
qbittorrent-nox is the headless version and it should not depend on anything related to X or graphics
loki

Re: qBittorrent, headless, on a Raspberry Pi

Post by loki »

Sorry pointed you to the wrong name, yes I was referring to apt-get or synaptic... or whatever you use to update/install/manage packages.
What he said and you should be all set, probably remove the (regular) qbittorrent package too.
munificent

Re: qBittorrent, headless, on a Raspberry Pi

Post by munificent »

This works a treat and gets me where I wanted to be when I posted this thread. Seems the only thing I was missing was to realise that the nox branch was the one I needed to use.

As a sidenote to the solved question, my setup of having qbt saving to a network location and using a Socks 5 Proxy server for all peer traffic is one that the Pi struggles to process. If anyone else was thinking of trying the same thing, my experience is that it is asking too much of such a low-powered device to handle that specific setup.
sledgehammer_999
Administrator
Administrator
Posts: 2443
Joined: Sun Jan 23, 2011 1:17 pm

Re: qBittorrent, headless, on a Raspberry Pi

Post by sledgehammer_999 »

Just so you know socks5 proxies has some problems before libtorrent 0.16.11. 0.16.11 claims to fix those. So upgrade and try again.
loki

Re: qBittorrent, headless, on a Raspberry Pi

Post by loki »

Do you need to use a proxy server? The only way I would have thought to use this feature would be in-network or local "intranet"

I really ought to check out one of these Pi devices myself, been really interested in all it's capable of for a year now.
User avatar
Peter
Administrator
Administrator
Posts: 3046
Joined: Wed Jul 07, 2010 6:14 pm

Re: qBittorrent, headless, on a Raspberry Pi

Post by Peter »

Raspberry Pi is an overhyped piece of shit. I mean, no offense.
It is.

Basically it's an ultra-slow/ultra-weak ARM device, which is deprecated.
You can get Chinese/Eastern SOC chips (which look just like the Pi) for cheaper/same price. Which are even stronger.

You can buy an Exynos fitted one with 2gigs of memory.
munificent

Re: qBittorrent, headless, on a Raspberry Pi

Post by munificent »

No offence taken. I don't know enough about the market to buy any smarter, and the Pi seems to be very capable for what it is. It's just that it doesn't do well as a proxied up headless torrent machine.

And loki, I want the proxy up for privacy.
User avatar
Peter
Administrator
Administrator
Posts: 3046
Joined: Wed Jul 07, 2010 6:14 pm

Re: qBittorrent, headless, on a Raspberry Pi

Post by Peter »

Speed is an important factor even with torrent.
I can max out my Atom based machine with downloads. And it's running Linux, headless. (Windows was a bit worse.)
You could[b/] buy such a newer device, but torrent and other apps are single threaded.
Your best bet is a used Atom motherboard. They sell for real cheap. (less than 50$.)

By the way, the Pi is good for hardware development. The ports on it lets people develop.
But I'm mad at people who have nothing to do with programming, and boast their stupid creations.
"Look mum, I can turn on muh microwave with da computar!"
This been available/possible since we had circuit boards.

So it's not you, not all the Pi owners, just most of them.
(I bet you saw such articles/projects.)
Post Reply