LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   xming problem, cannot Copy&Paste from windows (https://www.linuxquestions.org/questions/linux-software-2/xming-problem-cannot-copy-and-paste-from-windows-519544/)

parv 01-15-2007 02:36 PM

xming problem, cannot Copy&Paste from windows
 
I have both xming and xwin32 installed in windows xp.
I have two remote linux boxes to login. One is configured
by sysadmin (debian) and the other by myself (centos).
If I run xwin32, I can copy and paste (ctrl+C in windows to
copy and middle button in linux to paste) in both linux machines.
But if I run xming, I cannot do the same thing in the linux box
I configured (running centos). However, copy and paste works by
using either Xwin32 or xming. Or, if I start xming first, then
launch putty and enable x11 forwarding, then I can successfully
do the c&p stuff. The problem happens when I am using xdmcp to
access centos.



I have installed additional xming fonts (Xming-fonts-6-9-0-6-setup).
I am confused since if it were xming's problem, it should
not have worked for the debian machine either. If it were
centos's configuration problem, it should not have worked
using xwin32.

Please advise.
Appreciate it.

MensaWater 01-17-2007 08:03 AM

Standard X cut and paste isn't done with ctrlC, ctrlV - those are M$ Windoze defaults. In X the "cut" is done simply by selecting (highlightin) the item. The "paste" is done by pressing the middle button of a 3 button mouse. Since most PCs only have 2 button mice the 3rd button is usually emulated by pressing both the left and right button at the same time.

parv 01-17-2007 11:49 AM

Quote:

Originally Posted by jlightner
Standard X cut and paste isn't done with ctrlC, ctrlV - those are M$ Windoze defaults. In X the "cut" is done simply by selecting (highlightin) the item. The "paste" is done by pressing the middle button of a 3 button mouse. Since most PCs only have 2 button mice the 3rd button is usually emulated by pressing both the left and right button at the same time.

Thanks for your reply. But I knew the stuff you talked about.
My problem is I can copy (ctrl+C) in windows and paste (middle button)
in linux through xdmcp while using xwin32. But I cannot do this if I am
running xming. Whiling using either xwin32 or xming, I could do "highlight copy"
and "middle button paste" within linux. The problem only happens when I want to
copy text from windows and paste to linux text editor such as vi or emacs.
BTW, there is nothing wrong if I use xwin32.

MensaWater 01-17-2007 12:22 PM

I just did a test. In an MS-Exchange email I highlighted text then did a "ctrl-C". In an xterm opened using Xming I did the middle button paste in a vi session and it worked fine.

I don't run the full XDMCP as I don't like have an X desktop on top of my M$ Windoze desktop. I can't think of any reason a full XDMCP session would treat the paste any differently. I do recall that X actually has more than one cut buffer and having had to play with it once using either Exceed or the other commercial X emulator the name of which escapes me at the moment.

Of course there are X resources you can set on the Unix/Linux side but I'd think you'd be getting the same ones whether you opened it in Xwin32 (which I'm assuming is an X emulator) or Xming.

By the way my Xming has "-clipboard" as one of the options. I don't recall adding this but it was quite a while back when I installed Xming.

The actual command associated with my Xming icon:
"C:\Program Files\Xming\Xming.exe" :0 -clipboard -multiwindow -ac

According to the man page at:
http://www.straightrunning.com/XmingNotes/xming.php

-clipboard Enables the integration between the Xming clipboard and Microsoft Windows clipboard.

parv 01-17-2007 05:08 PM

Quote:

Originally Posted by jlightner
I just did a test. In an MS-Exchange email I highlighted text then did a "ctrl-C". In an xterm opened using Xming I did the middle button paste in a vi session and it worked fine.

I don't run the full XDMCP as I don't like have an X desktop on top of my M$ Windoze desktop. I can't think of any reason a full XDMCP session would treat the paste any differently. I do recall that X actually has more than one cut buffer and having had to play with it once using either Exceed or the other commercial X emulator the name of which escapes me at the moment.

Of course there are X resources you can set on the Unix/Linux side but I'd think you'd be getting the same ones whether you opened it in Xwin32 (which I'm assuming is an X emulator) or Xming.

By the way my Xming has "-clipboard" as one of the options. I don't recall adding this but it was quite a while back when I installed Xming.

The actual command associated with my Xming icon:
"C:\Program Files\Xming\Xming.exe" :0 -clipboard -multiwindow -ac

According to the man page at:
http://www.straightrunning.com/XmingNotes/xming.php

-clipboard Enables the integration between the Xming clipboard and Microsoft Windows clipboard.

I actually tried to connect to the centos machine using putty+xming with X11 forwarding
enabled. C&P worked there. I forgot to mention in my previous posts though, my bad.
What confuses me is xming+xdmcp works for another debian machine.
So among all the combinations, only xming+xdmcp+centos does not work.
Other than this, xwin32 works in all conditions, xming works when putty (ssh) is used.
That's why I have no clue where is potential problem is.

BTW, The command associated with my Xming icon is:
"C:\Program Files\Xming\Xming.exe" :0 -clipboard -multiwindow", no -ac used in my case.
But I doubt that's the reason, will give it a try though.

Thanks.

parv 01-17-2007 05:38 PM

Quote:

Originally Posted by parv

BTW, The command associated with my Xming icon is:
"C:\Program Files\Xming\Xming.exe" :0 -clipboard -multiwindow", no -ac used in my case.
But I doubt that's the reason, will give it a try though.

.

did not help :confused:

parv 04-16-2007 09:53 PM

problem solved after doing some research:
I modified /etc/gdm/custom.conf by adding :
Code:

[daemon]
K
illInitClients=false

Then restart gdm with gdm-restart


All times are GMT -5. The time now is 04:52 PM.