Skip to content
This repository has been archived by the owner on Jun 19, 2019. It is now read-only.

cozy/cozy-setup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Deprecated repository

Important: this repository is no longer maintained. If you want to install Cozy Cloud, it's explained on our website.

Cozy Makes Your Web Apps Smarter

Cozy Logo

Cozy is a platform that brings all your web services in the same private space. With it, your web apps and your devices can share data easily, providing you with a new experience. You can install Cozy on your own hardware where no one profiles you.

See our online demo to discover our applications.

Project Tickets

Install Cozy

Cozy Cloud is designed to be used remotely on your own server. So, this project contains what you need to achieve that goal (it only works for Debian/Ubuntu systems).

You will find all the steps to install Cozy on your platform on the project site.

Community

You can reach the Cozy community by:

  • chatting with us on IRC #cozycloud on irc.freenode.net
  • Posting on our Forum
  • Posting issues on the Github repos
  • Mentioning us on Twitter

Initial README.md

Install script status for Debian 6, Debian 7, Ubuntu 12.04 and Ubuntu 14.04.

How to install Cozy on your server?

On your local machine install Fabric and fabtools. For that purpose, be sure to have python and the pip tools on your machine. For instance, if you're on a Debian based distribution:

apt-get install python python-pip python-dev software-properties-common

If you're on an Apple computer (MacBook and so on), you should already have python and easy install tools, so you can just do:

sudo easy_install pip

Once you have the pip tools installed on your machine:

sudo pip install fabric fabtools

Download our Fabric file (a script that will run commands on your remote server):

wget https://raw.githubusercontent.com/cozy/cozy-setup/master/fabfile.py

Once your system is prepared, use the Fabric script from your local machine to launch the Cozy installation (run it in the same directory as the fabfile you downloaded before):

fab -H user@ip install

Enter your settings when prompted by the installer.

Be patient; some commands or app deployments can take some time. It depends on your network and hardware capabilities.

About local installation

To install Cozy locally, we recommend you to create a virtual machine, and then to run the fabfile script with your virtual machine as target. This allows you to experiment with Cozy without installing numerous packages into your environment.

Fabric authentifications issues

Allow root login, put in /etc/ssh/sshd_config:

PermitRootLogin yes
# Or prefer
PermitRootLogin without-password

Check Fabric connection: fab -u root -H cozy.domain.tld check_fab

Use a user with right sudo config visudo:

pi ALL=(ALL) NOPASSWD: ALL

Check Fabric connection: fab -u pi -H cozy.domain.tld check_fab

Use sudo password: fab -u pi --password=raspberry -H cozy.domain.tld check_fab

Try Cozy with Vagrant

If you want to use Vagrant to run Cozy Cloud Setup in a virtual machine we recommend you use the Ubuntu 12.04 box. Be careful as the update will require that you configure your boot sequence. Choose the first filesystem that is offered, then click ok.

http://files.vagrantup.com/precise64.box

Assistance

You can either read our Trouble Shootings section or contact us via email [email protected] or join our IRC channel and ask for assistance (#cozycloud on freenode.net).

Recommended Hardware

The CPU is not a limitation, Cozy can even run on RaspberryPi.

Mininum

RAM: 512MB (it allows to have 4 apps running simultaneously) Disk space: 5GB SD Class 10 for mini boards.

Recommended

RAM: 2048 MB (it allows to have 15 apps simultaneously). Disk space: a lot of space to store all your files.

Test

Once the installation is done, you can access https://IP:443 to create your Cozy main account. Be sure that you used the HTTPS protocol if you just see the nginx welcome page.

What will this script install on your server?

The Cozy install script installs the following tools:

  • Python runtime
  • Node.js runtime
  • CouchDB document database
  • Node tools: cozy-controller, cozy-monitor, coffee-script, brunch
  • Cozy Controller Daemon
  • Cozy Data Indexer
  • Cozy Data System
  • Cozy Proxy
  • Cozy Home

If you want to know more about how Cozy works you can check our architecture page.

About virtual machines and containers

Because of the numerous technologies involved, we recommend you to run the Cozy stack in an isolated virtual machine or in a container (OpenVz or LXC). But it's not mandatory, you can install Cozy Cloud on your server (that's what you should do if you have a small server like a Sheeva Plug or an old machine).

License

Cozy is developed by Cozy Cloud under the AGPL v3 license (see each module for exceptions).