Page 1 of 1

[GUIDE] qBittorrent on WD My Cloud

Posted: Fri Jul 18, 2014 5:49 am
by JoaquinAR
Hi. I thought this might help and/or encourage other users.

I have it working on My Cloud since some days ago. Works better than Transmission (though it doesn't have remote clients for Windows/Windows Phone, hope that changes soon and let me know if you want beta testers).

Quick guide disclaimer: I don't take responsibilities if your disk gets bricked, your pet attacks you or your girlfriend leaves.

Pre-requirements: Enable and login into SSH with root user (default password is welc0me).

Attention: It will only work on 3.x firmware version. It won't work on 4.x firmware and it will probably cause a lot of damage to it. You can compile it for firmware 4.x but look on WD Forums on how to do that.


Backup your sources.list:
cp /etc/apt/sources.list /etc/apt/sources.list.bak
Add the sid repo to sources.list:
echo deb http://ftp.us.debian.org/debian/ sid main >> /etc/apt/sources.list
Update the sid packages list:
apt-get update
Install qBittorrent:
apt-get install qbittorrent-nox
Install Jakster's script to run qBittorrent on startup:
wget -O /etc/init.d/qbittorrent-nox-daemon http://launchpadlibrarian.net/38905385/qbittorrent
Set Jackster's script to automatically run qBittorrent on startup:
chmod 755 /etc/init.d/qbittorrent-nox-daemon
update-rc.d qbittorrent-nox-daemon defaults
Move back your original sources.list:
mv -f /etc/apt/sources.list.bak /etc/apt/sources.list
Start qBittorrent:
/etc/init.d/qbittorrent-nox-daemon start
Access and configure qBittorrent from within web UI. You need to change two things there:
  • "Save files to location" (inside Downloads tab), set it up to /DataVolume/shares/Public and then whatever folder you want to download your files to. For example /DataVolume/shares/Public
  • Disable "Pre-allocate disk space for all files" since it'll probably cause qBittorrent to return error for large torrents.
Should you want to stop qBittorrent:
/etc/init.d/qbittorrent-nox-daemon stop
Should you want to remove qBittorrent auto-start:
update-rc.d -f qbittorrent-nox-daemon remove
Should you want to uninstall qBittorrent:
apt-get remove qbittorrent-nox
Any improvement will gonna be welcome. Good luck!

Re: [GUIDE] qBittorrent on WD My Cloud

Posted: Sun Oct 25, 2015 10:21 am
by Zapa
I'm trying to make this to work but found a lot of errors and now I think I broke the SO  :-[

Here's what I got

Code: Select all

ZapaCloud:~# cp /etc/apt/sources.list /etc/apt/sources.list.bak
ZapaCloud:~# echo deb http://ftp.us.debian.org/debian/ sid main >> /etc/apt/sour           ces.list
ZapaCloud:~# apt-get update
Ign http://ftp.us.debian.org wheezy InRelease
Get:1 http://ftp.us.debian.org sid InRelease [256 kB]
Get:2 http://ftp.us.debian.org wheezy Release.gpg [2373 B]
Get:3 http://ftp.us.debian.org sid/main Translation-en [5147 kB]
Get:4 http://ftp.us.debian.org wheezy Release [191 kB]
Get:5 http://ftp.us.debian.org sid/main armhf Packages [7576 kB]
Get:6 http://ftp.us.debian.org wheezy/main armhf Packages [5686 kB]
Get:7 http://ftp.us.debian.org wheezy/main Translation-en [3846 kB]
Fetched 22.7 MB in 1min 8s (331 kB/s)
Reading package lists... Done
W: There is no public key available for the following key IDs:
7638D0442B90D010
W: There is no public key available for the following key IDs:
7638D0442B90D010
W: Ignoring Provides line with DepCompareOp for package libjpeg62
W: Ignoring Provides line with DepCompareOp for package php-psr-http-message-implementation
W: Ignoring Provides line with DepCompareOp for package php-psr-log-implementation
W: Ignoring Provides line with DepCompareOp for package php-math-biginteger
W: Ignoring Provides line with DepCompareOp for package pypy-cffi
W: Ignoring Provides line with DepCompareOp for package pypy-cffi-backend-api-max
W: Ignoring Provides line with DepCompareOp for package pypy-cffi-backend-api-min
W: Ignoring Provides line with DepCompareOp for package python-cffi-backend-api-max
W: Ignoring Provides line with DepCompareOp for package python-cffi-backend-api-min
W: Ignoring Provides line with DepCompareOp for package python3-cffi-backend-api-max
W: Ignoring Provides line with DepCompareOp for package python3-cffi-backend-api-min
ZapaCloud:~# apt-get install qbittorrent-nox
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following package was automatically installed and is no longer required:
  libgssglue1
Use 'apt-get autoremove' to remove it.
The following extra packages will be installed:
  ca-certificates gcc-5-base geoip-database libboost-system1.58.0 libc-bin libc6 libgcc1
  libgeoip1 libgssapi-krb5-2 libk5crypto3 libkeyutils1 libkrb5-3 libkrb5support0
  libqt4-network libqt4-xml libqtcore4 libqtdbus4 libstdc++6 libtirpc1
  libtorrent-rasterbar8 nfs-common nfs-kernel-server qtcore4-l10n
Suggested packages:
  glibc-doc locales geoip-bin krb5-doc krb5-user libicu52 libthai0
  libtorrent-rasterbar-dbg open-iscsi watchdog qbittorrent-dbg
The following packages will be REMOVED:
  gcc-4.7-base
The following NEW packages will be installed:
  ca-certificates gcc-5-base geoip-database libboost-system1.58.0 libgeoip1
  libqt4-network libqt4-xml libqtcore4 libqtdbus4 libtorrent-rasterbar8 qbittorrent-nox
  qtcore4-l10n
The following packages will be upgraded:
  libc-bin libc6 libgcc1 libgssapi-krb5-2 libk5crypto3 libkeyutils1 libkrb5-3
  libkrb5support0 libstdc++6 libtirpc1 nfs-common nfs-kernel-server
12 upgraded, 12 newly installed, 1 to remove and 260 not upgraded.
Need to get 14.7 MB of archives.
After this operation, 22.8 MB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://ftp.us.debian.org/debian/ sid/main libkeyutils1 armhf 1.5.9-8 [11.4 kB]
Get:2 http://ftp.us.debian.org/debian/ sid/main libk5crypto3 armhf 1.13.2+dfsg-2 [111 kB]
Get:3 http://ftp.us.debian.org/debian/ sid/main libgssapi-krb5-2 armhf 1.13.2+dfsg-2 [131 kB]
Get:4 http://ftp.us.debian.org/debian/ sid/main libkrb5support0 armhf 1.13.2+dfsg-2 [55.7 kB]
Get:5 http://ftp.us.debian.org/debian/ sid/main libkrb5-3 armhf 1.13.2+dfsg-2 [264 kB]
Get:6 http://ftp.us.debian.org/debian/ sid/main nfs-kernel-server armhf 1:1.2.8-9 [103 kB]
Get:7 http://ftp.us.debian.org/debian/ sid/main nfs-common armhf 1:1.2.8-9 [189 kB]
Get:8 http://ftp.us.debian.org/debian/ sid/main libtirpc1 armhf 0.2.5-1 [69.9 kB]
Get:9 http://ftp.us.debian.org/debian/ sid/main libc6 armhf 2.19-22 [3946 kB]
Get:10 http://ftp.us.debian.org/debian/ sid/main libc-bin armhf 2.19-22 [1161 kB]
Get:11 http://ftp.us.debian.org/debian/ sid/main gcc-5-base armhf 5.2.1-22 [167 kB]
Get:12 http://ftp.us.debian.org/debian/ sid/main libstdc++6 armhf 5.2.1-22 [339 kB]
Get:13 http://ftp.us.debian.org/debian/ sid/main libgcc1 armhf 1:5.2.1-22 [38.8 kB]
Get:14 http://ftp.us.debian.org/debian/ sid/main libboost-system1.58.0 armhf 1.58.0+dfsg-3.1 [30.3 kB]
Get:15 http://ftp.us.debian.org/debian/ sid/main libgeoip1 armhf 1.6.6-1+b1 [95.9 kB]
Get:16 http://ftp.us.debian.org/debian/ sid/main libtorrent-rasterbar8 armhf 1.0.6-2+b1 [980 kB]
Get:17 http://ftp.us.debian.org/debian/ sid/main ca-certificates all 20150426 [208 kB]
Get:18 http://ftp.us.debian.org/debian/ sid/main geoip-database all 20151008-1 [1526 kB]
Get:19 http://ftp.us.debian.org/debian/ sid/main qtcore4-l10n all 4:4.8.7+dfsg-3 [662 kB]
Get:20 http://ftp.us.debian.org/debian/ sid/main libqtcore4 armhf 4:4.8.7+dfsg-3 [1400 kB]
Get:21 http://ftp.us.debian.org/debian/ sid/main libqt4-xml armhf 4:4.8.7+dfsg-3 [127 kB]
Get:22 http://ftp.us.debian.org/debian/ sid/main libqtdbus4 armhf 4:4.8.7+dfsg-3 [199 kB]
Get:23 http://ftp.us.debian.org/debian/ sid/main libqt4-network armhf 4:4.8.7+dfsg-3 [523 kB]
Get:24 http://ftp.us.debian.org/debian/ sid/main qbittorrent-nox armhf 3.2.3-2 [2368 kB]
Fetched 14.7 MB in 17s (855 kB/s)
Preconfiguring packages ...
dpkg: warning: files list file for package 'libssh2-1:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libxau6:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'liblockfile1:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libkrb5-3:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libwrap0:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libtagc0:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libcap2:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libglib2.0-0:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libgphoto2-port0:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libpng12-0:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libtalloc2:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libevent-2.0-5:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libedit2:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libldap-2.4-2:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libavahi-client3:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libgphoto2-2:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libtag1c2a:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'liblua5.1-0:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libpkcs11-helper1:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libpcre3:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libavahi-common3:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libsensors4:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libx11-6:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libnfsidmap2:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libbsd0:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libavahi-common-data:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libjpeg8:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libsasl2-2:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libcurl3:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libtirpc1:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libkrb5support0:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'librtmp0:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libpcap0.8:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libdevmapper1.02.1:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libexpat1:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libltdl7:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libkeyutils1:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libreadline5:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libantlr3c-3.2-0:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libasound2:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libxcb1:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libtdb1:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libxpm4:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libtag1-vanilla:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'liblzo2-2:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libogg0:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libfontconfig1:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libmagic1:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libk5crypto3:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libgssglue1:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libunistring0:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libwbclient0:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libfuse2:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libgssapi-krb5-2:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libparted0debian1:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libgd2-xpm:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libconfuse0:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libexif12:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libffi5:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libflac8:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libdbus-1-3:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libxml2:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libfreetype6:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libxdmcp6:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libpam-cap:armhf' missing; assuming package has no files currently installed
(Reading database ... 24499 files and directories currently installed.)
Preparing to replace libkeyutils1:armhf 1.5.5-3 (using .../libkeyutils1_1.5.9-8_armhf.deb) ...
Unpacking replacement libkeyutils1:armhf ...
Preparing to replace libk5crypto3:armhf 1.10.1+dfsg-3 (using .../libk5crypto3_1.13.2+dfsg-2_armhf.deb) ...
Unpacking replacement libk5crypto3:armhf ...
Preparing to replace libgssapi-krb5-2:armhf 1.10.1+dfsg-3 (using .../libgssapi-krb5-2_1.13.2+dfsg-2_armhf.deb) ...
Unpacking replacement libgssapi-krb5-2:armhf ...
Preparing to replace libkrb5support0:armhf 1.10.1+dfsg-3 (using .../libkrb5support0_1.13.2+dfsg-2_armhf.deb) ...
Unpacking replacement libkrb5support0:armhf ...
Preparing to replace libkrb5-3:armhf 1.10.1+dfsg-3 (using .../libkrb5-3_1.13.2+dfsg-2_armhf.deb) ...
Unpacking replacement libkrb5-3:armhf ...
Preparing to replace nfs-kernel-server 1:1.2.6-3 (using .../nfs-kernel-server_1%3a1.2.8-9_armhf.deb) ...
Unpacking replacement nfs-kernel-server ...
dpkg: error processing /var/cache/apt/archives/nfs-kernel-server_1%3a1.2.8-9_armhf.deb (--unpack):
 trying to overwrite '/etc/init.d/nfs-kernel-server', which is also in package nfs 01.00.00-107525
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
[ ok ] Stopping NFS kernel daemon: mountd nfsd.
[ ok ] Unexporting directories for NFS kernel daemon....
[ ok ] Exporting directories for NFS kernel daemon....
[ ok ] Starting NFS kernel daemon: nfsd mountd.
dpkg: considering deconfiguration of nfs-kernel-server, which would be broken by installation of nfs-common ...
dpkg: yes, will deconfigure nfs-kernel-server (broken by nfs-common)
Preparing to replace nfs-common 1:1.2.6-3 (using .../nfs-common_1%3a1.2.8-9_armhf.deb) ...
De-configuring nfs-kernel-server ...
Unpacking replacement nfs-common ...
dpkg: error processing /var/cache/apt/archives/nfs-common_1%3a1.2.8-9_armhf.deb (--unpack):
 trying to overwrite '/etc/default/nfs-common', which is also in package nfs 01.00.00-107525
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
[ ok ] Stopping NFS kernel daemon: mountd nfsd.
[ ok ] Unexporting directories for NFS kernel daemon....
[ ok ] Exporting directories for NFS kernel daemon....
[ ok ] Starting NFS kernel daemon: nfsd mountd.
[ ok ] Stopping NFS common utilities:.
[ ok ] Starting NFS common utilities:.
dpkg: considering deconfiguration of nfs-common, which would be broken by installation of libtirpc1:armhf ...
dpkg: yes, will deconfigure nfs-common (broken by libtirpc1:armhf)
dpkg: considering deconfiguration of nfs-kernel-server, which would be broken by installation of libtirpc1:armhf ...
dpkg: yes, will deconfigure nfs-kernel-server (broken by libtirpc1:armhf)
Preparing to replace libtirpc1:armhf 0.2.2-5 (using .../libtirpc1_0.2.5-1_armhf.deb) ...
De-configuring nfs-kernel-server ...
De-configuring nfs-common ...
Unpacking replacement libtirpc1:armhf ...
Preparing to replace libc6:armhf 2.17-97 (using .../libc6_2.19-22_armhf.deb) ...
Checking for services that may need to be restarted...
Checking init scripts...
Unpacking replacement libc6:armhf ...
Processing triggers for libc-bin ...
Processing triggers for man-db ...
/usr/bin/perl: relocation error: /lib/arm-linux-gnueabihf/libc.so.6: symbol _dl_find_dso_for_object, version GLIBC_PRIVATE not defined in file ld-linux-armhf.so.3 with link time reference
dpkg: error processing man-db (--unpack):
 subprocess installed post-installation script returned error exit status 127
Errors were encountered while processing:
 /var/cache/apt/archives/nfs-kernel-server_1%3a1.2.8-9_armhf.deb
 /var/cache/apt/archives/nfs-common_1%3a1.2.8-9_armhf.deb
 man-db
E: Sub-process /usr/bin/dpkg returned an error code (1)
ZapaCloud:~# wget -O /etc/init.d/qbittorrent-nox-daemon http://launchpadlibrarian.net/38905385/qbittorrent
--2015-10-25 03:10:47--  http://launchpadlibrarian.net/38905385/qbittorrent
Resolving launchpadlibrarian.net (launchpadlibrarian.net)... 91.189.89.229, 91.189.89.228
Connecting to launchpadlibrarian.net (launchpadlibrarian.net)|91.189.89.229|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2527 (2.5K) [text/plain]
Saving to: `/etc/init.d/qbittorrent-nox-daemon'

100%[=================================================>] 2,527       --.-K/s   in 0s

2015-10-25 03:10:47 (38.0 MB/s) - `/etc/init.d/qbittorrent-nox-daemon' saved [2527/2527]

ZapaCloud:~# chmod 755 /etc/init.d/qbittorrent-nox-daemon
chmod: relocation error: /lib/arm-linux-gnueabihf/libc.so.6: symbol _dl_find_dso_for_object, version GLIBC_PRIVATE not defined in file ld-linux-armhf.so.3 with link time reference
ZapaCloud:~# update-rc.d qbittorrent-nox-daemon defaults
/usr/bin/perl: relocation error: /lib/arm-linux-gnueabihf/libc.so.6: symbol _dl_find_dso_for_object, version GLIBC_PRIVATE not defined in file ld-linux-armhf.so.3 with link time reference
ZapaCloud:~# chmod 755 /etc/init.d/qbittorrent-nox-daemon
chmod: relocation error: /lib/arm-linux-gnueabihf/libc.so.6: symbol _dl_find_dso_for_object, version GLIBC_PRIVATE not defined in file ld-linux-armhf.so.3 with link time reference
ZapaCloud:~# update-rc.d qbittorrent-nox-daemon defaults
/usr/bin/perl: relocation error: /lib/arm-linux-gnueabihf/libc.so.6: symbol _dl_find_dso_for_object, version GLIBC_PRIVATE not defined in file ld-linux-armhf.so.3 with link time reference
ZapaCloud:~# mv -f /etc/apt/sources.list.bak /etc/apt/sources.list
mv: relocation error: /lib/arm-linux-gnueabihf/libc.so.6: symbol _dl_find_dso_for_object, version GLIBC_PRIVATE not defined in file ld-linux-armhf.so.3 with link time reference
ZapaCloud:~# /etc/init.d/qbittorrent-nox-daemon start
-bash: /etc/init.d/qbittorrent-nox-daemon: Permission denied
ZapaCloud:~# sudo /etc/init.d/qbittorrent-nox-daemon start
sudo: relocation error: /lib/arm-linux-gnueabihf/libc.so.6: symbol _dl_find_dso_for_object, version GLIBC_PRIVATE not defined in file ld-linux-armhf.so.3 with link time reference
Dashboard was a mess after this and I've decided to reinstall firmware which was 03.04.01-230

Any ideas?

Re: [GUIDE] qBittorrent on WD My Cloud

Posted: Sun Oct 25, 2015 10:28 am
by Zapa
:( Image

And I can't access through Winscp nor putty

Re: [GUIDE] qBittorrent on WD My Cloud

Posted: Sun Oct 25, 2015 3:19 pm
by JoaquinAR
Hi Zapa,

I'm sorry but I got rid of the WD last year and moved onto Synology (far more stable, faster, more features, better software...).

Is strange that you can't access even console (WinSCP). It doesn't look good, to be honest... I recommend you to ask in the WD My Cloud forums. Sometimes, they provide useful information.

I hope it works!

Re: [GUIDE] qBittorrent on WD My Cloud

Posted: Sun Oct 25, 2015 3:43 pm
by Zapa
I come from there.  I also think that it I totally bricked when I decided to say "yes" after warning me for the dependencies.  The system "updated" acording to the sources list and of course... it broke.