All posts by CBrown

Ubuntu Release Upgrade Broke Apache2

After doing a release upgrade


from Ubuntu 12.04 to 14.04 my websites were going to the default vhost for apache.  After looking at /etc/apache2/apache2.conf it had changed from looking for .cfg to .conf for the vhosts files.  I just added the .cfg in addition to the .conf so both files would work at around line 218 in apache2.conf to include the virtual host configuration.

IncludeOptional sites-enabled/*.cfg

Remove Old Kernels Ubuntu

Try to do a release upgrade I ran into the issue of /boot not having enough free space.  Here is how to resolve that.


Check which kernel you are actively using. DO NOT REMOVE THIS ONE!

uname -r

View all kernels installed on your system.

dpkg --list | grep linux-image

Remove the kernels not in use

apt-get purge linux-image-x.x.x.x-generic

Update grub




Run Vhosts Under Separate UIDs/GIDs Apache2

To run vhosts under separate UIDs/GIDs in apache is very easy with mpm-itk.  This will help secure your sites on your shared server.

First install apache2-mpm-itk

apt-get install apache2-mpm-itk

Next add a group and user

groupadd web1
useradd -s /bin/false -d /home/web1_admin -m -g web1 web1_admin

Now add this to the end of your vhost for your site. Be sure to place this inside the </virtualhost> tag and not outside of it.

AssignUserId web1_admin web1

For each of your sites you will user a different username and group. Now be sure to set your web directory to the correct user and group.


chown -R web1_admin:web1 /var/www/website

Allstar Dial Installation

Dial Install on RPi2

This assumes you have already completed the correct steps in your and echolink accounts.


This install is very easy and the most difficult part of the whole install was finding the default password for the fresh install (username:root password:debian).


Download the Dial image from for the RPi2. Then use a program like Rufus to write the image to your microSD card. After this is complete you will be able to place the card in the Pi and turn it on. After you login (username:root password:debian) there is a default script that runs. I think it has you change your root password and then runs through the basic Allstar setup asking for your Allstar login and details. It may ask about your networking and whether you are DHCP or static but this is easily changed later in /etc/network/interfaces or you can also set a static lease in your router.


After the script is finished and the Pi reboots you should be almost ready to go. The default ssh port for Dial is 222. I find this annoying and I don’t open ssh to outside world so I changed it back to the default of 22. This can be done in /etc/ssh/sshd_config. I then added my public key to /root/.ssh/authorized_keys so I don’t have to use a password to login via ssh and it is also more secure. You don’t have to do either of these for your system to work. These are just my preferences.


Continue reading Allstar Dial Installation

MTCNA Training March 30-31, Lancaster, PA

2 Day MTCNA in the Heart of Amish Country!


Course Description & Syllabi

This two day course will cover MikroTik official certification material plus much more! Real world examples will be shown and demonstrated as part of the class. Each student will obtain a base understanding of MikroTik RouterOS and learn skills that can be applied to there current networks and projects. Course includes labs where you will configure RouterOS and build networks. At the end of the class you will have the chance to take the Official MTCNA test provided by MikroTik.

Click here for the course outline


What You Need to Bring

Laptop with at least 1 ethernet port

Power Strip approximately 10′ in length

Two ethernet cables 6′-14′ in length



Within 1.5 hours of Baltimore and Philadelphia in the heart of Amish Country!

Penn Manor School District

3000 Charlestown Rd, Lancaster, PA 17603


Continue reading MTCNA Training March 30-31, Lancaster, PA

Add User to Nagios

It is not exactly easy to add a new user to Nagios but this is how it can be done.


If using ubuntu you will need to modify /usr/local/nagios/etc/cgi.cfg

The important one to view the information on the web interface is “authorized_for_system_information”.  It should look like this if you are adding multiple users.


There are more fields that you can use.  These are all the categories that nagiosadmin (the default account) is in.


Continue reading Add User to Nagios

Restart Networking Ubuntu 14.04

Of  course they had to change the way you restart interfaces in Ubuntu 14.04.  Here is how to restart your interface.  Make sure you select the correct interface, the example below is for eth0.  You can check you interface name in ifconfig.

ifdown eth0 && ifup eth0

To add DNS after adding a static IP you will need to set your name servers in /etc/resolvconf/resolv.conf.d/base



Update resolvconf

resolvconf -u

Then restart resolvconf for shits and giggles

service resolvconf restart