Cygwin the correct installation tutorial

Source: Internet
Author: User
Tags posix

http://www.cygwin.com/

1 Official Tutorials:

The home of the Cygwin Projectcygwin is:
    • A large collection of GNU and Open Source tools which provide functionality similar to a Linux distributionon Windows.
    • A DLL (cygwin1.dll) which provides substantial POSIX API functionality.

Cygwin is not:
    • A-to-run native Linux apps on Windows. You must rebuild your application from the source If you want it to run on Windows.
    • A-magically make native Windows apps aware of unix®functionality like signals, ptys, etc. Again, you need-to-build your apps from source If you want to take advantage of Cygwin FUNCTIONALITY.

The Cygwin DLL currently works with all recent, commercially released x86 the-bit and the-bit versions of Windows, starting With Windows XP SP3.

For more information see the FAQ.

Current Cygwin DLL version

The most recent version of the Cygwin DLL is 2.3.0. Install it by running setup-x86.exe (32-bit installation) Orsetup-x86_64.exe (64-bit installation).

Use the Setup program to perform a fresh install or to update an existing installation.

Note that individual packages in the distribution was updated separately from the DLL so the Cygwin DLL version was not a use Ful as a general Cygwin release number.

Commercial support for Cygwin

For Cygwin licensing or commercial support, please visit the Red Hat Cygwin Product site.

Community Support for Cygwin

For  all   Non-commercial cygwin-related Questions and observations, please check the resources available at this site, such as The faq, The user ' s Guide and the mailing list archives. If you've exhausted these resources then please send an email to an  Appropriate mailing List  . This includes observations about the Web pages, Setup questions, questions about where to find things, questions on why Thi NGS is done a certain-in, questions about the color preferences of Cygwin developers, questions about the meaning of the Number, etc.

Please send notification of technical problems (bad HTML, broken links) concerning these web pages to the Cygwin Maili ng list.

Please don't send personal email with "quick questions" to individual Cygwin contributors. The Cygwin mailing lists is the places for all questions. Really. I mean it.

1

1

Https://cygwin.com/install.html

Installing and Updating Cygwin Packages
Installing and Updating Cygwin for 32-bit versions of Windows

Run Setup-x86.exe Any, want to update, or install a Cygwin package for 32-bit windows. The signature forsetup-x86.exe can be used to verify the validity of this binary using this public key .

Installing and Updating Cygwin for 64-bit versions of Windows

Run Setup-x86_64.exe Any, want to update, or install a Cygwin package for 64-bit windows. The signature forsetup-x86_64.exe can be used to verify the validity of this binary using this public Key.

General Installation Notes

When installing packages for the first time, setup*.exe does not install everypackage. Only the minimal base packages from The Cygwin distribution is installed by default, which takes up abou t MB.

Clicking on categories and packages in the setup*.exe Package Installation screens allows you to select WH At is installed or updated.

Individual packages Like  bash ,   gcc ,   less , etc are released independently of the Cygwin DLLs, so the Cygwin DLL version is not useful as a general Cygwin release n Umber. The  setup*.exe   Utility tracks the versions of all installed components and provides the mechanism For   Installing  or   updating   Everything available from this site for Cygwin.

Once you ' ve installed your desired subset of the Cygwin distribution, Setup*.exe would remember what's selected so Rerunn ing the program would update your system with any new package releases.

On Windows Vista and later, setup*.exe would check by default if it runs with administrative privileges an D, if not, would try to elevate the process. If you want to avoid this behaviour and install under a unprivileged account just for your own usage, run setup*. EXE with the --no-admin option.

The Setup*.exe installer is designed to being easy for new users to understand while remaining flexible for The experienced. The volunteer development team is constantly working on Setup*.exe; Before requesting a new feature, check th e wishlist in the README.

Q:Is there a command-line installer?

A:Yes and No. The  setup*.exe   Program Understands command-line arguments  which allow you to control it behavior and choose individual packages to instal L. While this provides some functionality similar to such tools As  apt-get  or  Yum it is not As full-featured as those packages.

The basic reason for don't have a more full-featured Package manager was that such a program would need full access to all of Cygwin ' s POSIX functionality. That's, however, difficult to provide in a cygwin-free environment, such as exists on first installation. Additionally, Windows does not easily allow overwriting of in-use executables so installing a new version of the Cygwin DL L while a package manager is using the problematic.

Q:How do I install everything?

A:You don't want to do this! This would install an enormous amount of packages so you'll never use, including debuginfo and source for every package .

Clicking on the ' Default ' label next to the ' all ' category to change it to ' Install ' would mark every Cygwin package for in Stallation. Be advised the this would download and install tens of gigabytes to your computer.

1

Using Cygwin to establish an SSH channel: Desktop Unix Emulator
    • Help Index
    • About this guide
      • About SSH
      • More documents
    • Concept
    • Using Desktop Terminals
    • Using Cygwin to establish a channel: desktop Unix Emulator
      • Installation
      • Establish a channel
    • Terminating channel
