Spyke

Replies

Comment on

How to avoid "things going wrong"? (Immutable distros?)

First and foremost, backups. Back up everything and back up often. Immutability can’t do anything for critical hardware failure.

Issues happening on something only running container workloads isn’t common but I think it’s worth the extra little effort to reduce the risk even further. Fedora CoreOS or Flatcar is ideal since its declarative nature makes it easily reproducible. Fedora IOT can get you there too, but it doesn’t use ignition so you’ll be setting the server up manually.

Immutability is good. Declarative configuration is good. Manage cattle, not a pet.

Comment on

Volume mounting in a Docker container

You could mount the network share on the host/Ubuntu and then reference it in your docker compose file. It works. I prefer to write the mount in the Docker compose file since it's a bit more portable. Something like this depending on if you're using SMB/CIFS or NFS:

services:
    some_music_app:
        image: music_app_image:latest
    container_name: music_app
    volumes:
      - smb:/some/path/smb/music
      - nfs:/some/path/nfs/music
volumes:
  smb:
    driver_opts:
      type: cifs
      o: "username=${user},password=${pass},uid=1000,gid=1000,vers=3.0"
      device: "//tiger-nas/music/music"
  nfs:
    driver: local
    driver_opts:
      type: nfs
      o: addr=tiger-nas,nolock,soft,rw,nfsvers=4
      device: ":path/to/music/music"

The ${user} and ${pass} in the smb volume definition are variables that you'll need to have in a .env file next to your compose.yaml file. The .env file is just a normal text file with each line setting a value to a variable. Like:

user=my_username  
pass=123_abc_!@#

Then you restrict the permissions of your .env file and you can essentially take a backup of both files and use them on any server with Docker.

Comment on

Simple NAS hardware for home use?

How much data do you plan on storing? If you're going to stay under a couple terabytes then you could get away with one of the Bmax or GMKtek mini PCs for under a couple hundred bucks. They're silent, decent amount of RAM, often have a slot for a second SSD and they're tiny enough to throw anywhere.

I myself have one being delivered today, but on Amazon there's a GMKtek mini PC with an Intel N150, 16GB RAM and 1TB SSD on sale for $195. Plex and Jellyfin support the Intel Quicksync engine for transcoding and you can fit several containers/apps in 16GB

If you grow out if it down the road then you'll have a good idea by then what hardware you need to upgrade to.

linux

Comment on

Anyone use powershell on linux?

It's not my default shell on most of my servers but I use it all the time. I'm just not a fan of treating everything as a stream of text to grep, trim and sort into structured data that's easier to work with. Plus, cross platform. I've tried nushell a bit but I always go back to PowerShell.

Comment on

Recommendations for running VMs on a headless server?

Reply in thread

Give webtop a try? Granted I haven’t tried anything heavy on it, but it’s been performant enough for me. Here’s a compose file if it stays formatted correctly:

services:
  webtop:
    image: lscr.io/linuxserver/webtop:latest # alpine - xfce
    # other tags with different bases and desktops: https://github.com/linuxserver/docker-webtop
    container_name: webtop
    #security_opt:
    #  - seccomp:unconfined #optional
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=America/Los_Angeles
      - TITLE=my_desktop #optional
    volumes:
      - config:/config
      #- /var/run/docker.sock:/var/run/docker.sock #optional
    ports:
      - 3000:3000
      - 3001:3001
    restart: unless-stopped
volumes:
  config: {}
networks: {}

Comment on

good alternatives to raspberry pi which are cheap and efficient?

I’ve used lots of different boards. The Radxa Rock 3c is cheap and has decent performance, but the official OS support is a bit old. The Libre Computer boards are also good and have Armbian support. Libre Computer is releasing a couple more this year too. BananaPi has good options that aren’t expensive, like the BananaPi M5. Friendly Elec has some boards like the NanoPi R2C and R5C that aren’t pricey and have Armbian support. Any one of these boards are fine for a small home lab. Just boot Armbian, install Docker, and add your containers.