≡ Menu

Launch software installers on Linux from Windows using Cygwin



If you are using SSH client to connect to Linux server from your Windows laptop, sometimes it may be necessary to launch UI application on the remote Linux server, but to display the UI on the windows laptop. Following are two typical reasons to perform this activity:

  1. Install software on Linux from Windows: To launch a UI based installer to install software on remote Linux server from windows laptop. For e.g. A DBA might want to install the Oracle on the Linux server where only the SSH connection to the remote server is available and not the console.
  2. Launch Linux X client software on Windows: To launch X Client software (for e.g. xclock) located on your remote Linux server to the Windows laptop.

Cygwin can be used to perform the above activities. Following 15 steps explains how to install Cygwin and launch software installers on Linux from Windows. Go to Cygwin and download the setup.exe. Launch the setup.exe on the Windows and follow the steps mentioned below.

1. Welcome Screen. Click next on the Cygwin installation welcome screen.

Welcome Screen

2. Choose a download source. Select the ‘Install from internet’ option

Download Source

3. Choose Installation directory. I selected C:\cygwin as shown below. This is the location where the Cygwin software will be installed on the Windows.

4. Select Local Package Install directory. This is the directory where the installation files will be downloaded and stored.

Local Package Directory

5. Select Connection Type. If you are connected to internet via proxy, enter the information. If not, select ‘Direct Connection’.

Connection Type

6. Choose a download site. You can either choose a download site that is closer to you or leave the default selection.

Download Site

7. Download Progress. This screen will display the progress of the download.

Installation Progress

8. Select Packages to install. I recommend that you leave the default selection here.

Package Selection

9. Installation Progress. This screen will display the progress of the installation.

Install Progress

10. Installation Completion.

Installation Complete

11. Start the Cygwin Bash Shell on Windows. Click on cygwin icon on the desktop (or) Click on Start -> All Programs -> Cygwin -> Cygwin Bash shell, which will display the Cygwin Bash Shell window.

12. Start the X Server on Windows. From the Cygwin Bash Shell, type startx to start the X Server as shown below. Once the X Server is started, leave this window open and do not close it.


13. Xterm window: startx from the above step will open a new xterm window automatically as shown below.

xterm Window

14. SSH to the remote Linux host from the Xterm window as shown below. Please note that you should pass the -Y parameter to ssh. -Y parameter enables trusted X11 forwarding.

jsmith@windows-laptop ~
$ ssh -Y -l jsmith remote-host <This is from the xterm on windows laptop>
jsmith@remotehost's password:
Warning: No xauth data; using fake authentication data for X11 forwarding.
Last login: Thu Jun 12 22:36:04 2008 from
/usr/bin/xauth:  creating new authority file /home/jsmith/.Xauthority
[remote-host]$ xclock & <Note that you are starting xclock on remote linux server>
[1] 12593

15. xclock on windows laptop. From the Linux host, launch the xclock software as shown above, which will display the xclock on the windows laptop as shown below.

xclock on Windows

Use the same method explained above to launch any software installer on Linux (for e.g. Oracle database installer) and get it displayed on the Windows laptop.

Help me spread the news about The Geek Stuff.

Please leave your comments and feedback regarding this article. If you like this post, I would really appreciate if you can subscribe to RSS feed and spread the word around about “The Geek Stuff” blog by adding it to del.icio.us or Digg through the link below.

Add your comment

If you enjoyed this article, you might also like..

  1. 50 Linux Sysadmin Tutorials
  2. 50 Most Frequently Used Linux Commands (With Examples)
  3. Top 25 Best Linux Performance Monitoring and Debugging Tools
  4. Mommy, I found it! – 15 Practical Linux Find Command Examples
  5. Linux 101 Hacks 2nd Edition eBook Linux 101 Hacks Book

Bash 101 Hacks Book Sed and Awk 101 Hacks Book Nagios Core 3 Book Vim 101 Hacks Book

Comments on this entry are closed.

  • David August 13, 2008, 1:10 pm

    You should also look at xming. Like Cygwin-X, it’s an open source X/11 Server. I find it to be faster, a lot more stable, and significantly more up-to-date than the Cygwin solution.

    Its also portable, so you can use it with a USB- memory stick.

    You can find xming here: http://www.straightrunning.com/XmingNotes/

  • honeybee September 5, 2008, 3:22 am

    Hi guys

    I want to port a linux program to windows. I need to make a windows installer which calls cygwin and runs the same program as written for windows. Any help on how to do this?

  • Satyapal February 7, 2012, 7:59 am

    Wow Dude you are Amazing.