Live data from Hacker News

I run a full Linux desktop in Docker just because I can

howtogeek.com

101–110 of 124 posts

Re: I run a full Linux desktop in Docker just because I can

#101
post #92
post #90

Earlier quoted context omitted.

For old laptops it's significantly less bad, but definitely old. 5+ years old is usually a good start, though these days it may be better if it's even older. The most significant issues: - Peripherals simply don't work at all , as in, no touchpad or keyboard, or at least no touchscreen. This is definitely an issue with a variety of laptops including some Microsoft Surface and Dell laptops. - Power management . Freque…

Not trying to contradict anything you’re saying, which I agree is true for Microsoft and Dell machines, but to provide an anecdotal counter-example, the Asus Zephyrus, Flow and ProArt lines run pretty well on Linux provided you replace the Realtek WiFi. One place to check is the nixos-hardware repo for machines with reasonable support.

Yes, I use nixos-hardware. Definitely useful.

> to provide an anecdotal counter-example, the Asus Zephyrus, Flow and ProArt lines run pretty well on Linux provided you replace the Realtek WiFi.

I should be very clear here: what I'm trying to caution people not to do is set people up for the expectation that random Windows laptops will run Linux well. Specific Windows laptops absolutely do run Linux well sometimes, just by virtue of using parts that are very well-supported and somehow having firmware that isn't full of 100,000 bugs. (I love Framework but there are some occasional issues i have with my Framework 16 that really seem like they can only be issues with the firmware rather than Linux.)

That said, I still think you should consider tempering what you tell people, especially people you don't know well. The vast majority of users are not the type of people to disassemble their laptop and replace the WiFi card. And while I don't doubt what you're saying is true, I also think it's important to note that laptops vary a lot from SKU to SKU and revision to revision; the vendors typically don't support or test Linux, so there's absolutely no reason they wouldn't break it in a minor revision of hardware or firmware, either. Telling people that ThinkPads generally work well on Linux isn't necessarily unfair (They usually do, even today) but it's not as much of a sure thing as everyone portrays it, there are exceptions. And also, when you say they run "pretty well", you may have more reasonable expectations for what "pretty well" means than the average person. For one thing, I've found that the average person simply lacks the creativity to imagine the ways in which operating system compatibility issues can manifest. For another, these minor usability problems can profoundly impact how one uses their computer. For example, if sleep/resume works 99% of the time, that's actually not great. What happens in the remaining 1% of the time, you lose all of your work unexpectedly? Does your laptop melt inside your bag? Maybe, if you are profoundly unlucky, it could even light your damn house on fire. Of course, Windows and Windows laptops have plenty of problems with sleep/resume these days too with no Linux involved, but I still believe strongly that users who have never experienced broken sleep/resume will have a really bad time here. And again, since these laptops only support Windows, any random kernel or BIOS update could kick things into a bad state. (Immutable OSes will at least save you from having to guess, but I use NixOS and sometimes my intermittent hardware issues are really hard to pinpoint, which is observable for anyone who looks at the history of kernel versions on some of my less Linux-friendly devices.)

I think people evangelizing open source and Linux are very well-meant and often times manage to really help people escape the abusive relationship they have with Microsoft, and I want it to continue. I just want people to be careful with how they message Linux on laptops. If you are really sure someone will be highly tolerant of working through problems, maybe you need to caution them less. But, for other people, I just think it's better to be very careful and fully not recommend laptop vendors that don't support Linux. These laptops don't work well with Windows by accident!

Re: I run a full Linux desktop in Docker just because I can

#102

A fun idea might be to combine something like this with Tailscale & their Mullvad add-on, so you get ephemeral browsing environments with VPN connectivity, could make it easy to test from various countries simultaneously on a single host.

Gluetun can handle the VPN connection part for a bunch of providers

Re: I run a full Linux desktop in Docker just because I can

#103

Earlier quoted context omitted.

It's running on a pi as with every other general computing device you can also run other stuff.

I get that. I was just wondering about the comment that it can be carried around on a keychain. Looking at the pictures, some have a little screen attached and maybe a battery, so thought it might be a bit too big for a keychain.

