sSMTP configuration for Rackspace, gmail, cox cable and dreamhost

sSMTP is awesome but the different configurations can be a tad annoying at times, fortunately someone has brilliantly published a series of setups that cover quite a lot:

Rackspace Mail:

Cox Cable (ISP):

Cox Cable (Internet ISP) – Unauthenticated:

Dreamhost (ISP):

Gmail:

 

See the original post here: http://www.pickledbrain.com/2011/04/setting-simple-outgoing-email-on-a-ubuntu-server-using-ssmtp/

MySql database replication

First up there are a few guides out there already, eg:

http://www.rackspace.com/knowledge_center/article/set-up-mysql-master-slave-replication

However, if your service is running on something like rackspace you may or may not know there is an internal network you can use to reduce bandwidth costs. However, when you setup the db replication and start the slave, if the connection cannot be established you will find MySQL doesn’t spit out much helpful.

So, why not test the connection separately:

1 – Create the slave user on the master server (from mysql shell, where *** is your users password and 123.123.123.123 is your ip’s password):

2 – Attempt to connect to the master server from the slave via mysql:

IP Tables management

There are plenty of IP Management tools out there, but to handle the basics it is fairly easy to just keep a template and import in…

First up export your current setting to some file. This will export all the current rules to your destination:

After making a change to your saved backup, simply run the following to import again:

 

Here is  a handy post explaining all the ip-table syntax:

http://www.informit.com/articles/article.aspx?p=421057&seqNum=4   or  https://wiki.debian.org/iptables

Try dual booting your machine with Windows 8.1 and Ubuntu.. grub fails

When you install Ubuntu with Windows 8.1 you won’t see the usual Grub Loader. Instead Windows fires up as usual. After lots of wonderful digging I found the issue.

Windows 8 Fast Startup

Basically, turn it off http://www.eightforums.com/tutorials/6320-fast-startup-turn-off-windows-8-a.html This was the main reason grub wasn’t even being called let alone being initialised. It is meant to do as it says in its title, speed up the power off/ on process. But, to be honest, I noticed little speed difference after I switched it off.

After that, run cmd as admin and run this command:

That’s it. Grub should be able to kick in now.

 

 

How to upgrade npm on windows 8

Running a program that required the latest npm moaned and told me to upgrade npm via:

However.. this failed. After a little digging discovered this Windows has written an npm script that upgrade npm for you, super easy to use:

  1. Open power shell as admin.
  2. Run:
  3. The install their npm script:
  4. Then run it. It will ask you which version you want to install and then it “just works”.. dangerous words I know 😉 :

Head over to the github repo here: https://github.com/felixrieseberg/npm-windows-upgrade