Cygwin安装配置笔记
作者: Jeffrey
出处:http://blog.zhangjianfeng.com/?p=546
Cygwin安装配置笔记
主要目的是在本地windows环境,启动远程linux服务器的图形环境.比如oracle的安装
1.下载
首页: http://www.cygwin.com/
下载: http://www.cygwin.com/setup.exe
2.安装
#run setup.exe
有几个安装包需要添加进去,或选择全部安装:
openbox
openssh
nano
vim
choose a fast mirror server.
waitting….
3.运行cygwin
#vi ~/.xinitrc
exec openbox #添加此行
#运行xinit
#右击出现的xterm图形界面, 选择”xterm”
xhost +
#然后ssh root@远程linux服务器ip
export DISPLAY=win服务器ip:0.0
xhost +
#startx #如果远程服务器已启动xwindows,就用不着了
#运行firefox或其它图形程序
++如果需要启用SSHD服务器,请参照下面实现
Open a cygwin window (by double clicking the
icon), a black screen pops open, type
ssh-host-config (on slower computers, it may take several minutes to generate the dsa keys)
When the script asks you about “privilege separation“, answer yes
When the script asks about “create local user sshd“, answer yes
When the script asks you about “install sshd as a service“, answer yes
When the script stops and asks you for “CYGWIN=” your answer is ntsec tty
(click here for an explanation of ntsec)
(click here for an explanation of tty )
+start the sshd service
net start sshd
or
cygrunsrv –start sshd
Trackback URL: http://blog.zhangjianfeng.com/article/546/trackback
Tags: cygwin, linux, 下载, 安装, 服务器, 笔记, 配置





















5 Responses to “Cygwin安装配置笔记”