public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: "Dale Lobb (Sys Admin)" <Dale.Lobb@bryanhealth.org>
To: Jose Isaias Cabrera <jicman@outlook.com>
Cc: "cygwin@cygwin.com" <cygwin@cygwin.com>
Subject: RE: EXTERNAL SENDER: Capturing a Cygwin instance from another PC
Date: Wed, 22 Nov 2023 16:20:35 +0000	[thread overview]
Message-ID: <PH0PR16MB478205092EFB046F22AF1DA7F5BAA@PH0PR16MB4782.namprd16.prod.outlook.com> (raw)
In-Reply-To: <DB9P251MB00639D5E85344DBC6BB9E9A2DEBAA@DB9P251MB0063.EURP251.PROD.OUTLOOK.COM>

> -----Original Message-----
> From: Cygwin <cygwin-bounces+dale.lobb=bryanhealth.org@cygwin.com>
> On Behalf Of Jose Isaias Cabrera via Cygwin
> Sent: Wednesday, November 22, 2023 8:53 AM
> To: cygwin List <cygwin@cygwin.com>
> Subject: EXTERNAL SENDER: Capturing a Cygwin instance from another PC
>
>
> Greetings!
>
> I have a new Win11 PC, and I wanted to capture the same Cygwin setup that I
> have in another Win10 PC. I copied the C:\cygwin64 folder from the Win10 pc
> to the Win11 pc, then I downloaded a fresh setup-x86_64.exe from
> cygwin.com to the win11 PC. I ran it and chose "Install from Local Directory"
> and only one shortcut for "Cygwin64 Terminal" was created on the desktop.
> No Cygwin nor Cygwin-X folders were created on the Start menu. The
> original cygwin from the Win10 PC had X installed also.
>
> Any idea how to get this done automatically? I know I can go and create
> folders manually, etc., but it kind of a pain. Any help would be greatly
> appreciated. Thanks.
>
> josé
>
> --
<snip>

  I've had some success doing this in the past (pre Cygwin64 days), but I did it using rsync from inside a Cygwin shell on the original machine, copying to a windows mapped drive pointing to the "C$" admin share of the target machine.  Note: You will need admin privs on the target machine to use the C$ share.  You also will have to have the default mount setting in /etc/fstab to NOT include "noacl" (which it doesn’t by default) so that Cygwin file protection masks get copied, and you need to use a set of options for rsync that copy the file privs and dates.  I believe I used "rsync -av /cygdrive/c/cygwin64 /cygdrive/<mapped drive letter/", but then, I did not have any special files in my Cygwin tree, so YMMV.

  Also, Cygwin has a registry hive located at \HKEY_LOCAL_MACHINE\SOFTWARE\Cygwin that you will want to export and import into the new machine.  You may need to modify the locations listed in some of the sub-keys, if you changed the physical location of the installation during the move (e.g. if you copied it from the C drive on the original machine to the "D" drive on the target, or if you renamed the installation directory).

  In order to use the "Install from Local directory" option, You will probably have to find and move, or at least reference, the original installation directories, where the binary packages were downloaded in order to correctly update the installation after the move.

  Good Luck!

Best Regards,

Dale



________________________________

CONFIDENTIALITY NOTICE: This e-mail message, including any attachments, is for the sole use of the intended recipients and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message.

  parent reply	other threads:[~2023-11-23  6:07 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-11-22 14:53 Jose Isaias Cabrera
2023-11-22 15:43 ` Bill Stewart
2023-11-22 16:15   ` Eliot Moss
2023-11-22 21:38     ` Jose Isaias Cabrera
2023-11-22 22:01       ` Ken Brown
2023-11-23  3:25       ` Eliot Moss
2023-11-23  9:12         ` Backwoods BC
2023-11-22 22:44     ` Cedric Blancher
2023-11-23 15:24       ` Corinna Vinschen
2023-11-22 16:20 ` Dale Lobb (Sys Admin) [this message]
2023-11-22 21:49   ` EXTERNAL SENDER: " Jose Isaias Cabrera
2023-11-23 18:40 ` ASSI
2023-11-23 20:27   ` Doug Henderson
2023-11-27  2:36 ` Chris Wagner
2023-11-27  8:24   ` ASSI
2023-11-27 17:43     ` Brian Inglis
2023-11-29 17:42       ` Jose Isaias Cabrera
2024-01-14 19:23       ` Andrey Repin
2023-11-27  2:46 ` Capturing a Cygwin instance from another PC (CORRECTION) Chris Wagner
2023-12-07 22:59 ` Capturing a Cygwin instance from another PC Andrew Schulman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=PH0PR16MB478205092EFB046F22AF1DA7F5BAA@PH0PR16MB4782.namprd16.prod.outlook.com \
    --to=dale.lobb@bryanhealth.org \
    --cc=cygwin@cygwin.com \
    --cc=jicman@outlook.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).