How to install Seafile on Ubuntu 14.04 (Trusty Tahr)
Seafile is a OpenSource cloud storage software. It offers file sharing and syncing for individual users and groups, it provides client side encryption and easy access from mobile devices. This tutorial describes the steps to install Seafile on Ubuntu 14.04.
Installing the Seafile dependencies
List of dependencies as described
- Java Runtime Environment (JRE)
- Libreoffice 4.1+ and Python-uno
- libpython 2.7
- Python libraries (make sure python 2.7 is included in this installation, you may verify using the command on the image 1.2, if its already installed, if not then use this command apt-get install python 2.7 and also if you receive an error of "Wheel installs require setuptools >= ...", then you may use this pip install setuptools --no-use-wheel --upgrade). You also need, to install using easy_install pip and pip install boto as seen on the image 1.3 and 1.4 respectively)
Run the following command as root user to install the required software:
apt-get install openjdk-7-jre poppler-utils libreoffice libreoffice-script-provider-python libpython2.7 python-pip mysql-server python-setuptools python-imaging python-mysqldb python-memcache
Now I will check if the installed python version matches the requirements for Seafile:
As you see in the screenshot, the python version is 2.7.6, so it is in the range of supported python versions.
Next I will install the pip package with easy_install
and the boto package
pip install boto
Next install some additional fonts for your language (like example WenQuanYi, if we gonna use chinese)
apt-get install ttf-wqy-microhei ttf-wqy-zenhei xfonts-wqy
Installing Seafile with MySQL
First you need to verify the if your system is a 32 bit or 64 bit system.
My sever is a 64Bit system.
There are two choices to use on, either 32 or 64 bit, which are both available on the Seafile download page http://seafile.com/en/download/.
By downloading the package, you need to use wget command:
The next is, were gonna create the required directories.
First, I need to create a directory name "guide"(this is just a sample in image 1.8), and you may use any name that describes your organization.
mv seafile-server_4.0.6_x86-64.tar.gz /root/guide/
Once your are inside, you need to extract the file, using the command tar.
tar -xzf seafile-server_4.0.6_x86-64.tar.gz
mv seafile-server_4.0.6_x86-64.tar.gz installed/
Configuring the MySQL databases
Seafile consist of 3 core components. We need to create a database for this given components.
- ccnet server
- seafile server
Were now creating the mysql databases, account and setting permission on given databases as listed. (this is just an example you may create your own design on your database name).
|Seafile Components||Database name||Account|
Login to mysql as root user
mysql -u root -p
and then issue these commands in the mysql shell:
create database `ccnet-db`character set = 'utf8';
create database `seafile-db`character set = 'utf8';
create database `seahub-db`character set = 'utf8';
create user 'seafile'@'localhost' identified by 'seafile';
GRANT ALL PRIVELIGES ON ccnet-db.* to [email protected];
GRANT ALL PRIVELIGES ON seafile-db.* to [email protected];
GRANT ALL PRIVELIGES ON seahub-db.* to [email protected];
Setting Up Seafile Server
- python 2.7
By using this command: (to verify if its already installed)
apt-get install python2.7 python-setuptools python-imaging python-mysqldb
Next is you need to install the seafile server. Go to directory seafile-server-4.0.6 then run the script setup-seafile-mysql.sh.
Starting Seafile Server
On starting service seafile, you need to go to directory seafile-server-4.0.6. then run as given on image.
To access the site using any browser you have, enter in address bar.
On this image you will see the sample web access. Using the admin account you have entered in Image 1.22, you need to enter the Email and Password.