|
@@ -0,0 +1,111 @@
|
|
|
+ <!DOCTYPE html>
|
|
|
+ <html lang="en" xmlns="http://www.w3.org/1999/xhtml">
|
|
|
+ <head>
|
|
|
+ <title>Install Seafile Server on Linux</title>
|
|
|
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
|
|
+ <meta charset="UTF-8">
|
|
|
+ <meta name="keywords" content="Browser Based,Home Lab,Home Lab Ideas,Install Guide,Self-Hosted,Web Based,Web Based Tools,Debian,FOSS,File Browser,Linux,Web Based File Management,Seafile,File Sync,Free Open Source Software,Free Software,Open Source Software,Open-Source,How To,Tutorial,i12bretro">
|
|
|
+ <meta name="author" content="i12bretro">
|
|
|
+ <meta name="description" content="Install Seafile Server on Linux">
|
|
|
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
+ <meta name="revised" content="12/28/2022 09:40:09 AM" />
|
|
|
+ <link rel="icon" type="image/x-icon" href="includes/favicon.ico">
|
|
|
+ <script type="text/javascript" src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
|
|
|
+ <script type="text/javascript" src="includes/js/steps.js"></script>
|
|
|
+ <link href="css/steps.css" rel="stylesheet" type="text/css" />
|
|
|
+ </head>
|
|
|
+ <body>
|
|
|
+ <div id="gridContainer">
|
|
|
+ <div class="topMargin"></div>
|
|
|
+ <div id="listName" class="topMargin">
|
|
|
+ <h1>Install Seafile Server on Linux</h1>
|
|
|
+ </div>
|
|
|
+ <div></div>
|
|
|
+ <div id="content">
|
|
|
+ <h2>What is Seafile?</h2>
|
|
|
+
|
|
|
+<blockquote><em>Seafile is an open source file sync&share solution designed for high reliability, performance and productivity. Sync, share and collaborate across devices and teams. Build your team's knowledge base with Seafile's built-in Wiki feature. - <a href="https://seafile.com/" target="_blank">https://seafile.com/</a></em></blockquote>
|
|
|
+
|
|
|
+<h2>Installing Seafile</h2>
|
|
|
+
|
|
|
+<ol>
|
|
|
+ <li>Log into the Linux device</li>
|
|
|
+ <li>Run the following commands in terminal:
|
|
|
+ <div class="codeBlock"># update software repositories<br />
|
|
|
+ sudo apt update<br />
|
|
|
+ # install available software updates<br />
|
|
|
+ sudo apt upgrade<br />
|
|
|
+ # install prerequisites<br />
|
|
|
+ sudo apt install python3 python3-setuptools python3-pip default-libmysqlclient-dev libmemcached-dev zlib1g-dev -y<br />
|
|
|
+ # install MariaDB/MySQL<br />
|
|
|
+ sudo apt install mariadb-server mariadb-client -y<br />
|
|
|
+ # configure the MySQL database<br />
|
|
|
+ sudo su<br />
|
|
|
+ mysql_secure_installation</div>
|
|
|
+ </li>
|
|
|
+ <li>Press Enter to login as root</li>
|
|
|
+ <li>Type N and press Enter to switch to unix_socket authentication</li>
|
|
|
+ <li>Type Y and press Enter to set a root password, type the password twice to confirm</li>
|
|
|
+ <li>Type Y and press Enter to remove anonymous users</li>
|
|
|
+ <li>Type Y and press Enter to disallow root login remotely</li>
|
|
|
+ <li>Type Y and press Enter to remove the test database</li>
|
|
|
+ <li>Type Y and press Enter to reload privilege tables</li>
|
|
|
+ <li>Continue with the following commands:
|
|
|
+ <div class="codeBlock"># exit mysql prompt<br />
|
|
|
+ exit<br />
|
|
|
+ # install python prerequisites<br />
|
|
|
+ sudo pip3 install --timeout=3600 Pillow pylibmc captcha jinja2 sqlalchemy==1.4.3 django-pylibmc django-simple-captcha python3-ldap mysqlclient<br />
|
|
|
+ # create installation directory<br />
|
|
|
+ sudo mkdir /opt/seafile<br />
|
|
|
+ # change to installation directory<br />
|
|
|
+ cd /opt/seafile<br />
|
|
|
+ # create seafile user<br />
|
|
|
+ sudo adduser seafile<br />
|
|
|
+ # set seafile as owner of the installation directory<br />
|
|
|
+ sudo chown -R seafile: /opt/seafile<br />
|
|
|
+ # change to the seafile user<br />
|
|
|
+ sudo su seafile<br />
|
|
|
+ # download seafile<br />
|
|
|
+ wget -O seafile.tar.gz https://s3.eu-central-1.amazonaws.com/download.seadrive.org/seafile-server_9.0.0_x86-64.tar.gz<br />
|
|
|
+ # extract the downloaded archive<br />
|
|
|
+ tar xf seafile.tar.gz<br />
|
|
|
+ # change directory into the extracted folder<br />
|
|
|
+ cd seafile-server-9.0.0<br />
|
|
|
+ # run the seafile installation script<br />
|
|
|
+ ./setup-seafile-mysql.sh</div>
|
|
|
+ </li>
|
|
|
+ <li>When prompted, enter the server name, IP address and port 8082</li>
|
|
|
+ <li>When prompted, complete the MySQL configuration as follows:
|
|
|
+ <p>mysql server host: localhost<br />
|
|
|
+ mysql server port: 3306<br />
|
|
|
+ mysql root password: <%root password set earlier%><br />
|
|
|
+ mysql user for Seafile: seafile_rw<br />
|
|
|
+ mysql password for Seafile: $eafiL3!!<br />
|
|
|
+ database name: ccnet-db<br />
|
|
|
+ seafile database name: seafile-db<br />
|
|
|
+ seahub database name: seahub-db</p>
|
|
|
+ </li>
|
|
|
+ <li>Continue with the following command:
|
|
|
+ <div class="codeBlock"># edit gunicorn.conf.py<br />
|
|
|
+ nano /opt/seafile/conf/gunicorn.conf.py</div>
|
|
|
+ </li>
|
|
|
+ <li>Press CTRL + W and search for bind =</li>
|
|
|
+ <li>Change the value to 0.0.0.0:8000</li>
|
|
|
+ <li>Press CTRL+O, Enter, CTRL+X to write the changes</li>
|
|
|
+ <li>Continue with the following commands:
|
|
|
+ <div class="codeBlock"># start seaf-server<br />
|
|
|
+ ./seafile.sh start<br />
|
|
|
+ # start seahub<br />
|
|
|
+ ./seahub.sh start</div>
|
|
|
+ </li>
|
|
|
+ <li>When prompted, enter an administrator email and password</li>
|
|
|
+ <li>Open a web browser and navigate to http://DNSorIP:8000</li>
|
|
|
+ <li>Login with the email and password setup earlier</li>
|
|
|
+ <li>Welcome to Seafile</li>
|
|
|
+</ol>
|
|
|
+
|
|
|
+<p>Source: <a href="https://manual.seafile.com/deploy/using_mysql/" target="_blank">https://manual.seafile.com/deploy/using_mysql/</a></p> </div>
|
|
|
+ </div>
|
|
|
+ </body>
|
|
|
+ </html>
|
|
|
+
|