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.
You should follow me on twitter here or grab rss feed to keep track of new changes.
Featured Articles:
- 30 Handy Bash Shell Aliases For Linux / Unix / Mac OS X
- Top 30 Nmap Command Examples For Sys/Network Admins
- 25 PHP Security Best Practices For Sys Admins
- 20 Linux System Monitoring Tools Every SysAdmin Should Know
- 20 Linux Server Hardening Security Tips
- Linux: 20 Iptables Examples For New SysAdmins
- Top 20 OpenSSH Server Best Security Practices
- Top 20 Nginx WebServer Best Security Practices
- 20 Examples: Make Sure Unix / Linux Configuration Files Are Free From Syntax Errors
- 15 Greatest Open Source Terminal Applications Of 2012

- My 10 UNIX Command Line Mistakes
- Top 10 Open Source Web-Based Project Management Software
- Top 5 Email Client For Linux, Mac OS X, and Windows Users
- The Novice Guide To Buying A Linux Laptop








![Linux Gnome Numeric Keypad Disabled [ Mouse keys ]](http://s13.cyberciti.org/images/shared/rp/3/30.jpg)



{ 0 comments… add one now }