Okay, your keychain and my keychain might have different orders of magnitude, but yeah - I run the pwnagotchi as a standalone Linux machine (because that's what it is), and I use the paper display for my own purposes these days, just to view a calendar and subjects of last 3 messages to a particular mailbox .. when I want to do some dev, I ssh -Y in, and its just like a moderately performing Linux box ..

https://www.thingiverse.com/thing:6981256

The pwnagotchi stuff is fun, but its also easily turned off, which means its not always just pwnagotchi'ing .. more of a battery powered raspian box I can also clip inside the moped glovebox .. When I get to my desktop, I can also just use standard KVM dongles and use it that way .. its not fast, but for a lot of things, its quite adequate ..

Re: I run a full Linux desktop in Docker just because I can

#104

Just to brag about it, did it 10 years ago: https://github.com/ponsfrilus/arch-novnc

I did a similar thing some years ago, when trying to hack my own cloud gaming setup by using AWS GPU Linux instances. While it worked the price per hour wasn't worth it compared to just buying a good GPU.

My idea was very similar, using TigerVNC and just launching Steam without a WM. Unfortunately I think I lost the code for it

Re: I run a full Linux desktop in Docker just because I can

#105
post #102

A fun idea might be to combine something like this with Tailscale & their Mullvad add-on, so you get ephemeral browsing environments with VPN connectivity, could make it easy to test from various countries simultaneously on a single host.

Gluetun can handle the VPN connection part for a bunch of providers

Gluetun is the bomb. I run it in front of all of the *arrs as well as LSIO's webtop for quick access to a VPN (Mullvad). The nice thing is the operational containers don't have network access to the Internet if the Glutun container is down, so it's a nice failsafe mechanism to guarantee the VPN path.

Re: I run a full Linux desktop in Docker just because I can

#106
aiui "distrobox" is built to support these setups and experimentation, even more readily, including defaults to support:

> The created container will be tightly integrated with the host, allowing sharing of the HOME directory of the user, external storage, external USB devices and graphical apps (X11/Wayland), and audio.

https://distrobox.it/

> Why * Provide a mutable environment on an immutable OS, like ChromeOS, Fedora Silverblue, OpenSUSE Aeon/Kalpa, or SteamOS3 ... * Provide a locally privileged environment for sudoless setups (eg. company-provided laptops, security reasons, etc…) * To mix and match a stable base system (eg. Debian Stable, Ubuntu LTS, RedHat) with a bleeding-edge environment for development or gaming (eg. Arch, OpenSUSE Tumbleweed, or Fedora with the latest Mesa) * Leverage a high abundance of curated distro images for docker/podman to manage multiple environments.

> Aims This project aims to bring any distro userland to any other distro supporting podman, docker, or lilipod. It has been written in POSIX shell to be as portable as possible and it does not have problems with dependencies and glibc version’s compatibility.

> It also aims to enter the container as fast as possible, every millisecond adds up if you use the container as your default environment for your terminal:

> Security implications Isolation and sandboxing are not the main aims of the project, on the contrary it aims to tightly integrate the container with the host. The container will have complete access to your home, pen drive, and so on, so do not expect it to be highly sandboxed like a plain docker/podman container or a Flatpak.

  distrobox create -n test
> Create a new distrobox with Systemd (acts similar to an LXC):

  distrobox create --name test --init --image debian:latest --additional-packages "systemd libpam-systemd pipewire-audio-client-libraries"

  distrobox enter test

I learned about it from the KDE wiki, thank you jriddell for leaving that nugget https://community.kde.org/Neon/Containers

Re: I run a full Linux desktop in Docker just because I can

#107

Can you not use the X11 server packaged with WSL as your display driver, and avoid piping this all into the web browser? Seems very inefficient to have to render everything through the browser

You can run Gnome (or whichever DE you want) in WSL 2 locally like this:

https://akik.kapsi.fi/rocky/

The desktop is accessed locally and not via a network connection and it's running under Xwayland.

Re: I run a full Linux desktop in Docker just because I can

#108

> The usability was surprisingly decent. LibreOffice and GIMP worked fine, although there was a bit of a lag. I would estimate about 70% of native performance, but still very usable. You can get better performance and lower latency for your remote desktop and eliminate lag by using a gaming-focused remote desktop server, e.g. using Sunshine: https://github.com/LizardByte/Sunshine . You will need to give it access to…

Sunshine + Moonlight on the steam deck is an amazing combo. I've put 2k+ hours into games using that setup at this point.

It's had me thinking a lot about remote computing.

Re: I run a full Linux desktop in Docker just because I can

#110
post #91
post #5

Earlier quoted context omitted.

Thanks, this looks awesome! Will play around on my CI/CD first to see if it's any good for the build-server to add trixie builds. Might use in prod deploys later.

Update: I looked at it. Overall it looks very promising on paper. However, the bootstrapping process is so much work that I've ended up ditching it for now. I don't want to "automate the automation" yet. Trying out podman now.

Have you tried LXC? It runs entire distros as containers, with init and everything.
Post reply on HN