[GUIDE] Installing OwnCloud Server on My Book Live

If you want owncloud transfer or any NAS drive, put a network switch between your PC and your router and the NAS on the switch if you can as well. The switch packets are viewed as priority as switch traffic and both the PC and the router will transfer about 300x faster.   Just a fun little secret. 

Sorry for the question!

i am a linux newbie

the Code:

rm -f /var/lib/dpkg/info/wd-nas.*

removes the package references to the firmware.

Is there any need to put this references back again after installing owncloud?

Is there any problem afterwards to install new firmware from WD?

Thanks for all your efforts

hajo

hajos wrote:

Sorry for the question!

i am a linux newbie

the Code:

rm -f /var/lib/dpkg/info/wd-nas.*

removes the package references to the firmware.

 

Is there any need to put this references back again after installing owncloud?

Is there any problem afterwards to install new firmware from WD?

Thanks for all your efforts

hajo

As far as I can tell, there is no lasting effect from removing the links. Updates should actually recreate the links.

If you want to play it safe, you can move them instead of removing them. Make a directory and move them to it:

mkdir -p /backup/var/lib/dpkg/info/
mv /var/lib/dpkg/info/wd-nas.* /backup/var/lib/dpkg/info/

 To restore them again, simply

mv /backup/var/lib/dpkg/info/wd-nas.* /var/lib/dpkg/info/

 —

wdlive76 wrote:

I love this install guide for owncloud. But it has created a small problem for me.  I am trying to run both owncloud and a https webserver at the same time. There seems to be some sort of problem that both cannot run at the same time.

i have:

https://mybooklive/owncloud  for owncloud

https://mybooklive/   for teh webserver

with the webserver installed, i get a 404 error from the browser when i try to access owncloud. 

Is it something with using the same port?  Any ideas are appreciated.

 It really depends on how you have the webserver set up. Owncloud and the WD NAS UI both run on the same webserver, already bound to the http(/https?) ports. If you wanted to run another, you would have to assign it different ports.


Sorry I’ve been gone a while - I was on vacation, and the backwoods of Virginia aren’t big on having internet access. I felt like I was being held hostage in the dark ages.

nicopizza wrote:

ok, apparently there are issues with webDAV authentication.

I can access owncloud on http://mybooklive/owncloud/ but cannot map the drive or use the desktop sync client. The issue is with webDAV authentication. Probably on the server the WebDAV module is interfering with owncloud’s built-in WebDAV module…

This is the message:

 

