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

来源:互联网 发布:游戏充值网站源码 编辑:程序博客网 时间:2024/05/21 08:37
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
原创粉丝点击