Archive for the ‘linux administration – tips, notes and projects’ Category

As you’re probably aware, the latest Ubuntu version looks very different. This isn’t a coincidence, they’ve changed from Gnome to Unity. Since Ubuntu started to build their own shell Unity, they have ditched Gnome shell entirely. You won’t even find Gnome 3 on the official repos! Many people within my industry and within the Linux [...]

“pianobar” is a free/open-source, console-based replacement for pandora’s flash player. “pianobarfly” is a patched version of it, which adds some pretty awesome features including capturing music from your stream into a local .mp3 file format. Features – play and manage (create, add more music, delete, rename, …) your stations – rate played songs and let [...]

Those of you making the conversion from gnome to unity in this latest Ubuntu release will notice quite a few changes. When I installed 11.04 on my office workstation (with dual monitors), Unity’s vertical launcher appeared in the middle of the two screens (on the very left of the right hand monitor). This is probably [...]

Canonical has announced the official release of Ubuntu 11.04, codenamed Natty Narwhal. This major update introduces the new Unity desktop shell, which is designed to improve ease of use and deliver a more modern user experience. Ubuntu founder Mark Shuttleworth unveiled the Unity project a year ago during an Ubuntu Developer Summit keynote in Brussels. [...]

Here’s how to check, repair and optimize all your mysql tables in all databases on a server… mysqlcheck -u root -p – -auto-repair –check –optimize –all-databases Note: you do not have to have root to do this, simply replace -u root with -u yourusername That’s it.. (Remember if you are using a tool like phpmyadmin [...]

If you’ve ever administered a DNS (name server), than you know that serial numbers mean a lot. But what happens when you have several [hundreds|thousands] of zone that you need to make a mass-change to. That’s easy enough, there’s tons of ways to do that with sed, awk, or simple tools like “replace”. However, once [...]

Recently, I’ve seen cPanel upgrade throwing errors during upcp such as: # /scripts/upcp /scripts/upcp syntax OK Running Futex Check/Fix……Done Undefined subroutine &Cpanel::Update::automatic_updates_enabled called at /scripts/upcp line 273. Fix: wget -O /root/updatenow.static http://httpupdate.cpanel.net/cpanelsync/RELEASE/scripts/updatenow.static && perl /root/updatenow.static –manual Then force the upgrade: /scripts/upcp –force Share on FacebookTweet

Ever mistakenly pipe output to a file with special characters that you couldn’t remove? -rw-r–r– 1 eriks eriks 4 2011-02-10 22:37 –fooface Good luck. Anytime you pass any sort of command to this file, it’s going to interpret it as a flag. You can’t fool rm, echo, sed, or anything else into actually deeming this [...]

Recently I’ve had to do extensive work with Dell PowerEdge servers, and specifically Dell’s that use the LSI MegaRAID controllers. Anyone who has ever had to work with the LSI RAID controllers knows that the MegaCLI provided by LSI is the most cryptic command line utility in existence. MegaCli is available for Linux, DOS, Windows, [...]

A server’s primary hard drive crashed hard one fine day. Yes, a non-RAIDed “server” (*sigh*). The last thing heard from it was screams of read-only, and it was gone. We got the drive mounted via a SATA dock to a new machine. At this point, all attempts at mounting and fscking failed, and dmesg was [...]