Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
02-02-2009, 01:20 PM
|
#1
|
LQ Newbie
Registered: Jan 2009
Location: Philadelphia, PA
Distribution: Red Hat
Posts: 10
Rep:
|
Put up a Windows GUI from a Linux terminal
I've seen this: your sitting at a PC and have an Exceed terminal or maybe PuTTY connected to a Linux system. You type a command in the terminal session, I think maybe a Tk script, and a GUI pops up on the Windows system (accessing a Linux database, but that part is unimportant).
How is this done? Using X? Some feature within Tk? Something to do with the terminal software?
Thanks,
pas
|
|
|
02-02-2009, 01:47 PM
|
#2
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
could be many many things. maybe X on Cygwin or Xwin32
|
|
|
02-02-2009, 02:03 PM
|
#3
|
LQ Newbie
Registered: Jan 2009
Location: North-Eastern Virginia
Distribution: SUSE
Posts: 1
Rep:
|
I downloaded "rdesktop" (you can pick it from several sites) and it does exactly what one expects: a clean windows desktop.
Use something like this as the command string when generating a desktop launcher: rdesktop -g 1024x780 -u "username" -T "Title of window" servername.domain
Hope this helps.
|
|
|
02-02-2009, 02:29 PM
|
#4
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
well no, that doesn't appear to relate at all to what he's asking. rdesktop is merely a linux client for a windows terminal / remote desktop. he's aksing about accessing linux from windows, not windows from linux.
No, sorry... maybe it is that way round, my probable bad. Still think he's after more than a desktop viewer.
Last edited by acid_kewpie; 02-02-2009 at 02:51 PM.
|
|
|
02-02-2009, 02:38 PM
|
#5
|
Senior Member
Registered: Jan 2008
Distribution: Arch/Manjaro, might try Slackware again
Posts: 1,859
|
Could be colinux too.
|
|
|
02-02-2009, 03:34 PM
|
#6
|
Member
Registered: Nov 2004
Location: Arizona
Distribution: Slackware, RHEL, others
Posts: 470
Rep:
|
I use PuTTY on my Windows machines regularly. I'm able to connect to Linux machines, with X11 forwarding enabled, and open GUI's from the Linux machine. To do this, you'll need PuTTY or something similar, along with an X server for windows(there are several). I've been using Xming(X server for windows) along with PuTTY for quite a while now and it seems to work pretty well. In fact, with this combo you can connect to a Linux machine and open a session with KDE or Gnome, although it will run kinda slow. However, I generally just open a terminal through PuTTY, then open whatever GUI I need from command line.
|
|
|
02-05-2009, 10:16 AM
|
#7
|
LQ Newbie
Registered: Jan 2009
Location: Philadelphia, PA
Distribution: Red Hat
Posts: 10
Original Poster
Rep:
|
I want to thank all responders and especially Chromezero. Everyone else, probably my fault for not being clearer -- it is a Windows machine you are sitting in front of, and running a terminal program such as PuTTY to access Linux. (Most corporate environments seem to have this setup.)
The neat part was typing a command in that terminal and having a GUI pop open on the Windows desktop. I believe it could be "X11 forwarding enabled" as ChromeZero says, but I was hoping for more detail? I know I can say
DISPLAY=hostname:n.m
to set the place to send the GUI. And I think the "X server for windows" part might be provided by Exceed (Hummingbird). So that seems correct. I'm trying to reproduce that environment on another set of systems.
Thanks again.
Last edited by paz9; 02-05-2009 at 10:18 AM.
|
|
|
02-05-2009, 04:18 PM
|
#8
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
cygwing/x will cover this for you. you don't need a full exceed instance.
|
|
|
02-05-2009, 05:37 PM
|
#9
|
LQ 5k Club
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,399
|
The crucial ingredient is the Windows-hosted X server. There are a few of these, and some have already been mentioned in this thread: Exceed, and XMing. There are others, and a decent list can be found at http://www.rahul.net/kenton/xsites.html#XMicrosoft. Some are commercial. like Exceed, which is a good product.
These X servers serve the same purpose as the usual Xorg/XFree86 X servers normally used in Linux. Using Putty or other SSH client to provide a secure SSH tunnel for the X traffic is a common way of making the connection between the Windows X server and the X client(s) running on the remote host(s).
--- rod.
|
|
|
02-05-2009, 05:51 PM
|
#10
|
Member
Registered: Nov 2004
Location: Arizona
Distribution: Slackware, RHEL, others
Posts: 470
Rep:
|
Quote:
Originally Posted by theNbomr
The crucial ingredient is the Windows-hosted X server.
|
Exactly, that's the part most people tend to overlook.
Quote:
Originally Posted by paz9
The neat part was typing a command in that terminal and having a GUI pop open on the Windows desktop. I believe it could be "X11 forwarding enabled" as ChromeZero says, but I was hoping for more detail?
|
If you're using PuTTY, there's an option, SSH>X11>"Enable X11 Forwarding", that allows exactly that. It enables you to forward gui's from the Linux box to the Windows box. This is assuming you have an X server running on the Windows box, such as Xming or similar.
As I mentioned before, I use PuTTY with Xming. They do the job and they're free(as in beer) so I can't complain much.
|
|
|
02-06-2009, 11:58 AM
|
#11
|
LQ Newbie
Registered: Jan 2009
Location: Philadelphia, PA
Distribution: Red Hat
Posts: 10
Original Poster
Rep:
|
Excellent Advice
Yes, I see the X11 forwarding now. On my PuTTY it is a checkbox under Connection>SSH>Tunnels.
I'm looking into the X-server-for-windows portion. Thanks for the links.
In the environment I came from, both the terminal and X server on Windows came from Hummingbird Exceed. It is a reliable product. I don't know how much it costs however.
I should have this working soon with all of these great tips!
|
|
|
All times are GMT -5. The time now is 05:57 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|