Seafile (Ubuntu 18.04): Unterschied zwischen den Versionen

Aus Tutorials
Zur Navigation springen Zur Suche springen
Zeile 135: Zeile 135:


[https://download.seafile.com/published/seafile-manual/deploy/using_mysql.md https://download.seafile.com/published/seafile-manual/deploy/using_mysql.md]
[https://download.seafile.com/published/seafile-manual/deploy/using_mysql.md https://download.seafile.com/published/seafile-manual/deploy/using_mysql.md]
== Probleme ==
=== ImportError: cannot import name '_imaging' from 'PIL' (/opt/seafile/seafile-server-7.1.4/seahub/thirdpart/PIL/__init__.py) ===


== Links ==
== Links ==

Version vom 17. Juni 2020, 23:31 Uhr

Noch in Bearbeitung


Installation

Download

https://github.com/haiwen/seafile-rpi/releases

cd ~/temp
wget https://github.com/haiwen/seafile-rpi/releases/download/v7.1.4/seafile-server_7.1.4_pi-bionic-stable.tar.gz

Entpacken

sudo mkdir -p /opt/seafile/installed
sudo mv seafile-server_* /opt/seafile/
cd /opt/seafile/
sudo tar -xzf seafile-server_*
sudo mv seafile-server_* installed

Datenbank anlegen

mysql -u root -p 
create user 'seafile'@'%' identified by '<password>';

create database `ccnet_db` character set = 'utf8';
create database `seafile_db` character set = 'utf8';
create database `seahub_db` character set = 'utf8';

GRANT ALL PRIVILEGES ON `ccnet_db`.* to 'seafile'@'%';
GRANT ALL PRIVILEGES ON `seafile_db`.* to 'seafile'@'%';
GRANT ALL PRIVILEGES ON `seahub_db`.* to 'seafile'@'%';

flush privileges;
quit

Abhängigkeiten installieren

sudo apt-get install -y python3 python3-setuptools python3-pip libmemcached-dev zlib1g-dev
sudo pip3 install --timeout=3600 Pillow pylibmc captcha jinja2 sqlalchemy django-pylibmc django-simple-captcha python3-ldap

Seafile installieren

cd seafile-server-*
sudo ./setup-seafile-mysql.sh

Server stoppen

sudo seafile-server-latest/seahub.sh stop
sudo seafile-server-latest/seafile.sh stop

Konfiguration

/opt/seafile/conf/seafdav.conf

Um Konflikte mit Tomcat zu vermeiden, in der Konfigurationsdatei

sudo vi /opt/seafile/conf/seafdav.conf

den Wert für port auf

port = 8085

ändern.

Benutzer anlegen

Einen System-Benutzer seafile ohne Homeverzeichnis und ohne Loginmöglichkeit, anlegen:

sudo addgroup --system --no-create-home --disabled-login --gid 1005 seafile
sudo adduser --system --no-create-home --disabled-login --uid 1005 --ingroup seafile seafile

/opt/seafile/seafile-data

sudo mkdir -p /mnt/synology/web1/seafile/backup/init/
sudo mkdir -p /mnt/synology/web1/seafile/
sudo rsync -av /opt/seafile/seafile-data /mnt/synology/web1/seafile/
sudo chmod 700 /mnt/synology/web1/seafile/seafile-data
sudo mv /opt/seafile/seafile-data /mnt/synology/web1/seafile/backup/init/
cd /opt/seafile/
sudo ln -s /mnt/synology/web1/seafile/seafile-data seafile-data

/opt/seafile/seahub-data

sudo mkdir -p /mnt/synology/web1/seafile/seahub-data
sudo rsync -av /opt/seafile/seahub-data /mnt/synology/web1/seafile/
sudo chmod 700 /mnt/synology/web1/seafile/seahub-data
sudo mv /opt/seafile/seahub-data /mnt/synology/web1/seafile/backup/init/
sudo ln -s /mnt/synology/web1/seafile/seahub-data seahub-data

Besitzer ändern

sudo chown -R seafile:seafile /opt/seafile/
sudo chown -R seafile:seafile /mnt/synology/web1/seafile/

Server testen

sudo -u seafile /opt/seafile/seafile-server-latest/seafile.sh start
sudo -u seafile /opt/seafile/seafile-server-latest/seahub.sh start

Danach sollte der Server unter http://10.0.0.120:8000/ erreichbar sein.

sudo -u seafile ./seahub.sh stop
sudo -u seafile ./seafile.sh stop

Links

https://download.seafile.com/published/seafile-manual/deploy/using_mysql.md

Probleme

ImportError: cannot import name '_imaging' from 'PIL' (/opt/seafile/seafile-server-7.1.4/seahub/thirdpart/PIL/__init__.py)

Links

https://download.seafile.com/published/seafile-manual/home.md

https://www.raspberry-pi-geek.de/ausgaben/rpg/2019/02/seafile-cloud-auf-dem-raspberry-pi/


Zurück zu Seafile