Archive for October, 2006

Ubuntu 6.10 Edgy Eft

October 30, 2006 1 comment

The hard drive on my laptop (Dell Latitude c610) conveniently shelled out yesterday, so I decided it was a good time to try the new Ubuntu without hurting anything.
After a broken torrent download waste of time I finally got an alternate install CD via http and fired it up. I’m pretty impressed so far. Everything worked properly first try, including the built-in wireless and video.

I immediately installed Automatix2 and had it install the remaining necessities. It took a while to grind through all the installs, but required almost no input from the user. Overall it was one of the least painful system rebuilds I’ve ever done. It seems nice and snappy as well!

Automatix2 install from the automatix wiki:

Installing on (K,X)Ubuntu 6.10 i386,amd64 (Edgy)

Edit your sources.list:

sudo gedit /etc/apt/sources.list

from terminal

Substitute gedit with the text editor of your choice.

Add the following to your sources.list:

NOTE: Kubuntu/Xubuntu users will need to uncomment (remove the # before the word “deb“) all the additional sources as well as add the automatix repository.

deb edgy main

Now save the file and close it.

Now from terminal do the following:

 gpg --import key.gpg.asc
 gpg --export --armor 521A9C7C | sudo apt-key add -

To finish off:

sudo apt-get update
sudo apt-get install automatix2

Categories: Software, ubuntu

Resetting mysql root password in Ubuntu Dapper

October 28, 2006 3 comments

First you kill the running mysql server gracefully. The process id is grabbed from /var/run/mysqld/ and inserted into the kill statement. Note there are ticks around the process id, not single quotes.

Then the server is restarted with the permissions turned off, and the root user password can be changed.
Type this in terminal:

sudo su
kill `cat /var/run/mysqld/`
mysqld --skip-grant-tables &
mysql -u root
UPDATE mysql.user SET Password=PASSWORD ('newpassword') WHERE User = 'root';
kill `cat /var/run/mysqld/`
mysqld &
mysql -u root -p

Enter your new password and you should be in.

Categories: DIY

Automatic Asterisk startup on Debian

October 20, 2006 Leave a comment

Getting asterisk to start properly on Debian is pretty simple. I had a hard time with various methods described elsewhere, though.
In a terminal session:
sudo nano /etc/rc.local
# add the following BEFORE the last line (exit 0):

mkdir /var/run/asterisk
chown asterisk:asterisk /var/run/asterisk
/usr/sbin/amportal start

Exact configuration details: Ubuntu 6.06 (kernel 2.6.15-26-server) within VMWare server on Xeon hardware. Asterisk Freepbx 2.1.3

Categories: Asterisk, DIY, Software, ubuntu, VoIP

Polycom phones and NAT

October 11, 2006 1 comment

I have seen complaints that Polycom SoundPoint IP phones do not work well with NAT. The problem is the port used for RTP gets closed on the firewall after a while and the phone doesn’t know about it. Then calls go through, but the user gets dead air. A relatively harmless workaround is to have the phone re-register every 30 seconds. Then the port refreshes at an interval low enough that the firewall never closes it.

I found a reference to a very simple fix and have had success with it: Simply edit the .cfg file for the phone (assuming the phone is getting its settings from TFTP or FTP) and change the following value: reg.1.server.1.expires=”” to reg.1.server.1.expires=”30″

If you have other configured lines, then you’ll also need to change reg.2.server.1.expires, reg.3.server.1.expires, etc.

I’ve also had problems with the RTP ports being used falling outside of the range specified on the firewall’s port mapping, which caused the same symptoms. The phone started at port 16844. I just just adjusted the firewall, but there are also settings on the phone to force the RTP port or port range used.

This worked for a Polycom 501, but should be the same for any of the SoundPoint IP models: 300, 301, 500, 501, 600, 601.

Categories: Asterisk, networking, VoIP