selfhosted

This magazine is from a federated server and may be incomplete. Browse more on the original instance.

user224, in Does anyone else harvest the magnets and platters from old drives as a monument to selfhosting history?
@user224@lemmy.sdf.org avatar

I will keep the magnets if I ever get into this in the future, but not the platters. I’ll just safely destroy them and dispose of them.

So far I only had 3 laptops and no desktops. I had 0 HDD failures, since I only ever had 3 of them so far.
The oldest one is more than 17 years old 80GB 2.5" Fujitsu HDD.

SzethFriendOfNimi,
@SzethFriendOfNimi@lemmy.world avatar

The magnets are fantastic for tool mounts since they’re so strong

tburkhol,

Back in the day, I’d go through HDDs faster than systems-always needed to add storage before I could replace the CPU. I didn’t start disassembling them until they got up to the 500 _M_B range, but you’d often get 3 platters back then. OP must be harvesting from a whole workgroup - I’ve only got a 3cm stack and 7 drives waiting for the screwdriver.

CalicoJack, in I want to get started with *arr apps - here are all the things I don't understand about (reverse-/)proxies and networking in order to get it set up.

If you’re only trying to use Jellyfin at home, you don’t need any reverse proxy or domain. All you need is for both devices to be on the same network, and for the Raspberry Pi to have a fixed internal IP address (through your router settings).

On the Shield, you just give the Jellyfin app that IP address and port number (10.0.0.X:8096) to connect and you’re good to go.

funkless_eck,

Even if they are in separate rooms, they just have to be on the same network?

CalicoJack,

Exactly. Doesn’t matter if they’re wired or wifi, or where they are, as long as they’re on the same network you’re fine.

Chewy7324,

Whether a device is wired or on wifi matters on some routers, because some routers have wifi and wired devices on different subnets by default. It’s unlikely, so I wouldn’t worry, unless you notice accessing it only works wired.

@CalicoJack

funkless_eck,

yes, wlan vs eth, right? And then in some providers, tun for the vpn?

jaykay,
@jaykay@lemmy.zip avatar

wlan and eth are network adapters in your raspberry Pi probably. Not subnets. Subnet is a range of IP addresses the router can use to give out IP addresses to devices. Basically, let’s assume that the router/the local network has only one subnet 192.168.1.0/24. This number means, the router can give out IP addresses from 192.168.1.0 to 192.168.1.254. If the router had two subnets, let’s say A: 192.168.1.0/24 B: 192.168.2.0/24 device on subnet A, would be able to talk to the device on subnet B.

Either way, in my opinion you’re overcomplicating things a lot for yourself. If you only wish to watch from home, on your couch, you don’t need reverse proxies, cloudflare and all that jazz. Docker and raspberry pi is enough. I can walk you through it if you want :)

funkless_eck, (edited )

that’s a helpful explanation of subnets thank you

In the paradigm of

111.222.3.4:5/22

if “3” is subnet and “5” is port - what are the names of “4”, “222”, “111”, and “22”?

And is there ever a 000.111.222.3.4:5/22 or another add on?

jaykay, (edited )
@jaykay@lemmy.zip avatar

Oh boy we’re going deep I guess haha.

So an IP address is divided into four section separated by dots. 123.123.123.123. Each of those section can go from 0 to 255, so 0.0.0.0 to 255.255.255.255. Why this number? There is 256 numbers from 0 to 255, and 256 is the biggest number you can make out of 8 bits. (If you’re interested in binary, please look it up, this is already long haha) If every number between the . can be made out of 8 bits that means the whole IP address is 32 bits. It’s 32 bits cos that’s what was convenient when it was decided basically. Makes sense?

Now, the subnets. Each network can be divided into sub networks or subnets. Subnets fall into 5 classes: ABCDE. D and E aren’t used as much so I don’t know much about them.

Class A: Subnet mask is 255.0.0.0 Class B: Subnet mask is 255.255.0.0 Class C: Subnet mask is 255.255.255.0

A subnet mask determines how many bits are reserved for the network, and how many bits are used for hosts (devices). Basically, each IP address is divided into a network part and a host part. Network part is used for identifying networks and how many you can make, while host part is used for identifying hosts/devices like your phone or PC or whatever and how many can be connected.

