Server
Docker
Updating Home Assistant
docker pull homeassistant/home-assistant:stable
docker run --rm -v /var/run/docker.sock:/var/run/docker.sock assaflavie/runlike -p home-assistant
docker stop home-assistant
docker rm home-assistant
docker run --name=home-assistant \
--hostname=hextor \
--volume /mnt/storage5/data/home-automation/home-assistant:/config \
--volume /etc/localtime:/etc/localtime:ro \
--env=TZ=Australia/Melbourne \
--network=host \
--privileged \
--workdir=/config \
--restart=unless-stopped \
--device /dev/ttyACM0:/dev/ttyACM0 \
--log-driver=journald \
--runtime=runc \
homeassistant/home-assistant:stable
n8n
Docker apparently won't populate the volume if it's a local bind giving a "Error: Command "start" not found"
For the first time I created the docker volume then manually copied out the contents. This should not be necessary anymore.
mkdir -p /mnt/storage5/data/docker/n8n
docker volume create n8n_data
docker run -it --rm --name n8n -p 5678:5678 -v n8n_data:/home/node/.n8n docker.n8n.io/n8nio/n8ndocker volume inspect n8n_data
sudo rsync -avP /var/lib/docker/volumes/n8n_data/_data/ /mnt/storage5/data/docker/n8n/
In order to allow connections from the network:
N8N_SECURE_COOKIE to false
N8N_BASIC_AUTH_ACTIVE=trueand then add the user and password you want for N8N_BASIC_AUTH_USER andN8N_BASIC_AUTH_PASSWORD
How to install n8n:
docker run -it --rm \
--name n8n \
-p 5678:5678 \
--network host \
-v /mnt/storage5/data/docker/n8n:/home/node/.n8n \
-e N8N_SECURE_COOKIE=false \
-e N8N_BASIC_AUTH_ACTIVE=true \
-e N8N_BASIC_AUTH_USER=hegemon \
-e N8N_BASIC_AUTH_PASSWORD=nopassword \
-e N8N_RUNNERS_ENABLED=true \
n8nio/n8n:stable
Gogs
docker run --name=gogs \
--hostname=a6085e10821c \
--mac-address=02:42:ac:11:00:02 \
--volume /backup \
--volume /mnt/storage5/data/gogs:/data \
--network=bridge \
--workdir=/app/gogs \
-p 10022:22 \
-p 10080:3000 \
--restart=always \
--log-driver=journald \
--runtime=runc \
--detach=true \
gogs/gogs:0.12 \
/bin/s6-svscan /app/gogs/docker/s6/
Not sure what that executable is? The latest version of gog's 0.13 has an issue....
Monitoring
RSS Reader
https://www.reddit.com/r/selfhosted/search?q=rss&restrict_sr=on&sort=relevance&t=all
| Name | Comment | |
|---|---|---|
| Tiny Tiny RSS | Apparently bad code and dev but seems to more fleshed out. | 220 (It's on gitlab) |
| FreshRSS | Doesn't support reordering (There is a issue request). Clunky UI. Supports extensions (Including a YouTube one). | 12.3k |
| RSSMonster | Looks nice and should have drag and drop reordering. Requires a MySQL database. | 456 |
| orpington-news | Looks nice and should have drag and drop reordering. Requires a Postgresql database. | 126 |
| danb/rss | Someone on reddit said it's not good at management but the UI is nice. | WTF is codeberg |
| miniflux/v2 | Reddit recommendation from 7 years ago still seems to be recommended today. See also ReactFlux | 8k |
| CommaFeed | 3.2k | |
| Name | Comment | |
|---|---|---|
| QuiteRSS | Desktop App! Is there sync? Saw it recommended on a github issue. | |
| fluent-reader | Reddit was saying you can use the Google Reader API on FreshRSS with this desktop app. | |
| RSS Bridge | It generates web feeds for websites that don't have one. |
Troubleshooting
IO Issues
sudo perf record -g -a sleep 10
./tpoint -H block:block_rq_insert
Slow login issues
execsnoop