Author Archives: jonmoore

Extend the timeout on SSH connections

A quick google search will quickly answer this question, but I’ve found myself asking it a few times lately.  Often when I let an SSH session go idle, I’ll end up being disconnected.  By adding ServerAliveInterval 60 to ~/.ssh/config I’ve managed to limit this from happening. There is also a similar server side fix for [...]

Posted in quickfire, tips | Tagged , | Leave a comment

Counting occurance of word in list

I’ve had a need to count the number of times a certain value (in this case, a word) appears in a list when using OpenOffice.org. Here was my problem.  I had a long list of values, each had a status of either “good”, “bad”, or “incomplete”.  I wanted to count the number of times each [...]

Posted in tips | Tagged | Leave a comment

Connecting to serial devices with minicom

I’ve often found the need to break out the console cable to configure a router, switch, or other device that only had a serial console.  On Windows, most folks fall back on the good old hyper terminal to get the job done.  This works great, as long as your on Windows. Since I’ve been getting [...]

Posted in Uncategorized | Leave a comment

Simple rules to keep you smart with email

When using email, you should always keep the following rules suggestions in mind.  Most of these apply to mailing lists, but could just as easily make any email communication (and maybe even instant messaging) better. First, don’t top post.  Not only is top posting counter-productive it is annoying.  Also, if the person before you sucks [...]

Posted in rants | Tagged | 1 Comment

Asterisk with PRI support

If you’re going to be using Asterisk with a PRI card, there are some important steps you have to follow in the right order. Normally, I install the zaptel package then install Asterisk. This is all great, until I need PRI support. For that, I must also install the libpri package. Important to note, for [...]

Posted in Uncategorized | Leave a comment

Subversion over SSH

Continuing with my exploration of using some form of version control to hand configuration file managent, I’ve been using svn over ssh. Setting up svn access over ssh is a fairly stright forward process.  The first set is to create the actual repo on the server. mkdir /var/repo/configs Then use svnadmin to create a repository [...]

Posted in Uncategorized | Leave a comment

Using source control for config management

A project involving asterisk has forced me to find a way to help manage my configurations. I’m going to give using subversion a go at helping me to keep some level of change control and really simple backups, and I’m going to share my thoughts on that here. This post doesn’t have any new details, [...]

Posted in projects | Tagged , , , | Leave a comment

Quick review of the Aastra 57i

As part of an project, I recently received a few Aastra 57i SIP phones at work.  After spending a few days with them, I’ve decided to write up a short review of something of the things I like (and don’t like) about these phones. Let’s start with the phone itself.  It’s not much bigger than [...]

Posted in reviews | Tagged , , | Leave a comment

Creating empty files in Linux

I had a need for several files of various sizes to do some network testing with.  I found a very good us for dd here. dd if=/dev/zero of=10mb-file.bin bs=1024k count=n Using the above command (and replacing n for a value) allows the creation of empty files with the size specificed. Need a 10Mb file, n [...]

Posted in quickfire, tips | Tagged , | Leave a comment

Force the use of ‘www’ in your URL.

This is a pretty simple use of mod_rewrite to force the use www in your urls. RewriteEngine On RewriteCond %{HTTP_HOST} !^www\.example\.com$ [NC] RewriteRule .? http://www.example.com%{REQUEST_URI} [R=301,L]\ The first line is only needed if mod_rewrite isn’t enabled on your server (though the module does need to be enabled). Replace example.com with your actual domain name of [...]

Posted in quickfire | Tagged | 2 Comments