Install and maintain Cygwin without Windows admin rights
These are the steps I used:
- Download setup-x86.exe (32bit) or setup-x86_64.exe (64bit).
- Run it with the “
--no-admin
” option - During installation select the “wget” package
- Create /usr/local/bin/cygwin-setup.sh (for 32bit omit the “_64”):
#! /bin/sh rm setup-x86_64.exe wget http://cygwin.com/setup-x86_64.exe chmod u+x setup-x86_64.exe run ./setup-x86_64.exe --no-admin
- Make the script executable:
chmod ugo+x /usr/local/bin/cygwin-setup.sh
- Create a copy of the Cygwin terminal shortcut, rename it “Cygwin setup”
- Edit the shortcut target, replace
mintty.exe -i /Cygwin-Terminal.ico -
withmintty.exe -i /Cygwin-Terminal.ico /bin/bash -l -c 'cygwin-setup.sh'
Whenever you want to run the Cygwin installer to install or remove packages, you can just execute the shortcut or run cygwin-setup.sh from the Cygwin command prompt.
Alternatively, you could also use the pure command-line tool apt-cyg.
Comments
Post a Comment