Link to home
Start Free TrialLog in
Avatar of pillmill
pillmill

asked on

Xming and Putty: can't twm ?

Hi:

I am running Xming with Putty.
When I try to run twm in xterm,
I get the message:
Another window manager is already running on screen 0

Without a window manager, I dont have the ability to copy/paster
or use scroll bars on the xwindows.

How do I fix this ?

Thanks,
Phil Miller
Avatar of evilolive
evilolive

Correct me if i'm wrong, but from what I understand, you are trying to have VNC functionality through Xming.  Only your programs will run in Xming, not your entire deskop.  If you want full remote control, look into VNC.

Otherwise, here is how you can run programs remotely:

Open Xming, and hover your mouse over the X icon in the system tray.  It should say something like 'Xming Server - x:y'

Then open putty.  Enter all of your connection information, and before you connect you must configure a few more things.  Look to the left panel and click on "Connection/SSH/X11" which will give you more options.  Check the 'Enable X11 Forwarding' checkbox, and enter your display in the 'X display location' checkbox (this will be in the form of=> localhost:x:y  where x and y are whatever you saw when you moused over the X system tray icon earlier).

Then connect as you regularly would.  I would recommend saving these settings back in the main 'Session' panel.  Once connected, you can run applications from the command line and they will appear on your windows desktop.
> Another window manager is already running on screen 0
that's 'cause you have not set your DISPLAY environment variable propper (pointing to your local X server)
Anyway, if you're able to start a xterm, I guess that you already have running some kind of window manager. If you're on windoze you need to start an X server first before you can start twm on the remote site. Do you have X already running on your client?
Avatar of pillmill

ASKER

I have done all the above.
Xming shows the Server as Xming Server 0.0

When I try to execute twm, I get the following error message:

twm: another window manager is already running on window 0 ?
twm: unable to find any unmanaged screens

How can I run twm ?



please read http:#19520750 again

> Xming shows the Server as Xming Server 0.0
is it running on the local or remote system?
It's running on the local system.
then you have to set your DISPLAY environment variable proper to point to your local X server, if you have enable X forwarding then it might be
  your-local-full-qualified-domain-name-or-IP:10.0
I have set the DISPLAY to a qualified domain name.

The xterm appears correctly on my pc.

When I run twm on this xterm, I get:

twm: another window manager is already running on screen 0 ?
twm: unable to find any unmanaged screens

How do I get twm to appear on my PC ?

Thanks
> When I run twm on this xterm, I get:
does this xterm hav a border and title bar? then you already have a window manager running, check with
  ps ax

if you issue
  echo $DISPLAY
in that xterm, is that exactly the same as if you issue it where you started xterm?
The putty window has a title and scrollbar.

The xterm window, that I open from the putty window, has a title but no
scrollbar.

echo $DISPLAY is exactly what was issued from xterm.

I need to be able to cut/paste and run a programmer's IDE from the UNIX system.

Thanks,

did anyone ask for putty?
please post result of following command, furst issued from your putty *after* you logged in into remote system, and ssecond from within your xterm startet at that putty:

  uname -n; echo $DISPLAY; ps ax|grep wm
1st:
uname -n: remote1
echo $DISPLAY: localhost:10.0
ps -a|grep wm: (nothing)

2nd:
uname -n: remote1
echo $DISPLAY: localhost:10.0
ps -a|grep wm: (nothing)
ok, sounds good
can you login back to your host where you started putty from within that xterm?
From the opened xterm, I am not able to rlogin to the host running putty.
ASKER CERTIFIED SOLUTION
Avatar of ahoffmann
ahoffmann
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial