LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 05-28-2007, 09:39 PM   #1
jaepi
Member
 
Registered: Apr 2007
Location: Urban Jungle
Distribution: Ubuntu
Posts: 189
Blog Entries: 1

Rep: Reputation: 30
problems with PuTTY...


Hello there, I'm currently working on to some interface using gtk. I'm using PuTTY, doing programming remotely, cause I was told not to use the Linux server unit for surfing, so I'm using the windows unit for internet surfing and at the same time programming by the use of PuTTY. My problem is, I cannot load the GUI (of course in Linux) when I run it in the windows computer, but when I execute my program in the Linux computer, it runs well. It prompts a warning when I execute my application in Windows.

Code:
[dinglej@localhost gtk_practice]$ g++ my_cpp_ver.cpp -o my `pkg-config --cflags --libs gtk+-2.0`
[dinglej@localhost gtk_practice]$ ./my

(my:3974): Gtk-WARNING **: cannot open display:
I'm just wondering because when I execute console based programs it runs pretty well, but when I load a GUI using my Windows unit, it does not function. Can anyone here, who is kind enough, to please explain to me why?
By the way, I'm using iMax to change my view between Windows and Linux. Thank you.
 
Old 05-28-2007, 11:06 PM   #2
bartonski
Member
 
Registered: Jul 2006
Location: Louisville, KY
Distribution: Fedora 12, Slackware, Debian, Ubuntu Karmic, FreeBSD 7.1
Posts: 443
Blog Entries: 1

Rep: Reputation: 48
In order to run GUI programs from a Linux box on your PC, you will have to be running X windows on your PC. I'll use Cygwin-X as an example.

When you SSH into a remote machine from a Cygwin Xterm, the display variable is set. This variable tells the remote X client (the program that you are trying to launch), which display to attach to.

Check out

http://www.faqs.org/docs/Linux-mini/...pps.html#ss6.3

For a more complete explanation.
 
Old 05-28-2007, 11:24 PM   #3
p_s_shah
Member
 
Registered: Mar 2005
Location: India
Distribution: RHEL 3/4, Solaris 8/9/10, Fedora 4/8, Redhat Linux 9
Posts: 237
Blog Entries: 1

Rep: Reputation: 34
Check following link for forwarding SSH session to X-windows system.
http://nixcraft.com/getting-started-...using-ssh.html

From putty.exe :
Go to Connection -> SSH -> Tunnels -> Enable X11 Forwarding

Tell us if you still find any problem.
 
Old 05-29-2007, 01:13 AM   #4
jaepi
Member
 
Registered: Apr 2007
Location: Urban Jungle
Distribution: Ubuntu
Posts: 189

Original Poster
Blog Entries: 1

Rep: Reputation: 30
Quote:
Originally Posted by p_s_shah
Check following link for forwarding SSH session to X-windows system.
http://nixcraft.com/getting-started-...using-ssh.html

From putty.exe :
Go to Connection -> SSH -> Tunnels -> Enable X11 Forwarding

Tell us if you still find any problem.
what do i place in the X display location?
 
  


Reply



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
SuSE and PuTTY - Keyboard problems jantman Linux - Software 6 03-24-2007 09:05 PM
putty,ssh etc problems Braveheart1980 Linux - General 10 01-06-2006 12:46 PM
Putty problems - cannot connect with server TuXspow Linux - Newbie 1 04-11-2005 02:59 PM
Problems with Putty RahulSingh General 6 09-20-2004 07:35 PM
Im currently using PUTTY but having problems setting display ForumKid Linux - General 3 04-09-2002 05:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:12 AM.

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