diff --git a/manual/deploy/using_mysql.md b/manual/deploy/using_mysql.md index 900c87ee..e41690dd 100644 --- a/manual/deploy/using_mysql.md +++ b/manual/deploy/using_mysql.md @@ -111,33 +111,9 @@ sudo pip3 install --timeout=3600 django==4.2.* future==0.18.* mysqlclient==2.1.* ``` -``` -# Ubuntu 24.04 -sudo apt-get update -sudo apt-get install -y python3 python3-dev python3-setuptools python3-pip libmysqlclient-dev ldap-utils libldap2-dev -sudo apt-get install -y memcached libmemcached-dev +**For Seafile 11.0.x on Debian 12 and Ubuntu 24.04 with virtual env** -sudo pip3 install --timeout=3600 django==4.2.* future==0.18.* mysqlclient==2.1.* \ - pymysql pillow==10.2.* pylibmc captcha==0.5.* markupsafe==2.0.1 jinja2 sqlalchemy==2.0.18 \ - psd-tools django-pylibmc django_simple_captcha==0.6.* djangosaml2==1.5.* pysaml2==7.2.* pycryptodome==3.16.* cffi==1.16.0 lxml python-ldap==3.4.3 - -``` - -``` -# Debian 12 -sudo apt-get update -sudo apt-get install -y python3 python3-dev python3-setuptools python3-pip libmariadb-dev-compat ldap-utils libldap2-dev libsasl2-dev -sudo apt-get install -y memcached libmemcached-dev - -sudo pip3 install --timeout=3600 django==4.2.* future==0.18.* mysqlclient==2.1.* \ - pymysql pillow==10.2.* pylibmc captcha==0.5.* markupsafe==2.0.1 jinja2 sqlalchemy==2.0.18 \ - psd-tools django-pylibmc django_simple_captcha==0.6.* djangosaml2==1.5.* pysaml2==7.2.* pycryptodome==3.16.* cffi==1.15.1 lxml python-ldap==3.4.3 - -``` - -**For Seafile 11.0.x on Debian 12 with virtual env** - -Debian 12 are now discouraging system-wide installation of python modules with pip. It is preferred now to install modules into a virtual environment which keeps them separate from the files installed by the system package manager, and enables different versions to be installed for different applications. With these python virtual environments (venv for short) to work, you have to activate the venv to make the packages installed in it available to the programs you run. That is done here with "source python-venv/bin/activate". +Debian 12 and Ubuntu 24.04 are now discouraging system-wide installation of python modules with pip. It is preferred now to install modules into a virtual environment which keeps them separate from the files installed by the system package manager, and enables different versions to be installed for different applications. With these python virtual environments (venv for short) to work, you have to activate the venv to make the packages installed in it available to the programs you run. That is done here with "source python-venv/bin/activate". ``` # Debian 12 @@ -158,6 +134,27 @@ source python-venv/bin/activate pip3 install --timeout=3600 django==4.2.* future==0.18.* mysqlclient==2.1.* pymysql pillow==10.0.* pylibmc captcha==0.4 markupsafe==2.0.1 jinja2 sqlalchemy==2.0.18 psd-tools django-pylibmc django_simple_captcha==0.5.* djangosaml2==1.5.* pysaml2==7.2.* pycryptodome==3.16.* cffi==1.15.1 lxml python-ldap==3.4.3 ``` +``` +# Ubuntu 24.04 +sudo apt-get update +sudo apt-get install -y python3 python3-dev python3-setuptools python3-pip libmysqlclient-dev ldap-utils libldap2-dev +sudo apt-get install -y memcached libmemcached-dev + +cd /opt/seafile + +# create the vitual environment in the python-venv directory +python3 -m venv python-venv + +# activate the venv +source python-venv/bin/activate +# Notice that this will usually change your prompt so you know the venv is active + +# install packages into the active venv with pip (sudo isn't needed because this is installing in the venv, not system-wide). +pip3 install --timeout=3600 django==4.2.* future==0.18.* mysqlclient==2.1.* \ + pymysql pillow==10.2.* pylibmc captcha==0.5.* markupsafe==2.0.1 jinja2 sqlalchemy==2.0.18 \ + psd-tools django-pylibmc django_simple_captcha==0.6.* djangosaml2==1.5.* pysaml2==7.2.* pycryptodome==3.16.* cffi==1.16.0 lxml python-ldap==3.4.3 +``` + ### Creating the program directory The standard directory for Seafile's program files is `/opt/seafile`. Create this directory and change into it: diff --git a/manual/deploy_pro/download_and_setup_seafile_professional_server.md b/manual/deploy_pro/download_and_setup_seafile_professional_server.md index 94898e4b..a2df972b 100644 --- a/manual/deploy_pro/download_and_setup_seafile_professional_server.md +++ b/manual/deploy_pro/download_and_setup_seafile_professional_server.md @@ -101,30 +101,6 @@ sudo pip3 install --timeout=3600 django==4.2.* future==0.18.* mysqlclient==2.1.* psd-tools django-pylibmc django_simple_captcha==0.6.* djangosaml2==1.5.* pysaml2==7.2.* pycryptodome==3.16.* cffi==1.15.1 python-ldap==3.4.3 lxml ``` -``` -# on Ubuntu 24.04 -apt-get update -apt-get install -y python3 python3-dev python3-setuptools python3-pip python3-ldap libmysqlclient-dev ldap-utils libldap2-dev dnsutils -apt-get install -y memcached libmemcached-dev -apt-get install -y poppler-utils - -sudo pip3 install --timeout=3600 django==4.2.* future==0.18.* mysqlclient==2.1.* \ - pymysql pillow==10.2.* pylibmc captcha==0.5.* markupsafe==2.0.1 jinja2 sqlalchemy==2.0.18 \ - psd-tools django-pylibmc django_simple_captcha==0.6.* djangosaml2==1.5.* pysaml2==7.2.* pycryptodome==3.16.* cffi==1.16.0 python-ldap==3.4.3 lxml -``` - -``` -# on Debian 12 -apt-get update -apt-get install -y python3 python3-dev python3-setuptools python3-pip python3-ldap libmariadb-dev-compat libmariadb-dev ldap-utils libldap2-dev libsasl2-dev dnsutils -apt-get install -y memcached libmemcached-dev -apt-get install -y poppler-utils - -sudo pip3 install --timeout=3600 django==4.2.* future==0.18.* mysqlclient==2.1.* \ - pymysql pillow==10.2.* pylibmc captcha==0.5.* markupsafe==2.0.1 jinja2 sqlalchemy==2.0.18 \ - psd-tools django-pylibmc django_simple_captcha==0.6.* djangosaml2==1.5.* pysaml2==7.2.* pycryptodome==3.16.* cffi==1.15.1 python-ldap==3.4.3 lxml -``` - ``` # CentOS 8 sudo yum install python3 python3-setuptools python3-pip python3-devel mysql-devel gcc bind-utils -y @@ -137,16 +113,35 @@ sudo pip3 install --timeout=3600 django==4.2.* future==0.18.* mysqlclient==2.1.* **Note**: The recommended deployment option for Seafile PE on CentOS/Redhat is [Docker](https://manual.seafile.com/docker/pro-edition/deploy_seafile_pro_with_docker/). -**For Seafile 11.0.x on Debian 12 with virtual env** -Debian 12 are now discouraging system-wide installation of python modules with pip. It is preferred now to install modules into a virtual environment which keeps them separate from the files installed by the system package manager, and enables diffeerent versions to be installed for different applications. With these python virtual environments (venv for short) to work, you have to activate the venv to make the packages installed in it available to the programs you run. That is done here with "source python-venv/bin/activate". +**For Seafile 11.0.x on Debian 12 and Ubuntu 24.04 with virtual env** + +Debian 12 and Ubuntu 24.04 are now discouraging system-wide installation of python modules with pip. It is preferred now to install modules into a virtual environment which keeps them separate from the files installed by the system package manager, and enables different versions to be installed for different applications. With these python virtual environments (venv for short) to work, you have to activate the venv to make the packages installed in it available to the programs you run. That is done here with "source python-venv/bin/activate". ``` # Debian 12 sudo apt-get update -sudo apt-get install -y python3 python3-dev python3-setuptools python3-pip python3-ldap libmysqlclient-dev ldap-utils libldap2-dev dnsutils +sudo apt-get install -y python3 python3-dev python3-setuptools python3-pip libmariadb-dev-compat ldap-utils libldap2-dev libsasl2-dev python3.11-venv +sudo apt-get install -y memcached libmemcached-dev + +cd /opt/seafile + +# create the vitual environment in the python-venv directory +python3 -m venv python-venv + +# activate the venv +source python-venv/bin/activate +# Notice that this will usually change your prompt so you know the venv is active + +# install packages into the active venv with pip (sudo isn't needed because this is installing in the venv, not system-wide). +pip3 install --timeout=3600 django==4.2.* future==0.18.* mysqlclient==2.1.* pymysql pillow==10.0.* pylibmc captcha==0.4 markupsafe==2.0.1 jinja2 sqlalchemy==2.0.18 psd-tools django-pylibmc django_simple_captcha==0.5.* djangosaml2==1.5.* pysaml2==7.2.* pycryptodome==3.16.* cffi==1.15.1 lxml python-ldap==3.4.3 +``` + +``` +# Ubuntu 24.04 +sudo apt-get update +sudo apt-get install -y python3 python3-dev python3-setuptools python3-pip libmysqlclient-dev ldap-utils libldap2-dev sudo apt-get install -y memcached libmemcached-dev -sudo apt-get install -y poppler-utils cd /opt/seafile @@ -159,8 +154,8 @@ source python-venv/bin/activate # install packages into the active venv with pip (sudo isn't needed because this is installing in the venv, not system-wide). pip3 install --timeout=3600 django==4.2.* future==0.18.* mysqlclient==2.1.* \ - pymysql pillow==10.0.* pylibmc captcha==0.4 markupsafe==2.0.1 jinja2 sqlalchemy==2.0.18 \ - psd-tools django-pylibmc django_simple_captcha==0.5.* djangosaml2==1.5.* pysaml2==7.2.* pycryptodome==3.16.* cffi==1.15.1 python-ldap==3.4.3 lxml + pymysql pillow==10.2.* pylibmc captcha==0.5.* markupsafe==2.0.1 jinja2 sqlalchemy==2.0.18 \ + psd-tools django-pylibmc django_simple_captcha==0.6.* djangosaml2==1.5.* pysaml2==7.2.* pycryptodome==3.16.* cffi==1.16.0 lxml python-ldap==3.4.3 ``` ### Installing Java Runtime Environment