Instalace SeaFile jako "vlastního cloud řešení".

Výhodou je udržení souborů a složek v aktuálním stavu na všech připojených zařízení a dostupnost těchto souborů i na mobilních zařízeních.

Download server balíček

https://www.seafile.com/en/download/

rozbalíme balíček, já preferuji složku /opt

tar -xvzf seafile-server_6.0.7_x86-64.tar.gz -C /opt/

Obejdeme se bez verzování, název složky je jednodušší.

mv /opt/seafile-server-6.0.7 /opt/seafile

Doinstalujeme potřebné balíčky:

apt-get install python-setuptools git python-simplejson python-imaging sqlite3

A pustíme skript pro instalaci:

/opt/seafile/setup-seafile.sh

-----------------------------------------------------------------
This script will guide you to config and setup your seafile server.

Make sure you have read seafile server manual at

    https://github.com/haiwen/seafile/wiki

Note: This script will guide your to setup seafile server using sqlite3,
which may have problems if your disk is on a NFS/CIFS/USB.
In these cases, we sugguest you setup seafile server using MySQL.

Press [ENTER] to continue
-----------------------------------------------------------------


Checking packages needed by seafile ...

Checking python on this machine ...
Find python: python2.7

  Checking python module: setuptools ... Done.
  Checking python module: python-imaging ... Done.
  Checking python module: python-sqlite3 ... Done.

Checking for sqlite3 ...Done.

Checking Done.


What would you like to use as the name of this seafile server?
Your seafile users will be able to see the name in their seafile client.
You can use a-z, A-Z, 0-9, _ and -, and the length should be 3 ~ 15
[server name]: cafejebote.cz

cafejebote.cz is not a valid name.
What would you like to use as the name of this seafile server?
Your seafile users will be able to see the name in their seafile client.
You can use a-z, A-Z, 0-9, _ and -, and the length should be 3 ~ 15
[server name]: MorskaSkeble           


What is the ip or domain of this server?
For example, www.mycompany.com, or, 192.168.1.101

[This server's ip or domain]: cafejebote.cz

Where would you like to store your seafile data?
Note: Please use a volume with enough free space.
[default: /opt/seafile-data ]

What tcp port do you want to use for seafile fileserver?
8082 is the recommended port.
[default: 8082 ]


This is your config information:

server name:        MorskaSkeble
server ip/domain:   cafejebote.cz
seafile data dir:   /opt/seafile-data
fileserver port:    8082

If you are OK with the configuration, press [ENTER] to continue.

Generating ccnet configuration in /opt/ccnet...

done
Successly create configuration dir /opt/ccnet.

Generating seafile configuration in /opt/seafile-data ...

Done.

-----------------------------------------------------------------
Seahub is the web interface for seafile server.
Now let's setup seahub configuration. Press [ENTER] to continue
-----------------------------------------------------------------


Creating seahub database now, it may take one minute, please wait...


Done.

creating seafile-server-latest symbolic link ... done


-----------------------------------------------------------------
Your seafile server configuration has been completed successfully.
-----------------------------------------------------------------

run seafile server:     ./seafile.sh { start | stop | restart }
run seahub  server:     ./seahub.sh  { start <port> | stop | restart <port> }

-----------------------------------------------------------------
If the server is behind a firewall, remember to open these tcp ports:
-----------------------------------------------------------------

port of seafile fileserver:   8082
port of seahub:               8000

When problems occur, refer to

      https://github.com/haiwen/seafile/wiki

for more information.

root@VPSF-01:~# /opt/seafile/seafile.sh restart

seafile server not running yet

[01/04/17 13:10:56] ../common/session.c(132): using config file /opt/conf/ccnet.conf
Starting seafile server, please wait ...
Seafile server started

Done.
root@VPSF-01:~#
root@VPSF-01:~# /opt/seafile/seahub.sh restart

Seahub is not running
LC_ALL is not set in ENV, set to en_US.UTF-8
Starting seahub at port 8000 ...

----------------------------------------
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 ]

What is the password for the admin account?
[ admin password ]

Enter the password again:
[ admin password again ]

----------------------------------------
Successfully created seafile admin
----------------------------------------

Seahub is started

Done.



A spustíme obě potřebné složky:

/opt/seafile/seafile.sh restart

/opt/seafile/seahub.sh restart