inside the mind of a linux admin

How to migrate a Virtuozzo VPS to OpenVZ

To migrate from Virtuozzo VPS to OpenVZ you must “rsync” root area to private area to avoid incompatibility of OpenVZ and Virtuozzo Cache Templates. 1. Create your VPS with id 3 using your desired template (for example) # vzctl create 3 –ostemplate ubuntu-11.04-x86_64 –conf unlimited Creating container private area (ubuntu-11.04-x86_64) Performing postcreate actions Saved parameters […]

Read More

Full Graphite and statds installation on CentOS

Graphite is a highly scalable real-time graphing system. We use it to graph all sorts of metrics. Basically, you write an application that collects numeric time-series data that you are interested in graphing, and send it to Graphite’s processing backend, carbon, which stores the data in Graphite’s specialized database. The data can then be visualized […]

Read More

How to “Git” your own repository

Git is a distributed revision control system with an emphasis on speed. Git was initially designed and developed by Linus Torvalds for Linux kernel development. This guide will walk you through the basics of getting up and running with git. First, you’ll need to install the client. If you’re using Ubuntu, you’ll want apt-get. Obviously […]

Read More

Advanced Bash Scripting: variable within a variable

Many folks will know this in many other programming languages (C, C++, etc) as a “pointer”, but what if you’re a bash kid at heart and you want to define a variable within a variable? I encountered this exact quandary today while coding a pretty sophisticated script which reaches back into the past for data. […]

Read More

Unity sucks: Install Gnome 3 on Ubuntu 11.04

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 […]

Read More

Pandora on Linux: pianobar

“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 […]

Read More

Unity: Move vertical launcher to another monitor

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 […]

Read More

Ubuntu 11.04 released – Natty Narwhal

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. […]

Read More

Repair and optimize all mysql tables from CLI

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 […]

Read More

Mass updating zone file serial numbers with sed

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 […]

Read More

Twitter: kireguy

Tweeter button Facebook button Myspace button