Live data from Hacker News

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

howtogeek.com

71–80 of 124 posts

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

#71
post #61
post #60

Earlier quoted context omitted.

I’m not OP but for me I end up having trouble with games and maintaining dual boot for it isn’t worth it. Most recently I was trying to install gamescope on PopOS LTS for retro gaming, but it was too old of a distribution for gamescopes dependencies, so I upgraded to Cosmic and it broke my software KVM. I use PopOS because it has great NVIDIA support and I’ve run into issues before with other distros. At that point I…

With Steam, I haven't seen a game that doesn't work yet. I was just playing Clair Obscur yesterday, it worked great. I don't know about Gamescope, but I think you can run whatever Windows thing you want through Proton and it'll probably work well.

If you play anything multiplayer (and especially anything competitive), it’ll break periodically or not work in the first place due to anti-cheat.

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

#72
post #67
post #56

You know, it's funny—I always hear people say they want to keep their Windows-only applications and run Linux alongside it, but I made the switch almost a decade ago and honestly can't say I'm worse off for it. And frankly, there's never been a better time to make that leap; the Linux desktop has finally hit its stride and become genuinely mature, with the polish and features one would expect from a modern operating…

I absolutely love the direction KDE Plasma Wayland session is headed; I think it looks great, it definitely runs great, and it really is just packed with features. I do have some personal KDE gripes I'd like to work on, mainly just improving the KIO fuse integration more, but wow have things progressed fast. Still, I caution people to not just jump to Linux. The actual very first problem is not software. It's hardwar…

What issues have you seen recently in the wild where Linux just does not work on a laptop? I have pretty good experiences just putting Ubuntu on old laptops for people who asks me to fix their computer.

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

#73

I just carry around a pwnagotchi on a keychain, and use my iPad to access it to do Linux development work, including run a full raspian desktop, dev tools, etc.

I’m a dummy. Can you explain your setup? How does the Pi fit on a keychain? I searched for the term and it seems to be a DIY kit to do reinforcement learning to try to crack WPA keys?

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

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

#74
> Containers are not isolated Operating Systems: Docker containers share the host kernel. This is what makes them lightweight and great for single services. Whereas desktop environments expect system services like (systemd, logind, udev, DBus) and device access to be available. Containers don’t provide that by default.

I thought Docker images always run in a VM on non Linux systems, no? This guy is running Windows on host, right? Confusing

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

#75

Earlier quoted context omitted.

I’m a dummy. Can you explain your setup? How does the Pi fit on a keychain? I searched for the term and it seems to be a DIY kit to do reinforcement learning to try to crack WPA keys?

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.

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

#76
post #17

Earlier quoted context omitted.

Almost. For one thing, Docker is not really "Linux inside Linux". It uses Linux kernel features to isolate the processes inside a container from those outside. But there is only one Linux kernel which is shared by both the container and its host (within the Linux VM, in this case). For another, running Linux containers in a Linux VM on Windows is one (common) way that Docker can work. But it also supports running Win…

Can he install Wine in the Docker container to run Windows games from it?

Steam and it's remote play options seem more enticing to set up for me.

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

#78
post #9

I run Arch under WSL2 and then in ~/.bashrc: WINDOWS_IP=$(ip route | awk '/^default/ {print $3}') DISPLAY="$WINDOWS_IP:0" Now I can use the mighty mobaxterm from https://www.mobatek.net to just run whatever and pipe it back to Windows. One caveat is that the $PATH gets polluted with space characters by 'Doze, so I have to do something like this for QGIS: PATH=/usr/local/sbin:/usr/local/bin:/usr/bin qgis -n &

This sounds interesting. But I don’t fully follow? What are your use cases? To run Linux GUI apps? Does mobaxterm allow you to view those GUI apps?

Yes, Moba provides the X11 functionality to allow me to run QGIS under Arch and see the maps.

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

#79

Worth mentioning Jess Frazelle was running desktop applications in docker a while ago. Not a full desktop, but also quicker to rebuild individual apps. https://blog.jessfraz.com/post/docker-containers-on-the-desk... https://github.com/jessfraz/dockerfiles

I've been running stuff in LXC for ages (and before that, custom chroots). A while ago I made the switch to Wayland - and now started moving things over to podman, which has the added benefit of being able to share the stuff easily:

https://github.com/aard-fi/tumbleweed-images/tree/master/way...

I use two different setups - on some systems I only run things like browsers in conatainers, on others I also run the desktop itself in a container. Not published yet are my helper scripts, that'll need some more cleaning up.

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

#80
post #66
post #9

I run Arch under WSL2 and then in ~/.bashrc: WINDOWS_IP=$(ip route | awk '/^default/ {print $3}') DISPLAY="$WINDOWS_IP:0" Now I can use the mighty mobaxterm from https://www.mobatek.net to just run whatever and pipe it back to Windows. One caveat is that the $PATH gets polluted with space characters by 'Doze, so I have to do something like this for QGIS: PATH=/usr/local/sbin:/usr/local/bin:/usr/bin qgis -n &

This is a much less efficient way of running Linux GUI apps over WSL since it will use software rendering. WSL2 provides a GPU accelerated Wayland server. If your Mesa build (ver > 22) has d3d12 drivers you can use Windows DirectX as your OpenGL driver. Combined with the WSLg Wayland server you get near native desktop performance out of GUI apps.

One other nit was that WSL2 does not expose the USB ports to the Arch guest very easily.

So I had to install USBIP on the Windows11 host, and bring in a tool chain and compile a Linxux 6.x kernel in order to add external storage for my QGIS data.

Post reply on HN