FreePBX – Set Account Code 2.5.1

There has been some popular demand for this module, so I fixed up some small bugs that have crept up since I built it.

Original Post and a bit of a story a FreePBX – Setting Account Codes .

Module now loads properly on newer distros
Moved it into “Application group”


Remember to upgrade after uploading it (if you installed 2.5.0)

Posted in FreePBX, linux, Software Development, VOIP | Leave a comment

OpenWRT on a DIR-515

Cheap Plug Server - dir 505To compile dir 505

This I my attempt for an inexpensive PLUG SERVER :) If you hurry they are selling them at Costco (Canada) for 30 bucks!

1) Checkout Code

svn co svn://

* IF you already checked it out and ran menuconfig the patch will not take affect! Check out a CLEAN version
* Don’t run as root, even with FORCE=1 it will fail later, so save yourself some trouble now!

2) store the following PATCH file in the same directory IE myfile.patch
(or another but adjust the patch command line patch)

CREDIT: Original patch from DANZ ( was stored in “reverse”. Updated patch below. Also missing lines added.

**NOTE** I since fried my DIR 515.. and then trying to access the serial port used to big wires and ripped the traces of the board :( but for those that wanted a downloadble file here it is…**

DIR-515 Patch

Index: target/linux/ar71xx/image/Makefile
--- target/linux/ar71xx/image/Makefile (revision 36849)
+++ target/linux/ar71xx/image/Makefile (working copy)
@@ -168,6 +168,7 @@
@@ -345,6 +346,14 @@
$(call MkuImageLzma/initramfs,$(2),$(3) $(cameo7240_mtdlayout))

+define Image/Build/Cameo9330
+ $(call Image/Build/CameoHornet,$(1),$(2),$(3),$(cameo9330_mtdlayout),1048576,6422528,$(4))
+define Image/Build/Cameo9330/initramfs
+ $(call MkuImageLzma/initramfs,$(2),$(3) $(cameo9330_mtdlayout))
define Image/Build/Cameo933x
$(call Image/Build/CameoHornet,$(1),$(2),$(3),$(cameo933x_mtdlayout),917504,2818048,$(4))
@@ -413,6 +422,8 @@
-o $(call factoryname,$(1),$(2))

+$(eval $(call SingleProfile,Cameo9330,$(fs_squash),DIR505A1,dir-505-a1,DIR-505-A1,ttyATH0,115200,"HORNET-PACKET-DIR505A1-3"))
+$(eval $(call SingleProfile,Cameo933x,$(fs_squash),TEW712BR,tew-712br,TEW-712BR,ttyATH0,115200,"HORNET-RT-TEW712BR-3"))

define Image/Build/UBDEV
$(call MkuImageLzma,$(2),$(3) $(ubdev_mtdlayout))
Index: target/linux/ar71xx/config-3.3
--- target/linux/ar71xx/config-3.3 (revision 36849)
+++ target/linux/ar71xx/config-3.3 (working copy)
@@ -32,6 +32,7 @@
Index: target/linux/ar71xx/base-files/lib/
--- target/linux/ar71xx/base-files/lib/ (revision 36849)
+++ target/linux/ar71xx/base-files/lib/ (working copy)
@@ -324,6 +324,9 @@
+ *DIR-505-A1)
+ name="dir-505-a1"
+ ;;
*"TL-WR1041N v2")
Index: target/linux/ar71xx/base-files/lib/upgrade/
--- target/linux/ar71xx/base-files/lib/upgrade/ (revision 36849)
+++ target/linux/ar71xx/base-files/lib/upgrade/ (working copy)
@@ -102,6 +102,7 @@
ap81 | \
ap83 | \
+ dir-505-a1 | \
dir-600-a1 | \
dir-615-c1 | \
dir-615-e4 | \
Index: target/linux/ar71xx/base-files/etc/uci-defaults/network
--- target/linux/ar71xx/base-files/etc/uci-defaults/network (revision 36849)
+++ target/linux/ar71xx/base-files/etc/uci-defaults/network (working copy)
@@ -136,6 +136,8 @@

ucidef_set_interfaces_lan_wan "eth0" "eth1"
+dir-505-a1 |\
+dir-505-a1 |\
ucidef_add_switch "eth0" "1" "1"
ucidef_add_switch_vlan "eth0" "1" "0 1 2 3 4 5"
Index: target/linux/ar71xx/base-files/etc/
--- target/linux/ar71xx/base-files/etc/ (revision 36849)
+++ target/linux/ar71xx/base-files/etc/ (working copy)
@@ -60,6 +60,7 @@
+ dir-505-a1 |\
dir-600-a1 |\
Index: target/linux/ar71xx/generic/profiles/
--- target/linux/ar71xx/generic/profiles/ (revision 36849)
+++ target/linux/ar71xx/generic/profiles/ (working copy)
@@ -5,6 +5,17 @@
# See /LICENSE for more information.

+define Profile/DIR505A1
+ NAME:=D-Link DIR-505 rev. A1
+define Profile/DIR505A1/Description
+ Package set optimized for the D-Link DIR-505 rev. A1.
+$(eval $(call Profile,DIR505A1))
define Profile/DIR600A1
NAME:=D-Link DIR-600 rev. A1

Apply The Patch

patch -p0 < myfile.patch

Run MenuConfig

make menuconfig


