Skip to content
Kostas Giotis edited this page Sep 27, 2015 · 7 revisions

Running OwnCloud with dLimen

  1. Start dLimen by going to the cloned directory and running:
screen -d -m python /usr/local/bin/dlimen/server.py  

When you want to stop the dLimen service give the following command:

python /usr/local/bin/dlimen/client.py stop  
  1. Start the OwnCloud container with:
docker start owncloud  

and stop the container with

docker stop owncloud  

The first time you are going to login, you will be asked to enter a username and password for the admin account (you can also configure your database here, but by-default you start with SQLite).

Also, due to some bugs still present in the 1.0.1 version of docker, you may need to try and start the container a couple of times, before it actually starts.

Remember: It is advisable to first stop OwnCloud and then dLimen if you are going to halt the system.

Configurations and Notes

dLimen config file is found in the following folder: /usr/local/bin/dlimen/config.conf

  • In the pool_path variable in the config file of dLimen, the username has to be the same as your username in the OC database. ( /var/www/owncloud-data/username/files/pool/ )

  • When adding new external drives or USB sticks, simply restart OwnCloud container, or create a cronjob to periodically check for new files in the storage pools.

  • You can use the dLimen client found in the cloned directory, to control the dLimen serivce through the following commands:

    • get_pool_path : return the full path to where the pool is configured (initially /var/www/owncloud-data/owncloud/files/pool
    • get_pool_space : return the total free space of the pool (including local and external storage devices)
    • device_list : return a list of the devices that are currently composing the storage pool
    • get_disk_space : return the free space of a given member of the pool
    • done : terminate the dLimen service