Using Vagrant and Linode to create a VPS in minutes

Automation is now becoming more popular and given a standard in some places. The best place to start learning is by using Vagrant and Linode a Virtual Private Server(VPS) that will host our content.

Our goal in this project will be to use Vagrant to provision an image of Ubuntu 16.04LTS onto our Linode. In return this process will give you fully functional Ubuntu Server in less then 5 minutes. Here are the things you will need:

  1. Install Vagrant on your PC.
  2. Get yourself a Linode plan.

With Vagrant installed you will need to create a folder called “vagrant-linode” and be sure to change directory into it. Next we’ll be to have vagrant install a plugin for Linode provision to do this we simply enter this:

vagrant plugin install vagrant-linode

Once it’s done installing you will need to crate a file called Vagrantfile inside our vagrant-linode folder which Vagrant will use.

touch Vagrantfile

Copy and paste this into the Vagrant file and be sure to change anything that has CHANGE ME Example:

Vagrant.configure('2') do |config|

  config.vm.provider :linode do |provider, override|
    override.ssh.private_key_path = '~/.ssh/id_rsa' = 'linode/ubuntu1604'
    override.vm.box_url = ""

    provider.token = ''
    provider.distribution = 'Ubuntu 16.04 LTS'
    provider.datacenter = 'CHANGE ME Example: newark'
    provider.plan = 'CHANGE ME Example: Linode 1024'
    provider.label = 'CHANGE ME'
    # provider.planid = 1
    # provider.paymentterm = <*1*,12,24>
    # provider.datacenterid = 6
    # provider.image = 
    # provider.imageid = 
    # provider.kernel = 
    # provider.kernelid = 
    # provider.private_networking = 
    # provider.stackscript =  # Not Supported Yet
    # provider.stackscriptid =  # Not Supported Yet
    # provider.distributionid = 

Now kick off Vagrant by  using:

vagrant up

After it is done provision you can access the VPS by:

vagrant ssh

You will now have SSH access to your VPS to begin installing software, creating users,

You can take this to the next step and use Vagrant along side Ansible to get a full install along with installing all software you want such as: MySQL, Postfix, Dovecot, UFW, OpenVPN, user accounts, creating the config files so everything works right out of the box but I will go over that another time.

Boot the Playstation 3 into safe mode

What some people don’t know how to do til it’s to late is how to boot the Playstation 3 into safe mode, they already bricked their Playstation 3 and start to panic and worry since the device is out of warranty.

It seems that the the Playstation 3 firmware version 4.45 update landed before it got a chance to be tested, there are reports of about 90% coming from 500GB-1TB hard drive being affected.

What you will need:

  1. Time.
  2. Patience.

Continue reading

Trixbox Password

It has been awhile since I updated my site but I’ve started another new job and have been here 4 months and I love it here! One of the many things I get to work with is Trixbox a software PBX based off of Asterisk. I know my way around Linux and I have managed to lock this server down using iptables but one thing that gets me is the default password is password, not a very secure password and needs to be changed as soon as you install it. To change the password simply access a terminal session and make sure you are root and run this command:


That’s the command you are looking for, it will change the password for the maint account so you can access your portal and look at the system.

IPv6 Day

On June 6 2012 we celebrate IPv6 or IPv6 Day. For those of you unfamiliar IPv6 can handle 2^128 addresses compared to IPv4 which is 2^32,

Google has setup a nice Overview of it located here.

I guess I should be thinking about updating my Motorola Surfboard to at least a Surfboard 61xx to finally get my IPv6 started!

Sysadmin fail

The last job I was with really did some weird things, they loved to store all of there clients username’s and password’s in a Microsoft Excel spreadsheet. I will let you take a moment to catch yourself because I was stunned by how stupid this idea was and why they even went thru with this. Now this is a company that has over 100+ users, some are onsite others work from remote locations, so when a ticket comes in to create a new username and password I would have prayed that the file is not currently opened from another technician’s computer. Not only could we not write to the file if it was already opened but what if someone was sniffing the network and used arp poisioning and saw this file?

Continue reading

Windows 7 missing shortcuts

I recently had to help a client who got infected with Malware on their PC, of course it was connected to a domain and that means they are other variables to take into effect. I removed the infection off the computer and used the unhide tool to unhide hidden files and folders but for some reason some thing where missing for the Start Menu so in order to get those back you need to navigate to:


Inside this folder you will find the missing shortcuts.