# Transfer script
## Background
## Installation
### Cygwin
The detector machine can not access the internet directly, so you have to jump through a few hoops to install cygwin.
You first need to find a different Windows machine, on this one download cygwin from https://www.cygwin.com/
Run the installer, pick "Download Without Installing", any mirror, and add packages
* git
* rsync
* python3
* python38-pip
* python38-wheel
* vim
You will end up with a directory containing all the necessary files to install cygwin without a network connection. Now you need to move all these files into a suitable commissioning visit on the microscope where you want to install it.
I achieved this by
* zipping the files
* copying the zip onto my work onedrive
* logging into NX cloud
* copying the file from my O: drive to my home drive
* on a console moving the file from my home drive to `/dls/m07/data/2021/nt28231-1/tmp`
* on the microscope machine extract the file from there into the local documents directory
* rename `C:\cygwin64` to `C:\cygwin64-old`
* run the cygwin installer (from local directory, into `C:\cygwin64`)
* on the package selection screen, with "Category" selected, pick "Install" in the context menu of the column where it says "Skip".
* that should do the trick
### Transfer scripts
I've copied the M07 scripts from both computers into
`/dls/m07/data/2021/cm28151-3/markus`
Cygwin can access this location via `ls -la //m07-storage/m07/data/2021/cm28153-3/markus`