User Tools

Site Tools


tech:microsoft:cygwin:start

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
tech:microsoft:cygwin:start [2018/02/24 16:15]
rk4n3
tech:microsoft:cygwin:start [2018/02/24 16:39] (current)
rk4n3
Line 21: Line 21:
  
 ===== Installation ===== ===== Installation =====
-  * Create an administrative user for the backup system identity to be used, log in as that user +  * Create an administrative user (we'll refer to as ''​$USR''​) ​for the backup system identity to be used, log into Windows ​as that user 
-  * Acquire the ZIP archive to the client machine+  * Acquire the ZIP archive to the client machine: [[http://​www.albertleadata.org/​pub/​backup-client-agent.zip]]
   * Extract the contents of the ZIP archive to a working location   * Extract the contents of the ZIP archive to a working location
-  * Move the ''​cygwin64''​ folder extracted from the ZIP archive to suitable destination (''​d:​\\''​ recommended)+  * Move the ''​cygwin64''​ folder extracted from the ZIP archive to suitable destination, we'll refer to as ''​$CYGDIR''​ // (either ​''​c:\''​ or ''​d:​\''​ recommended) ​//
   * Edit the ''​.reg''​ files extracted from the ZIP archive to ensure path references are corrected   * Edit the ''​.reg''​ files extracted from the ZIP archive to ensure path references are corrected
   * Right-click on each ''​.reg''​ file and choose ''​Merge''​   * Right-click on each ''​.reg''​ file and choose ''​Merge''​
-  * Right-click on the ''​Cygwin''​ batch file in the ''​cygwin64/​bin''​ folder and choose ''​Run as administrator''​+  * Right-click on the ''​Cygwin.bat''​ batch file in the ''​$CYGDIR''​ folder and choose ''​Run as administrator''​
   * Run these commands:<​code>​mkpasswd -l > /etc/passwd   * Run these commands:<​code>​mkpasswd -l > /etc/passwd
 mkgroup -l > /etc/group mkgroup -l > /etc/group
Line 34: Line 34:
 ssh-host-config ssh-host-config
 </​code>​ // Make sure to enter ''​ntsec''​ for CYGWIN value, and specify your new admin user when prompted // </​code>​ // Make sure to enter ''​ntsec''​ for CYGWIN value, and specify your new admin user when prompted //
 +  * Start the SSH service: ​ ''​cygsrvrun -S sshd''​
 +  * SSH to the Windows box and log in as new admin user
 +  * Create SSH key with:  ''​ssh-keygen -t rsa''​ // ... make sure to specify empty passphrase //
 +  * Populate ''​authorized_keys''​ file with server'​s SSH key for password-less operation
 +  * Populate backup server'​s host key // (typically just SSH to it and answer ''​yes''​ at key prompt) //
 +  * Ensure home directory has group-write disabled, for example: ​ ''​chmod g-w ~''​
  
 ===== Packaging & Upgrading ===== ===== Packaging & Upgrading =====
 This is the recipe for how the client-side agent footprint is bundled, and how to go about upgrading it. This is the recipe for how the client-side agent footprint is bundled, and how to go about upgrading it.
  
tech/microsoft/cygwin/start.1519510523.txt.gz · Last modified: 2018/02/24 16:15 by rk4n3