selfhosted

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

bigkahuna1986, in This Week in Self-Hosted (5 January 2024)

Thanks for the tip! I just subscribed.

timbuck2themoon,

For real. This is great stuff and a true RSS feed. Much thanks op.

abominable_panda, (edited ) in Streaming local Webcam in a Linux machine, and acessing it when on vacations - which protocol to choose?

MediaMTX can sort a lot of this for you. Then its just a matter of accessing your feed on vlc.

VPN is the safer option of accessing your network

Personally, I use this as a camera proxy bit it can record. I use zoneminder otherwise

shadowintheday2,

Thank you, I managed to get it working with MediaMTX and DockoVPN I still don’t know how I would manage dynamic IP changes during the days I’m away, that would break the VPN

tapdattl,

I just set up a security camera for my dad’s office: zoneminder running the webcam and tailscale for access anywhere.

abominable_panda,

Amazing! Congrats :)

For the dynamic ip address that you can get a free domain name from afraid or noip or maybe others and point your vpn to your domain name instead of direct ip address. Following that you can run cron job scripts to ensure the ip address that the domain points to is up to date

Administrator,

this is the way. Not sure if you can watch webrtc streams with vlc though. But you can always use rtmp or hls

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

MediaMTX

Going to Mars seems easier and less resource intensive than that thing.

MediaMTX can sort a lot of this for you. Then its just a matter of accessing your feed on vlc.

Here is how you really “just access your feed from VLC” in three easy easy steps:

Step 1. Configure nginx repositories (nginx.org/en/linux_packages.html)

Step 2. Install nginx / nginx-rtmp

Step 3. Edit nginx config to add:


<span style="color:#323232;">rtmp {
</span><span style="color:#323232;">        server {
</span><span style="color:#323232;">                listen 1935;
</span><span style="color:#323232;">                chunk_size 4096;
</span><span style="color:#323232;">                allow publish 127.0.0.1;
</span><span style="color:#323232;">                deny publish all;
</span><span style="color:#323232;">
</span><span style="color:#323232;">                application live {
</span><span style="color:#323232;">                        live on;
</span><span style="color:#323232;">                        exec_pull /usr/bin/ffmpeg -f v4l2 -input_format h264 -video_size 1920x1080 -i /dev/video4 -copyinkf -codec copy -f flv rtmp://127.0.0.1/live/stream;
</span><span style="color:#323232;">                        record off;
</span><span style="color:#323232;">                }
</span><span style="color:#323232;">        }
</span><span style="color:#323232;">}
</span>

A few notes:

  • /dev/video4 is your camera;
  • Some systems (debian) may require this sudo usermod -a -G video www-data to make sure it will work. Because ffmpeg will be launched with the www-data user that doesn’t have access to the video cameras.
  • It will even turn off the camera if nobody is connected;
  • Use ffmpeg -f v4l2 -list_formats all -i /dev/video0 to find what formats your camera supports;
  • Watch the stream from VLC with the url: rtmp://device-ip/live/stream

Enjoy.

Feliberto, in Streaming local Webcam in a Linux machine, and acessing it when on vacations - which protocol to choose?

I’m using Frigate with a Google Coral connected to Home Assistant, it’d send an image and a short video to a Telegram group with my wife whenever it detects a person.

I’m using OpenIPC firmware flashed on a chinese Goke camera and works great. It connects to Frigate using RTMP.

PlantObserver, in Tempo – An open source music client for Subsonic built natively for Android, now with Android Auto support

Damn FOSS Android Auto development is starting the new year off strong! First grapheneOS successfully implementing it on a non-stock OS and now this too. Too bad I got rid of my vehicles last year and no longer have a use for it on my ebike.

codeboy,

I first read this as you used to use android auto on your ebike and got really confused

Father_Redbeard, in worth selfhosting immich or similar? what about backups?
@Father_Redbeard@lemmy.ml avatar

I have my Immich library backed up to Backblaze B2 via Duplicacy. That job runs nightly. I also have a secondary sync to Nextcloud running on another server. That said, I need another off prem backup and will likely run a monthly job to my parents house either via manually copying to an external disk then taking it over or setting up a Pi or other low power server and a VPN to do it remotely.

palitu,

So you just mount the immich folder in the duplicate container? Or run it native?

Father_Redbeard,
@Father_Redbeard@lemmy.ml avatar

Immich and Duplicacy both run on my unraid server. Duplicacy just watches the Immich pics folder and backs that up nightly.

SandySocks, in PiKVM Build and Deploy
@SandySocks@lemmy.world avatar

What hardware are you using to attach the Pi the PCI slot?

I have a stock PiKMV V3 attached to my home server that seeing this I now need to upgrade!

agentsac,

Not OP, but looks like the Geekworm KVM-A8. They also make a version using the CM4.

Prizephitah,

It’s part of my PiKVM-kit. geekworm.com/products/pikvm-a8

It’s also PoE which is very nice.

bigredgiraffe,

They also make this one which uses a CM4 but you can control 4 machines! I have been eying it now that I can get CM4s again, thanks for the post!

jkjustjoshing, (edited ) in Self-hosted media tracker recommendations?

This is for music not watched content, but Maloja and Multi Scrobbler are a pretty nice setup.

No recommendations for your actual post, but thought it might be useful for someone else.

savedbythezsh,

I was looking for watched content, but only because I didn’t think about music before! Will play around with it, thanks for the rec

MangoPenguin, in Do any of you have that one service that just breaks constantly? I'd love to love Nextcloud, but it sure makes that difficult at times
@MangoPenguin@lemmy.blahaj.zone avatar

Nextcloud for me too, would break because of updates requiring manual DB updates sometimes, apps would randomly stop working after updating too, or the 2 times it caused total data loss on all my synced devices and the server itself which required a full restore from backups.

After getting rid of it and switching to Syncthing + Filebrowser + SFTPGo for WebDAV I haven’t really had anything break since then (about a year now). Stuff also runs much faster, NC was extremely slow even on good hardware with all their recommended settings for performance.

butt_mountain_69420,

If Nextcloud “caused total data loss on all my synced devices and the server itself” I would probably do something unsavory to any responsible party I could locate, and take 10 TB of data out of their lousy hide.

MangoPenguin, (edited )
@MangoPenguin@lemmy.blahaj.zone avatar

Yeah the first time was the time/date bug they had (still have?) where it set the time on every folder and file to 00/00/0000 00:00 across all clients and the server.

Second time was I disabled virtual file support on my laptop so it would sync everything, but instead it went and wiped all the files from the server, because for some reason their sync client assumed the laptop that now had no files on it should be the master source or something.

Their own docs even state that’s how you’re supposed to disable VFS, with no mention that it will wipe your server clean.

butt_mountain_69420,

It would be absolutely sublime if it worked. Literally every step resulted in an error. EVERY STEP.

tswerts, in Do any of you have that one service that just breaks constantly? I'd love to love Nextcloud, but it sure makes that difficult at times

This got mee googling Nextcloud and I think I’m going to give it a try 😱

butt_mountain_69420,

Seriously homie, unless you’re a fucking linux docker nerdshit wizard, you should find another way.

tswerts,

Thanks for the warning 🙂 Sometimes I still think I have as much spare time as 10 years ago 😉

butt_mountain_69420,

You could be a legless NEET and not have enough time to get this fucking bullshit to work correctly.

art, in Do any of you have that one service that just breaks constantly? I'd love to love Nextcloud, but it sure makes that difficult at times
@art@lemmy.world avatar

The only device running Snap in my house is a Raspberry Pi running the Snap Nextcloud and it’s rock solid.

This might be a deployment issue. How are most people running it?

neurospice,

I use docker and I get issues sometimes. I will admit though, when I used the snap a few years back I had no issues whatsoever.

phx,

Yeah the Docker version hated me, mainly due to it sometimes getting a bit behind on updates and then having schema mismatches if I ran an update in that missed the previous one. No issues with the Snap thus far

colebrodine,
@colebrodine@midwest.social avatar

I used to have this problem. I started pulling a version number (like 27) instead of “latest” so that I could just pull minor releases when I did updates, and then I manually step up the version in the docker-config file for major versions when I’m ready for them. (I don’t like to pull a major release version until there’s been 1 or 2 maintenance releases since my nextcloud is fairly critical for my family)

Hexarei, in Do any of you have that one service that just breaks constantly? I'd love to love Nextcloud, but it sure makes that difficult at times
@Hexarei@programming.dev avatar

The solution for me is that I run Nextcloud on a Kubernetes cluster and pin a container version. Then every few months I update that version in my deployment yaml to the latest one I want to run, and run kubectl apply -f nextcloud.yml and it just does its thing. Never given me any real trouble.

oij2, in Do any of you have that one service that just breaks constantly? I'd love to love Nextcloud, but it sure makes that difficult at times

Well… no… I have been self hosting it for several years over multiple major versions now. Only for Files, Calendar and Deck though. It was a bit hard to set up, but reading the general Apache and PHP documentation helped a lot.

bdonvr, (edited ) in Do any of you have that one service that just breaks constantly? I'd love to love Nextcloud, but it sure makes that difficult at times

I’ve setup Nextcloud but have done next to nothing with it.

My Lemmy instance gives me the most problems, but it’s also the only publicly available service I run. Mostly the issue is it seems to have a memory leak that forces me to restart it every few days.

Everything else has been completely rock solid for me, running on a mini pc (formerly a pi4 until I wanted to start doing stuff with Jellyfin and needed more power for transcoding) on OpenSUSE Leap all in docker containers. Makes it insanely easy to move stuff. I had no issues basically just copying the docker-compose files and data and bringing them up even when switching architectures.

asbestos, in Do any of you have that one service that just breaks constantly? I'd love to love Nextcloud, but it sure makes that difficult at times
@asbestos@lemmy.world avatar

I can’t remember the last time I laughed this much

eramseth, (edited ) in AppleTV complete replacement opinions

Not sure if it’s a factor for you but roku tries to phone home a lot more than anything else on my network (or perhaps my firewall just catches it more than other devices and apps). Otherwise roku is pretty good.

Nvidia shield tv is better though. It’s the best set top box. Made even better by replacing the default launcher/ home screen (android TV default launcher now has 2/3 or more of the screen taken up by ads or “recommended content” which is just ads).

Osiris,

ProjectIvy is a great launcher if anyone needs it

randomcruft,
@randomcruft@lemmy.sdf.org avatar

I will give this a look, appreciate it!

eramseth,

That’s what I’m using now and I like it.

randomcruft,
@randomcruft@lemmy.sdf.org avatar

One of the concerns is the current state of “privacy” with these devices. Interesting that you can mod the Shield (as mentioned by a couple of others as well). Good to know, even if I get one just to tinker / experiment. Thank you so much!

eramseth,

Yes that’s a concern with all of them, Apple TV included.

randomcruft,
@randomcruft@lemmy.sdf.org avatar

Agreed, Apple is not above scrutiny on the privacy front. Appreciate the response.

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