I used to use partimage to backup and clone machines I had setup, however, this requires the disks be the exact same size and you can't resize partitions (easily at least). Now I've discovered the nice rsync tool combined with the System Rescue CD cloning a drive can be quite easy including moving to smaller/bigger partitions.
First start by booting both computers with the Rescue CD. It's easiest to connect them together with an Ethernet crossover cable, but a network switch will work too. Set both of their ip addresses (make sure they're on the same subnet, but different values):
I recently decided to give chan_mobile (formerly chan_cellphone) a try with Asterisk. There are patches for Asterisk 1.4.4 at http://bugs.digium.com/view.php?id=8919. However, I have Asterisk 1.4.11 running on my system. David Bowerman has graciously added chan_mobile to the Asterisk-Addons SVN head work that is ongoing. The problem here was that Asterisk-Addons SVN head is working with Asterisk SVN head and there are some API changes going on in Asterisk that refuses to allow chan_mobile to compile for Asterisk 1.4.11. So being the type to not give up I decided to try to back port chan_mobile to Asterisk 1.4.11.
I recently had a case where I had a Linux server with two Ethernet cards in it that were both configured using DHCP. The issue I ran into was that eth0 was my gateway to the Internet and when eth1 would get it's DHCP values it was overwriting both my domain name server entries and default route (gateway) information and preventing access to the Internet. The DNS issues are easily solved in Redhat Enterprise (or in my case Centos) by adding PEERDNS=no to /etc/sysconfig/network-scripts/ifcfg-eth1, however the default route/gateway issue was much bigger. The dhclient program can get it's parameters from a file called /etc/dhclient-eth1.conf (or whatever interface you want). I saw that it has a nice feature to tell dhclient just which options to accept from the server using the request keyword. So I created a /etc/dhclient-eth1.conf that looked like this:
My new favorite IP phone is the Polycom 650, which supports wideband audio (G.722 codec). Asterisk has pass through support in the 1.4 branches, however they can't transcode between other codecs, which makes checking voicemail. hearing ringing, and other things not audible. I noticed they have full codec support in the head repository, so I back ported the code and created the attached patch for those that want G.722 support in Asterisk 1.4.11 (it was originally written for Asterisk 1.4.7.1, but works with 1.4.11 so far). To load this patch you need to do the following from inside of the Asterisk source code directory:
I'm trying to setup a secured Asterisk server and enabled SELinux to set everything up properly. My server uses Polycom phones that will be centrally provisioned from the server through FTP. Well, I was having a hell of a time figuring out why I got this error message when trying to login:
500 OOPS: cannot change directory:/home/polycom
Login failed.
So I looked at /var/log/audit/audit.log and realized that SELinux was blocking me. The easy fix was to execute the following as root:
setsebool -P ftp_home_dir=1
I know this documented everywhere, but I figured I'd put it out myself as well. Especially with all the Vi$ta installations going on now wiping out the nice multi-boot machines we have. First, make sure you have a live CD of some sort. I like to always carry a copy of the System Rescue CD. It's small and can be put on a thumbdrive if desired.
Attached is a patch that will update the airprime driver to recognize the Dell 5510 card. The airprime driver is an improved driver over the standard usbserial driver, which will limit the speeds available for downloading over a high speed wireless WAN network such as Cingular's HSPDA network. This is not my work (although I fixed the patch to the correct device id for the Dell 5510 Cingular 3G data card). The original patch was downloaded from Andy Gay’s airprime improvement patches. This patch is good for the current kernel I'm running, which is 2.6.17-11-generic. Instructions for this patch are as follows:
sudo apt-get install build-essential linux-headers linux-source
cd /usr/src
I've just started playing with Ruby on Rails and the first annoyance I found was that they make an assumption that all my table names will be plural. They have some sort of mapping of singular names to plural names (English only of course). I like the auto-discovery of the columns, etc, but I'm not a big fan of something thinking it knows how to do it better or what I want to do. This is really why I despise Microsoft®, but that's another story. So, after much searching I found this little tidbit that lets me tell the database model what the table name is that I want to map it to. Seems like this should just be required unless your model name matches your table name. It is really a big problem to have a Users table and refer to it as Users insted of as User? My particular problem is that I have an Authentication table from a legacy system that interfaces with Java code as well. I'm not rewrting a whole lot of SQL statements just becuase Ruby wants to do things its way. So, the solution is the following:
I was finally able to modify the Asterisk™ source code to get it to compile as a package under OpenWRT. I will put my package file that contains the patch here for others to play with if they'd like. I make no guarantee it will work. I have not (as of right now) tested this. To use this, just unpack the file in your packages directory in either your openwrt-dev directory or the SDK. It will download the asterisk-1.2.13.tgz file from Digium and then patch it and compile it when you do a make world. You will need some support libraries depending on the options you choose
This is all the work of Brian Capouch whom I met at Astricon 2006. He's a professor at Saint Joe's University in Indiana and runs a wireless ISP business. He uses the WGT634u as his wireless clients and runs Asterisk™ on them for phone service. Basically, if you have a clean Netgear WGT634u router, then you can use the web interface to upload the openwgt-0.06a.img file. After this completes, then your router will be running OpenWGT. In order for it to start up asterisk you will need a USB thumb drive with the first partition formated as an ext3 partition.