Linux: SMTP for Server Email

When setting up a server that needs to send emails, it’s sometimes more useful to have it send those emails via SMTP (using a service like Gmail or AWS SES) but often the php default is not this. So let’s learn how install and setup secure email sending capabilities for our php based applications on a linux server.

Continue reading

Mac OS: Split-Tunnel VPN

So you’ve already setup a VPN connection to your home or office, but then you realize that you either can’t connect to your VPN network, or you can’t connect to the internet. If you want to have access to both, you’ll need to setup a split-tunnel. On a Mac this is a bit more frustrating than on a Windows machine, so I’ve used some script-foo to make it easier.

Continue reading

Mac OS: Port Forwarding

Termianl-Icon

I use a Mac and I’ve been working in virtual machines (VirtualBox) to learn more about Linux as a server environment. It’s great, to say the least. Knowing you can revert back to a previous “system snapshot” is a wonderful assurance for when you know you’re going to mess thing up.

With all this greatness, I was unfortunately  having a lot of trouble getting the VM server to connect to other computers. Actually, it was very easy with using a bridged ethernet connection, with the Ubuntu server getting a unique IP address. However, a bridged connection is not always available, so I was determined to get it to work with a NAT connection with port forwarding. I needed port 80 to be forwarded to port 8080, and it was a pain but I finally got port forwarding to work. Here’s how:

Continue reading

Twitter & Python: Tutorial to using the Twitter API to find tweets

pythontwitter

In this beginner’s tutorial I’ll walk through the steps to making your first Python program that works with the Twitter API. This will allow you to perform actions with Twitter’s code without being on the website, and also open up other options that are not readily available to normal users.

For this tutorial we’re first going to need a Twitter dev account. Don’t worry, this is a very simple step.

Continue reading

Mac OS & Python: Add and remove Python modules

macpythonMac OS has Python built-in, and also has the cool command ‘easy_install’ already part of the system. This command lets us easily grab and install Python modules and their dependencies. However, this tool does not allow us to uninstall them. For that we’ll need to get another command – one that we can get using the easy_install command.

First we’re going to install pip on our system, a command that will help us cleanly uninstall Python code when we need to. Open up your terminal and type: Continue reading