Dec 08

Adding SIP URI handling to Firefox

By agatewood Linux, VoIP Comments Off on Adding SIP URI handling to Firefox

To add SIP URI protocol handling to Firefox 3.5 and later, do the following:

1) Launch Firefox
2) Type about:config in the address bar and press ‘Enter’
3) Accept the warning
4) Right click somewhere on the page and select New –> Boolean from the menu
5) Set the name to “network.protocol-handler.expose.sip” without the quotes
6) Set the value to “false”
7) Close the about:config window (or tab)

Navigate to a page that has a SIP URI that you would like to call and click the link. When prompted, select your favorite SIP client as the application to launch. Your client should launch and connect to the URI. That’s it!

Note: SIP URIs that are embedded in webpages are in the form “sip:extension@domain.com”

Tagged with:
Jul 16

Turn off highlighting on vi (vim)

By agatewood Linux Comments Off on Turn off highlighting on vi (vim)

Recently, my vi editor (vim) began highlighting spaces and what it thought were keywords in files. This highlighting made the documents difficult to read and wasn’t needed. I’m fairly sure that I erroneously entered some command and caused this behavior. After a little googling, I found a couple of commands to turn this behavior off, specifically, ‘:set hls!’ and ‘:syntax off’. Those commands worked great until I exited vi and then opened another file. After a little searching, I found the following in /etc/vimrc:

” Switch syntax highlighting on, when the terminal has colors
” Also switch on highlighting the last used search pattern.
if &t_Co > 2 || has(“gui_running”)
syntax on
set hlsearch
endif

Change this section to read (change on to off and remove hlsearch):

” Switch syntax highlighting on, when the terminal has colors
” Also switch on highlighting the last used search pattern.
if &t_Co > 2 || has(“gui_running”)
syntax off
endif

Now the highlighting has disappeared. Hope this helps some others who only use vi out of necessity.

Tagged with:
Jun 23

Force unmount (umount) of a hung NFS share

By agatewood Linux Comments Off on Force unmount (umount) of a hung NFS share

When an NFS share gets hung and a standard ‘umount /mnt/share’ yields something like:

umount.nfs: 10.1.1.15:/nfs/share: not found / mounted or server not reachable

Try to force it with a ‘lazy’ unmount (umount):

umount -l /mnt/share

Tagged with:
Jun 11

Allow passive FTP on ProFTPD

By agatewood Linux Comments Off on Allow passive FTP on ProFTPD

Most FTP clients attempt to use passive FTP by default. Passive FTP is not enabled on ProFTPD. Fortunately, enabling it is very simple. Edit /etc/proftpd.conf and add ‘PassivePorts <low port> <high port>’ to the first section (global), then restart ProFTPD. You should use a really high port range to avoid conflicts. For example, you might want to add:

‘PassivePorts 63121 63129’

The number of ports needed is determined by the number of simultaneous FTP clients you expect to have.

If you are running a firewall, you may need to allow these ports in to your server. This will depend on the firewall – some will view this traffic as related, some will not.

Tagged with:
May 18

Tracker applet fails to reindex after Jaunty upgrade and message box won’t close

By agatewood Linux Comments Off on Tracker applet fails to reindex after Jaunty upgrade and message box won’t close

After upgrading to Jaunty, the Tracker applet wanted to reindex. It failed to reindex and popped up the message:

Tracker
There was an error while performing indexing:
Index corrupted.

To fix:
Open terminal and type:
$ sudo apt-get install tracker-utils
$ tracker-processes -r

From: https://bugs.launchpad.net/ubuntu/+bug/371633

Tagged with:
preload preload preload