From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail2.pdinc.us (mail2.pdinc.us [67.90.184.28]) by sourceware.org (Postfix) with ESMTPS id 953BD385380A for ; Mon, 17 May 2021 21:14:56 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 953BD385380A Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=pdinc.us Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=jpyeron@pdinc.us Received: from lovegrove (nsa1.pdinc.us [67.90.184.2]) (authenticated bits=0) by mail2.pdinc.us (8.14.4/8.14.4) with ESMTP id 14HLEu8L028375 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Mon, 17 May 2021 17:14:56 -0400 DKIM-Filter: OpenDKIM Filter v2.11.0 mail2.pdinc.us 14HLEu8L028375 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pdinc.us; s=default; t=1621286096; bh=ty4HS+BvD+orNvsTZtafXRdfcD5xR8qgAwpBvIlcs4Y=; h=From:To:Subject:Date:From; b=UuXAf7b6MVdzdbiSTRWRReyP2YxHgMFPgX08h8lk02bvJlyv09IOjdpxXaVnl/2/n zlv2a/ntzNER3/+9khriNFYNnX5cTRefXlD1V94fYxrQB6/jdxVng3kLFO/AzWZxYO Zuq/6eE4oq9O8XbIIy4nEvHP96bobeK2MTQW5Pa6kTRpeE1t7Zqn+pfyBlI58nL6Md L6r+/OlSQZy7NMkYsghnsW/3nFV6RvAVUiMUAetY/ld9g4b1X3Dc5crBr8bX0qRpG3 goFaFDNc0GDMd0w+/nbEruME8kf1+0R3UTkKHi8j6jUrhOenbHvVIQ4rnBhd/hW4Df AT7XP9NMgFMZQ== From: "Jason Pyeron" To: Subject: running cygwin setup via windows sshd Date: Mon, 17 May 2021 17:15:06 -0400 Message-ID: <003f01d74b61$b60c2880$22247980$@pdinc.us> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Outlook 15.0 Thread-Index: AddLYbWrBR0JNh6EQWSn5WStLQ/iTw== Content-Language: en-us X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, KAM_INFOUSMEBIZ, SPF_HELO_PASS, SPF_PASS, TXREP autolearn=no autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: cygwin@cygwin.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 May 2021 21:15:07 -0000 For anyone who likes to try: Windows server 2019 x64 User: domain\jenkins$ is a gmsa Here is my working SSH invocation, after adding my user to the local = administrators - will update later to use --no-admin: $ ssh oss-cygwin-jenkins-node -l 'jenkins$' -t 'c:\inst\setup-x86_64.exe = -q -f -R c:\cygwin64 -l c:\inst -P = libgcrypt-devel,asciidoc,cygport,gcc-g++,libpoppler-cpp-devel,libpcre-dev= el,dejagnu,texlive-collection-latex' Starting cygwin install, version 2.908 User has backup/restore rights Current Directory: c:\inst root: c:\cygwin64 system Selected local directory: c:\inst net: Preconfig site: https://mirrors.kernel.org/sourceware/cygwin/ solving: 8 tasks, update: yes, use test packages: no solving: 0 tasks, update: no, use test packages: no Augmented Transaction List: is empty Changing gid back to original running: c:\cygwin64\bin\dash.exe = "/etc/postinstall/0p_000_autorebase.dash" running: c:\cygwin64\bin\dash.exe = "/etc/postinstall/0p_texlive_prep.dash" running: c:\cygwin64\bin\dash.exe = "/etc/postinstall/0p_update-info-dir.dash" running: c:\cygwin64\bin\bash.exe --norc --noprofile = "/etc/postinstall/zp_adwaita-icon-theme.sh" running: c:\cygwin64\bin\bash.exe --norc --noprofile = "/etc/postinstall/zp_desktop-file-utils.sh" running: c:\cygwin64\bin\bash.exe --norc --noprofile = "/etc/postinstall/zp_fontconfig_cache_1.sh" running: c:\cygwin64\bin\dash.exe = "/etc/postinstall/zp_fontconfig_dtd.dash" running: c:\cygwin64\bin\bash.exe --norc --noprofile = "/etc/postinstall/zp_glib2.0.sh" running: c:\cygwin64\bin\bash.exe --norc --noprofile = "/etc/postinstall/zp_hicolor-icon-theme.sh" running: c:\cygwin64\bin\dash.exe = "/etc/postinstall/zp_man-db-update-index.dash" running: c:\cygwin64\bin\bash.exe --norc --noprofile = "/etc/postinstall/zp_shared-mime-info.sh" running: c:\cygwin64\bin\dash.exe = "/etc/postinstall/zp_texlive_finish.dash" Ending cygwin install Connection to oss-cygwin-jenkins-node closed. $ > -----Original Message----- > From: Jason Pyeron > Sent: Monday, May 17, 2021 5:13 PM >=20 > > -----Original Message----- > > From: Jon Turney > > Sent: Monday, May 17, 2021 4:41 PM > > > > On 17/05/2021 20:59, Jason Pyeron wrote: > > > When I run > > > > > > c:\inst\setup-x86_64.exe -q -f -R c:\cygwin64 -l c:\inst -P = libgcrypt- > > = devel,asciidoc,cygport,gcc-g++,libpoppler-cpp-devel,libpcre-devel,dejagnu= ,texlive- > > collection-latex > > > > > > or > > > > > > c:\inst\setup-x86_64.exe -qvW -f -R c:\cygwin64 -l c:\inst -P = libgcrypt- > > = devel,asciidoc,cygport,gcc-g++,libpoppler-cpp-devel,libpcre-devel,dejagnu= ,texlive- > > collection-latex > > > > > > the prompt returns immediately. This is causing problems when it = is run from a > (windows) > > ssh session. > > > > --wait should be doing what you want. >=20 > -W is the same, no impact. >=20 > > > > I recently discovered that if the invoking shell is PowerShell, then > > because setup is a GUI application, PowerShell doesn't wait, so = maybe > > that's what's happening here... > > >=20 > Fits my observations. = https://superuser.com/questions/908664/have-the-command-prompt- > launch-an-application-like-notepad-and-block-until-it-is helps. >=20 > start /b /wait c:\inst\setup-x86_64.exe -q -f -R c:\cygwin64 -l = c:\inst -P libgcrypt- > = devel,asciidoc,cygport,gcc-g++,libpoppler-cpp-devel,libpcre-devel,dejagnu= ,texlive- > collection-latex >=20 > from cmd.exe use start /b /wait >=20 > /B Start application without creating a new window. The application = has ^C handling > ignored. Unless the application enables ^C processing, ^Break is the = only way to interrupt > the application. >=20 > /WAIT Start application and wait for it to terminate. >=20 > My real issue was the user was not an admin - doh!