this post was submitted on 28 May 2024
24 points (85.3% liked)

Linux

5502 readers
164 users here now

A community for everything relating to the linux operating system

Also check out [email protected]

Original icon base courtesy of [email protected] and The GIMP

founded 2 years ago
MODERATORS
 

From another comment I made

A linux installer for windows that works just like a normal installer on windows. You download the .exe, double click it, it opens a wizard you can walk though, and by the end of the process, after it reboots, you're in a linux distro.

How could something like this be implemented?

My idea:

Best case scenario where multiple data partitions exist and can accommodate the user data stored on C:/ + there's a swap partition -->

  • download a linux iso
  • deactivate swap
  • replace swap partition with ISO contents
  • modify contents to auto install linux with settings from wizard
  • add boot entry to boot from old swap / modified ISO
  • reboot
  • install linux with a nice progress animation
    • move user data from C:/ to other partition
    • replace C:/ with linux
    • install alternatives to programs found on windows (firefox for edge, gimp for paint, inkscape for ..., libreoffice for MS office, etc.)
    • move user data to /home/$username
    • configure DE with theme (gnome for macos look, kde with theme for windows look)
    • other customisations
  • reboot into linux

Dunno if this is feasible in the best case scenario.

Anti Commercial-AI license

you are viewing a single comment's thread
view the rest of the comments
[–] Corbin 2 points 7 months ago (1 children)

The biggest barrier is writing lots of formatted data to disk without a pre-existing filesystem structure. Look at nixos-anywhere for an example; the first thing it does is ensure that it's booted into Linux, because otherwise it can't trust that the disks are laid out properly.

[–] onlinepersona 1 points 7 months ago (1 children)

No sure what you mean. On which step is writing formatted data to disk happening?

Anti Commercial-AI license

[–] Corbin 1 points 6 months ago (1 children)

Steps 8, 9, and 11 assume that the filesystem is in a Linux-compatible state and Windows-compatible state simultaneously.

[–] onlinepersona 1 points 6 months ago

Oh, the indentation didn't work. Those steps happen within the installer.

Anti Commercial-AI license