Bash: Check if user is root

Here’s a quick and easy way to ensure your script is running as root. I started using this with my server setup scripts at work to ensure they don’t fail somewhere through the script.

# Check if root
if [ "$(whoami)" != "root" ]; then
echo "Not running as root, exiting..."
echo "Please use sudo -s then run this script again."
exit 0
else
echo "Script running as root, continuing..."
fi

Posted on July 22, 2010 at 5:10 pm by Brad · Permalink · Leave a comment
In: Bash, Linux · Tagged with: ,

Ladoga Trophy

The Ladoga Trophy is quite simply the most extreme offroad challenge I have ever seen. Period. It is an annual challenge held in Russia and open to anyone to enter, but this isn’t for everyone. The video below has been one of my favorites since finding it a few years ago. Since then many more Ladoga Trophy competitions have come and gone but this one from 2004 is the most demanding, brutal video I think I have ever seen!

Ladoga-Trophy.ru (Russian)

Ladoga-Trophy.ru (Google Translated Link)

Posted on February 25, 2010 at 7:17 pm by Brad · Permalink · Leave a comment
In: Offroad, Videos

Great White North Expedition Report by oonimog

Going along with my previous post about overland travel I thought I’d link to a finished trip report over on the Expedition Portal site. Here are a few images from their journey, click the link to see the full post.

Posted on February 25, 2010 at 9:23 am by Brad · Permalink · Leave a comment
In: Offroad, Overland Expedition, Travel

Overland Expedition

I suppose one could say my main goal in life is to reach the point in which I can begin to travel the world, overland. The problem with overland travel is the rather high cost to do so. Sure I could simply jump on a plane to Anchorage and spend a week or two there but that just doesn’t interest me at all. The journey is the goal, not the destination. Since Alaska is probably my number one goal I’ll use it for the rest of this post. Traveling from Alabama to Alaska presents an unreal set of hurdles and problems:

While Alaska will likely not be my first expedition it is my dream. My goal. There is so much involved it sometimes seems overwhelming, but at the same time feels so possible. I don’t know how long it will be before I can even start planning a small first adventure but I’ll keep working towards that day, and looking forward to it. I hope one day I will be updating my blog while on the back-roads of the great nations that make up this earth. There is so much most people will never see, and most will never care to, but I am not one of those. My home is adventure, and wherever it may take me.

Posted on February 24, 2010 at 8:24 pm by Brad · Permalink · Leave a comment
In: Offroad, Travel

A Quick Ride

Last weekend I took a quick trip to a local place known as the “Sand Barge’s.” This location used to be a barge dock that brought in TVA equipment and hauled out logs when the Bellefonte Nuclear Plant was built in 1980. Nowadays it’s still used to load and unload barge’s a few times per week but it’s mostly just a fishing spot. Since the Suburban had 4 wheel drive once again I thought I would head out for a short shakedown run. There wasn’t a need for 4 wheel drive here but it’s always nice to have the option if needed!

Just getting off the pavement was fun considering the year the Suburban spent being built. I can’t wait to get more done and get in on some good back-country rides! Here’s a link to all of the pics (not many).

Posted on February 24, 2010 at 12:22 pm by Brad · Permalink · Leave a comment
In: Offroad, Suburban