SlackwareThis Forum is for the discussion of Slackware Linux.
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.
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.
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.
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
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.
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.
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.
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 ...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.