LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 12-30-2015, 05:58 AM   #16
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 2,974
Blog Entries: 1

Rep: Reputation: 620Reputation: 620Reputation: 620Reputation: 620Reputation: 620Reputation: 620

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.
 
Old 12-30-2015, 08:25 AM   #17
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,454

Rep: Reputation: 2052Reputation: 2052Reputation: 2052Reputation: 2052Reputation: 2052Reputation: 2052Reputation: 2052Reputation: 2052Reputation: 2052Reputation: 2052Reputation: 2052
Quote:
Originally Posted by Shadow_7 View Post
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.
 
Old 12-31-2015, 12:47 AM   #18
sharkmann1
LQ Newbie
 
Registered: Dec 2015
Location: US
Distribution: Arch mostly.
Posts: 6

Rep: Reputation: Disabled
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.
 
Old 12-31-2015, 05:22 AM   #19
wpeckham
Senior Member
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, Fedora, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, Vsido, tinycore, Q4OS
Posts: 2,141

Rep: Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849
Try and fly.

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
Code:
 removed
or something silly like that.
 
Old 12-31-2015, 06:01 AM   #20
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 5,802

Rep: Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379
mr wpeckham, sir, i just tried that command and it did not work.
now my computer won't boot anymore.
what did i do wrong?
please advise.
 
Old 12-31-2015, 07:51 AM   #21
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 12,714
Blog Entries: 27

Rep: Reputation: 2056Reputation: 2056Reputation: 2056Reputation: 2056Reputation: 2056Reputation: 2056Reputation: 2056Reputation: 2056Reputation: 2056Reputation: 2056Reputation: 2056
Member response

Hi,

Quote:
Originally Posted by da.wie View Post
Hi

How does one copy text from eg Firefox and paste it into the terminal?

I need to run this command:

wget http://c758482.r82.cf2.rackcdn.com/s...83_x32.tar.bz2

Thanks
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
 
Old 12-31-2015, 08:14 AM   #22
colorpurple21859
Senior Member
 
Registered: Jan 2008
Location: florida
Distribution: slackware64-current, puppy, ubuntu
Posts: 1,968

Rep: Reputation: 274Reputation: 274Reputation: 274
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.
 
Old 12-31-2015, 10:13 AM   #23
jeremy
root
 
Registered: Jun 2000
Distribution: Debian, Red Hat, Slackware, Fedora, Ubuntu
Posts: 12,353

Rep: Reputation: 3259Reputation: 3259Reputation: 3259Reputation: 3259Reputation: 3259Reputation: 3259Reputation: 3259Reputation: 3259Reputation: 3259Reputation: 3259Reputation: 3259
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.

--jeremy
 
Old 12-31-2015, 02:01 PM   #24
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 12,714
Blog Entries: 27

Rep: Reputation: 2056Reputation: 2056Reputation: 2056Reputation: 2056Reputation: 2056Reputation: 2056Reputation: 2056Reputation: 2056Reputation: 2056Reputation: 2056Reputation: 2056
Member response

Hi,
Quote:
Originally Posted by colorpurple21859 View Post
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.

Hope this helps.
Have fun & enjoy!
 
Old 12-31-2015, 02:07 PM   #25
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 6,602

Rep: Reputation: 1882Reputation: 1882Reputation: 1882Reputation: 1882Reputation: 1882Reputation: 1882Reputation: 1882Reputation: 1882Reputation: 1882Reputation: 1882Reputation: 1882
Can gpm work without a middle mouse button?
I haven't had a middle mouse button on my home machine for so long I don't recall when last I had one.
 
Old 12-31-2015, 02:15 PM   #26
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 12,714
Blog Entries: 27

Rep: Reputation: 2056Reputation: 2056Reputation: 2056Reputation: 2056Reputation: 2056Reputation: 2056Reputation: 2056Reputation: 2056Reputation: 2056Reputation: 2056Reputation: 2056
Member response

Hi,
Quote:
Originally Posted by 273 View Post
Can gpm work without a middle mouse button?
I haven't had a middle mouse button on my home machine for so long I don't recall when last I had one.
I think a three button mouse will work with 'gpm', if memory serves me. Look here; http://tldp.org/HOWTO/3-Button-Mouse-8.html
Hope this helps.
Have fun & enjoy!
 
Old 12-31-2015, 02:26 PM   #27
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 6,602

Rep: Reputation: 1882Reputation: 1882Reputation: 1882Reputation: 1882Reputation: 1882Reputation: 1882Reputation: 1882Reputation: 1882Reputation: 1882Reputation: 1882Reputation: 1882
Quote:
Originally Posted by onebuck View Post
Hi,


I think a three button mouse will work with 'gpm', if memory serves me. Look here; http://tldp.org/HOWTO/3-Button-Mouse-8.html
Hope this helps.
Have fun & enjoy!
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'
 
Old 12-31-2015, 02:33 PM   #28
colorpurple21859
Senior Member
 
Registered: Jan 2008
Location: florida
Distribution: slackware64-current, puppy, ubuntu
Posts: 1,968

Rep: Reputation: 274Reputation: 274Reputation: 274
Quote:
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.
 
Old 12-31-2015, 02:38 PM   #29
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 6,602

Rep: Reputation: 1882Reputation: 1882Reputation: 1882Reputation: 1882Reputation: 1882Reputation: 1882Reputation: 1882Reputation: 1882Reputation: 1882Reputation: 1882Reputation: 1882
Quote:
Originally Posted by colorpurple21859 View Post
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.
 
Old 12-31-2015, 02:41 PM   #30
colorpurple21859
Senior Member
 
Registered: Jan 2008
Location: florida
Distribution: slackware64-current, puppy, ubuntu
Posts: 1,968

Rep: Reputation: 274Reputation: 274Reputation: 274
Quote:
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.
Same thing here if I was unclear on what I was trying to say.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to copy paste from vi to browser? SentralOrigin Linux - Software 2 12-13-2010 02:05 PM
Terminal with copy/paste support datbenik Linux - Software 1 12-08-2005 03:25 AM
copy and paste in a terminal? BmxFace Linux - General 5 06-29-2003 05:08 AM
copy and paste in terminal bash Linux - Software 3 07-08-2002 08:11 PM
Copy & Paste to Terminal monowar Linux - Newbie 1 07-02-2002 11:22 AM


All times are GMT -5. The time now is 03:11 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration