tiny11builder icon indicating copy to clipboard operation
tiny11builder copied to clipboard

[Feature Request] Linux support

Open emir4169 opened this issue 1 year ago • 9 comments

I would like the tools in this repository to not be platform-dependant on Windows.

emir4169 avatar Jun 16 '24 05:06 emir4169

It would be really helpful in the cases where we need to deploy KVMs of it.

abhalala avatar Jun 22 '24 08:06 abhalala

As a Linux first user, it seems wrong to install a full Blabla-Windows to create a Windows I would actually use in a VM. But "the tools in this repository" are just PowerShell scripts and PowerShell is also available for Linux. I did not test it. Probably the referenced "oscdimg.exe" would need to be made available via Wine. I do not fully understand the code, but maybe you also need the "advapi32.dll"?

jwillhoeft avatar Jul 11 '24 08:07 jwillhoeft

PowerShell is also available for Linux.

Yes indeed, however it doesn't work correctly:

New-Object: ./tiny11Coremaker.ps1:17
Line |
  17 |  $adminSID = New-Object System.Security.Principal.SecurityIdentifier(" …
     |              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | Exception calling ".ctor" with "1" argument(s): "Windows Principal functionality is not supported on this platform."
InvalidOperation: ./tiny11Coremaker.ps1:18
Line |
  18 |  $adminGroup = $adminSID.Translate([System.Security.Principal.NTAccoun …
     |  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | You cannot call a method on a null-valued expression.
MethodInvocationException: ./tiny11Coremaker.ps1:19
Line |
  19 |  $myWindowsID=[System.Security.Principal.WindowsIdentity]::GetCurrent( …
     |  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | Exception calling "GetCurrent" with "0" argument(s): "Windows Principal functionality is not supported on this platform."
New-Object: ./tiny11Coremaker.ps1:20
Line |
  20 |  … wsPrincipal=new-object System.Security.Principal.WindowsPrincipal($my …
     |                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | A constructor was not found. Cannot find an appropriate constructor for type System.Security.Principal.WindowsPrincipal.
InvalidOperation: ./tiny11Coremaker.ps1:22
Line |
  22 |  if (! $myWindowsPrincipal.IsInRole($adminRole))
     |      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | You cannot call a method on a null-valued expression.

(The filepaths in this log were cut off by me)

Sectonid avatar Jul 11 '24 18:07 Sectonid

And also, if you still proceed after the errors, then it will request you to input a drive letter, but Unix doesn't mount drives/images as letters.

Sectonid avatar Jul 11 '24 18:07 Sectonid

I'm not sure if Linux support is possible because there's no DISM there

YasInvolved avatar Jul 27 '24 14:07 YasInvolved

wine:

On Sat, Jul 27, 2024 at 5:15 PM YasInvolved @.***> wrote:

I'm not sure if Linux support is possible because there's no DISM there

— Reply to this email directly, view it on GitHub https://github.com/ntdevlabs/tiny11builder/issues/208#issuecomment-2254161181, or unsubscribe https://github.com/notifications/unsubscribe-auth/AVOSWHILC4H5FWGTN6JC7K3ZOOTQBAVCNFSM6AAAAABJMJH656VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENJUGE3DCMJYGE . You are receiving this because you authored the thread.Message ID: @.***>

emir4169 avatar Jul 27 '24 19:07 emir4169

wine:

Does wine provide DISM executable? Anyway, I'm working on tiny11 gui app using the DISM API (C++) so maybe this will work on Linux, but I'm still not sure if windows virtdisk lib will work fine on wine

YasInvolved avatar Jul 27 '24 20:07 YasInvolved

No wine doesn't provide a dism executable, but maybe is possible to run the microsoft executable with wine to make the script work on linux

DomHeadroom avatar Jul 29 '24 17:07 DomHeadroom

No wine doesn't provide a dism executable, but maybe is possible to run the microsoft executable with wine to make the script work on linux

I will test this when I finally have some time

YasInvolved avatar Jul 29 '24 18:07 YasInvolved

https://github.com/ntdevlabs/tiny11builder/issues/208#event-19542703945

@ntdevlabs, what OS did you test it on?

RokeJulianLockhart avatar Sep 06 '25 16:09 RokeJulianLockhart