Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
How depends on your window manager and desktop environment. Gnome has the control + shift + V option, but most others do not. For most others it's more of a highlight, then middle mouse push to paste it. For an xterm hover the mouse over the cursor location and push the middle mouse button to paste. To copy from an xterm highlight and right mouse click while over the highlight. It's a bit touchy so be roughly where you stopped highlighting when you right mouse to copy. And middle mouse will paste into the browser. But anything you highlight between will replace your copy contents. So best to click new tab and paste there than to highlight what's in the address bar to delete it.
To copy from an xterm highlight and right mouse click while over the highlight. It's a bit touchy so be roughly where you stopped highlighting when you right mouse to copy.
No need to right click, just highlight and middle click to paste.
Copy from browser = ctl + c. Paste to terminal = shift + insert. Make sure to change the focus to the terminal when pasting and while this usually works, I cannot say that it always will work with every terminal emulator.
Last edited by sharkmann1; 01-01-2016 at 01:24 AM.
The the thing is, you should TRY some of these ideas and let us know what WORKED for you. You are not likely to hurt anything unless you copy and execute something like
I use 'gpm' for my copy and paste for 'console' or 'terminal' work;
Quote:
From 'man gpm';
gpm - a cut and paste utility and mouse server for virtual consoles
SYNOPSIS
gpm [ options ]
DESCRIPTION
This package tries to be a useful mouse server for applications running on the Linux console. It is based on the "selection" package, and
some of its code comes from selection itself. This package is intended as a replacement for "selection" as a cut-and-paste mechanism; it also
provides additional facilities. The "selection" package offered the first cut-and-paste implementation for Linux using two mouse buttons, and
the cut buffer is still called "selection buffer" or just "selection" throughout this document. The information below is extracted from the
texinfo file, which is the preferred source of information.
The gpm executable is meant to act like a daemon (thus, gpmd would be a better name for it). This section is meant to describe the command-
line options for gpm, while its internals are outlined in the next section.
Due to restrictions in the ioctl(TIOCLINUX) system call, gpm must be run by the superuser. The restrictions have been added in the last 1.1
kernels to fix a security hole related to selection and screen dumping.
The server can be configured to match the user's taste, and any application using the mouse will inherit the server's attitude. From release
1.02 up to 1.19.2 is was possible for any user logged on the system console to change the mouse feeling using the -q option. This is no longer
possible for security reasons.
As of 0.97 the server program puts itself in the background. To kill gpm you can just reinvoke it with the -k cmdline switch, although killall
gpm can be a better choice.
You should be able to get gpm from your distribution repository. Nice to have if you are switching consoles all the time.
EDIT: Warning, Do not try post #19 wpeckham's poor posting. You will remove your root and will no longer be able to boot.
Last edited by onebuck; 12-31-2015 at 07:59 AM.
Reason: add a comment & link to warn
gpm will let you copy/past from tty to tty but not from gui. Use a text browser like lynx or links in a tty will allow you to copy and past with gpm to another tty, but have a learning curve to use.
Distribution: Debian, Red Hat, Slackware, Fedora, Ubuntu
Posts: 13,588
Rep:
wpeckham, while I'm sure your post was made in jest please refrain from posts like that moving forward. A completely new user will have no way to know the command is dangerous and may actually attempt to run it. Remember that one of the goals of LQ is to be welcoming to new Linux users.
gpm will let you copy/past from tty to tty but not from gui. Use a text browser like lynx or links in a tty will allow you to copy and past with gpm to another tty, but have a learning curve to use.
Seems to be still working for me. Whenever I want to place something from a GUI into a terminal all I need to do is highlight then paste using the mouse. Of course when I move between a console to another console the copy/paste function will work in the same way. 'gpm' is a nice utility to use.
Thanks, for some reason I had took previous posts to mean that a three button mouse was required but now, after testing with my desktop, I see that it's just this new-fangled "touch-and-click-to-be-happy-one-button-for-morons" rubbish built into my laptop that doesn't work with it.
Last edited by 273; 12-31-2015 at 02:29 PM.
Reason: Typo'
Seems to be still working for me. Whenever I want to place something from a GUI into a terminal
I wasn't referring to a terminal opened up in a gui, but from a gui to a console terminal like from alt-f7 gui to alt-f1 console.
One can use gpm to copy between the consoles alt-f1 thru alt-f6 but not into the gui on alt-f7 or from alt-f1 console to a terminal opened in the gui on alt-f7
Last edited by colorpurple21859; 12-31-2015 at 02:36 PM.
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,644
Rep:
Quote:
Originally Posted by colorpurple21859
I wasn't referring to a terminal opened up in a gui, but from a gui to a console terminal like from alt-f7 gui to alt-f1 console.
One can use gpm to copy between the consoles alt-f1 thru alt-f6 but not into the gui on alt-f7 or from alt-f1 console to a terminal opened in the gui on alt-f7
That certainly doesn't seem to work on my system though gpm does allow copy and past between the consoles it won't allow pasting into my XFCE session.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.