I always found a need of X11 forwarding and so writing this step by step guide for reference:
Step 1: Install Cygwin/X: I would like to take you through the minimum required packages for Cygwin/X and here are the detailed steps:
Step 1: Install Cygwin/X: I would like to take you through the minimum required packages for Cygwin/X and here are the detailed steps:
- Download the cygwin setup file from http://cygwin.com/install.html
- Run the Cygwin setup program and you will see the welcome screen.Click to proceed to the next screen.
- Choose, Install from Internet, this will still save the package files to your download directory so that you can install Cygwin on any number of machines. Click to proceed to the next screen.
- The default Install Root is c:\cygwin which should be fine for most installations. Leave Default Text File Type as UNIX. Leave Install For set to All unless you lack local administrative privileges.
- Click to proceed to the next screen.
- Local Package Directory should default to the directory that you ran setup.exe from.Click to proceed to the next screen.
- Choose your proxy setup, or, just choose Direct Connection if no proxy is needed.Click to proceed to the next screen.
- Select the first mirror for downloading. Click to proceed to the next screen; setup will download a list of available packages as it moves to the next screen.
- On the next screen you will select the packages that will be downloaded and installed. A listing of the Cygwin/X packages is given below; a listing of the general Cygwin packages would be beyond the scope of this document.
- Cygwin/X packages are located in the X11 category:
- xorg-server (required, the Cygwin/X X Server)
- xinit (required, scripts for starting the X server: xinit, startx, startwin (and a shortcut on the Start Menu to run it),startxdmcp.bat )
- xorg-docs (optional, man pages)
- You may also select any X client programs you want to use, and any fonts you would like to have available.
- You may also want to ensure that the openssh package is selected if you wish to use ssh connections to run remote X clients.
- You may also want to ensure that the inetutils or rsh packages are selected if you wish to use telnet or rsh connections to run remote X clients. (not recommended)
- Click "Connecting" message on this screen for a long period of time. to begin the download process, you may want to try another mirror if you see a
- You have now successfully installed Cygwin/X.
Step 2: On your desktop, start the XWin Server from Start > All Programs > Cygwin-X > XWin Server
Step 3: On the XWin Server window, type the following:
- ssh -X -C user@hostname
- type xclock and it should throw the xclock display
- xauth list
hostname/unix:10 MIT-MAGIC-COOKIE-1 11b30b1d65d90e64d15d811a97b9fb20
hostname/unix:11 MIT-MAGIC-COOKIE-1 ddaa0d9fc7da0ee5228aa459ccdf427c
- sudo su - <
> - echo $DISPLAY
localhost:11.0
- xauth add hostname/unix:11 MIT-MAGIC-COOKIE-1 ddaa0d9fc7da0ee5228aa459ccdf427c
11 in the $DISPLAY matches the 11 in the list of the xauth.
Now you should be able to throw the display from the remote machine to your local machine.
1 comment:
Do this hack to drop 2 lbs of fat in 8 hours
At least 160 thousand men and women are using a simple and secret "liquid hack" to burn 2lbs each night while they sleep.
It is very easy and works with anybody.
This is how to do it yourself:
1) Take a glass and fill it up with water half full
2) Now use this weight loss HACK
and you'll be 2lbs lighter the very next day!
Post a Comment