0643.html 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. <!DOCTYPE html>
  2. <html lang="en" xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <title>Install Seafile Server on Linux</title>
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  6. <meta charset="UTF-8">
  7. <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">
  8. <meta name="author" content="i12bretro">
  9. <meta name="description" content="Install Seafile Server on Linux">
  10. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  11. <meta name="revised" content="12/28/2022 09:40:09 AM" />
  12. <link rel="icon" type="image/x-icon" href="includes/favicon.ico">
  13. <script type="text/javascript" src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
  14. <script type="text/javascript" src="includes/js/steps.js"></script>
  15. <link href="css/steps.css" rel="stylesheet" type="text/css" />
  16. </head>
  17. <body>
  18. <div id="gridContainer">
  19. <div class="topMargin"></div>
  20. <div id="listName" class="topMargin">
  21. <h1>Install Seafile Server on Linux</h1>
  22. </div>
  23. <div></div>
  24. <div id="content">
  25. <h2>What is Seafile?</h2>
  26. <blockquote><em>Seafile is an open source file sync&amp;share solution designed for high reliability, performance and productivity. Sync, share and collaborate across devices and teams. Build your team&#39;s knowledge base with Seafile&#39;s built-in Wiki feature. - <a href="https://seafile.com/" target="_blank">https://seafile.com/</a></em></blockquote>
  27. <h2>Installing Seafile</h2>
  28. <ol>
  29. <li>Log into the Linux device</li>
  30. <li>Run the following commands in terminal:
  31. <div class="codeBlock"># update software repositories<br />
  32. sudo apt update<br />
  33. # install available software updates<br />
  34. sudo apt upgrade<br />
  35. # install prerequisites<br />
  36. sudo apt install python3 python3-setuptools python3-pip default-libmysqlclient-dev libmemcached-dev zlib1g-dev -y<br />
  37. # install MariaDB/MySQL<br />
  38. sudo apt install mariadb-server mariadb-client -y<br />
  39. # configure the MySQL database<br />
  40. sudo su<br />
  41. mysql_secure_installation</div>
  42. </li>
  43. <li>Press Enter to login as root</li>
  44. <li>Type N and press Enter to switch to unix_socket authentication</li>
  45. <li>Type Y and press Enter to set a root password, type the password twice to confirm</li>
  46. <li>Type Y and press Enter to remove anonymous users</li>
  47. <li>Type Y and press Enter to disallow root login remotely</li>
  48. <li>Type Y and press Enter to remove the test database</li>
  49. <li>Type Y and press Enter to reload privilege tables</li>
  50. <li>Continue with the following commands:
  51. <div class="codeBlock"># exit mysql prompt<br />
  52. exit<br />
  53. # install python prerequisites<br />
  54. sudo pip3 install --timeout=3600 Pillow pylibmc captcha jinja2 sqlalchemy==1.4.3 django-pylibmc django-simple-captcha python3-ldap mysqlclient<br />
  55. # create installation directory<br />
  56. sudo mkdir /opt/seafile<br />
  57. # change to installation directory<br />
  58. cd /opt/seafile<br />
  59. # create seafile user<br />
  60. sudo adduser seafile<br />
  61. # set seafile as owner of the installation directory<br />
  62. sudo chown -R seafile: /opt/seafile<br />
  63. # change to the seafile user<br />
  64. sudo su seafile<br />
  65. # download seafile<br />
  66. 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 />
  67. # extract the downloaded archive<br />
  68. tar xf seafile.tar.gz<br />
  69. # change directory into the extracted folder<br />
  70. cd seafile-server-9.0.0<br />
  71. # run the seafile installation script<br />
  72. ./setup-seafile-mysql.sh</div>
  73. </li>
  74. <li>When prompted, enter the server name, IP address and port 8082</li>
  75. <li>When prompted, complete the MySQL configuration as follows:
  76. <p>mysql server host: localhost<br />
  77. mysql server port: 3306<br />
  78. mysql root password: &lt;%root password set earlier%&gt;<br />
  79. mysql user for Seafile: seafile_rw<br />
  80. mysql password for Seafile: $eafiL3!!<br />
  81. database name: ccnet-db<br />
  82. seafile database name: seafile-db<br />
  83. seahub database name: seahub-db</p>
  84. </li>
  85. <li>Continue with the following command:
  86. <div class="codeBlock"># edit gunicorn.conf.py<br />
  87. nano /opt/seafile/conf/gunicorn.conf.py</div>
  88. </li>
  89. <li>Press CTRL + W and search for bind =</li>
  90. <li>Change the value to 0.0.0.0:8000</li>
  91. <li>Press CTRL+O, Enter, CTRL+X to write the changes</li>
  92. <li>Continue with the following commands:
  93. <div class="codeBlock"># start seaf-server<br />
  94. ./seafile.sh start<br />
  95. # start seahub<br />
  96. ./seahub.sh start</div>
  97. </li>
  98. <li>When prompted, enter an administrator email and password</li>
  99. <li>Open a web browser and navigate to http://DNSorIP:8000</li>
  100. <li>Login with the email and password setup earlier</li>
  101. <li>Welcome to Seafile</li>
  102. </ol>
  103. <p>Source: <a href="https://manual.seafile.com/deploy/using_mysql/" target="_blank">https://manual.seafile.com/deploy/using_mysql/</a></p> </div>
  104. </div>
  105. </body>
  106. </html>