4 Commits

Author SHA1 Message Date
Ray Lyon
b9479367aa remove social share buttons 2023-10-03 00:50:35 +00:00
Ray Lyon
7cad06cd58 consistent tabs vs spaces 2023-10-03 00:47:15 +00:00
Ray Lyon
ba178e07c7 new avatar 2023-10-03 00:36:07 +00:00
Ray Lyon
38548ac908 working final draft 2023-10-03 00:32:10 +00:00
7 changed files with 35 additions and 20 deletions

View File

@@ -276,7 +276,7 @@ defaults:
author_profile: true author_profile: true
read_time: true read_time: true
comments: true comments: true
share: true share: false
related: true related: true
classes: wide classes: wide
show_date: true show_date: true

View File

@@ -43,9 +43,10 @@ For a much more thorough explanation on what pods are and how they work, check o
In most Linux distributions, unprivileged applications are not allowed to bind themselves to ports below 1024. To fix this, we'll need to update a system parameter via `sysctl`: In most Linux distributions, unprivileged applications are not allowed to bind themselves to ports below 1024. To fix this, we'll need to update a system parameter via `sysctl`:
``` shell ``` shell
sudo sysctl net.ipv4.ip_unprivileged_port_start=80 sudo sysctl net.ipv4.ip_unprivileged_port_start=80
sudo echo "net.ipv4.ip_unprivileged_port_start=80" > /etc/sysctl.d/99-podman.conf
``` ```
\
To make the change persist on reboot, create a new file under `/etc/sysctl.d/` named `99-podman.conf` and past the line `net.ipv4.ip_unprivileged_port_start=80`. You'll need to use `sudo` privileges for this.
After that's done, let's create a new pod called "nextcloud". After that's done, let's create a new pod called "nextcloud".
``` shell ``` shell
@@ -471,23 +472,23 @@ Restart=on-failure
TimeoutStopSec=70 TimeoutStopSec=70
ExecStartPre=/bin/rm -f %t/%n.ctr-id ExecStartPre=/bin/rm -f %t/%n.ctr-id
ExecStart=/usr/bin/podman run \ ExecStart=/usr/bin/podman run \
--cidfile=%t/%n.ctr-id \ --cidfile=%t/%n.ctr-id \
--cgroups=no-conmon \ --cgroups=no-conmon \
--rm \ --rm \
--pod-id-file %t/pod-nextcloud-pod.pod-id \ --pod-id-file %t/pod-nextcloud-pod.pod-id \
--sdnotify=conmon \ --sdnotify=conmon \
--replace \ --replace \
--detach \ --detach \
--env MYSQL_DATABASE=${MYSQL_DATABASE} \ --env MYSQL_DATABASE=${MYSQL_DATABASE} \
--env MYSQL_USER=${MYSQL_USER} \ --env MYSQL_USER=${MYSQL_USER} \
--env MYSQL_PASSWORD=${MYSQL_PASSWORD} \ --env MYSQL_PASSWORD=${MYSQL_PASSWORD} \
--env MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD} \ --env MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD} \
--volume %h/.podman/nextcloud/mariadb:/var/lib/mysql:z \ --volume %h/.podman/nextcloud/mariadb:/var/lib/mysql:z \
--name mariadb docker.io/library/mariadb:11 \ --name mariadb docker.io/library/mariadb:11 \
--transaction-isolation=READ-COMMITTED \ --transaction-isolation=READ-COMMITTED \
--log-bin=binlog \ --log-bin=binlog \
--binlog-format=ROW \ --binlog-format=ROW \
--max_allowed_packet=256000000 --max_allowed_packet=256000000
ExecStop=/usr/bin/podman stop --ignore --cidfile=%t/%n.ctr-id ExecStop=/usr/bin/podman stop --ignore --cidfile=%t/%n.ctr-id
ExecStopPost=/usr/bin/podman rm -f --ignore --cidfile=%t/%n.ctr-id ExecStopPost=/usr/bin/podman rm -f --ignore --cidfile=%t/%n.ctr-id
Type=notify Type=notify
@@ -527,8 +528,10 @@ If you haven't done so already, make the change to update the unprvivileged port
``` shell ``` shell
sudo sysctl net.ipv4.ip_unprivileged_port_start=80 sudo sysctl net.ipv4.ip_unprivileged_port_start=80
sudo echo "net.ipv4.ip_unprivileged_port_start=80" > /etc/sysctl.d/99-podman.conf
``` ```
Don't forget to create the file at `/etc/sysctl.d/99-podman.conf` so it persists on reboot!
\ \
Finally, start the Nextcloud service! Finally, start the Nextcloud service!
@@ -536,7 +539,7 @@ Finally, start the Nextcloud service!
systemctl --user start pod-nextcloud systemctl --user start pod-nextcloud
``` ```
\ \
Verify everything is running with `podman ps`. On the first run, it may take a few mintues for Podman to pull down the container images. Check the output of `podman ps` and you should see the containers appearing there one after the other, eventually showing all three.
``` shell ``` shell
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
@@ -548,6 +551,18 @@ b29486a99286 docker.io/library/caddy:2 caddy run --confi... 4 minute
\ \
At this point you should have rootless Nextcloud accessible at your FQDN on the public internet with HTTPS! At this point you should have rootless Nextcloud accessible at your FQDN on the public internet with HTTPS!
![nextcloud-podman02](/assets/images/screenshots/nextcloud-podman02.png){:class="img-responsive"}
Walk through the first-time setup of Nextcloud to create your admin account and install apps.
![nextcloud-podman03](/assets/images/screenshots/nextcloud-podman03.png){:class="img-responsive"}
![nextcloud-podman04](/assets/images/screenshots/nextcloud-podman04.png){:class="img-responsive"}
I recommend navigating to **Administration Settings -> Overview** and reading the "Security & setup warnings". The Nextcloud app always has a few recommendations for fixes and changes to the configuration, with documentation to back it up.
![nextcloud-podman05](/assets/images/screenshots/nextcloud-podman05.png){:class="img-responsive"}
## Troubleshooting ## Troubleshooting
If the Nextcloud page isn't loading as expected or you're getting an error when launching your service, the container output logs are your friends! Run `podman ps` to see if your containers are running. If they are, use `podman logs <container name>` to see the latest output from each container. It's usually pretty easy to spot red flags there. If the Nextcloud page isn't loading as expected or you're getting an error when launching your service, the container output logs are your friends! Run `podman ps` to see if your containers are running. If they are, use `podman logs <container name>` to see the latest output from each container. It's usually pretty easy to spot red flags there.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 612 KiB

After

Width:  |  Height:  |  Size: 335 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 575 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 662 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 563 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 541 KiB