Version 3
Technology
apt-get upgrade Confusion
While performing some regular maintenance on one of my Ubuntu machines I was getting a bit confused between all of the upgrade commands, so I investigated further. I’ve listed below the basic differences between each:
sudo apt-get upgrade
install newest versions of packages on machine
sudo apt-get dist-upgrade
upgrades all packages on system, handle dependency changes (remove obsolete packages). This command prepares the system for upgrade but since /etc/sources.list is not changed to the sources for the newer distribution it will not actually upgrade to the newest version.
To actually perform a distribution upgrade the following command should be used (ensure you have a backup before issuing this command. The upgrade could make your system unstable):
First, check which version you are currently running using the following:
lsb_release -a
Next, you can download the newest update manager and issue the upgrade command:
sudo apt-get install update-manager-core sudo do-release-upgrade
All of these commands should be used with caution as you are directly affecting your software packages installed on the system.
This site was very helpful in my initial investigation of the differences of this command.
Microsoft Exchange ICOs
One of my email addresses I access through Microsoft Exchange. The domain at which this is hosted did not have a ICO for the page which has been an annoyance for me since I list all my frequently visited pages on my Firefox Bookmark Toolbar. I thought I better take some action to resolve this so I searched for exhange ICO’s but had no success. So, I decided to just adapt the logos for exchange and also the Office Outlook 2003 icon and send them to the web admin. In case anyone else finds these useful I’m attaching them below. Note that all logos are property of Microsoft. I’ve created these only to make the experience for those running exchange better.
Previews of each included in compressed folder:

or for terminal Linux users:
wget http://maddhat.com/wp-content/uploads/2010/05/exchange-icos.tar
Note: To create these I used Photoshop and the ICO plugin to export them properly. Found this site for creating them free online as well.
BIND Tip – Dumping The Cache
Thought it would be useful to document a useful command while learning how to operate BIND. I set BIND9 up on my print server and was trying to examine how much resources it was consuming. I found the following command helpful – it dumps the current BIND9 database from memory to /var/cache/bind (by default):
sudo rndc dumpdb –all
After that I simply navigated to /var/cache/bind and issued the command
ls –lah
and was shown that it consumes 649K in memory from the output of the command above:
-rw-r--r-- 1 bind bind 649K 2010-05-02 08:15 named_dump.db
I’m not a BIND expert and am actually stumbling around with some custom zone settings but I thought this was worth mentioning. I’m also assuming this is quite small for a db size since this was only setup for testing for a 1 user network. Nevertheless, it would be useful to check that you have adequate memory to handle the database size if you are deploying a DNS server for your network. I believe you can also limit the cache size if needed, but I don’t think I’ll be needing that option added to my config anytime soon.
If you haven’t already, read up on the rndc command – because it’s quite powerful. In addition, make sure you are using the latest stable version of BIND to (as well as other benefits) protect against cache poisoning.