|
|
(3 intermediate revisions by the same user not shown) |
Line 1: |
Line 1: |
| Cygwin provides a unix-like environment to run processes under windows by emulating unix syscalls.<br> | | Cygwin provides a unix-like environment to run processes under windows by translating unix syscalls.<br> |
| It has no CLI package manager, but the installer can be scripted to install packages. | | It has no CLI package manager, but the installer can be scripted to install packages. |
|
| |
|
Line 17: |
Line 17: |
| |} | | |} |
| </blockquote><!-- Notes --> | | </blockquote><!-- Notes --> |
|
| |
| = Install =
| |
| <blockquote>
| |
| '''chocolatey installs cygwin to C:\programdata\chocolatey\cygwin\tools\cygwin'''
| |
|
| |
| Cygwin is built to be able to be run in a portable way. You install, update, and get new packages by
| |
| re-running the cygwin installer.
| |
|
| |
| Always install the 32 bit version of cygwin, unless you absolutely need it to be 64bit. It is much
| |
| more supported. Cygwin doesn't seem to require any registry keys to be set, the only things that
| |
| affect it's portability are some environment variables.
| |
|
| |
| '''NOTE''' If you are using my package-setup script, always run it with a normal
| |
| cygwin http-repo as a source, reboot, then run with the private key for a cygports repo.
| |
| If you fail to do this, and run the cygports repo first, you may end up with corrupted packages.
| |
| </blockquote><!-- Install -->
| |
|
| |
| = Package Management =
| |
| <blockquote>
| |
| {| class="wikitable"
| |
| !colspan=3| Best Sources
| |
| |-
| |
| | http://lug.mtu.edu || || standard cygwin packages
| |
| |-
| |
| | http://mirrors.kernel.org/sources.redhat.com/cygwinports/ || || precompiled cygports (https://sourceware.org/cygwinports/)
| |
| |}
| |
|
| |
| <syntaxhighlight lang="bash">
| |
| ## Start Cygwin with GPG key for cygports
| |
| /path/to/setup-x86.exe -K http://cygwinports.org/ports.gpg
| |
| </syntaxhighlight>
| |
|
| |
|
| |
| ''' CYGPORTS CONTAINS DWM, MPD, NCMPC, PYSIDE '''<br>
| |
| Cygwin doesn't have a traditional package manager. There are a few terminal programs you
| |
| can use to emulate apt-get, but since on Windows files cannot be deleted or overwritten while they
| |
| are running it is best to quit cygwin, and install programs using the installer.
| |
|
| |
| Because of cygwin's limited options in the default repo, I find myself compiling packages myself
| |
| quite a lot. I created a git repo for compiled (and attempts at compiling) programs for quick (manual)
| |
| installations on new machines.
| |
|
| |
| There is also a system loosely based on Gentoo's portage to assist in compilation. It is called cygports,
| |
| and can be installed from the main package manager.
| |
|
| |
| <br>
| |
| <br>
| |
|
| |
| </blockquote><!-- Package Management -->
| |
|
| |
| = Common Problems =
| |
| <blockquote>
| |
| == rebase ==
| |
| <blockquote>
| |
| Almost all issues related to cygwin can be resolved by rebasing. You can do it
| |
| the quick/dirty way:
| |
|
| |
| <syntaxhighlight lang="bash">
| |
| C:/cygwin/bin/dash.exe
| |
| /bin/rebaseall
| |
|
| |
| </syntaxhighlight>
| |
|
| |
| Or the full proper way:
| |
| <syntaxhighlight lang="bash">
| |
|
| |
| - Open Task Manager and close any processes that look to be Cygwin related.
| |
| - Open C:\Cygwin\bin in Windows Explorer
| |
| - Verify that dash.exe, ash.exe, rebase.exe, and rebaseall exist in this folder
| |
| - If any of them are missing, re-run Cygwin setup and select the dash, ash, and rebase packages
| |
|
| |
| - right-click your C:\Cygwin folder, uncheck Read-only (if its checked), and press OK.
| |
| - When an error about not being able to switch some files comes up, select "Ignore All". Wait for this process to complete.
| |
|
| |
| - Browse to C:\Cygwin\bin in Windows Explorer
| |
| - Right click dash.exe and click "Run as Administrator". A command Prompt should appear with nothing but a $
| |
| - Type /usr/bin/rebaseall -v, hit enter, and wait for the process to complete.
| |
| - If you get errors about Cygwin processes running, try Step 1 again. If that still doesn't work, Restart your computer into safe mode and try these steps again.
| |
| - A commenter noted that, depending on your settings, you may have to type cd /usr/bin && ./rebaseall -v instead.
| |
| - Try opening Cygwin again.
| |
| </syntaxhighlight>
| |
|
| |
| {| class="wikinotes"
| |
| |-
| |
| | http://stackoverflow.com/questions/9300722/cygwin-error-bash-fork-retry-resource-temporarily-unavailable
| |
| |-
| |
| | http://cygwin.wikia.com/wiki/Rebaseall
| |
| |}
| |
|
| |
|
| |
| </blockquote><!-- rebaseall -->
| |
|
| |
| </blockquote><!-- Common Problems -->
| |