Old text backup: Install Cygwin and enter and display Chinese in console

Source: Internet
Author: User

1. Download the Cygwin.exe file, double-click Install, first select "Download without installing" when "Choose A Download Source", next>.2. Select the local package path "SELECT Local package directory, which is the storage path for the packages that will be downloaded. Default in the Cygwin.exe directory. next>3. Select a download source "Choose a Download Site" such as: "ftp:// cygwin.dp.ua ". Next>4. Select the package to install "Select Packages" if you want to fully install, click the Rotate icon next to all to switch the default to install, and if you want to write programs only at the command line, just select gcc, make and VI ( Next>5. If the thread is disconnected or the long progress bar is not moved during the package download process, cancel it. Then repeat the 1-4 step. In the 3rd step, note that you want to select the previous source, the rotation icon next to all in the fourth step, and switch the default to reinstall. Cygwin a breakpoint. If the source of the 3rd step is different from the previous one, Cygwin will not send you a breakpoint. 6. After the package download is complete, exit and then run Cygwin.exe, select "Install" when "Choose A Download Source" From Local directory ". Select the" Dos/text "item in the" Default Text File Type ". The following steps follow the prompts. 7. After the installation is complete, modify the environment variables for Windows, the path variable plus the x:\ Cygwin\bin (the path to the bin directory under your Cygwin installation directory). Windows environment variable settings: Desktop >> My Computer >> right-click Properties >> Advanced >> Environment Variables button >> Edit the path in the system variable, if you have installed some tools such as the GVIM,WINAVR Toolkit in your system, they also set the environment variables, it is possible that when you run a command, this command is also a member of them, if your X:\cygwin After the \ Bin order is behind, the system may invoke non-Cygwin system commands, and go to invoke them, it can be imagined that this will cause system confusion, the solution is to use Cygwin when the X:\cygwin\bin is placed at the top of the environment variables, and using other programsAt the end of the day. 8. Run the Cygwin environment with the Bash Shell command-line window. Under $home (your user directory), create the. Inputrc and write the following: 

set meta-flag on
set convert-meta off
set output-meta on 
set input-meta on

9. Create the. Bash_profile under $HOME (your user directory) and write the following:

export LESSCHARSET=latin1
alias less=‘/bin/less -r‘
alias ls=‘/bin/ls -F --color=tty --show-control-chars‘

10. Save, restart, ok!

(2007.3.8)

Old text backup: Install Cygwin and enter and display Chinese in console

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.