Template:Installation/Preparation/openSUSE: Difference between revisions
(Created page with "=== Install packages === As root run: {{#tag:syntaxhighlight| zypper install ruby-devel rubygem-bundler make automake gcc gcc-c++ git libcurl-devel ImageMagick ImageMagick-e...") |
m (Add switch for MariaDB) |
||
(3 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
=== Install packages === | === Install packages === | ||
{{#tag:syntaxhighlight| | {{#tag:syntaxhighlight| | ||
zypper install | sudo zypper install make automake gcc gcc-c++ git libcurl-devel ImageMagick ImageMagick-extra libtool bison libtool patch libxml2-devel libxslt-devel libffi-devel libyaml-devel nodejs gdbm-devel libopenssl-devel | ||
|lang=bash}} | |lang=bash}} | ||
Line 10: | Line 8: | ||
If you already have one skip this step. | If you already have one skip this step. | ||
{{#tag:syntaxhighlight| | {{#tag:syntaxhighlight| | ||
sudo zypper install {{#switch: {{#var:DB}}|mysql=mariadb libdb-4_8|postgres=postgresql-server|mariadb=mariadb libdb-4_8}} | |||
|lang=bash}} | |lang=bash}} | ||
=== Firewall === | === Firewall === | ||
Line 134: | Line 20: | ||
To do so, do as follows: | To do so, do as follows: | ||
TODO: Adapt to systemd | |||
=== Setup REDIS === | === Setup REDIS === | ||
Line 159: | Line 27: | ||
{{#tag: syntaxhighlight| | {{#tag: syntaxhighlight| | ||
zypper install redis | |||
cp /etc/redis/default.conf.example /etc/redis/default.conf | cp /etc/redis/default.conf.example /etc/redis/default.conf | ||
chown redis: /etc/redis/default.conf | chown redis: /etc/redis/default.conf | ||
|lang="bash"}} | |||
TODO: Adapt properly to systemd | |||
=== Creating a user for Diaspora === | === Creating a user for Diaspora === | ||
Line 170: | Line 39: | ||
{{#tag: syntaxhighlight| | {{#tag: syntaxhighlight| | ||
useradd -m diaspora | sudo useradd -m diaspora | ||
su - diaspora | sudo su - diaspora | ||
|lang="bash"}} | |lang="bash"}} | ||
[[Category:Templates]] |
Latest revision as of 09:53, 25 March 2018
Install packages
sudo zypper install make automake gcc gcc-c++ git libcurl-devel ImageMagick ImageMagick-extra libtool bison libtool patch libxml2-devel libxslt-devel libffi-devel libyaml-devel nodejs gdbm-devel libopenssl-devel
Install database
If you already have one skip this step.
sudo zypper install
Firewall
openSUSE use to have a firewall turned on (good work!) but this filter the HTTP/s protocols. In this particular case we need ports 80 and 443 open.
To do so, do as follows:
TODO: Adapt to systemd
Setup REDIS
As root run:
zypper install redis
cp /etc/redis/default.conf.example /etc/redis/default.conf
chown redis: /etc/redis/default.conf
TODO: Adapt properly to systemd
Creating a user for Diaspora
As root run:
sudo useradd -m diaspora
sudo su - diaspora