Template:Installation/Preparation/Ubuntu: Difference between revisions

From diaspora* project wiki
(Turns out the <nowiki/> tag had a reason, who knew!)
 
(16 intermediate revisions by 7 users not shown)
Line 1: Line 1:
{{#vardefine:version_number|{{#switch: {{#var:version}}|Precise=12.04|Trusty=14.04|Xenia=16.04}}}}
=== Install packages ===
=== Install packages ===


Line 5: Line 4:
{{#tag:syntaxhighlight|
{{#tag:syntaxhighlight|
sudo apt-get update
sudo apt-get update
sudo apt-get install build-essential git curl imagemagick libmagickwand-dev nodejs redis-server libcurl4-openssl-dev libxml2-dev libxslt-dev {{#ifeq: {{#var:version}}|Precise||libgmp-dev <nowiki/>}}{{#switch: {{#var:DB}}|mysql=libmysqlclient-dev|postgres=libpq-dev}}{{#ifeq: {{#var:mode}}|development|<nowiki/> libmagickwand-dev cmake|}}
sudo apt-get install build-essential git curl gsfonts imagemagick libmagickwand-dev nodejs redis-server libssl-dev libcurl4-openssl-dev libxml2-dev libxslt1-dev libidn11-dev yarnpkg {{#ifeq: {{#var:mode}}|development|libidn11-dev <nowiki/>|}}{{#switch: {{#var:DB}}|mysql=default-libmysqlclient-dev|postgres=libpq-dev|mariadb=default-libmysqlclient-dev}}{{#ifeq: {{#var:mode}}|development|<nowiki/> cmake|}}
|lang=bash}}
|lang=bash}}
{{#ifeq: {{#var:version}}|Precise|
 
{{Template:Installation/Ubuntu/CurlPPA}}
{{Template:Installation/Ubuntu/RedisPPA}}
}}


=== Install the database ===
=== Install the database ===
Skip this step if you already have one.
Skip this step if you already have one.


See the [https://help.ubuntu.com/{{#var:version_number}}/serverguide/{{#switch: {{#var:DB}}|mariadb=mysql|mysql=mysql|postgres=postgresql}}.html Ubuntu server guide].
See the [https://ubuntu.com/server/docs/databases-{{#switch: {{#var:DB}}|mariadb=mysql|mysql=mysql|postgres=postgresql}} Ubuntu server guide].
{{#ifeq: {{#var:mode}}|production|
{{#ifeq: {{#var:mode}}|production|
=== Creating a user for Diaspora ===
=== Creating a user for Diaspora ===


{{#tag: syntaxhighlight|
{{#tag: syntaxhighlight|
sudo adduser --disabled-login diaspora
sudo adduser --disabled-password diaspora
sudo -iu diaspora
sudo -iu diaspora
|lang="bash"}}
|lang="bash"}}


The rest of the guide should happen under this user!
The rest of the guide, except for sudo commands, should be performed as the diaspora user.
}}
}}
=== Removing packaged version of RVM ===
=== Removing packaged version of RVM ===


If you installed RVM via the package manager, we recommend to remove it. See [http://stackoverflow.com/questions/9056008/installed-ruby-1-9-3-with-rvm-but-command-line-doesnt-show-ruby-v/9056395#9056395 this StackOverflow answer] for some tips on how to do that and then continue with the installation instructions below.
If you installed RVM via the package manager, we recommend to remove it. See [http://stackoverflow.com/questions/9056008/installed-ruby-1-9-3-with-rvm-but-command-line-doesnt-show-ruby-v/9056395#9056395 this StackOverflow answer] for some tips on how to do that and then continue with the installation instructions below.
<noinclude>
[[Category:Installation-Templates]]
</noinclude>

Latest revision as of 22:59, 15 June 2024

Install packages

Run:

sudo apt-get update
sudo apt-get install build-essential git curl gsfonts imagemagick libmagickwand-dev nodejs redis-server libssl-dev libcurl4-openssl-dev libxml2-dev libxslt1-dev libidn11-dev yarnpkg


Install the database

Skip this step if you already have one.

See the Ubuntu server guide.


Removing packaged version of RVM

If you installed RVM via the package manager, we recommend to remove it. See this StackOverflow answer for some tips on how to do that and then continue with the installation instructions below.