tiny11builder
tiny11builder copied to clipboard
[Feature Request] Linux support
I would like the tools in this repository to not be platform-dependant on Windows.
It would be really helpful in the cases where we need to deploy KVMs of it.
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"?
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)
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.
I'm not sure if Linux support is possible because there's no DISM there
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: @.***>
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
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
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
https://github.com/ntdevlabs/tiny11builder/issues/208#event-19542703945
@ntdevlabs, what OS did you test it on?