this post was submitted on 16 Jan 2025
50 points (93.1% liked)

Linux

49040 readers
1380 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

Comrades I challenge you to find the stupidest, most convoluted way to run a Windows app !

The rules are :

  • You start with Windows and end with a Windows app
  • All steps must be different, so no using 4 different VM software

Here is my entry, with a score of 9 beautifully stupid steps :

  • Windows > WSL > WSL Wayland compatibility layer > Linux Wayland session > XWayland > QEMU > macOS > Wine > Windows app !

Can anyone do better ? I'm sure whoever get the highest score will gain eternal fame !

top 21 comments
sorted by: hot top controversial new old
[–] mvirts 3 points 21 hours ago* (last edited 21 hours ago)

I would recommend using multiple versions of windows, and maybe running it all in a VM in a web browser on Android,

like https://www.pcjs.org/

[–] [email protected] 8 points 1 day ago

Fewer steps than yours, but I'll claim this as a win in the "purity" field where you have to stop at the first layer where you can run a Windows app.

Linux on a RISC-V device -> container -> qemu-user + binfmt -> x86 VM software -> FreeBSD -> Linux binary compatibility -> Wine -> Windows app

[–] Dagamant 41 points 1 day ago* (last edited 1 day ago) (4 children)

I don’t remember the exact process but I ran Linux on computer A and windows on computer B. I installed windows onto a second drive on computer B and set Virtual box on computer A to use that drive as its boot drive over the network. I then shared the primary drive as well so I could boot computer B into either Windows install and run the other as a VM on Computer A.

I have no idea why I did this but it worked and no one was impressed.

[–] [email protected] 10 points 1 day ago

"Because I can" is a perfectly viable reason. Messing around and doing ridiculous things is one of the best ways to learn.

[–] [email protected] 3 points 1 day ago

I'm definitely impressed !

[–] [email protected] 2 points 1 day ago

I'm impressed

[–] [email protected] 16 points 1 day ago

I'm impressed

[–] [email protected] 7 points 1 day ago (1 children)

If the app is running on the same machine Windows is you haven't gone far enough, that's all i'll say.

[–] [email protected] 2 points 1 day ago

I didn't think of that ! 🤯 There definitely would be a way to do something even stupider with multiple PC

[–] olympicyes 3 points 1 day ago (1 children)

Did you actually get that to run or is this a fun thought exercise? It seems like a lot of nested virtualization. If you’re clever enough maybe you could get Windows > WSL > WSL Wayland compatibility layer > Ubuntu Wayland session > LXC > Fedora > QEMU > macOS > Wine > Windows app

[–] [email protected] 2 points 1 day ago* (last edited 1 day ago) (1 children)

I really want to try it because I can't resist stupid projects, but I'm stuck on a crappy old Thinkpad for now, and it probably would die at step 1 install Windows 11 😅 So it's only theoretical for now, but I hope to try it whenever I get a new PC !

[–] olympicyes 2 points 1 day ago

I needed to make a docker image based on Core OS (RedHat) and the docker host had to be RHEL compatible. My machine is Ubuntu. To get it to work, I installed Rocky Linux on LXC and docker inside that machine. Turns out there are a lot of security settings isolating LXC and restricting nested virtualization, but fortunately Canonical posts a 20 minute video explaining how to modify the permissions for that use case. I cannot imagine virtualizing much further without the machine refusing to comply!

[–] [email protected] 21 points 1 day ago

Have you....you haven't...actually tested this out, have you? Surely someone wouldn't actually do this. Pics or didn't happen

[–] [email protected] 15 points 1 day ago

Not sure about better but I can add a step. Fire up Microsoft word, then write a macro which outputs a shortcut that launches Internet explorer with a URL that loads and local HTML page which after 1 second redirects to a .exe. then click open instead of save as. That only works with really old school internet explorer of course not the modern edge version.

[–] [email protected] 8 points 1 day ago

Start by installing Windows on your phone

[–] thenextguy 10 points 1 day ago

Install Windows. Run the app.

[–] [email protected] 9 points 1 day ago

I like you man you're chill

[–] [email protected] 5 points 1 day ago

Do attempts without Windows as the first step count e.g running Windows in QEMU on Wine on Linux?

Also, depending on which version of WSL you used, you might be breaking your own rule with WSL on VMs since WSL2 uses Hyper-V. You might also be breaking it again with QEMU.

What actually counts as "VM software"? Are you defining it as a hypervisor, or does, for instance, emulating Linux on ARM in an emulator of a RISC V system in an emulator of a PowerPC system break the rule. In addition, do you mean consecutive VM software steps, or could I for instance emulate an ARM CPU that supports hypervisors and run a VM software in there?

[–] [email protected] 3 points 1 day ago

So a windows application, or "Windows app" AKA remote desktop? Smh at Microsoft...

[–] [email protected] 1 points 1 day ago (1 children)

@phantomwise must the above steps actually be implemented, or is creative visualization good enough?

[–] [email protected] 2 points 1 day ago

No but if anyone is crazy enough to try please share pics 😀

(I would try but... I only have an old laptop that can't even manage step 1... those Win 11 hardware requirements ) 💀