Install SSH Server and Chinese Display on Cygwin

xiaoxiao2021-03-06  35

Introduction

Simply put, Cygwin provides a environment like Linux (Linux-Like) on Windows that allows users to perform Linux's program on Windows.

Strictly speaking, Cygwin is an environment that simulates GNU, not the Linux environment, with Cygwin's library (library), providing a Linux-like API environment in Win32 API environment. Using Cygwin, you can:

Migrate the programs on Linux to Windows without having to make a major changes, just take the original code as configure and make. Use common Linux tools, such as GREP, SED, AWK, etc. Write the Win32 Native Console or the GUI application.

Development History

Cygwin has developed in 1995, Cygnus Solutions (M & A of RedHat) is based on the GNU tool of the Free Software Foundation, which is transplanted to Windows, which has always been free software. In the initial period, only the command line window Bash and compiler GCC and other development tools can be used; now, even the X window system has been successfully transplanted, and the application software under the X window system is now gradually transplanted.

Download and installation

Even www.cygwin.com Download setup.exe Execute Setup.exe, choose Download from Internet

Choose a minimum download point to select the desired kit // Recommend all the suits of the Selected DEVEL, LIB, etc. Perform Setup.exe, select the Install from Local Directory installation kit / / Preferably, ALL User

Select All SugWIN's ICON icons to perform the Cygwin on your desktop. // Window size can be displayed by selecting a font and arrangement by ICON

Step by step can be referred to http://linux.tnc.edu.tw/techdoc/shell/x52.html

set up

After installing Cygwin, I find that I can't see Chinese in Console, I must do the following settings.

~ / .bashrc

Stty CS8 -ISTRIP

Stty Pass8

Export lang = c

EXPORT LC_CTYPE = ISO-8859-1

Alias ​​ls = "ls --Show-control-chars"

Alias ​​crxvt = 'RXVT-FM "Decamine-16" -fn "Decamine-16" -km Big5-E Bash --Login -i'

~ / .inputrc

SET META-FLAG ON

Set Input-Meta On

SET Convert-Meta Off

Set Output-meta on

reference:

Http://sources.redhat.com/ml/cygwin/2001-07/msg00311.html http://www2.cs.uh.edu/~kcting/blog/index.cgi/opencontent/cygwin/cygwinhowto.html

application

Install SSH Server on Cygwin

OS Modify Environment Variable: PATH Add D: / Cygwin / BIN OS Add Environment Variable: Cygwin = NTSec Tty Cygwin Install The necessary suite: OpenSSH, Cygrunsrv Cygwin Sets OpenSSH:

Execute SSH-Host-Config SHOULD Privilege Separation BE Used? (YES / NO): YES SHOULD THIS SCRIPT CREATE A LOCAL User 'sshd' on this machine? (YES / NO): YES Do you want to install sshd as service? YES / NO): YES default is "ntsec". Cygwin = ntsec Tty manually launched OpenSSH service: Net Start SSHD manually turns off openssh service: NET STOP SSHD reference:

http://pigtail.net/lrp/printsrv/cygwin-sshd.html

Network resource

Cygwin: Free into the Microsoft Empire

转载请注明原文地址:https://www.9cbs.com/read-76657.html

New Post(0)