soliblitz.blogg.se

Owncloud in a box
Owncloud in a box










owncloud in a box
  1. #Owncloud in a box install#
  2. #Owncloud in a box code#
  3. #Owncloud in a box series#
  4. #Owncloud in a box download#

#Owncloud in a box code#

Ln -s /DataVolume/owncloud_data /var/Thanks to nfodiz!ĮDIT: Simplified the code and script a bit, based on suggestions. Mv /var/www/owncloud/data /DataVolume/owncloud_datachgrp www-data /DataVolume/owncloud_datachmod 770 /DataVolume/owncloud_data (After stopping Apache) /etc/init.d/apache2 stop To do this, we need to make a folder, accessible to OwnCloud, move all the data to it, then create a symbolic link. We need to move it to the larger Data partition. The data is stored on the OS partition, currently. Restart Apache and remove the web root write permissions /etc/init.d/apache2 restartchmod g-w /var/www Ln -s /DataVolume/owncloud_data /var/www/owncloud/data Mv /var/www/owncloud/data /DataVolume/owncloud_data #!/bin/bash#check that requirements are fullfilled With your favorite text editor (I use nano ) or winSCP, edit /etc/apache2/sites-enabled/000-wdnas AND /etc/apache2/sites-enabled/000-wdnas-ssl There is one configuration each for normal http and SSL https. We need to edit the apache configuration.

owncloud in a box

Once you have OwnCloud set up, it’s time to finalize the backend stuff. You will likely recieve a warning about your data being available to the internet. It may not be necessary, but it helps with security a bit, at least.

#Owncloud in a box install#

I had it install to the subdirectory owncloud. In your web browser, navigate to and follow the instructions. We now need to make sure it has write permission to the directory (temporarily) chgrp www-data /var/www

#Owncloud in a box download#

This part is easy.įrom the SSH session, cd to the web root and download the setup file: cd /var/www/wget -no-check-certificatechmod 755 setup-owncloud.php Do not overwrite the existing files.Īfter the packages have been installed, it is time to install owncloud. That is what you want to do accept the default suggestion.

owncloud in a box

The default option is to keep the current version. (If you like, you can add them) At a couple points, it will ask if you want to overwrite a file (a couple ini files). This happens because the signature keys for the Debian repositories are not present. It may ask if you want to install “unverified” files. apt-get install php5 php5-gd php-xml-parser php5-intl zlib1gĪnswer Y to the installation prompts. This includes an updated PHP5, in addition to a few libraries and modules. Next, we install the pre-requisite packages for OwnCloud. The first two lines are the important ones.) (The lines starting with the hash are not required - they are commented out. Or, just edit it to look like this: deb squeeze main With your favorite text editor, (nano vim, in my case) open /etc/apt/sources.listĮdit your file so that the only active sources are the squeeze sources. We need to configure the package repository source list. This removes the package references to the firmware. Fix this by running this command: rm -f /var/lib/dpkg/info/wd-nas.* When using apt-get to install new packages, it will throw a TON of errors, due to conflicts. This is a step that I have not seen mentioned anywhere except a single WD support page. The first step is to prepare the system for new software. Read -p "Do you understand and wish to continue? " -n 1Īpt-get install php5 php5-gd php-xml-parser php5-intl zlib1gĮcho -ne "Packages Installed.

owncloud in a box

#Owncloud in a box series#

Here is a script for running the first series of commands automatically.Įcho -e “this script must be run as root.\n”Įcho -n "Removing WD-NAS Package References…"Įcho "When prompted to install packages or unverified packages, answer Y to both prompts."Įcho "When prompted to overwrite files, choose NOT to overwrite them."Įcho "Overwriting the files may cause your system to bleep. Or Log in as root via SSH (Use PuTTy or similar). Do this from the settings menu in the MBL UI.

  • Make sure you are on the most recent firmwareįirst, you need to enable SSH.
  • If you are not careful, you will brick your box, and bricks are terrible servers.
  • You will be working with the command line and root access.
  • It’s completely free, if you host it yourself.Īs it turns out, the WD My Book Live isn’t a terrible platform to host it on. OwnCloud is server application that provides Dropbox or Skydrive-like capabilities, using your own hardware.












    Owncloud in a box