selfhosted

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

krash, in PSA: The Docker Snap package on Ubuntu sucks.

But this is by design, snap containers aren’t allowed to read data outside of their confinements. Same goes for flatpak and OCI-containers.

I don’t use snap myself, but it does have its uses. Bashing it just because it’s popular to hate on snap won’t yield a healthy discussion on how it could be improved.

aniki, (edited )

Snap can be improved with this one simple step

sudo apt-get purge snapd -y

There’s no improving snap. it sucks – full stop. just the mount clutter alone makes it garbage.

The solution exists and its called flatpak and it works MUCH BETTER than canonical-only scholck.

Limitless_screaming,
@Limitless_screaming@kbin.social avatar

Snap sucks, but not for the reason OP stated. There's a decillion reasons for why Snaps suck, why make up a reason that applies to other formats that are actually good?

hperrin,

Ok then don’t publish an application that clearly needs access to files outside of the /home directory. Or at least be upfront about how limited it is when run as a snap.

peter,
@peter@feddit.uk avatar

The Linux community loves to put the responsibility on the user to understand every facet of what they’re trying to do without explaining it

MangoPenguin,
@MangoPenguin@lemmy.blahaj.zone avatar

Agreed, it’s not user friendly at all.

throwafoxtrot,

Does it clearly need access to files outside the /home directory though?

You said your volume mount failed. How about mounting something inside your home folder into the docker container?

hperrin, (edited )

I have a 20TB RAID array that I use for a number of services mounted at /data. I would like Nextcloud to have access to more than the 128GB available to /home. I’m not willing to move my data mount into /home and reconfigure the ~5 other services that use it just to work around some stupid Snap limitation. Who knows whether Snap even can access data across filesystems if they’re mounted in home. I wouldn’t put it past the Snap devs to fall down on that point either.

Yes, Docker clearly needs access to all files. It is meant for running server software, and server software is supposed to be flexible in its setup. To me, this limitation makes it completely unusable. Nextcloud is only the first service that needed access to that directory. I’ll also be running MinIO there for blob storage for a Mastodon server. I’ll probably move Jellyfin into a Docker container, and it’ll need access too.

The fact that this giant issue with Snap is not made clear is my biggest problem with it. I had to figure it out myself over the course of two hours when there are zero warnings or error messages explaining it. What an absolutely unnecessary waste of time, when it could have warned me at install that if I wanted a completely functional version of Docker, I should use the apt package.

I will never use any Snap package again. This was such a bad experience that I probably won’t even be using Ubuntu Server going forward. I already use Fedora for desktop. And the fact that a few people here are basically saying it’s my fault for not already knowing the limitations imposed on Snap packages is just making it more obvious that Ubuntu has become a toxic distro. It’s sad, because Ubuntu got me into Linux back with Hardy Heron 8.04. I’ve been running Ubuntu servers since 9.10. I used to be excited every six months for the new Ubuntu release. It’s sad to see something you loved become awful.

thesmokingman,

The issue here is that Canonical pushed the snap install without warning about its reduced functionality. I don’t think highlighting a wildly different experience between a snap install and the Docker experience people are used to from the standard package install is “bashing it just because it’s popular to hate on snap.” For example, if you take a fresh Ubuntu server 22 install and use the snap package, not realizing that snaps have serious limitations which are not explicitly called out when the snap is offered in the installation process, you’re going to be confused unless you already have that knowledge. It also very helpfully masks everything so debugging is incredibly difficult if you are not already aware of the snap limitations.

hperrin, (edited )

This exactly. Because some poor shmuck might spend two hours trying to get Nextcloud to work with it.

uzay, in pooling media libraries - like distributed storage

Why do you use SMB instead of just connecting to the different jellyfin servers directly via VPN?

suntzu,

One big shared media volume has multiple benefits, each server just have to deal with their own user management, no server switching or remembering if that one movie is of this or that Server…

Paragone, in Protecting HDDs from (external) train vibrations

Replace them with SSD’s?

Your seek-time drops to near-zero,

your throughput increases to SATA ( or your motherboard’s SATA controller ) speed,

and you become absolutely-immune to such vibrations.

I cannot understand using rotating-disk drives in any notebook machine, under any circumstances, ever, for the last decade or so.

_ /\ _

LufyCZ,

They’re taking about a NAS though?

QuadratureSurfer,
@QuadratureSurfer@lemmy.world avatar

As long as you use the right kind of SSD, there aren’t any problems with doing this.

khorak,

Can you elaborate on “the right kind”, do you mean the NAS grade ssd’s?

QuadratureSurfer,
@QuadratureSurfer@lemmy.world avatar

Yes, there are NAS grade SSD’s that can be used.

khorak,

