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 [...]
Archive for the ‘linux administration – tips, notes and projects’ Category
How to “Git” your own repository
Posted: 8th July 2011 by kire in linux administration - tips, notes and projectsAdvanced Bash Scripting: variable within a variable
Posted: 30th June 2011 by kire in linux administration - tips, notes and projectsMany 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. [...]
Unity sucks: Install Gnome 3 on Ubuntu 11.04
Posted: 27th May 2011 by kire in linux administration - tips, notes and projectsAs 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 [...]
Pandora on Linux: pianobar and pianobarfly
Posted: 1st May 2011 by kire in linux administration - tips, notes and projects, ubuntu 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 [...]
Unity: Move vertical launcher to another monitor
Posted: 30th April 2011 by kire in linux administration - tips, notes and projectsThose 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 [...]
Ubuntu 11.04 released – Natty Narwhal
Posted: 29th April 2011 by kire in linux administration - tips, notes and projectsCanonical 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. [...]
Repair and optimize all mysql tables from CLI
Posted: 22nd March 2011 by kire in linux administration - tips, notes and projectsHere’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 [...]
Mass updating zone file serial numbers with sed
Posted: 19th March 2011 by kire in linux administration - tips, notes and projectsTags: bind, named
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 [...]
Undefined subroutine &Cpanel::Update::automatic_updates_enabled called at /scripts/upcp line 273
Posted: 17th March 2011 by kire in linux administration - tips, notes and projectsRecently, 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
Howto: Delete files by inode number
Posted: 10th February 2011 by kire in linux administration - tips, notes and projectsEver 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 [...]