[GUIDE] Installing OwnCloud Server on My Book Live

that’s cool! very easy… just one more question: how do you remove a symlink? let’s say I added the wrong share, how can I remove it, without deleting it from MBL?

I did the same last night. The easiest way is to first login to the MBL using WinSCP

Browse to /DataVolume/owncloud_data/YOUR USER NAME HERE/files/

You should find the wrong folder listed there with a little arrow on the bottom left of the icon

That is a symbolic link folder so just right click that folder and select delete

Then I think I had to restart apache for some reason as deleting the symlink seemed to cause issues with OwnCloud

/etc/init.d/apache2 restart

Then you can safely remove the folder in OwnCloud (as the link to the actual data isn’t there anymore) by ticking the box next to Name and clicking Delete

The delete will take several minutes as it is trying to delete something that isn’t there anymore. Then go to Deleted Files and tick the box and click delete there as well

thank you again!

that was easy, and it made me understand something more about Debian…

very nice!

I must admit that initially the desktop sync client did actually work on win 8… I even synced some folders for a whil. But eventually, when I tried to configure again my connection to owncloud, I connected to owncloud, but was not able to sync (not even to create a remote sync folder) because the credentials were “not correct”.

I understood almost right away that it was a webDAV issue (that is, the webDAV module of MBL is creating issues to the webDAV module used by owncloud [which uses Sabredav module]), since I was not able to connect to (or map) owncloud via webDAV through http://mybooklive/owncloud/remote.php/webdav. (see message 76 on this thread)

I tried to find some tips on the issue and found this page: http://forum.owncloud.org/viewtopic.php?f=17&t=7536&p=31503#p31503

There, on the comments there is a tip for persons working with apache:

“for apache users: <Location /var/www/owncloud> Dav Off disabled webdav only for your owncloud installation”

I was wondering if MBL uses mod_dav module, because in that case this should work aso for MBL…

anybody has any ideas on this problem?

EDIT: everything solved: I was using WRONG PASSWORD!!! SILLY ME!!!

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&nbsp; for owncloud

https://mybooklive/&nbsp;&nbsp; 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.

EDIT: i solved the conflict between webserver and owncloud by creating a virtual MBL with a different IP address and thus a different https port for remote access. The problem was that owncloud and webserver are using the same apache server.

If someone is interested (and for future reference) here there is an interesting “how to” integrate ownCloud with BT Sync: http://adammatthews.co.uk/2013/05/owncloud-bit-torrent-sync-dropbox-clone/ (it is Raspbian, but should not be very different from the MBL Debian)

Here how to install BT Sync on MBL: http://forum.bittorrent.com/topic/17214-help-installing-bt-sync-on-wd-mybook-live/

Anybody up to the task?!?

If anybody willing to try, please share your results!

ok, I installed BitTorrent Sync and I am using it in place of csync (ownCloud syncing client): I must say that there is no comparison between the two: BT Sync is MUCH faster and consumes FAR LESS CPU (csync was draining it!). Further, it does sync remotely (outside LAN) without requiring any port forwarding.

ownCloud webinterface shows the file changes I do on my PC almost right away (except when I am outside LAN). One thing I noticed, it does not save files deleted on desktop in the ownCloud webinterface files_trashbin… but I believe BT Sync does so, since I am seeing a .SincTrash folder…

Well, I almost feel as if I AM FINALLY READY TO REPLACE MY SKYDRIVE ACCOUNT!!!

I have always been very wary of web services like clouds (especially when they are “free” and they involve personal data)… I will not have all the powerful, collaborative, media-wise stuff of cloud such as Skydrive, Dropbox and the like, but I know where my files are and who is their (only) owner!

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&nbsp; for owncloud

https://mybooklive/&nbsp;&nbsp; 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