Home arrow Site Administration arrow Personalizing the User Environment in BSD

Personalizing the User Environment in BSD

In this second part of a three-part article, you'll learn a few more ways to personalize the user environment in BSD, such as adding some fun trivia, setting up a trash directory, and locking down your screen. It is excerpted from chapter one of the book BSD Hacks, written by Dru Lavigne (Copyright © 2005 O'Reilly Media, Inc. All rights reserved. Used with permission from the publisher. Available from booksellers or direct from O'Reilly Media; ISBN: 0596006799).

  1. Personalizing the User Environment in BSD
  2. Hack 6: Get Your Daily Dose of Trivia
  3. Hack 7: Lock the Screen
  4. Hack 8: Create a Trash Directory
By: O'Reilly Media
Rating: starstarstarstarstar / 5
December 14, 2006

print this article



Hack 5: Use the Mouse at a Terminal

Use your mouse to copy and paste at a terminal.

If youíre used to a GUI environment, you might feel a bit out of your element while working at the terminal. Sure, you can learn to map hotkeys and to use navigational tricks, but darn it all, sometimes itís just nice to be able to copy and paste!

Donít fret; your mouse doesnít have to go to waste. In fact, depending upon how you have configured your system, the mouse daemonmousedmay already be enabled. The job of this daemon is to listen for mouse data in order to pass it to your console driver.

Of course, if youíre usingscreen [Hack #12], you can also take advantage of its copy and paste mechanism.

If X Is Already Installed

If you installed and configured X when you installed your system,moused is most likely started for you when you boot up. You can check with this:

  % grep moused /etc/rc.conf 

Very good.mousedneeds to know three things:

  • The mouse port (in this example, /dev/psm0, the PS/2 port)
  • The type of protocol (in this example,auto)
  • Whether to start at boot time

If you receive similar output, youíre ready to copy and paste.

To copy text, simply select it by clicking the left mouse button and dragging. Then, place the mouse where youíd like to paste the text and click the middle button. Thatís it.

To select an entire word, double-click anywhere on that word. To select an entire line, triple-click anywhere on that line.

Configuring a two-button mouse.What if you donít have three mouse buttons? As the superuser, add the following line to /etc/rc.conf (assuming itís not already there):

  moused_flags="-m 2=3"

This flag tellsmousedto treat the second, or right, mouse button as if it were the third, or middle, mouse button. Now you can use the right mouse button to paste your copied text.

To apply that change, restartmoused:

  # /etc/rc.d/moused restart
  Stopping moused.
  Starting moused:.

>>> More Site Administration Articles          >>> More By O'Reilly Media

blog comments powered by Disqus
escort Bursa Bursa escort Antalya eskort


- Coding: Not Just for Developers
- To Support or Not Support IE?
- Administration: Networking OSX and Win 7
- DotNetNuke Gets Social
- Integrating MailChimp with Joomla: Creating ...
- Integrating MailChimp with Joomla: List Mana...
- Integrating MailChimp with Joomla: Building ...
- Integrating MailChimp with Joomla
- More Top WordPress Plugins for Social Media
- Optimizing Security: SSH Public Key Authenti...
- Patches and Rejects in Software Configuratio...
- Configuring a CVS Server
- Managing Code and Teams for Cross-Platform S...
- Software Configuration Management
- Back Up a Joomla Site with Akeeba Backup

Developer Shed Affiliates


Dev Shed Tutorial Topics: