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 .

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

setaccountcode-2.5.1

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://svn.openwrt.org/openwrt/tags/attitude_adjustment_12.09/

***NOTE***
* 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 (http://pastie.org/7936110) 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 @@
ap136_mtdlayout=mtdparts=spi0.0:256k(u-boot)ro,64k(u-boot-env)ro,6336k(rootfs),1408k(kernel),64k(mib0),64k(art)ro,7744k@0x50000(firmware)
cameo7240_mtdlayout=mtdparts=spi0.0:192k(u-boot)ro,64k(nvram)ro,960k(kernel),2752k(rootfs),64k(mac)ro,64k(art)ro,3712k@0x40000(firmware)
cameo913x_mtdlayout=mtdparts=spi0.0:128k(u-boot)ro,64k(config)ro,960k(kernel),2880k(rootfs),64k(art)ro,3840k@0x30000(firmware)
+cameo9330_mtdlayout=mtdparts=spi0.0:64k(u-boot)ro,64k(art)ro,64k(mac)ro,64k(nvram)ro,256k(language)ro,1024k(kernel),6656k(rootfs),7680k@0x80000(firmware)
cameo933x_mtdlayout=mtdparts=spi0.0:64k(u-boot)ro,64k(art)ro,64k(mac)ro,64k(nvram)ro,192k(language)ro,896k(kernel),2752k(rootfs),3648k@0x70000(firmware)
cap4200ag_mtdlayout=mtdparts=spi0.0:256k(u-boot),64k(u-boot-env),320k(custom)ro,1536k(kernel),12096k(rootfs),2048k(failsafe),64k(art),13632k@0xa0000(firmware)
db120_mtdlayout=mtdparts=spi0.0:256k(u-boot)ro,64k(u-boot-env)ro,6336k(rootfs),1408k(kernel),64k(nvram),64k(art)ro,7744k@0x50000(firmware)
@@ -345,6 +346,14 @@
$(call MkuImageLzma/initramfs,$(2),$(3) $(cameo7240_mtdlayout))
endef

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

+$(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 @@
CONFIG_ATH79_MACH_AW_NR580=y
CONFIG_ATH79_MACH_CAP4200AG=y
CONFIG_ATH79_MACH_DB120=y
+CONFIG_ATH79_MACH_DIR_505_A1=y
CONFIG_ATH79_MACH_DIR_600_A1=y
CONFIG_ATH79_MACH_DIR_615_C1=y
CONFIG_ATH79_MACH_DIR_825_B1=y
Index: target/linux/ar71xx/base-files/lib/ar71xx.sh
===================================================================
--- target/linux/ar71xx/base-files/lib/ar71xx.sh (revision 36849)
+++ target/linux/ar71xx/base-files/lib/ar71xx.sh (working copy)
@@ -324,6 +324,9 @@
*TEW-712BR)
name="tew-712br"
;;
+ *DIR-505-A1)
+ name="dir-505-a1"
+ ;;
*"TL-WR1041N v2")
name="tl-wr1041n-v2"
;;
Index: target/linux/ar71xx/base-files/lib/upgrade/platform.sh
===================================================================
--- target/linux/ar71xx/base-files/lib/upgrade/platform.sh (revision 36849)
+++ target/linux/ar71xx/base-files/lib/upgrade/platform.sh (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 @@

wrt160nl)
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/diag.sh
===================================================================
--- target/linux/ar71xx/base-files/etc/diag.sh (revision 36849)
+++ target/linux/ar71xx/base-files/etc/diag.sh (working copy)
@@ -60,6 +60,7 @@
db120)
status_led="db120:green:status"
;;
+ dir-505-a1 |\
dir-600-a1 |\
dir-615-e4)
status_led="d-link:green:power"
Index: target/linux/ar71xx/generic/profiles/d-link.mk
===================================================================
--- target/linux/ar71xx/generic/profiles/d-link.mk (revision 36849)
+++ target/linux/ar71xx/generic/profiles/d-link.mk (working copy)
@@ -5,6 +5,17 @@
# See /LICENSE for more information.
#

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

Apply The Patch

patch -p0 < myfile.patch

Run MenuConfig

make menuconfig

Configure


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 http://sourceforge.net/projects/loic/

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
reboot

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 http://download.fedora.redhat.com/pub/epel/6/i386/epel-release-6-5.noarch.rpm
rpm -Uvh http://download1.rpmfusion.org/free/el/updates/testing/6/i386/rpmfusion-free-release-6-0.1.noarch.rpm

Update your installation and reboot

yum -y update
reboot

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)
reboot

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://github.com/MythTV/mythtv.git mythtv
cd mythtv/mythtv
./configure

If everythign checks out


make
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/ld.so.conf.d/locallib.conf
echo /usr/local/lib/ >> /etc/ld.so.conf.d/locallib.conf
ldconfig -v

Reboot

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