Hello Everybody, our today's article is on an Open Source Secure Cloud Storage platform that is Seafile. You can use Seafile Storage at your home or in office to synchronize your files and data with PC and mobile devices easily or use its web interface for managing your data files. So, its an ideal Storage solution mostly for small business purposes where you have the flexibility of group sharing and multiple projects, without necessarily using a public server with complete security by providing client-side encryption of data.
You can also choose to host your data on the seafile cloud or run your own local Seafile server by following this installation and configuration guide on RHEL or CentOS 6.6/7.0.
Prerequisites
Seafile secure cloud storage installation setup depends upon the number following prerequisites.
System Update
Login to your CentOS server with root credentials, configure FQDN with a static IP address then run the below command to update your server with lates updates.
# yum update
LAMP Setup
You must have setup your basic LAMP Server on your CentOS server and make sure that its services and working fine. Here in this tutorial we will using Apache web server with MariaDB as a database server.
Python Packages
Seafile storage setup requires some puthon modules that must be installed on your server, otherwise your installation setup will be unsuccessful and your will be asked to install all missing dependencies.
You can install the required python modules by using the following command.
# yum install MySQL-python python-imaging python-simplejson python-setuptools
Download Seafile Server Package
Seafile server package can be downloaded from their official link of Seafile Download Page where you can see its cross platform packages. We will be choosing the generic linux 64-bit package as shown.
You can download this package in temp directory using wget command by providing the complete download path as below.
# wget https://bintray.com/artifact/download/seafile-org/seafile/seafile-server_4.4.1_x86-64.tar.gz
When the downloading of package complete, create a new directory in the web document root directory of your server and extract the seafile server package in it.
# mkdir /var/www/storage/
# tar -zxvf seafile-server_4.4.1_x86-64.tar.gz -C /var/www/storage/
Seafile Installation Setup
To start the installation setup, move to the folder where we extracted the installation package and execute the following script.
[root@centos-seafile seafile-server]# ./setup-seafile-mysql.sh
The script will check out the required dependencies, then you will be as asked Press the Enter key to continue.
Once you hit the enter key, you will be asked to configure some of its required parameters where you to have to mention your server's name, its FQDN/IP and choose the default port for seafile fileserver.
Then you will be asked to configure your seafile databases, if you have not already created your databases then don't worry and choose the options to create the new databases during the seafile installation setup as shown below.
-------------------------------------------------------
Please choose a way to initialize seafile databases:
-------------------------------------------------------[1] Create new ccnet/seafile/seahub databases
[2] Use existing ccnet/seafile/seahub databases[ 1 or 2 ] 1
What is the host of mysql server?
[ default "localhost" ]What is the port of mysql server?
[ default "3306" ]What is the password of the mysql root user?
[ root password ]verifying password of user root ... done
Enter the name for mysql user of seafile. It would be created if not exists.
[ default "root" ] seafileEnter the password for mysql user "seafile":
[ password for seafile ]Enter the database name for ccnet-server:
[ default "ccnet-db" ]Enter the database name for seafile-server:
[ default "seafile-db" ]Enter the database name for seahub:
[ default "seahub-db" ]
After hitting the Enter key, the installation process will continue to configure and setup its configuration and database files as below.
Generating ccnet configuration ...
done
Successfully create configuration dir /var/www/storage/ccnet.
Generating seafile configuration ...Done.
done
Generating seahub configuration ...----------------------------------------
Now creating seahub database tables ...----------------------------------------
creating seafile-server-latest symbolic link ... done
Upon successful completion of seafile installation you will be greeted with following usefull information and instructions to continue with other configurations.
Starting Seafile Server
To start the seafile, execute the below seafile script as shown.
[root@centos-seafile seafile-server]# ./seafile.sh start
Then you will be asked to configured your admin email account, you will be greeted with below successful message.
----------------------------------------
It's the first time you start the seafile server. Now let's create the admin account
----------------------------------------What is the email for the admin account?
[ admin email ] kashifs@linoxide.comWhat is the password for the admin account?
[ admin password ]Enter the password again:
[ admin password again ]----------------------------------------
Successfully created seafile admin
----------------------------------------Seahub is started
Done.
Login to Seahub
Now open any one the web browser to access the seahub dashboard to manage and shared your libraries and folders etc.
Open the URL with your FQDN or Server's IP address with your configured default port and login with admin email address that you created during the seahub server startup.
http://your_servers_ip:8000
Creating New Libraries
Upon successful credentials you will be greeted with a Welcome screen and then directed towards its dashboad where will organizes files into libraries and each library can be synced and shared separately. There is an already created personal library but you are now free create more libraries whether it is your personal you for sharing purpose.
Uploading your data
TO upload your data like folders or image, you just have to click on that particular folder then then choose from the available options to upload your data as shown.
Seafile Client Installation
Our Seafile Server setup is ready now we will show you its client side installation on Windows 7 Operating system. The seafile client package is available for different operating systems but we will choose for Windows here.
Once the client is downloaded, click on it to run the installation process and choose the appropriate options for its program files and click NEXT key and then click on the install button to start installation as shown below.
When you finish the installation process you asked to choose the location of any user with sufficient file space for storing seafile libraries.
Adding Seafile Account
To login on the seafile client portal you must have an account configured with your seafile server. You can also add new users from your seafile server. So, on windows we will be using our admin email account to login by providing the following parameters.
After adding your account you will be logged in to the seafile client portal and asked to download the default library. Simply click on the yes button to download it on the default location that you chooses in previous step.
Seafile organizes files by using libraries so after downloading the default library it will create a virtual disk where you will find the default document that contains some information to use seafile. Whenever you need to upload some data, just click on the particular library and click on the Plus icon to upload and share you files or folders.
Conclusion
Congrats, our seafile cloud storage has been all setup. Now you can easily manage your data for remote sharing. Its a great tool to be used because of its awesomeness. So, let's setup your own and feel free to get back to us in case on any issue and leave your valuable comments an suggestions.
The post How to Setup Seafile Secure Cloud Storage on CentOS 7 appeared first on LinOxide.