VMWare Workstation 12.0 on Kernel 4.xx

Since kernel version 4 there are some issues with running workstaion 12 as the kernels modules fail. Below are instructions how to change the original TAR files so that they are patched and will work

(remember to run sudo apt-get install linux-headers-$(uname -r)to install headers)

cd /usr/lib/vmware/modules/source
mkdir 1
cd 1
tar xvf ../vmmon.tar
mv ../vmmon.tar ../vmmon.tar.old

cat > t.patch
< if (misc_deregister(&linuxState.misc)) { < Warning("Module %s: error unregistering\n", linuxState.deviceName); < } --- > misc_deregister(&linuxState.misc);
patch vmmon-only/linux/driver.c < t.patch rm -rf t.patch tar cfv ../vmmon.tar *

Posted in Uncategorized | Leave a comment

GPIO for Orange Pi – Its Working!

Ornage pi has been the bane of my existance. First i find out the camera interface is differnt and have to order a new camera now the gpios are not working.

But i got them to work so im documenting them now!

1) You need a newer version for WireingPI (Called WireingUP). The source provided online is gone in git hub. But i found another one here

Installation is easy enough

chmod +x build

2) You need to install the module gpio-sunxi
modprobe gpio-sunxi

Posted in Uncategorized | 1 Comment

Mix G1 3D Printer J-HEAD Upgrade

I bought a j-head and it was sitting in my drawer for almost a year. I didnt realize i didnt know how to upgrade my existing MIX G1 hotend to a JHEAD. After some research earlier this year i set out on re-working the Extruder to support it, as it was obvious the stock part where just not compatible. As i started to build the extruder I also realized that the X Cartridge would not work with this setup either. The JHEAD is simple to big if compared to the Stock hotend, and it would just not fit into the extruder.

So i searched and found there was already an “upgraded” x cartridge that was printable (vs the Laster Cut i got with the printer). I re-worked it to support both the Mix G1 extruder, and lined up the holes for the WADE extruder. I also increased the size of the hotend opening allowing the JHEAD to fit!


Next the Extruder was worked on. I increased the depth of the base, to allow for a mounting system for the JHEAD. two screws in the front allows you to screw the jhead in place. The back was lengthend for a future DUCT MOUNT that i am planning on designing.


Been printing whit this for over a month now and it’s working great!

Posted in 3d Printing | Tagged , , , | 2,291 Comments

Yellow Pages – Why their model will never work

I dont think i have turned to a yellow pages book , or online for over a decade. It used to be the place to go to find a plumber, a lawyer, what have you. You would pay a fee to get your add bigger and better then every one else but since yellow pages would feed of BELL’s new number system, and since Bell was the only game in town… everyone was there!

I mean every business would have a phone line. and when they closed they would get rid of it.

Yellow pages tried to re-invent itself to show that they ware the LOCAL company. Find stuff local! But everything you see them do flys in the face of that. First you cannot be listed on their website without paying. Well that is not true.. they will give you ONE listing, but if you have multiple locations, forget it! PAY THEM or no listing. No wonder i cant find anything!

The bell feed has seriously broken yp’s functionality. Many people do not have a BELL LINE. VOIP costs have come down, and there are so many competitors. One business i helped out had only FAX LINES listed because VOIP was their main lines, but VOIP where bell lines! Well not only was that not helpful, it was down right damaging to the brand.

Sure as a business owner you can call them and fix the fax lines, but forget getting listing. A company that turns away FREE SCRUBBED INFORMATION in this day in age.. well what can i say… explains their stock prices!

Posted in VOIP | 2,247 Comments

The Cisco That Just couldn’t

UPDATE: turned out the cisco was defective. Applied the exact same config/firmware on another cisco (same model) and no problems!

So I have an 1801 cisco that not behaving. It works GREAT for a period of time (sometimes hours, some times weeks) and then, all of a sudden, out of the blue, I can no longer access it over the LAN.

Both WANs still work fine, but there is no LAN. If I reload it. It comes back, and continues to work… for a period of time… (sometimes hours, some times weeks).

I started this blog post to try to diarize what I it is, what I have tried, and what I can do as I have no idea what to do next.

Here are some facts I found out so far

* Rebooting 1801 allows everything to work properly.
* Upgraded firmware on 1801 did not solve issue
* Upgraded firmware on attached switch did not solve anything
* rebooting SWITCH attached to router seems to fix the problem, possibly for a shorter period of time
* Shutting down the interface on the switch for a period of time and bringing it up fixes the problem, possibly for a shorter period of time
* When Down Pinging from the router to the switch is 0/5
* When Down Pinging from the switch to the router is 0/5

* RESULT OF: show ip interface fastEthernet 1
FastEthernet1 is up, line protocol is up
Internet protocol processing disabled
Continue reading

Posted in Network | 2,304 Comments

Asterisk / Free PBX, Alarm Panel, Contact ID and DTFM

I finally got the alarm panel to work with asterisk. Solution at the bottom

First some background:

SO I been battling with Alarm panels this week. Trying to get an ATA to connect to an alarm panel to provide monitoring to an office with no analog line.

I know every one says “DONT DO IT!” just like they say that about faxes but an analog line for 70+ dollars is pricy. But as long as I have low jitter, a good connection, and a high retry count it should work right?

Sadly capturing packets I ran into my first problem. SILENCE on the line. Couldn’t for the life of me figure this out. Finally it dawned on my. The panel was sending DTFM tones and they where converted into RFC2833. Ok switched everything to inband, but then the silence continued on the ASTERISK – PROVIDER leg.

After trying this and that I finally gave up, setup an new account and set it for INBAND. Added the account to FREEPBX and set it for only the monitoring center telephone number.

And that’s where things got weird.
Continue reading

Posted in FreePBX, VOIP | Tagged , , , , | Leave a comment

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 | 2,404 Comments

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/

* 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 @@
@@ -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/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 @@
+ *DIR-505-A1)
+ name="dir-505-a1"
+ ;;
*"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 @@

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 @@
+ dir-505-a1 |\
dir-600-a1 |\
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
+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 | 3 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 | Leave a 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