Bind Logs – Top DNS Queries

By Mark Davidson on September 3rd, 2010
1

This week at work we fancied figuring out what the top sites are on are network. So decided an easy way to work this out would be to enable logging on are bind server and then write a script to work out what the top DNS queries are.
Read & Comment ›››

Get All Installed Packages on System in apt-get Format

By Mark Davidson on August 30th, 2010
2

Recently I needed to setup three almost identical web boxes. First of all I installed all three boxes with a base install of Ubuntu 10.04 server. I then installed all the required packages on one box and started looking for a way to replicate the installed packages on the other boxes.
I had a Google around and did not manage to find a way to do it so I decided to come up with a method by myself.

On the box where you have all your installed packages do

dpkg --list | grep "^ii" | cut -f3 -d ' ' | sed ':a;N;$!ba;s/\n/ /g' > installedOnSystem01

Read & Comment ›››

Ubuntu 10.04 – Fix Button Layout

By Mark Davidson on July 28th, 2010
1

Ubuntu Button Layout DefaultFor anyone running Ubuntu 10.04 the new default positioning of the minimize, maximize and close buttons can be quite annoying.
Previously I have been using `gconf-editor` to edit the settings manually whenever I change themes. But here are two quicker ways.

First of all you can just use `gconf-editor` running it from terminal and specifying the parameter of the key you want to edit. The GUI will then launch with the value you want to edit already selected.

gconf-editor /apps/metacity/general/button_layout

Now Double click on `button_layout`, change it to read ‘:minimize,maximize,close’, click ok and the change should take effect.

The second way is to use the `gconftool` which allows you to directly edit gconf repository values without using a GUI.

In a terminal session run

gconftool -g /apps/metacity/general/button_layout

It will return what the current button layout is set to. Which should read

close,minimize,maximize:

To edit this just do

gconftool -s /apps/metacity/general/button_layout -t string :minimize,maximize,close

Your button layout should now be correct.

Ubuntu Button Layout Fixed