AMIT SHAH

   
Home

Labs

Servers

Software

FAQs

Contact Us

 

 

Using Cygwin to open up UNIX Graphical Application on local computer

   
1. Click here to download "setup.exe" on your computer. Setup.exe will require to install the cygwin application.
2. Click here to download "cygwin-download.zip", which requires to perform the installation from your computer and not over the network.
3. Unzip cygwin-download.zip to any empty drive on your windows computer.
4. Click on "setup.exe" program to begin installation.
 

  Click Next
5. If Cygwin detects the virus scan program running on your computer, it will prompt you to disable the program during the installation. Please disable the virus scan program to install the cygwin application.
6. You will be prompted to choose the source from where to install the software. Select "Install from Local Directory" to install it from the cygwin-download directory.
 

7. You will be prompted to select the location where to install the software. Select any drive on your local computer with enough space for installation. Create the directory cygwin and enter the path to install software in that directory.
 

  Here, I have selected the C: drive and the directory cygwin to install the software. Path: c:\cygwin
8. Now, you will prompted to select the cygwin-download unzip directory to install from that directory.
 

9. Click Next to start parsing the cygwin-download directory and you will be prompted with packages selection menu.
  Click on "+" symbol to expand the list and Click on "" to select the package.
 

  Please select the below packages in order for cygwin to work.
 

 

  Click on icon next to + Net and + X11 to change the selection from Default to Install.
 

 

 

10. Click Next. Setup will now start installing programs. Once it is installed "Create icon on desktop and/or start menu"
 

11. Once the program is install, Click on cygwin icon to start the application.
 

12. Now inside the cygwin windows type in the below commands
        export DISPLAY=:0.0
        xhost +localhost +hostname.ece.iit.edu   [where hostname = ECE server you will login to]
 

  Here I will login to vlsi1.ece.iit.edu and that's why I have entered the vlsi1.ece.iit.edu entry in xhost command.  "xhost +localhost +vlsi1.ece.iit.edu"
13. Now type in the command "startx&" inside the cygwin windows and press enter. This will open up the Xwindow.
 

14. Now inside the xwindow, type in the command
            ssh -l loginname hostname.ece.iit.edu
                     Where loginname => loginname given in class to login to ECE Unix Servers
                                hostname => vulcan.ece.iit.edu, vlsi1.ece.iit.edu to vlsi24.ece.iit.edu ....
             ssh -l amit vlsi1.ece.iit.edu
 

15. Now, set the environment display variable inside the xwindow
             setenv DISPLAY myip:0.0         [myip => your local computer ip address]
  "who |grep loginname" command in xwindow will show your computer ip address next to your loginname
 

  Here, in this scenario, my local computer ip address is dhcp48.hum.iit.edu. My command will be:
              setenv DISPLAY dhcp48.hum.iit.edu:0.0
16. Type in the xcalc command to see, if it opens up the graphical unix calculator on your local desktop.