(I get the same message when i use http://)

 

I have found these notes: http://forum.owncloud.org/viewtopic.php?f=17&t=7536 , but could not decide what to do…

Any help is greatly appreciated!

 

(PS: should I start a new thread for problems related to running ownCloud on MBL, and leave this only to installation issues?)

I wish I had an explanation, but I have not been able to replicate the issue. Are you still having this problem? It’s been a while…

Great post!

However after intalling owncloud i decided that i do not want it anymore. My goal was to setup a file syncronization server in my MBL.  Desite the fact that owncloud is awesome  yet i found it overkill for what i need and i want.

After reading several and valuable post in this thread i discovered btsync,  that seems to be perfect for what i want, with a minuscule footprint .

So, can please someone tell me how to revert back the changes , like wich packages can i remove using apt get?

this post might help: http://community.wd.com/t5/My-Book-Live/rolling-back-to-plain-latest-firmware-removing-custom-installs/m-p/579433#M23837

Just a note on btsync: is it really “minuscule footprint”? I mean, it is a very small file, but in my experience it consumes way too much CPU and bandwidth!!! So much that MBL is not sleeping anymore, and my tabletPC is heating up way too much…

I am using btsync at present, but seriously thinking of replacing it with some other “less demanding” piece of software.

Concerning the bandwidth you can set the limits of downloads and upload rates at both ends. This should impact the cpu usage too.

Also, since the btsync uses a bit torrent protocol, the QoS of some routers might be giving too much bandwidth priority to the sync

Furthermore, you can assign a very low cpu priority to the btsync executable in the MBL so it does not interferes with other important process .

Regarding the sleep issue. It seems to be a problem for all NASes . I am investigation workarounds for this issue like assigning low IO priority to the btsync executable in the MBL and assigning read only ‘secret’  access to the NAS. Last night my MBL was able to sleep like a baby all night (blue led) even with the btsync running. I need to test it more to be sure it really works

Keep in mind that the MBL doesn’t have much of a CPU, so any impact is significant.

Also, there isn’t really any workaround for the sleep issue. When the MBL goes to “sleep”, it’s not really “sleep” in the traditional sense. All the processes that were running when it was awake continue running when its asleep; the MBL powers down the HDD and the OS essentially runs from RAM. As long as none of the active processes need to access the disk, they don’t need to be powered up. When an application (such as btsync, nas, or httpd) requests file access, the HDD is spun back up.

Depending on how btsync works, it may or may not allow the MBL to sleep for long periods. As long as it doesn’t need to constantly access the filesystem, there shouldn’t be a problem. But I doubt that’s the case. The btsync client was most likely inactive or inoperative while the MBL was asleep. Perhaps it deactivates if no other clients are active? Not a clue. But ‘secret’ access wouldn’t solve the problem. The disks still have to be spinning to read the data from them, no matter how covertly you try to access them. It’s just not how it works.

it would be nice to know some tricks and tweaks to make btsync a little lighter on CPU and bandwidth.

on btsync forums there are plenty of people complaining about this… I did myself a check, monitoring bandwidth and CPU usage on my btsync which was syncing two EMPTY folders: I could not believe the amount of bandwidth and CPU used just for the two devices (my PC and MBL) asking each other: “are you there?”

I believe it is to blame on the P2P nature of btsync, but I am not an expert on this… I asked the bt guys for an option for LAN only use (I use VPN anyways to access MBL from outside LAN), but I don’t believe it will ever happen…

Anyways, keep us posted (or post on the btsync official forum) if you can share some tweaks!

Mmm, try these setting on the MBL btsync

“lan_encrypt_data” = false,

“rate_limit_local_peers” : true,
“lan_use_tcp” : true,

And set the download upload limits too. All this  should reduce the cpu and bandwidth  usage a big deal on the nas cpu.

Also try this in the MBL btsync settings

“use_relay_server” : false,
“use_tracker” : false,
“use_dht” : false,
“search_lan” : true,

That should force  btsync to only listen to local connections   And of course use the lastest build.

EDIT:

Yes, i just cheked it out and the btsync process is using only %2 of the cpu at 1MB/s download limit on the MBL. Neat. 

thanks for the tips… perhaps we should start a dedicated thread to BTSync on MBL…

oh, if you installed Webmin on your MBL, you should also be able to set the priority of the task btsync and thus its weigh on MBL CPU… unfortunately last time Webmin caused me some troubles, so now I do not have it on MBL, but if MBL is not going to sleep with your tips, I guess I will have to reinstall Webmin…

nissan wrote:

Mmm, try these setting on the MBL btsync

 

“lan_encrypt_data” = false,

“rate_limit_local_peers” : true,
“lan_use_tcp” : true,

 

where do I find these settings on the MBL btsync? I can see them on the desktop app, but not on the webUI…

I posted an installation script, check it out if you are insterested

http://community.wd.com/t5/My-Book-Live/BitTorrent-Sync-installation-script/td-p/588057

nissan wrote:

I posted an installation script, check it out if you are insterested

 

http://community.wd.com/t5/My-Book-Live/BitTorrent-Sync-installation-script/td-p/588057

Great. Now it has it’s own post, stop hijacking mine.

Thanks

Edit: Cranky, long day. But the message is still valid - no hijacking. It’s rude.

sorry 'bout that… it is just that owncloud with btsync would make for a real replacement for dropbox or skydrive!

owncloud desktop sync app is very bad, and btsync could well replace it.

Have you tried barracuda drive? I just discovered it yesterday and  it looks much more  lightweight and faster than owncloud. The installation  was very easy since they provide a dedicated installer for the MBL. It is easy to uninstall too

Alright. I’m very sorry if I didn’t read through everything, because I’m honestly in over my head here. This is uncharted territory without a map! So, if a gentle soul would help a noob out, I would be oh so greatful.

Now…

I ran the “first series of commands” that was put up, and wound up with this:

(blah, blah, blah)

The following NEW packages will be installed:
  fontconfig-config libdb5.1 libfontconfig1 libgd2-xpm libicu48 libjpeg8
  liblzma5 libonig2 libqdbm14 libssl1.0.0 libtinfo5 libxpm4 php-pear
  php-xml-parser php5-gd php5-intl ttf-dejavu-core
The following packages will be upgraded:
  libapache2-mod-php5 libpcre3 libsqlite3-0 libxml2 php-apc php5 php5-cli
  php5-common php5-curl php5-sqlite psmisc zlib1g
12 upgraded, 17 newly installed, 0 to remove and 298 not upgraded.
Need to get 17.3MB of archives.
After this operation, 40.3MB of additional disk space will be used.
Do you want to continue [Y/n]? Y
Abort.
SuperMegaDrive:~#

My reaction would be:

. . .   O _____O

What am I missing? I just want ownCloud on MyBook Live™.

Thank you kind folk.

jgh001a wrote:

My reaction would be:

 

. . .   O _____O

 

That pretty much sums up my reaction.

Maybe you are out of space on the partition? What is the output if you run

df -h

 ?

nissan wrote:

Have you tried barracuda drive? I just discovered it yesterday and  it looks much more  lightweight and faster than owncloud. The installation  was very easy since they provide a dedicated installer for the MBL. It is easy to uninstall too

I’m going to try it now. And they have an MBL-specific version.

EDIT: Looking over the installer, I’m not entirely sure it’s the best solution. If you have a stock MBL, it will not cause any issues. If you have made any customizations, the installer will almost certainly break things.

Thank you, the guide is fantastic. I’ve followed the guide and installed owncloud successfully. I did get the php-gd error but I reinstalled it (using addchild314’s command) and everything works perfectly.