Automation of Cygwin configuration with PowerShell -


i have installed cygwin using powershell scripting.

i doing following step manually:

  1. running new cygwin bash shell (after edit of cygwin.bat) , enter:

    mount --change-cygdrive-prefix / chmod +r /etc/passwd /etc/group chmod 755 /var 
  2. start cygwin bash shell , run ssh-host-config. answer yes key generation questions.

is possible automate these things in powershell scripts, installing cygwin, doing steps 1 , 2 in single shot?

use command:

bash.exe ssh-host-config --yes -u "cygwinuser" -c "binmode ntsec tty" -w "pwd@123" cygrunsrv -s sshd 

later go services.msc check if service running or not


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -