PyMyDB Backup 0.5.1

By jason|August 26, 2012|Linux How To's, mysql, python|0 comments

The first version of PyMyDB Backup has been released and is based on Python 2.4.3. This is a Python script that will back up your MySQL databases, calculate the size of the backed up files, tarball and compress the contents, then email the results. To use:     Download the EPEL RPM which can be found at: Install pymydb-0.5.1-1.noarch.rpm which can be found at: GitHub This script creates the necessary

Read More

Part 2: Adding the firewall rules

By jason|August 26, 2012|Linux How To's, Security|0 comments

In part two of this series we’re going to discuss adding firewall rules to the router.  Everyone knows that adding ingress (or incoming) firewall rules is important to securing your network.  However, the same can be said for adding egress rules for traffic leaving your network.  For instance, aside from an email server, no client should ever send traffic to the Internet via TCP port 25.  If you see

Read More

Setting up NAT with CentOS/Red Hat 6

By jason|August 3, 2012|Linux How To's, Security|0 comments

​This will be part 1 in a series of configuring CentOS/Red Hat 6 as a secured firewall. Though I am a huge fan of pfSense (which can be found here pfSense), I wanted to build my own from scratch. So, the first part of this series will consist of setting up PAT (or NAT overload for the Cisco geeks) on Linux. The first step is to configure the network cards. 

Read More

Mounting a USB Device In a Xen Guest

By jason|June 9, 2012|Linux How To's|0 comments

​Mounting a USB device  Attach the USB device to the Dom0 and run ‘dmesg’ to see if the device attached Run ‘fdisk -l’ to see if the drive is partitioned the way you want it For instance: [[email protected] ~]# fdisk -l /dev/sdc Disk /dev/sdc: 1000.2 GB, 1000204886016 bytes 255 heads, 63 sectors/track, 121601 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id

Read More

Getting Linksys AE2500 to work with Fedora 17

By jason|June 7, 2012|Linux How To's|0 comments

​In order to get the AE2500 wireless USB adapter to work you must install ndiswrapper. First, the ndiswrapper-1.57 version is not compatible with the 3.3 or 3.4 version of the Linux kernel so you must install the ndiswrapper-1.58rc1 which is still in test as of this writing. Next, download the AE2500 Windows XP drivers from the Linksys website ( Link ). Unzip the drivers into a directory and load the bcmwlhigh5.inf file into

Read More

MySQL Backup Scripts

By jason|June 2, 2012|Linux How To's, mysql, python|0 comments

I needed a place to host my scripts, so I opened an account on GitHub. If you are unaware of what GitHub is, its a great place to publish code to the public by using Git; they also offer private hosting for a fee. Even if you do not have a need for this I recommend looking through the site as its a great place to view open source

Read More

RHEL/CentOS Server Security

By jason|March 9, 2012|Linux How To's, Security|0 comments

As a part of the sys admin’s job, it is important to take a few extra minutes to go through and properly secure a newly installed Linux server. These steps include enabling SELinux on the machine, configuring the firewall, and setting user permissions. There are however additional steps one should take in order to secure their server. One would be to tune and secure kernel parameters, set limits on

Read More

GPG Keys

By jason|March 3, 2012|Linux How To's, Security|0 comments

​GnuPG is used to encrypt and sign email messages and files. First you need to create the GPG key: Generating Keys ———————————————————– $ gpg –gen-key ———————————————————– Select option 5 for RSA and then type the encryption level. ———————————————————– Please select what kind of key you want: (1) DSA and Elgamal (default) (2) DSA (sign only) (5) RSA (sign only) Your selection? 5 RSA keys may be between 1024 and 4096 bits

Read More