LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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


Reply
  Search this Thread
Old 02-02-2009, 01:20 PM   #1
paz9
LQ Newbie
 
Registered: Jan 2009
Location: Philadelphia, PA
Distribution: Red Hat
Posts: 10

Rep: Reputation: 0
Post 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
 
Old 02-02-2009, 01:47 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
could be many many things. maybe X on Cygwin or Xwin32
 
Old 02-02-2009, 02:03 PM   #3
Bemfic
LQ Newbie
 
Registered: Jan 2009
Location: North-Eastern Virginia
Distribution: SUSE
Posts: 1
Blog Entries: 1

Rep: Reputation: 0
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.
 
Old 02-02-2009, 02:29 PM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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.
 
Old 02-02-2009, 02:38 PM   #5
mostlyharmless
Senior Member
 
Registered: Jan 2008
Distribution: Arch/Manjaro, might try Slackware again
Posts: 1,859
Blog Entries: 14

Rep: Reputation: 284Reputation: 284Reputation: 284
Could be colinux too.
 
Old 02-02-2009, 03:34 PM   #6
Chromezero
Member
 
Registered: Nov 2004
Location: Arizona
Distribution: Slackware, RHEL, others
Posts: 470

Rep: Reputation: 40
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.
 
Old 02-05-2009, 10:16 AM   #7
paz9
LQ Newbie
 
Registered: Jan 2009
Location: Philadelphia, PA
Distribution: Red Hat
Posts: 10

Original Poster
Rep: Reputation: 0
Talking

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.
 
Old 02-05-2009, 04:18 PM   #8
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
cygwing/x will cover this for you. you don't need a full exceed instance.
 
Old 02-05-2009, 05:37 PM   #9
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,399
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
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.
 
Old 02-05-2009, 05:51 PM   #10
Chromezero
Member
 
Registered: Nov 2004
Location: Arizona
Distribution: Slackware, RHEL, others
Posts: 470

Rep: Reputation: 40
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 View Post
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.
 
Old 02-06-2009, 11:58 AM   #11
paz9
LQ Newbie
 
Registered: Jan 2009
Location: Philadelphia, PA
Distribution: Red Hat
Posts: 10

Original Poster
Rep: Reputation: 0
Thumbs up 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!
 
  


Reply

Tags
multiplatform


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
To put a file from linux server to a windows client envisage Programming 1 01-31-2008 08:41 AM
Put Linux Disk to Sleep from Windows? benhanson Linux - Hardware 1 11-13-2007 08:47 AM
Can I put linux os into the windows ris ??? bbmak Linux - Networking 3 08-17-2006 02:21 PM
Isn't Windows 95 or 98 a better GUI solution for old machines than an old Linux GUI lynchmob09 General 10 04-20-2004 02:24 AM
Trying to put linux on a windows box, but having problems. elpollodiablo Linux - Software 10 07-24-2003 03:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:57 PM.

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