An open API service indexing awesome lists of open source software.

https://github.com/xuyanwen2012/yanwen-homeserver


https://github.com/xuyanwen2012/yanwen-homeserver

Last synced: about 2 months ago
JSON representation

Awesome Lists containing this project

README

        

# yanwen-homeserver

## Currently my list of services

* Immich [link](https://immich.app/docs/install/portainer)
* Jellyfin [link](0)
*

## Making VM templates

### Debian

Change sources to `192.168.1.154` where my debian mirror is at

#### enable backports

```bash
echo "deb http://192.168.1.154/debian bookworm-backports main" | sudo tee /etc/apt/sources.list.d/backports.list
sudo apt update
```

example, installing `cockpit`

```bash
sudo apt install -t bookworm-backports cockpit
```

## Special instructionrs

good article [link](https://blog.while-true-do.io/podman-portainer/).

### Portainer (rootful)

this time I am going to use `lts` version of the portainer (should be `2.21.0` LTS)

```bash
# Start portainer (rootful)
sudo podman run \
--detach \
-p 9443:9443 \
--privileged \
--name portainer \
--volume /run/podman/podman.sock:/var/run/docker.sock:Z \
--volume portainer_data:/data:Z \
docker.io/portainer/portainer-ce:lts
```

### Portainer (rootless)

Rootless Podman uses rootless API ports. Therefor, we need to start this service, first.

```bash
systemctl --user enable --now podman.socket
```

There is an issue, though. Normally, systemd does not care about user services until the user is logged in. To enable "lingering", we need to run one more command.

```bash
# enable start of system services, even if not logged in
sudo loginctl enable-linger $USER
```

Starting Portainer works similar to the rootful deployment, though. There are some differences, you need to take care of.

```bash
# Start portainer rootless
podman run \
--detach \
-p 9444:9443 \
--name portainer \
--security-opt label=disable \
--volume /run/user/$(id -u)/podman/podman.sock:/var/run/docker.sock:Z \
--volume portainer_data:/data:Z \
docker.io/portainer/portainer-ce
```

### Portainer Agent

```bash
podman run -d \
-p 9001:9001 \
--name portainer_agent \
--restart=always \
-v /run/user/$(id -u)/podman/podman.sock:/var/run/docker.sock \
-v /home/$(whoami)/.local/share/containers/storage/volumes:/var/lib/docker/volumes \
-v /:/host \
docker.io/portainer/agent:2.21.1
```

maybe that should be `lts` also, give a try