Template:Installation/Preparation/Fedora: Difference between revisions
(Created page with "=== Install packages === As root run: {{#tag:syntaxhighlight| {{#var:pkg_command}} install tar make automake gcc gcc-c++ git net-tools libcurl-devel libxml2-devel libffi-dev...") |
(Properly escape the pipe. Mediawiki is fun.) |
||
(11 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
{{#ifeq: {{#var:version}}|21|{{#vardefine:pkg_command|yum}}|{{#vardefine:pkg_command|dnf}}}} | |||
=== Install packages === | === Install packages === | ||
As root run: | First, we need to add an extra Repository to download Yarn. As root, run: | ||
{{#tag:syntaxhighlight| | |||
curl --silent --location https://dl.yarnpkg.com/rpm/yarn.repo <nowiki>|</nowiki> sudo tee /etc/yum.repos.d/yarn.repo | |||
|lang=bash}} | |||
then, still as root, run: | |||
{{#tag:syntaxhighlight| | {{#tag:syntaxhighlight| | ||
{{#var:pkg_command}} install tar make automake gcc gcc-c++ git net-tools libcurl-devel libxml2-devel libffi-devel libxslt-devel wget redis ImageMagick nodejs {{#switch: {{#var:DB}}|mariadb=mariadb-devel|mysql=mariadb-devel|postgres=postgresql-devel}} | {{#var:pkg_command}} install tar make automake gcc gcc-c++ git net-tools libcurl-devel libxml2-devel libffi-devel libxslt-devel wget redis ImageMagick libidn-devel nodejs yarn {{#switch: {{#var:DB}}|mariadb=mariadb-devel|mysql=mariadb-devel|postgres=postgresql-devel}} {{#ifeq: {{#var:mode}}|development|cmake|}} | ||
|lang=bash}} | |lang=bash}} | ||
Line 21: | Line 28: | ||
systemctl start redis | systemctl start redis | ||
|lang=bash}} | |lang=bash}} | ||
{{#ifeq: {{#var:mode}}|production| | {{#ifeq: {{#var:mode}}|production| | ||
Line 29: | Line 35: | ||
{{#tag: syntaxhighlight| | {{#tag: syntaxhighlight| | ||
adduser | adduser diaspora | ||
su diaspora | su diaspora | ||
cd ~ | cd ~ | ||
Line 39: | Line 42: | ||
The rest of the guide should happen under this user! | The rest of the guide should happen under this user! | ||
}} | }} | ||
<noinclude> | |||
[[Category:Installation-Templates]] | |||
</noinclude> |
Latest revision as of 23:59, 15 June 2024
Install packages
First, we need to add an extra Repository to download Yarn. As root, run:
curl --silent --location https://dl.yarnpkg.com/rpm/yarn.repo | sudo tee /etc/yum.repos.d/yarn.repo
then, still as root, run:
dnf install tar make automake gcc gcc-c++ git net-tools libcurl-devel libxml2-devel libffi-devel libxslt-devel wget redis ImageMagick libidn-devel nodejs yarn
Install the database
If you already have one skip this step.
As root run:
dnf install
systemctl enable
systemctl start
systemctl enable redis
systemctl start redis