LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-25-2007, 07:53 PM   #1
Omni
Member
 
Registered: Sep 2003
Posts: 54

Rep: Reputation: 15
Remote X access using Xming and/or with putty


Server:
Local static ip of 192.168.1.200, sshd is configured "X11Forwarding=yes", otherwise it's a stock Slack 12.0 install.

Remote client:
My laptop, a Windows XP SP2 with a putty client and Xming installed.

Problem:
I'm trying to run KDE remotely on my Windows box. Xming has a launch utility that doesn't seem to help any. So instead I get the Xming server running and access the Slack box with putty. X11 forwarding is enabled when I connect. I type in startx, and X starts... On the server's monitor, not my laptop...

I'm sure this is a trivial problem, but the Xming documentation is useless, and most of what I could scrounge up online uses Xhost and XAuth, which I'm told is dated and insecure. I am *NOT* installing Cygwin. I imagine it's something to do with the DISPLAY number; The monitor on the actual system is 0, my laptop may be considered something else.

So how do I know what display number my putty session is as far as the server is concerned, and what am I doing wrong if it's something stupid? If there is a good source online, please direct me.

Thanks.
 
Old 07-25-2007, 11:20 PM   #2
xdan779
LQ Newbie
 
Registered: Jun 2004
Location: Chicago
Distribution: Slackware
Posts: 15

Rep: Reputation: 0
You do not want to startx as xming is already providing you X windows in which to run your applications. I would recommend testing with something like xclock first. If you want to run your entire desktop on xming such as kde, check either one large window, full screen, or window without title bar, and after confirming xclock appears in the window when running from putty you should be able to run startkde.

I would also recommend uncommenting these lines from your sshd config file as well

X11DisplayOffset 10
X11UseLocalhost yes
 
Old 07-27-2007, 05:32 PM   #3
Omni
Member
 
Registered: Sep 2003
Posts: 54

Original Poster
Rep: Reputation: 15
Thats what did it, startx == bad idea. I tried a couple X applicatons before hand and got poor results, but that was fiddling with the Xming side of things. Running startkde worked, and I can figure it out from here, now that the ssh terminal is giving some useful feedback.

Thank you.
 
Old 09-21-2008, 05:18 AM   #4
krysly
LQ Newbie
 
Registered: Sep 2008
Posts: 2

Rep: Reputation: 0
I have exactly the same Problem described above. But i have no solution for this.

I have installd Xming on my Windows XP Computer an use Putty to create a SSH Connection to my Linux Computer.

I have enabled X11 Forwarding and set all the Variables in the SSHD_Config File.

After i logged in with putty i can start Applications like Xclock or xeyes and i see it on my Windows Computer in the Xming Window.

But when i type in startx (Gnome) nothing happens on my Windows Xming Computer.

Has anyone an idea what i can check or what problem i have ?

Thanks a lot.

Krysly
 
Old 09-21-2008, 01:03 PM   #5
krysly
LQ Newbie
 
Registered: Sep 2008
Posts: 2

Rep: Reputation: 0
Yeah, now it works great !

It seems that "startx" don't use the forwarding. If i start gnome with "gnome-session" everything works fine and i get the whole Gnome Session on my windows Computer with xming.

Krysly
 
Old 08-03-2009, 10:12 PM   #6
navboy
LQ Newbie
 
Registered: Aug 2009
Posts: 6

Rep: Reputation: 0
Hope it works to post here, i'm on REdhat (RHEL5), but the topic matches my situation so closely. New to LU, second post here.

I'm on WindowsXP with Putty set to X11 forwarding and localhost:0 and XMing (multiple Windows, all defaults), connecting to RHEL5 server, edited my sshd_config as per this thread (the two lines) and restarted the service. It seems to be so close - i can run "xeyes" and get the window, close it and get my prompt back in Putty,. Problem is when i try "gnome-session" .... Things start to happen, but then i get only blank top and bottom Redhat bars overlaid my XP display and can't do anything with them, have to Ctrl-C in Putty and exit, then End-Task XMing to get it to close (lose the Xming log at that point).

