Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

For ages I've been using Putty when working with *nix servers, and I really got used to it's copy&paste method: select, left-click - for copy, just right-click - for paste.

How can I set Ubuntu terminal the same way? I see there is a shortcuts configuration, but it does not allow me to set keys I need. Ctrl+Shift+C, Ctrl+Shift+V is just braking my fingers.

I know there is a menu on right-click, but I don't need it.

share|improve this question
    
Is there a reason why you do not install Putty in Ubuntu and just that instead of terminal? –  Rinzwind May 15 '11 at 0:31
    
Great idea - just tried, but it didn't worked. Basically, keys are different under linux, and it does not copy on left mouse, and does not insert on right. In fact I haven't found any way to copy/paste on putty in Linux at all :-D –  BarsMonster May 15 '11 at 0:40
    
I have tried the putty under ubuntu and looks awful. Keys are also not same as the windows putty. –  Abhijeet May 15 '11 at 5:52
    
very strange... because whenever I have used Ubuntu ... this copy paste stuff is there by default...in terminal..in browser ..everywhere –  abhishek Dec 21 '11 at 16:18
add comment

6 Answers 6

I'm used to that feature too, that's why I use Ubuntu. All you need to do is open the terminal and type ssh myserver.gov.

For mega-fast copy-and-paste:

  • Select text to Copy
  • Middle-click to Paste
    • Middle-click is the mouse wheel click (or both mouse buttons)

It works with any selectable text in the OS: in the terminal, browser, ...

share|improve this answer
1  
+1 Please note, however, by doing this mega-fast copy-and-paste, copied text is not copied to clipboard. Basically, you can do mouse copy-pasting while your clipboard holds a result of recent Ctrl+C. –  Andrejs Cainikovs Dec 21 '11 at 16:49
2  
+1 but I struggled to interpret this answer. The difference between PuTTY and the Ubuntu terminal is that you use Middle-click instead of Right-click to paste. –  Waylon Flinn Oct 11 '12 at 15:34
    
Note that this does not work between virtual machines because it doesn't use the clipboard buffer. For this reason I stick to PuTTY and avoid the GUI terminal in my VMs. –  Will Bickford Mar 25 '13 at 18:35
    
Thanks a lot :) –  suyash Mar 18 at 7:14
add comment

Ubuntu terminal (gnome-terminal) has this feature. It just uses Middle-click to paste instead of Right-click.

In summary:

  • Select the text to copy
  • Middle-click where you want to paste it
share|improve this answer
add comment

This is solved using either one of 2 methods:

  1. Using PuTTY linux version:

    Clicking in both Touchpad buttons I simulated the middle button. Since using Linux Mint distro, I had not this middle button simulation activated.

    (The latest version of evdev, version 2.5, changed the default for the middle mouse button emulation code. This change has disabled emulation of the middle mouse button by clicking the left and right mouse buttons) I needed to enable it manually:

    Enabling the middle mouse button emulation adding this to xorg.conf snippet:

        Section "InputClass"
           Identifier "middle button emulation class"
           MatchIsPointer "on"
           Option "Emulate3Buttons" "on"
        EndSection
    
  2. Using PuTTY Windows version:

    (I prefer this method since I do not need to change distro setting like Xorg, only Wine settings in order to connect to console serial ports):

    Since Wine handles com ports by having a link to the device (ie /dev/ttyUSB0), in the ~/.wine/dosdevices folder, this link would be created as follows, in order to update your wine profile configs:

    ln -s /dev/ttyUSB0 ~/.wine/dosdevices/com1
    

    I prefer this second method, since the copy paste works always, do not need the middle button simulation and, the sherry in the top of the cake, it NEVER hangs (occasionally PuTTY for Windows hangs on some winXP installations).

    Otherwise, in case you do not need/want to install wine, the first method is preferable.

share|improve this answer
add comment

Can't help with setting it up like Putty, but an easier mouse way than Ctrl+Shift+C, Ctrl+Shift+V or menu is select alt+middle-button = copy and middle-button = paste

share|improve this answer
add comment

Even the LeftClick+RightClick can be used to paste the selected text anywhere in Ubuntu. Though, the "Copy" by simple selection is possible in the terminal only, the LeftClick+RightClick "Paste" works just fine everywhere in the OS, eg:text-editors.

This makes it useful while working with touch-pads on laptop when a mouse is not around.

So in the end the gnome terminal works almost like putty, just with the exception of a simultaneous Left+Right Click for "Paste" rather than a Right Click.

share|improve this answer
add comment

I know I'm way over the time to answer this question, but I've liked the plain old xterm for this behaviour. It works just like that on my machine(TM).

EDIT: I just found out that putty was modelled after xterm. Here the document.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.