Cozy on Raspberry Pi
Manage Cozy from the Command Line
Although you can perform basic housekeeping tasks using Cozy's graphical interface, you can manage your Cozy installation from the command line using the dedicated cozy-monitor
tool. To begin, connect to the Raspberry Pi running Cozy via SSH and run the
sudo cozy-monitor status
command to view the status of all installed apps. The commands
sudo cozy-monitor stop <app> sudo cozy-monitor restart <app>
commands can be used to stop and restart a specific app. For example, to restart Cozy, use the command:
sudo cozy-monitor restart-cozy-stack
Cozy uses a CouchDB database as its storage back end, and several commands come in useful when working with the database, such as
sudo cozy-monitor compact cozy sudo cozy-monitor cleanup cozy
commands to compact and clean up the default cozy
database.
By default, all your data (file, photos, etc.) is stored in the /usr/local/var/lib/couchdb/
directory, but you can move it to another location (e.g., a mounted external USB hard disk). To do this, open the local.ini
file in the Nano editor
sudo nano /usr/local/etc/couchdb/local.ini
and add the following segment:
[couchdb] database_dir = /home/pi/cozy-data view_index_dir = /home/pi/cozy-data
In this case, the cozy-data
folder for storing Cozy data will reside in the /home/pi
directory, but you can specify another destination.
sudo supervisorctl stop couchdb mkdir /home/pi/cozy-data/ cp /usr/local/var/lib/couchdb/* \ /home/pi/cozy-data/ sudo chown -R couchdb:couchdb \ /home/pi/cozy-data/ supervisorctl start couchdb
The preceding commands enable the changes.
Final Word
There are many ways to build and deploy a personal cloud server, but if you want to do it with a minimum of effort, you can't go wrong with Cozy. This platform is easy to deploy, user-friendly, and its functionality can be extended using a growing selection of apps. What's not to like?
Infos
- Cozy: http://cozy.io
- DAVdroid: http://davdroid.bitfire.at
- DAVdroid on F-Droid: http://f-droid.org/repository/browse/?fdid=at.bitfire.davdroid
- CAdroid: http://cadroid.bitfire.at
- Calendar Synchronization with DAVdroid: http://cozy.io/en/mobile/calendar.html
« Previous 1 2 Next »
Buy this article as PDF
Pages: 6
(incl. VAT)