On second attempt, got a RHEL alert that a panel was already open and would close, i hit Okay and got the RHEL desktop but with no top or bottom RHEL bars at all, all contained in a windows named "Desktop" - the exact opposite of my first attempt. Very close, but can't get to any of the GUI menus along the top bar since it's just out of reach at the top.

Any ideas? Also, when i bail like that, am i leaving a desktop session open on the server that will interfere with subsequent attempts to fire a session up with X11 forwarding?

-steve

Putty console:

Code:
[root@pharmecho360hst ~]# xeyes
[root@pharmecho360hst ~]# gnome-session
SESSION_MANAGER=local/pharmecho360hst.pharm.ku.edu:/tmp/.ICE-unix/7669
Initializing nautilus-open-terminal extension
Introspect error: Launch helper exited with unknown return code 0

** (eggcups:7704): WARNING **: IPP request failed with status 1280

** (eggcups:7704): WARNING **: IPP request failed with status 1280
Getting adapter list failed: The name org.bluez was not provided by any .service files
Passkey agent registration failed: The name org.bluez was not provided by any .service files

** (nm-applet:7716): WARNING **: No connections defined
could not attach to desktop process

Putty log - all this for just the xeyes and then gnome-session:

Code:
2009-08-03 21:51:59	Sent password
2009-08-03 21:51:59	Access granted
2009-08-03 21:51:59	Opened channel for session
2009-08-03 21:51:59	Requesting X11 forwarding
2009-08-03 21:51:59	X11 forwarding enabled
2009-08-03 21:51:59	Allocated pty (ospeed 38400bps, ispeed 38400bps)
2009-08-03 21:51:59	Started a shell/command
2009-08-03 21:52:17	Received X11 connect request from 127.0.0.1:50889
2009-08-03 21:52:17	Opening X11 forward connection succeeded
2009-08-03 21:52:32	Forwarded X11 connection terminated
2009-08-03 22:04:04	Received X11 connect request from 127.0.0.1:32778
2009-08-03 22:04:04	Opening X11 forward connection succeeded
2009-08-03 22:04:07	Forwarded X11 connection terminated
2009-08-03 22:04:35	Received X11 connect request from 127.0.0.1:32779
2009-08-03 22:04:35	Opening X11 forward connection succeeded
2009-08-03 22:04:37	Received X11 connect request from 127.0.0.1:32780
2009-08-03 22:04:37	Opening X11 forward connection succeeded
2009-08-03 22:04:38	Received X11 connect request from 127.0.0.1:32781
2009-08-03 22:04:38	Opening X11 forward connection succeeded
2009-08-03 22:04:40	Received X11 connect request from 127.0.0.1:32782
2009-08-03 22:04:40	Opening X11 forward connection succeeded
2009-08-03 22:04:41	Forwarded X11 connection terminated
2009-08-03 22:04:44	Received X11 connect request from 127.0.0.1:32783
2009-08-03 22:04:44	Opening X11 forward connection succeeded
2009-08-03 22:04:44	Forwarded X11 connection terminated
2009-08-03 22:04:51	Received X11 connect request from 127.0.0.1:32784
2009-08-03 22:04:51	Opening X11 forward connection succeeded
2009-08-03 22:04:51	Received X11 connect request from 127.0.0.1:32785
2009-08-03 22:04:51	Opening X11 forward connection succeeded
2009-08-03 22:04:51	Received X11 connect request from 127.0.0.1:32786
2009-08-03 22:04:51	Opening X11 forward connection succeeded
2009-08-03 22:04:51	Received X11 connect request from 127.0.0.1:32787
2009-08-03 22:04:51	Opening X11 forward connection succeeded
2009-08-03 22:04:51	Forwarded X11 connection terminated
2009-08-03 22:04:51	Forwarded X11 connection terminated
2009-08-03 22:04:52	Forwarded X11 connection terminated
2009-08-03 22:04:53	Received X11 connect request from 127.0.0.1:32788
2009-08-03 22:04:53	Opening X11 forward connection succeeded
2009-08-03 22:04:53	Received X11 connect request from 127.0.0.1:32789
2009-08-03 22:04:53	Opening X11 forward connection succeeded
2009-08-03 22:04:53	Received X11 connect request from 127.0.0.1:32790
2009-08-03 22:04:53	Opening X11 forward connection succeeded
2009-08-03 22:04:58	Received X11 connect request from 127.0.0.1:32791
2009-08-03 22:04:58	Opening X11 forward connection succeeded
2009-08-03 22:04:58	Received X11 connect request from 127.0.0.1:32792
2009-08-03 22:04:58	Opening X11 forward connection succeeded
2009-08-03 22:04:58	Received X11 connect request from 127.0.0.1:32793
2009-08-03 22:04:58	Opening X11 forward connection succeeded
2009-08-03 22:04:58	Received X11 connect request from 127.0.0.1:32794
2009-08-03 22:04:58	Opening X11 forward connection succeeded
2009-08-03 22:04:58	Received X11 connect request from 127.0.0.1:32795
2009-08-03 22:04:58	Opening X11 forward connection succeeded
2009-08-03 22:04:58	Received X11 connect request from 127.0.0.1:32796
2009-08-03 22:04:58	Opening X11 forward connection succeeded
2009-08-03 22:04:58	Received X11 connect request from 127.0.0.1:32797
2009-08-03 22:04:58	Opening X11 forward connection succeeded
2009-08-03 22:04:58	Received X11 connect request from 127.0.0.1:32798
2009-08-03 22:04:58	Opening X11 forward connection succeeded
2009-08-03 22:04:58	Forwarded X11 connection terminated
2009-08-03 22:05:00	Received X11 connect request from 127.0.0.1:32799
2009-08-03 22:05:00	Opening X11 forward connection succeeded
2009-08-03 22:05:04	Forwarded X11 connection terminated
2009-08-03 22:05:04	Forwarded X11 connection terminated
2009-08-03 22:05:04	Received X11 connect request from 127.0.0.1:32800
2009-08-03 22:05:04	Opening X11 forward connection succeeded
2009-08-03 22:05:06	Received X11 connect request from 127.0.0.1:32801
2009-08-03 22:05:06	Opening X11 forward connection succeeded
2009-08-03 22:05:06	Forwarded X11 connection terminated
2009-08-03 22:05:06	Received X11 connect request from 127.0.0.1:32802
2009-08-03 22:05:06	Opening X11 forward connection succeeded
2009-08-03 22:05:06	Received X11 connect request from 127.0.0.1:32803
2009-08-03 22:05:06	Opening X11 forward connection succeeded
2009-08-03 22:05:06	Received X11 connect request from 127.0.0.1:32804
2009-08-03 22:05:06	Opening X11 forward connection succeeded
2009-08-03 22:05:08	Received X11 connect request from 127.0.0.1:32805
2009-08-03 22:05:08	Opening X11 forward connection succeeded
2009-08-03 22:05:08	Received X11 connect request from 127.0.0.1:32806
2009-08-03 22:05:08	Opening X11 forward connection succeeded
2009-08-03 22:05:08	Forwarded X11 connection terminated
2009-08-03 22:05:08	Forwarded X11 connection terminated
2009-08-03 22:05:08	Received X11 connect request from 127.0.0.1:32807
2009-08-03 22:05:08	Opening X11 forward connection succeeded
2009-08-03 22:05:09	Forwarded X11 connection terminated
2009-08-03 22:05:09	Forwarded X11 connection terminated
2009-08-03 22:05:10	Forwarded X11 connection terminated
2009-08-03 22:05:10	Forwarded X11 connection terminated
2009-08-03 22:05:11	Forwarded X11 connection terminated
2009-08-03 22:05:15	Received X11 connect request from 127.0.0.1:32812
2009-08-03 22:05:15	Opening X11 forward connection succeeded
2009-08-03 22:05:15	Received X11 connect request from 127.0.0.1:32813
2009-08-03 22:05:15	Opening X11 forward connection succeeded
2009-08-03 22:05:16	Forwarded X11 connection terminated
2009-08-03 22:05:19	Forwarded X11 connection terminated



XMing log, intially:

Code:
Welcome to the Xming X Server
Vendor: Colin Harrison
Release: 6.9.0.31
FreeType2: 2.3.4
Contact: http://sourceforge.net/forum/?group_id=156984

Xming :0 -multiwindow -clipboard 

XdmcpRegisterConnection: newAddress 10.237.103.77
winAdjustVideoModeShadowGDI - Using Windows display depth of 32 bits per pixel
winAllocateFBShadowGDI - Creating DIB with width: 1280 height: 960 depth: 32
winInitVisualsShadowGDI - Masks 00ff0000 0000ff00 000000ff BPRGB 8 d 24 bpp 32
glWinInitVisuals:1596: glWinInitVisuals
glWinInitVisualConfigs:1503: glWinInitVisualConfigs glWinSetVisualConfigs:1581: glWinSetVisualConfigs
init_visuals:1055: init_visuals
null screen fn ReparentWindow
null screen fn RestackWindow
InitQueue - Calling pthread_mutex_init
InitQueue - pthread_mutex_init returned
InitQueue - Calling pthread_cond_init
InitQueue - pthread_cond_init returned
winInitMultiWindowWM - Hello
winInitMultiWindowWM - Calling pthread_mutex_lock ()
winMultiWindowXMsgProc - Hello
winMultiWindowXMsgProc - Calling pthread_mutex_lock ()
glWinScreenProbe:1390: glWinScreenProbe
fixup_visuals:1303: fixup_visuals
init_screen_visuals:1336: init_screen_visuals
(--) 5 mouse buttons found
(--) Setting autorepeat to delay=500, rate=31
(--) winConfigKeyboard - Layout: "00000409" (00000409) 
(--) Using preset keyboard for "English (USA)" (409), type "4"
Could not init font path element C:\Program Files\Xming/fonts/Type1/, removing from list!
Could not init font path element C:\Program Files\Xming/fonts/100dpi/, removing from list!
Could not init font path element C:\Program Files\Xming\fonts\dejavu, removing from list!
Could not init font path element C:\Program Files\Xming\fonts\cyrillic, removing from list!
Could not init font path element C:\WINDOWS\Fonts, removing from list!
winInitMultiWindowWM - pthread_mutex_lock () returned.
winInitMultiWindowWM - pthread_mutex_unlock () returned.
winMultiWindowXMsgProc - pthread_mutex_lock () returned.
winInitMultiWindowWM - DISPLAY=127.0.0.1:0.0
winMultiWindowXMsgProc - pthread_mutex_unlock () returned.
winMultiWindowXMsgProc - DISPLAY=127.0.0.1:0.0
winProcEstablishConnection - Hello
winInitClipboard ()
winProcEstablishConnection - winInitClipboard returned.
winMultiWindowXMsgProc - XOpenDisplay () returned and successfully opened the display.
winInitMultiWindowWM - XOpenDisplay () returned and successfully opened the display.
winClipboardProc - Hello
DetectUnicodeSupport - Windows XP
winClipboardProc - DISPLAY=127.0.0.1:0.0
winClipboardProc - XOpenDisplay () returned and successfully opened the display.
 
Old 08-04-2009, 08:37 PM   #7
navboy
LQ Newbie
 
Registered: Aug 2009
Posts: 6

Rep: Reputation: 0
FWIW, i haven't changed anything in the Tunnels tab of Putty under SSH,X11 .... haven't seen any instructions to do so, but am wondering if maybe that's what's needed ...
 
  


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
remote access via putty immortaltechnique Linux - Networking 4 01-30-2007 09:09 AM
remote access via putty immortaltechnique Linux - Networking 1 01-30-2007 02:42 AM
using putty and xming from windows to linux stevisg General 2 12-01-2006 12:12 AM
Access Denied When Remote Connection Using Putty erosszz Linux - Newbie 11 10-18-2006 03:28 AM
Will script continue to run even after closing putty for remote access anjanesh Linux - Newbie 11 08-07-2006 03:05 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 10:30 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