Category: Apple

Top Tier category for Apple and OSX related tops for Networking.

Setting up Python on OSX: UPDATED

I have spent quite a bit of time over the past few weeks trying to see how development will fit into the course of my career moving forward.  With the help of some great people like Matt Stone and Matt Oswalt I am charging ahead with Python.  This post is about setting up my Mac to be ready to start coding.  Sure I have the default install of Python installed but I have seen that I need more of an IDE than what is provided by default.  Watching Matt Stone code in VIM I was impressed but I have just never spent enough time in VIM to be comfortable.  So I am going to go with Atom and extend it to meet my requirements.  What follows will be that process.


OSX is a bit of a hassle when it comes to application management.  A solid package manager solves that. Now I can’t say how good Brew is I can say it has lots of fans and it seems to work for what I need.

So start by installing Brew

ruby -e "$(curl -fsSL"

With Brew installed now we can use it to setup Python.  I had a few issues but its because I had tried some other install steps that broke the Brew Process.  Once I fixed those it was easy.

So Just do the following to install Python 2.7.x

brew install python

Sublime Text:

As you can see I have updated this post to show Sublime Text as my IDE.  I really wanted to love Atom but it just had a bunch of random issues that I could not work around.  Since moving to Sublime Text all those issues have vanished.

So start with Download Sublime Text from here.

After you install and run Sublime Text you should check out this superb writeup at on how to turn Sublime into a full featured IDE for Python.  This is what I use and while it is has things I don’t need right now, it is so close to perfect there is no reason for me to mess it up by trying to edit it down.  Just follow it and then your good to go.

Thats about it. From there open up any .py file and you should see any of the PEP8 markers no the left side and all the python syntax broken out. — pythonCisco 2015-10-18 22-52-21









With that done you have a base of what you need for for development for Python in OSX.  I have had help from the following sites pulling all this together.

Captain the warp subsystems are down what should we do?!!!

Over the last two years I have become quite the Mac/OSX fan.  For years I was down on apple and to this day think I had every right to be.  But with OS 10.4 and now 10.5 they have created a powerful and flexible unix distribution for the general user and the power users.  However I have from time to time notices funky issues with software such as the Cisco IpSec VPN client.

Most recently in 10.5.1 I kept getting the VPN subsystem could not be contacted.  Well here is the fix from nate,

“If you are running Cisco’s VPNClient on Mac OSX, you might be familiar with (or tormented by) “Error 51: Unable to communicate with the VPN subsystem”. The simple fix is to quit VPNClient, open a Terminal window, (Applications -> Utilities -> Terminal) and type the following:
sudo /System/Library/StartupItems/CiscoVPN/CiscoVPN restart
and give your password when it asks. This will stop and start the “VPN Subsystem”, or in other words restart the CiscoVPN.kext extension.”

Thanks Nate and I hope this help everyone else out there keep their WARP core under control….later!

Always Flush when your done!!!

One of my clients has had their web server exposed to the wild world of the internet now for several years. Up till about a year and a half ago many systems on their network actually had IP ANY ANY statements cut through from the Outside of their Firewall to the Inside. However it has been one of my many jobs since I started with them to eradicate these problems and start securing their infrastructure. The firewall changes have been easy for the most part and any problems that remain are policy issues that we are working to eliminate. However their web server sitting outside of the firewall has been an ongoing issue and due to some anomaly’s on the server they are deploying the recommended DMZ and migrating their web server there. Read more