Installation

Before you can use Cygwin to establish a channel, you must install it correctly.

The most important consideration for installing CYGWIN is to create the correct Unix folder. Cygwin's website provides a complete and detailed description, below is a thumbnail version.

  1. Download and install Cygwin. Cygnus allows you to choose from a Web installation, but it is faster (and ultimately more efficient) to install from a local disk. Be sure to download the file and save it in an easy-to-find location.
  2. Click the Cygwin "setup.exe" icon and follow the onscreen instructions to accept the default options. You'll be asked about the exact text format and whether you want Cygwin to be used only for your own use or shared with other users. For ease of use, select the text format as Unix and the sharing option to all. Cygwin will then install and create icons on the Start menu and on the desktop. If you do not create an icon, run Setup again. Instead of reinstalling Cygwin, the installer takes you to the end of the installation process, where you can check the box that indicates the installation icon.
  3. Create a Unix folder. You can create a standard directory from Cygwin, as recommended by the Cygwin configuration instructions (see http://www.cygwin.com for configuration Instructions ), or you can set them from Windows. There are some benefits to using Windows methods, especially if you are not familiar with Unix commands and protocols. Because Cygwin can read Win32 (Windows) and Unix (POSIX) file paths, both of these methods are acceptable. A very clear description of how to create a Unix directory can be found in http://www.itd.umich.edu/itcsdocs/s4148/s4148.pdf. Although those instructions are for earlier versions of the program, they still fit: you still have to create a typical Unix directory.
  4. Modify the Cygwin.bat file. bat file to specify the commands that bash must execute and their order. The UNIX directory on the "C" drive contains a traditional UNIX directory that can be named any name, as long as you do not use any of the characters that confuse Unix (for example, hyphens, spaces, and so on). Use a text editor such as Notepad to configure the Cygwin.bat file. Do not use Microsoft Word or any formatted program. The C:\Cygwin directory and the C:\unix directory contain important home directories. Configure the. bat file to:
    @ECHO OFFSET MAKE_MODE=UnixSET CYGWIN=nottySET HOME=C:\unix\HOME\[your home directory name]SET TERM=VT100CHDIR C:\Unix\HOME\[your home directory name]SET PATH=C:\Unix\BIN;C:\Unix\USR\LOCAL\BIN;C:\CYGWIN\BIN;%PATH%BASH  
  5. For Cygwin to run more efficiently, you may need to configure the shortcut icon on the desktop so that it starts the program in the correct directory. If you have already specified the HOME directory in the. bat file, it is not necessary to configure the shortcut icon on the desktop.

Cygwin provides some more in-depth qualification, and you can further qualify the configuration if needed. If you're familiar with Unix commands and file structures, you'll find this easy, and if you're not familiar with it, Cygwin is very tolerant and you'll soon be able to master it.

Establish a channel

Depending on how your site is configured, you can access CVS via the SSH channel using a locally generated key or a public key set by the site administrator. If you are unsure about how your site is used, check with your site administrator.

Generate the key locally:

    1. From the command prompt for Cygwin or other UNIX types, type: "Ssh-keygen.exe-d" and press Enter. You will see:
      • Generating DSA parameters and keys.
      • Enter the file where the key is saved (/HOME/ADMINISTRATOR/.SSH/ID_DSA): [If using the default location, press the ENTER key]
      • Enter a password (or empty if no password): [Leave blank and press ENTER]
      • Enter the same password again: [Please leave blank and press ENTER]
      • Your identity has been saved in the/HOME/ADMINISTRATOR/.SSH/ID_DSA.
      • The public key has been saved in the/home/administrator/.ssh/id_dsa.pub.
    2. Copy "Id_dsa.pub" from the computer. Name the new copy "[User name]_id_dsa.pub" (for example, "jmorse_id_dsa.pub") and attach it to the event for technical support. To gain access through the CVS channel, you need to install the key on the CVS server. For information on where to load the *_id_dsa.pub key, please contact your support representative.

Each time you want to access the CVS repository, you need to run Cygwin or another UNIX shell and log in using the following command:

Ssh-x -2-l 2401:localhost:2401 [email Protected][project.domain]   

where [Project.domain] corresponds to the name of the CVS server.

You will receive a message stating "The host key is not found and you are sure you want to continue." Type "yes". You need to type the entire word. You receive another line of content, and the cursor moves to the left side of the window and flashes. You can minimize the window, but do not close it. Closing the window causes the channel to break.

If you use a public key that is generated by your system administrator to access the channel, you are prompted for a password. Ask your site administrator or project owner for the password.

Note: If you generate your own key but you are still prompted for a password, your key may not have been added correctly to the server. If this is the case, contact your technical support representative.

As long as the window remains running, the channel runs until a network error or other connection problem occurs. To stop the channel, press Ctrl-break.

Https://www.open.collab.net/scdocs/ddSSHGuideCygwin.html.zh-cn

1

Xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Cygwin the correct installation tutorial

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.