Pengwin icon indicating copy to clipboard operation
Pengwin copied to clipboard

Automated installation

Open sirredbeard opened this issue 6 years ago • 8 comments

Feature request for you, sir! Can you please make a sort of "answer file" or kickstart config, or Ansible playbook one can use to set up Pengwin, so it can be done with no interaction?

Source

sirredbeard avatar Jun 14 '19 22:06 sirredbeard

I think this could be accomplished.

A user could install Pengwin from the store and then do something like:

pengwin.exe --autosetup setupfile.txt

We would need to add some logic to the first run parts of the launcher.

It could then call a script to parse setupfile.txt.

That script could reach out and run the new modularized and refactored individual pengwin-setup scripts as appropriate.

We would need to suppress the install confirmation prompt in some way, but we have suppression flags elsewhere so that should be easy.

We would need some way to set the user password. We probably shouldn't have the password in plaintext in setupfile.txt but we could probably just use the hash.

We could then have a post-inst option where the script pipes custom script commands directly to bash.

sirredbeard avatar Jun 14 '19 22:06 sirredbeard

There are install and config options pengwin help said, and they sound like what you want. Have you tried these? It looks doing nothing when I tried though. (maybe because its already installed?) I am new to pengwin and I can not find documents about these options. Does anyone tell how to use them?

asophy avatar Jun 17 '19 12:06 asophy

This may help getting started: https://github.com/microsoft/windows-dev-box-setup-scripts/blob/master/scripts/WSL.ps1

WSLUser avatar Jul 24 '19 13:07 WSLUser

Bump, any plans?

sbugalski avatar Apr 14 '20 09:04 sbugalski

Hello @sbugalski,

No direct plans yet, but we are building the foundation, so this will be very easy using existing tools in Linux. The idea is that pengwin-setup scripts can be callable from outside pengwin-setup, and we are working on that.

Thanks for showing your interest.

If you can please elaborate on your use case, it can help us to reorient our priorities.

Regards, Carlos

crramirez avatar Apr 14 '20 09:04 crramirez

@crramirez it's enough scripts will be callable from outside. Many thanks

sbugalski avatar Apr 15 '20 13:04 sbugalski

A small update. The latest development version of pengwin-setup includes the ability to make an unattended installation. It is a work in progress but for example now it is possible to do this:

pengwin-setup --noupdate --assume-yes --noninteractive GUI HIDPI

Remember only development branch for now

crramirez avatar Jun 06 '20 23:06 crramirez

A small update. The latest development version of pengwin-setup includes the ability to make an unattended installation. It is a work in progress but for example now it is possible to do this:

pengwin-setup --noupdate --assume-yes --noninteractive GUI HIDPI

Remember only development branch for now

Wow, perfect! I'll include that in my workstation automation scripts once it will be in the Store.

sbugalski avatar Jun 07 '20 07:06 sbugalski