About Linux FAQ

Browse More FAQs:

Advertisements

Howto: FreeBSD configure or use mouse to copy and paste at a terminal

Posted by Vivek Gite [Last updated: September 13, 2006]

Q. How do I configure my mouse to copy and paste at a terminal under FreeBSD?

A. When you come from GUI to text-based terminal, you might miss the cut and past mouse functionality.

You can use your mouse to copy and paste at a terminal. Install moused which is utility and the console driver work together to support mouse operation in the text console and user programs.

FreeBSD moused configuration

To configure moused open /etc/rc.conf file:
# vi /etc/rc.conf

Add/modify following three lines:
moused_port="/dev/psm0"
moused_type="auto"
moused_enable="YES"

Save and close the file.

Where,

  • moused_port="/dev/psm0" - The mouse port
  • moused_type="auto" - Automatically detect mouse protocol
  • moused_enable="YES" - Start mouse service when FreeBSD comes up i.e. start at boot time.

Task: Start/restarts/stop moused service

# /etc/rc.d/moused start
# /etc/rc.d/moused restart
# /etc/rc.d/moused stop

Task: Copy text

To select text press the left mouse button and drag the mouse.

Task: Paste text

To paste text in the same or another console, press the middle button.

Task: Configure two button mouse

Open /etc/rc.conf file
# vi /etc/rc.conf
Append following flags:
moused_flags="-m 2=3"

Save and close the file. Restart moused:
# /etc/rc.d/moused restart

Read moused man page for more information.

Subscribe to our free e-mail newsletter or RSS feed to get all updates. You can Email this page to a friend.

Related Other Helpful FAQs:

Leave a Reply

We encourage your comments, and suggestions. But please stay on topic, be polite, and avoid spam. Thank you very much for stopping by our site!

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word

Copyright © 2006-2008 nixCraft. All rights reserved - TOS/Disclaimer - Privacy policy - Sitemap - Powered by Open source software.