I have 3 Intel S3700’s, one for the OS and two 400GB ones for a mirror pool (might do a raidz1 as well). But getting anything in a serious capacity (8-12 TB of usable storage) with datacenter SSDs is really expensive. :(

LufyCZ,

Oh for sure, it’s just a loot more expensive

HumanPerson,

Just rob a few banks, go to prison, meet a coke dealer, get out of prison and start selling coke, rise up the ranks until you can kill the current leader and become a drug kingpin, and finally realize that you still don’t have enough money for it because they are expensive as shit.

phrogpilot73,
@phrogpilot73@lemmy.world avatar

I might have to downvote you. After all that, you could probably afford one. Forget a RAID though.

CCMan1701A, in 13 Feet Ladder

Loaded the docker for fun on my NAS. I don’t need it, but other users in my home may appreciate this.

eskuero, in Download videos with ytdl from an invidious playlist for antennapod
@eskuero@lemmy.fromshado.ws avatar

If you keep the same filenames for the video files it should not redownload what already has.

For automatically I think is honestly easier to just run the command on a cronjob every 5 mins.

mumblerfish,

This. And, yt-dlp and/or youtube-dl used to have an issue where if the url started with the video ID instead of the playlist ID, it just downloaded the video not the whole playlist. Not sure if that is still around, then just be aware.

upliftedduck,

Thanx, i will check out yt-dlp

quizno50, (edited ) in Am I in over my head? Need some encouragement!

I’ve been doing Linux server administration for 20 years now. You’ll always have to duckduckgo things. You’ll never keep it all in your head, even just a single server with a handful of services. Docker and containers really isn’t too hard. Just start small and build from there. If you can learn how the chroot command works, you’ve pretty much learned docker. It’s just chroot with more features.

billwashere,

Yep same here. Professional IT for over 25 years. Nobody knows everything. It’s ok to fail. Just keep swimming. And when you do get something working…. that high is unbelievable. It’s like a drug addiction and will drive you to do more and more. Good luck!!!

helenslunch, (edited ) in Am I in over my head? Need some encouragement!
@helenslunch@feddit.nl avatar

I’ve been working on this on and off for a few months now. The more I learn, the deeper the hole gets. Ports and VPNs and UPNP and TCP and UDP and hosts and containers and firewalls and on and on. It’s a lot.

Many times I can’t get things working properly, if at all, and other times it works perfectly one day and then several days later, after changing absolutely nothing, no longer works.

My current goal is to get a Mobilizon instance and a Jitsi server running, to hopefully get a community started up there that meets up regularly to help each other, and to make onboarding easier.

I tried to ask for help around here and, while a few kind people did offer to help (and disappeared shortly thereafter), I was overwhelmingly lambasted for daring to ask for personal help.

krolden, in Jellyfin on a vps
@krolden@lemmy.ml avatar

Seedbox

helenslunch, in Planning build: Power efficient headless steam machine, and later upgrade for AI tasks
@helenslunch@feddit.nl avatar

I tried to set up a Steam server for Steam Deck. I can’t figure out how to make it run the games in 16:10 800p/90 instead of 21:9 2k/144.

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.

lemmyvore, in PiKVM Build and Deploy

So this board allows you to remotely control the PC you put it in?

Is there a reverse project, that allows a PC to act as a PiKVM for another PC or laptop so they can be controlled remotely?

Prizephitah,

Yes.

Not aware of any such project. I’d assume you’ll need some hardware anyways as you need it for the level of access (ATX etc.). Not sure how that would be preferable to this.

lemmyvore,

I was thinking more about the basics, like USB input and getting the image+sound. For that you could get away with a special USB cable and a capture card. I’m just not aware of any software for it, I don’t think the original PiKVM stuff was ever ported to PC.

Prizephitah,

PiKVM is based on Arch for ARM.

knova, in 13 Feet Ladder
@knova@infosec.pub avatar

Love it! Deployed it this morning.

Catsrules, in Planning build: Power efficient headless steam machine, and later upgrade for AI tasks

Maybe add one of those dummy HDMI or Display dongles so you don’t need to connect a monitor and you can set the display resolution who whatever you want.

rhymepurple, in Protectli FW6B

Some additional ideas for the Protectli device:

  • backup/redundant OPNsense instance for high availability
  • backup NAS/storage
    • set it up at a family/friend’s house
  • a test/QA device for new services or architecture changes
  • travel router/firewall
  • home theater PC
  • Proxmox/virtualization host
    • Kubernetes cluster
  • Tor, I2P, cryptocurrency, etc. node
  • Home Assistant
    • dedicated local STT/TTS/conversation agent
  • NVR
  • low powered desktop PC

There are so many options. It really depends on what you want, your other devices, the Protectli’s specs, your budget, etc.

archy, in Jellyfin on a vps

Not sure if this fits your needs but I bought a NAS and mounted it via NFS4 over tailscale to my cloud. Yes, it is slower, but I got 20TB in the cloud

SeeJayEmm,
@SeeJayEmm@lemmy.procrastinati.org avatar

This sounds like a stability horror show. Has that really worked out well for you?

archy,

Yes. When loading small images - there is no noticeable difference between local and NAS. When loading videos or large pics - there is about a 2 sec lag, then the video plays normally. I have a 500/500 Mb internet at home and on the VPS side I think it’s a few Gbps. I am consistently pulling minimum 200 Mbps between the two. I set a mount option ,nofail so that my OS boots up when NAS is down/unreachable, and my container also starts up fine with the NAS down, but won’t play its content obviously

SeeJayEmm,
@SeeJayEmm@lemmy.procrastinati.org avatar

Didn’t even occur to me to ask what your upload bw was. That makes sense.

crony,
@crony@lemmy.cronyakatsuki.xyz avatar

Where I live I don’t have space for evem a rpi4. So the first I need to do is move out of my current home.

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