ntdevlabs / tiny11builder

Scripts to build a trimmed-down Windows 11 image.
9.82k stars 853 forks source link

Linux support #48

Open Maxb0tbeep opened 1 year ago

Maxb0tbeep commented 1 year ago

can I run this on linux?

draylegend commented 1 year ago

@Maxb0tbeep do you mean in a VMWarePlayer or virtualbox? Or do you mean whether tiny11 supports Windows Subsystem for Linux?

ianis58 commented 1 year ago

all this script is windows specific you have no chance to get it to run on linux.

InsertX2k commented 1 year ago

Short answer no.

Long answer, You can't run this on Linux because dism and reg utilities aren't available under a Linux environment.

s3rj1k commented 1 year ago

Long answer, You can't run this on Linux because dism and reg utilities aren't available under a Linux environment.

Long answer is yes, use WINE

ianis58 commented 1 year ago

I really think that the "dism" utility will not work / miss dependencies if you try to run it on wine. You can't run it on Linux except if you do in a windows virtual machine. You need to run it on an up to date windows 10.

s3rj1k commented 1 year ago

I really think that the "dism" utility will not work / miss dependencies if you try to run it on wine. You can't run it on Linux except if you do in a windows virtual machine. You need to run it on an up to date windows 10.

https://wimlib.net/

Worked fine enough when I was using it in Linux for Windows 8 ISO

ianis58 commented 1 year ago

Impressive I did not knew that something like that exists! Still it would need to rewrite the whole script to use wimlib instead of dism, but yeah definitely possible with that!

s3rj1k commented 1 year ago

Impressive I did not knew that something like that exists! Still it would need to rewrite the whole script to use wimlib instead of dism, but yeah definitely possible with that!

I am not sure that it will work with /Remove commands for component removal but is does work fine with imaging part.

So, you definitely can mount wim under Linux and from there abuse WINE prefixes to use mounted Windows image DLLs and use dism binary from the actual image.

But I would still recommend using VMs :)

InsertX2k commented 1 year ago

Long answer, You can't run this on Linux because dism and reg utilities aren't available under a Linux environment.

Long answer is yes, use WINE

Although reg.exe is bundled within the binaries of Wine, Dism.exe isn't.

jp06 commented 1 year ago

@InsertX2k yeah, but is it not possible to use the DISM.exe from the image like he said?

draylegend commented 1 year ago

@s3rj1k did you use it in wine?

s3rj1k commented 1 year ago

@s3rj1k did you use it in wine?

Yep, I used wine :)

InsertX2k commented 1 year ago

@InsertX2k yeah, but is it not possible to use the DISM.exe from the image like he said?

dism.exe uses the Windows's Virtual Disk service, which isn't available or can't be used on Wine in Linux

s3rj1k commented 1 year ago

@InsertX2k yeah, but is it not possible to use the DISM.exe from the image like he said?

dism.exe uses the Windows's Virtual Disk service, which isn't available or can't be used on Wine in Linux

https://bugs.winehq.org/show_bug.cgi?id=41377

InsertX2k commented 1 year ago

@InsertX2k yeah, but is it not possible to use the DISM.exe from the image like he said?

dism.exe uses the Windows's Virtual Disk service, which isn't available or can't be used on Wine in Linux

https://bugs.winehq.org/show_bug.cgi?id=41377

Still, if the VDS service works properly there might be other services required by dism.exe that can't be started on linux.

However, if you managed to properly run dism.exe under a Wine environment then congratulations!🎆

jp06 commented 1 year ago

@s3rj1k a bit off-topic but do you think it's possible to have IIS on Wine?

s3rj1k commented 1 year ago

@s3rj1k a bit off-topic but do you think it's possible to have IIS on Wine?

Probably not in production grade working state and breaking every possible licenses.

WinPE would be my second choice.