In class A, with 255.0.0.0, the first number is reserved for the network, and the other 3 for the devices for example.

In class A you have a small amount of possible subnets but a big number of devices, and the opposite in class C.

The 24 after the slash is just a different way of saying 255.255.255.0, called CIDR notation. 255.0.0.0 is /8 and 255.255.255.0 is /16.

So depending on the subnet class, what the numbers mean differs. Well except the port and CIDR subnet mask.

All in all, all you need to know is that your router most likely has one subnet lol

funkless_eck,

ok. I would still like to learn this stuff, so hopefully someone can come in and answer some of the questions - but it seems like, then, the challenge is just gluetun for now.

Oisteink, in [solved] Nginx proxy server - strange behavior

As you can forward by ip but not by name it sounds like resolver issue.

tubbadu,

how can I find out more about this?

Oisteink, (edited )

On the host of the nginx rev proxy or in nginx config files. Something seems to block the lookup from name to ip, as ip works you know the proxy works. Check dns config and nginx config on that host

tubbadu,

here’s the configuration file for jellyfin:


<span style="color:#323232;"># ------------------------------------------------------------
</span><span style="color:#323232;"># jellyfin.tubbadu.duckdns.org
</span><span style="color:#323232;"># ------------------------------------------------------------
</span><span style="color:#323232;">
</span><span style="color:#323232;">
</span><span style="color:#323232;">
</span><span style="color:#323232;">map $scheme $hsts_header {
</span><span style="color:#323232;">https   "max-age=63072000; preload";
</span><span style="color:#323232;">}
</span><span style="color:#323232;">
</span><span style="color:#323232;">server {
</span><span style="color:#323232;">set $forward_scheme http;
</span><span style="color:#323232;">set $server         "192.168.1.13";
</span><span style="color:#323232;">set $port           8096;
</span><span style="color:#323232;">
</span><span style="color:#323232;">listen 80;
</span><span style="color:#323232;">listen [::]:80;
</span><span style="color:#323232;">
</span><span style="color:#323232;">listen 443 ssl;
</span><span style="color:#323232;">listen [::]:443 ssl;
</span><span style="color:#323232;">
</span><span style="color:#323232;">
</span><span style="color:#323232;">server_name jellyfin.tubbadu.duckdns.org;
</span><span style="color:#323232;">
</span><span style="color:#323232;">
</span><span style="color:#323232;"># Let's Encrypt SSL
</span><span style="color:#323232;">include conf.d/include/letsencrypt-acme-challenge.conf;
</span><span style="color:#323232;">include conf.d/include/ssl-ciphers.conf;
</span><span style="color:#323232;">ssl_certificate /etc/letsencrypt/live/npm-18/fullchain.pem;
</span><span style="color:#323232;">ssl_certificate_key /etc/letsencrypt/live/npm-18/privkey.pem;
</span><span style="color:#323232;">
</span><span style="color:#323232;">
</span><span style="color:#323232;">
</span><span style="color:#323232;">
</span><span style="color:#323232;">
</span><span style="color:#323232;">
</span><span style="color:#323232;"># Block Exploits
</span><span style="color:#323232;">include conf.d/include/block-exploits.conf;
</span><span style="color:#323232;">
</span><span style="color:#323232;">
</span><span style="color:#323232;">
</span><span style="color:#323232;">
</span><span style="color:#323232;">
</span><span style="color:#323232;">
</span><span style="color:#323232;">
</span><span style="color:#323232;">
</span><span style="color:#323232;">proxy_set_header Upgrade $http_upgrade;
</span><span style="color:#323232;">proxy_set_header Connection $http_connection;
</span><span style="color:#323232;">proxy_http_version 1.1;
</span><span style="color:#323232;">
</span><span style="color:#323232;">
</span><span style="color:#323232;">access_log /data/logs/proxy-host-5_access.log proxy;
</span><span style="color:#323232;">error_log /data/logs/proxy-host-5_error.log warn;
</span><span style="color:#323232;">
</span><span style="color:#323232;">
</span><span style="color:#323232;">
</span><span style="color:#323232;">
</span><span style="color:#323232;">
</span><span style="color:#323232;">
</span><span style="color:#323232;">
</span><span style="color:#323232;">location / {
</span><span style="color:#323232;">
</span><span style="color:#323232;">
</span><span style="color:#323232;">
</span><span style="color:#323232;">
</span><span style="color:#323232;">
</span><span style="color:#323232;">
</span><span style="color:#323232;">
</span><span style="color:#323232;">
</span><span style="color:#323232;">proxy_set_header Upgrade $http_upgrade;
</span><span style="color:#323232;">proxy_set_header Connection $http_connection;
</span><span style="color:#323232;">proxy_http_version 1.1;
</span><span style="color:#323232;">
</span><span style="color:#323232;">
</span><span style="color:#323232;"># Proxy!
</span><span style="color:#323232;">include conf.d/include/proxy.conf;
</span><span style="color:#323232;">}
</span><span style="color:#323232;">
</span><span style="color:#323232;">
</span><span style="color:#323232;"># Custom
</span><span style="color:#323232;">include /data/nginx/custom/server_proxy[.]conf;
</span><span style="color:#323232;">}
</span>
tubbadu,

