vista下安装cygwin (图文)|Install Cygwin/X under Windows Vista (Pictures)

本文详细介绍了如何在Windows Vista系统中成功安装并配置Cygwin的过程,包括禁用用户帐户控制(UAC)、重命名安装文件、选择安装选项及目录设置等步骤,并演示了如何运行X Windows系统及远程服务器显示。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

vista上安装cygwin后,进入bash shell后,输入任何命令都显示command not found;
于是重装过程如下:

1. To install cygwin under windows vista, at first you need to disable the UAC :
"Start"->"Run"-> input "MSConfig"

 Disable UAC
Press Launch button and then reboot system;

2. Rename the "setup" file to another name, like "cygwin-s", just do not use the word "setup " or "install".
Right click the install file and choose "Run as administrator"

Run as Admin

3. Follow the wizard:
You can install from internet; if you have downloaded all the packages to the local disk, choose the third one;

1

4. Create a directory for cygwin, I use C:/cygwin
Use defaut option such that all the users can use UNIX commands in Cygwin;
2

5. Local Package Directory:
You will keep the downloaded source files here.
3

6. Internet Connection Type:
4

7. Choose a proper site to download source files:

5

8 If you want to install all the packages, just lick the "Default" behind "All ", and it will changes to "Install":

6

9. The install process starts, just wait:
7

10. After all packages are installed, start cygwin, you will see the Bash Shell window with your name account like below:

8
11. Now run X windows:
you need to run the file startxwin.bat, which is located in the directory C:/cygwin/bin
$ startxwin.bat
startx
12. Now we can try to display the remote server by our X window.
For example, if the server's name is linux.unm.edu (IP address also works), in X window, type:
$ xhost + linux.unm.edu
this is to set the X window to display the remote host's interface
xhost
13 then ssh to access remote host:
$ ssh linux.unm.edu
when you login to the remote host, you need to set the DISPLAY path for remote host.
suppose your local machine's IP is 123.45.67.100 (represented by red frame in the picture)
$ export DISPLAY=123.45.67.100:0.0
10
14 Now you can see the display

display
参考:
Vista 上安装 Cygwin
http://www.diybl.com/course/6_system/linux/Linuxjs/2007104/76115.html
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值