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.

link|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
feedback

3 Answers

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, ...

link|improve this answer
+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
feedback

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

link|improve this answer
feedback

I solved this issue using 2 methods:

  1. Using PuTTY linux version: clicking in both touchpad buttons I simulated the middle button. Since Linux Mint distro I'm using 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
  1. 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 allways, 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, LOL).

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

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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