Target System - Atheros AR7xxx/AR9xxx
Target Profile - D-Link DIR-505 rev. A1

If Target Profile is missing the DIR make sure you checked out a clean copy and apply the patch BEFORE running menu config.

Posted in linux, Network, Software | 6 Comments

Low Orbit Ion Cannon

Seems the worlds a buzz about the low orbit ion cannon. Even the FBI is all over it, as if it was a wepon of mass destruction. The Low Orbit Ion Cannon (LOIC) is a great peice of open source software but it is a perfect example of how a bit of information in the wrong hands can be big trouble.

First the FBI – i cant beleave how there are kids sitting in jail right now that the FBI has put there becuase they downloaded and used the LOIC, and what are they facing? 15 years!! You know how many times I get d-dosed and the provider says “Sorry for your luck, welcome to the internet”

Second are the script kiddies – How do i know they are script kiddies? They downloaded HACKING tools that are open soruce, then complain their antiviruse say its a viruse. READ the source code!

For those of you wanting to check it out goto

Posted in Android, Hack Tools | 1 Comment

MythTV on VMWARE – Debugging

After installing on centos (see Centos Compile post) i had lots of dead locks. Here is the stetup i use to reproduce them .
Continue reading

Posted in MythTV, Network, Software Development | Leave a comment

Centos Upgrade 6.0 to 6.2

To easly upgrade Centos 6.x to a newer 6.x simply issue the

yum update

Posted in Uncategorized | Tagged , | Leave a comment

Canada’s multitude of choices for telephone service

I as speaking with some pople the other day about the mass amount of choices we have as canadians for cell phone service, and it astounds me that people beleave this to be true. I mean sure, every other commercial on the radio is a cell phone company trying to push its own cell phone plan, but the reality is the chouices are not so plentiful.

Continue reading

Posted in Cell | Tagged , , | Leave a comment

Android E-Mail – To The Cloud

Had a question today “How do i add outlook emails into my android device”.

Well the easiest way i could think of is to get a GMail account. By getting a Gmail account, you can add your other e-mail accounts as an “import” feature, and setup alternative outgoing e-mail accounts and thus making your GMail a hub for all your incomming e-mail. To add these email accounts click on the Gear at the top right corner of your gmail screen, select Gmail Settings. Once in the setting screen select the Import Account tab.
Continue reading

Posted in Android, Windows | Tagged , , | Leave a comment

Creating KEYS for OpenVPN Server on Windows

Ok so to create a CA for your openvpn here is what you do
Continue reading

Posted in Uncategorized | Leave a comment

Your Face Will Be Your Password

So i read the article “Trouble Remembering Passwords In Future Face Need“. I remember last year Toshiba had this for their laptops, along with alot of other companies.

If memory serves a properly shaded picture of the owner was all you needed to unlock the computers.

Posted in Android, Software Development | Leave a comment

Compile MythTV with GIT on Centos 6.x

I used the Centos NetInstall disk, pointing it to the 6.2 repos to save on updates later.

Installed CENTOS using Minimal defalts. Once installed i installed Nano as i HATE VI but whatever you use is ok.

Step 1 - Enable CentosPLUS, Repositories etc
nano /etc/yum.repos.d/CentOS-Base.repo
Under [CentosPlus] change Enable to 1, Save and Exit

Install EPEL and RPM Fusion

rpm -Uvh
rpm -Uvh

Update your installation and reboot

yum -y update

Step 2 - Disable Nouvaeu
I guess this is optional but i need to disable Nouvaeu for nvidia drivers to work. soo

nano /boot/grub/grub.conf

Add the following to the end of the KERNEL line: rdblacklist=nouveau
Next blacklist it and rebuild initrd

echo "blacklist nouveau" >> /etc/modprobe.d/blacklist.conf
mv /boot/initramfs-$(uname -r).img /boot/initramfs-$(uname -r)-nouveau.img
dracut /boot/initramfs-$(uname -r).img $(uname -r)

finally after reboot remove the driver (if installed)

yum remove xorg-x11-drv-nouveau

Step 3 - Dev tools and Prerequisits
Install the Dev tools to build Myth, and the prerequisits

yum groupinstall 'Development Tools'
yum -y install qt-devel lame-mp3x lame-devel qtwebkit-devel perl-Net-UPnP.noarch perl-DBI perl-ExtUtils-MakeMaker python-lxml yasm MySQL-python mysql-server qt-mysql libvdpau-devel alsa-lib-devel ccache

If you are going to be using the graphical front end (IE not Backend SLAVE only on this one) install X and setup the xinitrc file
yum install xorg-x11-xinit xorg-x11-server-Xorg twm xterm
Step 4 - Download and Compile

cd /usr/src
git clone -b fixes/0.24 git:// mythtv
cd mythtv/mythtv

If everythign checks out

make install

Step 5 - Config
Configure and start database

cd database
chkconfig mysqld --level 2345 on
service mysqld start
mysql < mc.sql

Setup Libraries

echo /usr/local/lib64/ > /etc/
echo /usr/local/lib/ >> /etc/
ldconfig -v


Step 6 - Testing
Since MYTHTV keeps crashig on my i have it running in an VM environment, for testing i setup a basic config

Once i get Myth stable on this install i will update with rest config rules

Posted in linux, MythTV, Software Development | 1 Comment