January 2010
5 posts
Installing Ruby Enterprise Edition on CentOS
First we need to get the latest build of Ruby Enterprise Edition (Ruby EE from now on) from http://www.rubyenterpriseedition.com
$ wget http://rubyforge.org/frs/download.php/68719/ruby-enterprise-1.8.7-2010.01.tar.gz
This is the latest at the time of this writing. Check the website for the most recent and just check your version numbers in the next steps.
Now we need to extract the...
Point Your IP to a Different Vhost
Sometimes your want to make your IP address to point to somewhere other than the host it’s currently point to. The way Apache works is that it loads vhosts in order number-alpahbetically. So when I created “adminnoob.conf” as my new config my IP now pointed to adminnoob.com. This is an easy fix. In my httpd.conf I load all my vhosts like so:
# Loads all vhosts
Include...
Tunnel with SSH
When you’re working at the airport or coffee shop, you should never trust their wifi to provide secure wireless internet. Especially if you plan to visit secure sites such as banks, server control panel, etc. You never know who might be at there with you. In this case you should tunnel your traffic through ssh. To do this, simply start a new session in your terminal.
First we need to...
Logging Cron Tasks
So recently I ran into an issue where our backup script would only work properly when we ran it manually. That’s another story. However to try and catch what was wrong with the cron job we had to figure out a way to log what was happening. So what I did was the following on a CentOS machine. I opened the crontab file /etc/crontab and inside there you have four jobs that run at different...
SSH Key Logins
One of the most secure things you can do to your server is to disable password logins. You should always disable root login. The first thing you need to do is locally retrieve or create your public ssh key. To see if you have one already created check in this location. On a Mac it’s
~/.ssh/id_dsa.pub
If that files is created then you’re set, if not then do the following.
$...