on the server host myserverhostname correctly resolves, but if I enter the container (docker exec -it nginx-app-1 bash) it does not work anymore:


<span style="color:#323232;">[root@docker-11e3869f946f:/app]# host tserver
</span><span style="color:#323232;">Host tserver not found: 3(NXDOMAIN)
</span>

(I had to install dnsutils before)

it seems a nginx issue then

Oisteink,

Could also be docker network-config. Docker should by default use the hosts resolver config if there’s nothing in /etc/resolve.conf

You can also supply dns server on the docker command or in your compose file if you’re using compose.

As a last resort you can enter server and ip i the container’s /ets/host file if the ip is static. But that’s gone once you rebuild the image.

Or maybe there’s env on the container you use for dns

tubbadu,

I found a solution: use myserverhostname.station instead of just the hostname. I really have no idea why, on the previous installation it worked well with just the hostname… ahh, whatever.

thank you very much for the help!

lemann, in Alternative to Home Assistant for ESPHome Devices

I went with the virtual appliance when I installed Home Assistant several years ago, turned out to be a great decision looking at how it’s architected. I only self-host the database separately, which i’ve found easier to manage.

the fact that the storage usage keeps growing

There should be a setting to reduce how long Home Assistant retains data for - I removed the limit on mine, however its possible that on newer versions they’ve changed the default

Hope you find a solution though - I think node red (capable of doing dashboards on its own) with something else is going to get you part way there.

TCB13, (edited )
@TCB13@lemmy.world avatar

I’ve been doing this. I’m running HA under LXD (VM) and it works.


<span style="color:#323232;">$ lxc info havm
</span><span style="color:#323232;">Name: havm
</span><span style="color:#323232;">Status: RUNNING
</span><span style="color:#323232;">Type: virtual-machine
</span><span style="color:#323232;">Architecture: x86_64
</span><span style="color:#323232;">PID: 541921
</span><span style="color:#323232;">Created: 2023/12/05 14:14 WET
</span><span style="color:#323232;">Last Used: 2024/01/28 13:35 WET
</span>

While it works great and it was very easy to get the VM running I would rather move to something lighter like a container. About the storage I just see it growing everyday and from what I read it should be keeping for 10 days however it keeps growing. Almost 10GB for a web interface and logs from a couple of sensors, wtf?

I would be very happy with HA, really no need to move other stuff as long as things were a bit less opaque than a ready to go VM that runs 32434 daemons and containers inside it.

icanwatermyplants,

Curious, you might want to look into what’s generating your data first. It’s easy to generate data, it’s harder to only keep the data that’s useful.

TCB13,
@TCB13@lemmy.world avatar

And how do I go about that?

icanwatermyplants,

One logs into the VM and starts checking the files of course. Go from there.

icanwatermyplants,

Curious, you might want to look into what is generating your data then first. It’s very easy to generate data, it’s a lot harder to only generate and keep useful data.

PerogiBoi, in Does anyone else harvest the magnets and platters from old drives as a monument to selfhosting history?
@PerogiBoi@lemmy.ca avatar

No but now I know what to do with my old hard drive that failed :)

Yantantethera, in Does anyone else harvest the magnets and platters from old drives as a monument to selfhosting history?
@Yantantethera@lemmy.world avatar

