July 30, 2013

terminal bell in ubuntu 12.04

The terminal bell seems to be disabled in Ubuntu 12.04, and to enable it the "pactl" (pulseaudio control) command needs to be used. For instance, in order to activate the "drip" sound as a terminal bell use the following command either on the command line or in .profile or .bash_profile:
/usr/bin/pactl upload-sample /usr/share/sounds/gnome/default/alerts/drip.ogg bell.ogg

In order to control the terminal bell volume use the following command either on the command line or in .bashrc:
/usr/bin/xset b 30

Reference: http://www.thinkwiki.org/wiki/Installing_Ubuntu_12.04_%28Precise_Pangolin%29_on_a_ThinkPad_X220

February 22, 2013

slow access to SMB shares on Mac OS X

Access through Finder to SMB share on the newer versions of Mac OS X
(e.g., Lion) can be slow. One possibility to improve speed is to create
the following configuration file that overrides the default OS values
'~/Library/Preferences/nsmb.conf':
[default]
notify_off=yes
By doing this you will turn off using notifications for changes on the
remote share, which can slow access for shares with many files.
Disclaimer: I do not know yet if there is any adverse effect of this
setting!

February 13, 2013

access menus in Mac OS X via keyboard

To access the top menus in Mac OS X via keyboard use the following
shortcut to select the first menu entry (the Apple logo):

* Control-Fn-F2 if you use F1, F2, etc. as system control keys
(brightness, etc.)

* Control-F2 if you use F1, F2, etc. as standard function keys.

Then you can use the arrow keys and enter to select a certain menu item.

February 8, 2013

hide folders in Mac OS X

To hide folder in Mac OS X, type the following command:
chflags hidden /path/to/folder/

The folder will not be visible in Finder, but you can still access it
via the Terminal.

To unhide the folder, use the following command:
chflags nohidden /path/to/folder/

February 3, 2013

disable ready (drum) sound in ubuntu 12.04

Create (or edit) the following file:
/usr/share/glib-2.0/schemas/50_unity-greeter.gschema.override

Add to it the following section and content:
[com.canonical.unity-greeter]
play-ready-sound = false

Make the OS aware of the changes:
sudo glib-compile-schemas /usr/share/glib-2.0/schemas/