Cygwin
From Stadm
Jump to navigationJump to search
Contents
Cygwin Install from USB Drive to Local Windows Computer
Preparing the USB Flash Drive
- To install Cygwin from a USB drive to a local computer the required files must be locally save onto the flash drive
- Files can be acquired two ways: Ask Eddie for them, rm 6***, or downloaded using the cygwin setup on a Windows computer
- To download the files from the internet simply navigate to: http://cygwin.com/install.html and download setup.exe for cygwin(64 bit)
- Prior to running the setup create two directories on your USB flash drive to store the setup.exe file and downloaded files
- For Example, if flash drive is drive "L:" create two directories "L:\cygwin_install\" and"L:\cygwin_install\local"
- Copy setup.exe onto the USB flash drive into the folder "cygwin_install"
- Run setup.exe off the USB from a Windows computer
- Click next on the introductory menu
- When it asks you to Choose a Download Source, select Download without Installing, then click next
- When asked for Local Package Directory Browse to "L:\cygwin_install\local" , where "L:" is the letter your USB flash drive is assigned
- On the next menu click direction connection unless you require some sort of proxy to connect to the internet
- From the Available Download Sites list select any site to download from
- Next you will be asked to select packages, for our purposes of BackupPC the minimum packages are the following
- rsync
- openssh
- wget
- wim
- shutdown
- To select these packages simply type them in one by one into the search bar, when you find the package click on it so that it says the Version number that will be installed instead of "skip"
- Once those 5 packages have been selected click next
- On the next Menu confirm that "Select required packages(RECOMMENDED)" is checked and click next
- Setup will download all the required files to the appropriate directory, click Finish when complete
Install from USB Flash Drive to Local Windows Computer
- Insert prepared USB flash drive into a Windows Computer and navigate to "L:\cygwin_install", where "L:" is the drive letter assigned to your flash drive
- run setup.exe and click next on introductory menu
- When asked to "Choose a Download Source" select "Install from Local Directory" and click next
- Choose the root install directory, just leave as default and install for All Users
- When asked to select "Local Package Directory" the directory may already be correct(\cygwin_install\local\, if it is not navigate to "L:\cygwin_install\local\" then click next
- When asked to select packages search for the following 5 packages and select them so they will be installed:
- rsync
- openssh
- wget
- vim
- shutdown
- Click next and on the following menu confirm "Select required packages(RECOMMENDED)" is checked and click next
- Setup will now install Cygwin locally from the flash drive onto the computer, create Icons if you would like and click finish when done
Cygwin Portable Install from Windows Computer to USB Flash Drive
- The following is for setting up Cygwin to be run from a flash drive on a Windows computer so that unix tools may be used wihtout having to install cygwin locally
- The following assumes that you have the packages you want to install already downloaded(see above) onto a local directory or that you will select the packages and download the yourself from the internet using the cygwin installer
- Create a directory on the root of your drive named cygwin, this is where all your files for cygwin will be stored from the install
- For Example if you have a drive labeled "L:" create a folder at "L:\cygwin\"
- run setup.exe for the cygwin installer and select how you would like to install(local, internet, etc),click next
- IMPORTANT: on the next menu asking you to select your root drive change it so that it selects the install directory to be "L:\cygwin\" where "L:" is the drive letter your USB Flash Drive is assigned, Select install for All Users and then click next
- If you are installing from a local package it will ask you for a local directory, navigate to L:\cygwin_install\local or wherever you keep your local install files, if you are downloading from the internet select a site
- Select the Packages you would like to install on your USB flash Drive, for a minimum install to use for BackupPC the only packages you need are the following:
- rsync
- openssh
- wget
- vim
- shutdown
- On the next Menu confirm that "Select required packages(RECOMMENDED)" is checked and click next
- setup will complete your installation and install cygwin onto your USB Flash Drive
- Once install is complete navigate to "L:\cygwin"
- Make a backup of Cygwin.bat(rename to Cygwin.bat.bak) and replace it with a .bat file with the following saved into it(Named as "Cygwin.bat")
@echo off for /F %%A in ('cd') do set WD=%%A chdir %WD%\bin bash --login -i
- To start cygwin form the USB Flash Drive navigate to "L:\cygwin" and double click Cygwin.bat