I use them as coffee mats…

vikingtons,
@vikingtons@lemmy.world avatar

The 3.5s make for excellent coasters lol

variants,

How do you keep them from sticking onto cups

vikingtons, (edited )
@vikingtons@lemmy.world avatar

Good question, but I’ve not had that issue so far

I typically use yeti ramblers with a metal bases on them, though I’ve set ceramic mugs down on them too and they’ve not stuck. might depend on the drink a little?

variants,

Oh it’s probably vacuum sealed then so it doesn’t condensate

vikingtons, (edited )
@vikingtons@lemmy.world avatar

Maybe but I do spill a bit every now and then. Can’t speak for the regular ceramic mugs, though that’s a bit of a rarity and they just have herbal tea

NegativeInf,

I do that with save icons!

brygphilomena, in Proxmox HA, Docker Swarm, Kubrenetes, or what?

Consider power line adapters instead of wifi.

Krafting, in Question: Best UI to manage VMs and containers?
@Krafting@lemmy.world avatar

Portainer and Cockpit if you want to run VM (it also manage container but only with podman)

hperrin,

Cockpit looks interesting. It’s got a lot of features I normally do with terminal commands, but the VM manager stuff looks like what I’m looking for.

Moonrise2473, in Question: Best UI to manage VMs and containers?

I tried portainer and it was overkill for my usage, too much overhead and too many features that I don’t need.

Right now I’m using ajenti 2, which shows memory and CPU usage for the docker containers in the web page

indigomirage, in Question: Best UI to manage VMs and containers?

Give portainer a try. It’s actually pretty good for getting a birdseye view, and let’s you manage more than one docker server.

It’s not perfect of course.

indigomirage,

Note that if you want actual virtualization then perhaps Proxmox (not sure if it manages multiple hypervisors - I haven’t obtained something to test it on yet). Portainer is best for Docker management (it, and it’s client agents, run as docker containers themselves. Don’t forget to enable web sockets if proxying.

icanwatermyplants, in Alternative to Home Assistant for ESPHome Devices

Consider running HA in a light weight systemd-nspawn container with minimal debian. No docker, only install the repositories you need. HACS if needed. Run your own database on the side somewhere and let HA use it.

By itself HA is fairly lightweight already.

TCB13,
@TCB13@lemmy.world avatar

I was trying to go that route with LXC actually and while it seems great what about the ESPHome addon? I’m not even sure if that thing is required to use ESPHome devices or not.

BearOfaTime, in How well does the raspberry pi handle being a moonlight client

What’s moonlight? (Genuinely curious, always looking for new tools).

Thanks!

ShortN0te,
perishthethought,

Thank you!

MeatsOfRage, (edited )

moonlight-stream.org

Just to add some details to that link, it’s a network streaming app that lets you remote into another machine and depending on your network configuration it’s often fast and responsive enough to play games (I played through Celeste which is a very twitchy precision platformer with no issues). It’s also just cool streaming something like Cyberpunk on ultra settings to your phone. There are moonlight clients for nearly any device.

To host moonlight you used to be able to just do it natively through Nvidia gamestream but they turned that feature off. You can use Sunshine now to host github.com/LizardByte/Sunshine

BearOfaTime,

Oh, slick!

Now you given me yet another thing to sink time into, haha.

Thanks!

vegetaaaaaaa, in Termius alternative ?
@vegetaaaaaaa@lemmy.world avatar

I think Shellhub might do the trick

vegetaaaaaaa, in SSO with automatic user creation
@vegetaaaaaaa@lemmy.world avatar
  • set up a LDAP directory server (i use openldap)
  • create users on the LDAP directory server
  • setup all services/applications to authenticate users aginst the LDAP server
synapse1278, in Raspberry as NAS, multiple HDDs and an enclosure
@synapse1278@lemmy.world avatar

If you can get a hold on a 3D printer, you can try this design: Raspberry Pi 4 NAS with 2x 3.5" bays / impulse1delta / printables.com

  • All
  • Subscribed
  • Moderated
  • Favorites
  • selfhosted@lemmy.world
  • localhost
  • All magazines
  • Loading…
    Loading the web debug toolbar…
    Attempt #