Hi Derbo,
If you have a fresh installation of Ubuntu
- Login to Linux Server
- type “sudo su root” (if you don’t have root setup yet then do sudo passwd root and set one)
- Once logged into root please type “cd /root”
(Anything from here are just going to be commands) - wget RAW GITHUB SCRIPT (I am unable to put links here)
(you will need to replace the " (.) " with just a “.” for the link to work - bash seafile-11.0_ubuntu 11.0.1
The script works by generating a username/password and if you have pre-existing services or have already run the script once, you will either have to re-build your Ubuntu Instance or see below.
If you have pre-existing services on Ubuntu/MySQL
- 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 pip3 install --timeout=3600 django==3.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 - cd /opt
- mkdir seafile
- sudo chown -R seafile: /seafile
- cd seafile
- wget ### (Get download link by right clicking on the download that you would like from the downloads page)
- tar xf seafile-server-###.tar.gz
- cd sealfile-server-###
- ./setup-seafile-mysql.sh
- Use the following details:
- Server Name: (What you want your server to be called
- Server IP or Domain: {SERVER IP ADDRESS}
- Server Port: {LEAVE AS DEFAULT (BLANK)}
- MySQL Server Host: {SERVER IP ADDRESS}
- MySQL Server Port: {LEAVE BLANK} (Unless you have changed this)
- MySQL Root Password:
6.1. If you have already run the script, please find this in your /root folder under .my.cnf
6.2. If you have an existing service, please use the previously set password - MySQL User: Leave Blank (Default: Seafile)
- MySQL Password for Seafile User:
8.1. If you have run the script, you can find this in /opt/seafile.my.cnf
8.2. If you haven’t run the script, please type your desired password - Database Name: Leave Blank
- Seafile Database Name: Leave Blank
- Seahub Database Name: Leave Blank
- cd /opt/seafile/conf
- nano seahub_settings.py
- change the SERVICE_URL to be your IP address with “:8000” on the end (i.e. 1.2.3.4:8000/
- Ctrl + X, Enter, Y, Enter
- nano gunicorn.conf.py
- Change the BIND to “0.0.0.0:8000”
- cd /opt/seafile/seafile-server-latest
- ./seafile.sh start
- ./seahub.sh start
After this, all you will need to do is open a Web Browser and then go to the IP address of your server to access the admin panel.
If you have any further questions, please feel free to reply or email me on mitchw@kwgroup.uk.
(Please note, I am in no way associated to Seafile - I am just looking to help the community!)