Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 01-10-2007, 01:20 PM   #1
LQ Newbie
Registered: Jan 2007
Posts: 3

Rep: Reputation: 0
Running an X Window session on a PC

I am new to Linux, so please pardon my ignorance on the basics.

I want to be able to run an X Window session from my PC that is running XP. I have access to my Linux machine over my wireless network and I can connect to it from my laptop PC using Putty - now this is about as far as I can get without some help.

I know there are some Windows apps made for this purpose, I don't know which to use and what they need as far as configuration for me to achieve my goal.

Any guidance on the next steps would be appreciated.
Old 01-10-2007, 01:37 PM   #2
Registered: Dec 2006
Location: Germany
Distribution: Kubuntu (Feisty Fawn), Debian (SID)
Posts: 127

Rep: Reputation: 15
If I understand you correctly, you want to run an X11 application on your Linux machine, tunnel it through SSH and let the display appear on your XP machine.

I only did that once, just to play around with it, and it's years ago...

* There are several X11 implementations for Microsoft Windows, but most of them are non-free and quite expensive. I have forgotten which one I tried, but it wasn't a full version either.

I guess, Cygwin/X is a good choice, but never tried it:

* On your Linux machine, enable ssh to do X11 forwarding in /etc/ssh/sshd_config
X11Forwarding yes

Then ssh to your Linux machine and log in. Having done so, you have to set the shell variable DISPLAY to export your X display to your XP machine with Cygwin/X.
Given your XP box's hostname is xpbox and the network is homelan, then type $ export DISPLAY=xpbox.homelan:0
Henceforth, every X application should be displayed on your Windows box


If you want your whole Linux desktop to appear on your XP machine, just use VNC, it's available for both Windows and Linux.

Old 01-11-2007, 09:59 AM   #3
LQ Newbie
Registered: Jan 2007
Posts: 3

Original Poster
Rep: Reputation: 0
Thanks for the help.
Old 06-06-2008, 04:11 PM   #4
Registered: Nov 2004
Location: Horseheads, New York
Distribution: Mandriva 2010.1 / KDE 4.5.2, Slax, Knoppix, Backtrack & etc...
Posts: 198

Rep: Reputation: 36

The cygwin implementation is quite bloated and hard to configure. There are a number of projects that bring along only those parts of cygwin required for the task.

The openSSH project did this, but it is not being developed and has old, insecure components.

The one to use for ssh is copSSH, it configures everything near perfect right out of the box, including being able to shell into windows with the use of password-less keys. This allows for automated backups initiated by a Linux server, a holy grail I'd been working on for months until someone pointed me at copSSH.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Default window session jborne Linux - Newbie 2 01-04-2005 12:03 PM
Exit X Window System session Azzath Linux - Software 4 01-04-2005 02:38 AM
I just killed my x window session! Thaidog Linux - Newbie 5 02-22-2004 05:59 AM
default window manager session with xdm gusgorman Linux - General 10 07-01-2002 10:04 AM
X-Window Freeze when closing X Session smitchel Linux - Software 3 11-12-2001 11:37 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:36 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration