Linux

Howto remove orphan packages in Ubuntu

There is usually some orphan packages left on the system after upgrading Ubuntu from one major version to another. These packages can cause strange errors like Ubuntu bug #151045. The solution to this problem is a package named deborphan. deborphan removes orphan packages that are left on your Ubuntu installation and you should run this […]

Read More
Linux

Ubuntu and clicking sound from the harddrive

I have experienced that my harddrive makes a clicking sound about every 10th second on my Ubuntu 9.10 and a fix to this problem is to disable APM using hdparm. This behaviour comes from very activ APM modes that some drive manufacturers use and that leads to excessive head parking and can reduce a harddrives […]

Read More
Linux

Logon to Norsk Tipping using Ubuntu 9.10

This post is a short howto how I managed to use my Ubuntu 9.10 (Karmic Koala) to log on to the web pages of Norsk Tipping using a USB CardMan 3121 buypass card reader and Firefox web browser. First of all you need to install Java to login to Norsk Tipping webpages. # aptitude install […]

Read More
Network

Change ethernet settings using ethtool

Force network speed on a network card to 100 MBit Full Duplex and in the same time disable auto negotiation # ethtool -s eth0 speed 100 duplex full autoneg off These settings are active until you reboot the machine or restart the network. In order to keep this change on each system reboot, append the […]

Read More
Web

Create a temporary “Site Down” notice in Apache

This post describes how to make a “Site down for maintenance” notice using Apache .htaccess and the mod_rewrite module. I assume you know how to enable the Apache htaccess directive and the mod_rewrite module. First you need to create a .htaccess file in your root level of your website. Next you add the following lines […]

Read More