inside the mind of a linux admin

Gnome3: replace gnome-screensaver with xscreensaver

GNOME 3’s “screensaver” leaves much to be desired, and if you’re an old school X user like myself, you probably just want the good ole’ screensaver back. Here’s how to install it using the following commands (this will also remove gnome-screensaver): sudo apt-get remove gnome-screensaver sudo apt-get install xscreensaver xscreensaver-gl-extra xscreensaver-data-extra Then search for “Screensaver” […]

Read More

Source control != File system

If you find yourself wanting or considering checking binary files into your source control system (Git, SVN), you’re doing it wrong. Source control is optimized for tracking changes to source files. When you have multiple revisions of a source file, the system has stored the original file and the changes between revisions. This is good. […]

Read More

Validating Package Consistency by md5sum for Linux

Occasionally you just want a bit of piece of mind about your server or Linux install. You may suspect there is somebody who has hacked your server or even something changed by a package install that shouldn’t have been. Heres a couple of ideas on how to do a quick ‘health’ check on he md5sum […]

Read More

Linux Protip: How to make a patch file

I’ve been doing Linux system administration for well over ten years, and I’ve used patch files often. I’ve never actually had the need to create one until today. To my surprise, I discovered how blatantly simple and easy it is. I’ve always assumed it was some sort of black magic involving unicorns and rainbows. Sure, […]

Read More

unhackable.org offers legacy KSplice protection

Unhackable Security is a Linux security consulting firm specializing in a wide array of technologies and proven practices which make your server virtually unhackable. Ksplice is an extension of the Linux kernel which allows system administrators to apply security patches to a running kernel without having to reboot the operating system. Ksplice takes as input […]

Read More

Firefox 9 Released – How to install on Ubuntu

Firefox 9 is now available — but unlike its previous rapid release forebears where not a lot changed, a huge feature has landed with the new version: the JavaScript engine now has type inference enabled. This simple switch has resulted in a 20-30% JS execution speed increase (PDF), putting JaegerMonkey back in line with Chrome’s […]

Read More

Writing Python code to use MySQL

Python is a programming language that lets you work more quickly and integrate your systems more effectively. I’ve been programming primarily in Python lately, and had the need to open a socket to a MySQL database to pull data. By default, older versions of Python does not currently have a mySQL library that can easily […]

Read More

Find the fastest DNS resolver near you

I recently stumbled upon an awesome tool called Namebench. Namebench it’s a small program wrote in python that search for the fastest DNS server near to you. Namebench runs benchmarks using your web browser history, tcpdump output, or standardized datasets in order to provide an individualized recommendation. Namebench is completely free and does not modify […]

Read More

creating a patch file from git

I’m a huge fan of the oldschool “patch” command, and sometimes in the wild I use Gitorious’ “raw diff” view which puts the changes in easy to read patch format. However, you can also do this on the command line to create a patch file that can be applied using “patch -p0 < patchfile". git […]

Read More

Howto: Install Firefox 6 on Ubuntu via PPA

I just upgraded to Firefox 6 on Ubuntu. The new version doesn’t have any major interface changes but is 20% faster than Firefox 5. Startup time has also been improved especially for those like me with a lot of tabs and groups. Firefox 6 uses about 8% less resources than the older version so it […]

Read More
Tweeter button Facebook button Myspace button