Adding a second hard drive in Ubuntu

Adding a second hard drive in Ubuntu

Adding drives in Ubuntu is fairly straightforward. When you install them, Ubuntu assigns them an sdX identifier, where X is a,b,c, etc. depending on how many drives you have installed. These instructions work with whatever number harddrive you’re installing, just change the b to whatever letter Ubuntu has assigned your new drive.             Steps: Find out what your new drive is assigned. You’ll see a...

Read More

Creating a strong SSH key pair for file transfer without a password

Creating a strong SSH key pair for file transfer without a password

Passwords really get in the way of scripts that have to automatically transfer files. They can also be annoying if you’re logging into the same machine all the time. If you create a key pair between two machines however, the account you created it for won’t have to provide a password when accessing the other machine. Note these are 1 way, meaning if you put computer A’s ssh key on computer B, A can log into B without a...

Read More

Binding NIC cards in Ubuntu to create redundancy

If you have 2 network interfaces in Ubuntu, you may want to bind them together to create redundancy. If you bind two NICs together, 1 can be unplugged, or unavailable to the network and the IP address will still broadcast through the other NIC. So here’s how to do it in Ubuntu. Install ifenslave: sudo apt-get install ifenslave Add some settings into the /etc/modules file: echo “bonding mode=active-backup miimon=100...

Read More

Ubuntu disk space issues with virtual files

I recently had an issue over Thanksgiving with a server running out of disk space. I was fairly perplexed because it had 30 gigs free on the primary drive. All of the data was stored on a separate disk, so the only thing that should have been creating files was the operating system. It turns out the issue was with a php script that wasn’t finishing. It was just sitting there looping. Now on paper, the machine should have run out memory and...

Read More

Shorewall default configuration file not found

If you’re looking for the default configuration files for Shorewall and get the error below because you’re following a tutorial, then the answer is simple. cp: cannot stat `/usr/share/doc/shorewall-common/default-config/XXXXXXXXXX': No such file or directory In version 3.X the path is /usr/share/doc/shorewall/default-config/ In version 4.X the path is /usr/share/doc/shorewall-common/default-config/

Read More