If you haven’t gotten around to setting up regular backups of your website MySQL databases you are asking for serious trouble. In this article I am going to provide shell script examples that you can use to quickly setup database backup jobs. As far as scope goes, we are going to be talking about how […]

This site and a bunch of my other sites were down yesterday. I am slightly embarrassed as to the reason why. All the same, I will share what happened, hoping that it might save someone else the trouble I caused myself. This was a true newbie mistake on my part…

“Enterprise Log Search and Archive” (AKA ELSA) is an open-source project started by an individual who needed the ability to not just collect logs from a bunch of devices but to also quickly search and parse them. And by a “bunch” I mean on the scale of millions and millions of logs. A lot of […]

This tutorial is going to be a bit to the point so there is an assumption that you have a level of comfort with Linux and with basic file manipulation, ownership, etc. I recently launched a new site, www.mtkfirmware.com, that is focused on collecting firmware for Mediatek based devices. The majority of the site is […]

I recently launched a new site that needed to import/download legal public data files from around the web and repackage them as zip files, particularly if they were of another archive type. Here is the script I came up with after a lot of digging about:

It is kind of hard to believe but you can actually get a dedicated hosting solution (your very own server) at shared hosting prices. It just boggles my mind that this kind of value exists. I spent the last few nights and weekends (for the last 3 years… honestly…) trying to find a better web […]

If you are wanting remote access to an Ubuntu Server, the answer is SSH (Secure SHell). Ironically, SSH actually isn’t in the most secure configuration out of the box. Several of the servers I run are public facing, which means SSH particularly needs to be locked down. So lets talk about locking down SSH. I […]

Read about it more in detail here on Redhat’s site. This vulnerability affects all applications using certain versions of OpenSSL, so this is a cross-platform issue. This isn’t nearly as atrocious as Heartbleed was as there isn’t a chance of leaking your private keys. However, if you use Qualsys labs excellent SSL web scanner to […]

A couple of days ago I posted full instructions for integrating an Ubuntu 14.04 LTS server into your Microsoft Active Directory Windows Domain. This is a short follow-up to that post which can be found here: http://www.kiloroot.com/add-ubuntu-14-04-lts-server-to-a-windows-active-directory-domain-fullest-integration/ To make my life easier I wrote three shell scripts that can be run to automate the majority […]

Update 3/31/2016 – PBIS doesn’t work well as of late and this method has been superceded by this article here: http://www.kiloroot.com/add-ubuntu-14-04-server-or-desktop-to-microsoft-active-directory-domain-login-to-unity-with-domain-credentials/ Update 5/18/2014 – I created scripts to automate 90% of this process. I still recommend you read this post before just jumping in and using the scripts so that you know what exactly it […]

The common scenario: You installed Ubuntu Server and named your initial user something stupid. Now you need to change it. This is the only user with sudo permissions and if you try to change it while logged in as it, it won’t work. Here is the work around…

I have already discussed Heartbleed in detail and have provided instructions on how to close the hole on affected server. Now that the hole is closed the final step is changing your server’s private key and “re-keying” your SSL certificates. Re-keying simply involves creating a new certificate signing request and sending it to your (most […]

Today I am doing a linux upgrade on an ubuntu server. One thing that commonly occurs (at least to me) is that the path: /boot doesn’t have enough space available for the upgrade. This necessitates cleaning it up. If you are working from the command line, learning how to do a simple “brace expansion” can […]

Not much else needs to be said… If you manage your box from the shell (which is the proper way to manage a linux server… shape up!) then you need to be using screen. Especially if you are getting ready to kick off some long process and want to make sure you can get back […]

Won’t say much, just wanted to drop a couple of links here as this site is a repository for stuff I don’t do extremely often and then find myself looking up again. Today I am cataloging these items… Here is an excellent article on how to update modules. Simple and pretty much to the point! […]