Analyze Apache and MySQL configurations

I use these two tools pretty often and thought I would mention them here. They analyze your Apache and MySQL configurations and make general recommendations. That doesn’t mean you need to follow these, but they are good at showing you overviews of your configs that you can use in addition to other data to make configuration change decisions. Apachebuddy.pl ...

March 24, 2013 · 1 min · Shane Cunningham

MySQL - Reset root password and extract table from dump

Just a couple MySQL notes. Debian 6 Squeeze - Reset MySQL root user password You’ll need to stop MySQL server for resetting it this way. Start MySQL with –skip-grant-tables and send to background. Press enter to get back to command line. Connect to to MySQL. Use mysql database and run the command to update the root user password and flush privileges. ...

March 23, 2013 · 1 min · Shane Cunningham

Install MySQL 5.6 on CentOS 6.3

No guarantee this works or that it won’t completely blow up your system. libaio is required so install that bad boy. To make this work you need to remove mysql-libs-5.1.61-4.el6.x86_64 which also removes a few other things, please make sure you are ok with these things being removed. The programs removed are cronie, cronie-anacron, crontabs and postfix. ...

February 14, 2013 · 1 min · Shane Cunningham

VM not sending hostname to DNS/DHCP server

On some VMs I spin up on ESXi the hostname is not sent to my DNS/DHCP server running in pfSense. Haven’t found exactly why because it seems occasionally Ubuntu VMs do send this correctly on first boot. I’m probably doing something not smart. Anyway, you can easily fix this problem by adding the following - CentOS/Ubuntu Add this to /etc/sysconfig/network Replace hostname with your servers hostname and restart networking. It should now send the hostname to your DNS/DHCP server. ...

February 13, 2013 · 1 min · Shane Cunningham

Fedora 17 on a 2011 13" MacBook Air

Decided to throw Fedora 17 on my MacBook Air to see how well it works. Actually, works pretty damn well. Wireless, backlight keyboard and trackpad all work with no modifications. I still have a lot to configure, but this seems like a very nice start to something I thought would have a lot more problems. Installed rEFIt on my Air. Made a USB bootable drive of Fedora 17 ISO 64-bit. Rebooted and held down Option key, selected Fedora media. Installed Fedora using the entire disk, I did not want to dual boot, wanted only Fedora. After install Fedora reboots the system, my system hung, but I took out the USB stick, powered off and powered back on holding the Option key. Fedora was my only bootable device so I selected that and it booted straight into Fedora 17. ...

December 15, 2012 · 2 min · Shane Cunningham

Monitor OpenIndiana/Solaris 11 with check_mk_agent and Nagios

Here’s a short how-to on monitoring OpenIndiana (Solaris 11) that is running ZFS using Nagios, check___mk and check_mk_agent. This awesome open source tool makes setting up your servers to be checked by Nagios super easy. In the past I would manually create or edit the Nagios .cfg files for my environment and install various agents depending on OS architecture on the servers I wanted to monitor. Even though I am not monitoring a ton of servers it still took quite a bit of time. Now I use check_mk and Open Monitoring Distribution. I plan to write-up a more detailed post on OMD soon, but I found it’s a very impressive bundled Nagios package with many important addons and can easily be installed on every major Linux distribution. On to monitoring Solaris 11. ...

December 7, 2012 · 2 min · Shane Cunningham