Archiv für Computer

Upgrading to a newer Version of Ubuntu

Based on the fact, that Ubuntu 9.04 was announced today, it is a good idea to explain how to upgrade every Ubuntu Version using the command line.

  1. sudo apt-get install update-manager-core
  2. verify /etc/update-manager/release-upgrades
    to use LTS or Normal based on your preferences
  3. sudo do-release-upgrade

After that, follow the messages on the screen to upgrade your system to the newest Ubuntu Version.

Cacti: Passwords do not match, please retype.

With the message “Error: Passwords do not match, please retype.” Cacti tried to make my life horrible today, but not with me.

If you are running Cacti 0.8.7b (which is the standard version located in the Ubuntu repositories) you will be prompted with this error after editing a host using Firefox 3. The error is based on an auto complete bug within the form. There are two solutions to avoid the problem (which worked for me):

  1. Before saving all the settings you have to delete (if not in use) the value in the password field of the SNMPv3 settings and than switch back to your preferred method of fetching information.
  2. Apply the patch which was provided by RichardBronosky in the Cacti Forum solving the problem.
  3. The easiest way to apply this patch is to cd to your cacti directory and:
    1. THIS IS IMPORTANT. Verify the validity of the URI like this:

    Code:
    curl -L http://forums.cacti.net/download.php?id=14681

    2. If it looks like a safe patch, then apply it directly from that URI via curl:

    Code:
    curl -L http://forums.cacti.net/download.php?id=14681|patch -p1 -N

Format more than 32GB hard disks as FAT32

There is one very annoying limitation (ok perhaps more) if you are using Windows XP. The limitation that the MS Windows XPs format tool can only handle HDDs under 32 GB of disk space. Other OS’s like Linux or Mac OS X do not have this limitations but what to do if you want to format a disk bigger than 32GB using Windows XP?

Grab one of the most useful 3rd party applications – called FAT 32 Formatter.

Using multiple keyboards with different layouts on the same machine

My laptop has a Portuguese keyboard, which I use when I am at home, but at work I use an external keyboard with a Belgian layout. This is annoying because every time I switch keyboards, I need to go to every open program and manually change its input language with the language bar. Worse, when I start a new program, it starts with the default language which means that sometimes I have to switch input language also.

One way to work around this problem could be to buy a new keyboard, but I like that IBM model M keyboard and I have yet to find a better keyboard.

Instead of doing that, I wrote a program that switches to the correct input language when I start using a keyboard.

Download RightKeyboard

What your computer does while you wait

Informativ und gut erklärt kann man endlich einen Blick in die Mysterien seines Computers werfen oder genauer was er wohl so nebenbei tut während Mann/Frau eigentlich darauf arbeiten will.

What Your Computer Does While You Wait

Probleme mit HP Color LaserJet 2600n als Netzwerkdrucker

Wer einen HP Color LaserJet 2600n sein eigen nennt und diesen als Netzwerkdrucker über einen PrinterServer (Windows 2003) betreiben will, wird schnell auf ein sehr nerviges Problem treffen. Der Drucker kann mit der Standardkonfiguration nicht erfolgreich als Shared-Printer eingesetzt werden. Das Problem ist, dass Druckaufträge nicht weiter an den Drucker geleitet werden und somit die Printer-Queue verstopfen. Neue Druckaufträge reihen sich dann hinten an und werden somit auch nicht gedruckt. Das löschen der Druckaufträge ist mühevoll und kann mit einem Script erleichter werden, jedoch nicht über den üblichen Weg erfolgen.
Die Lösung des Problems ist jedoch simpel, man muss nur in den Einstellungen des Druckers am Drucker-Server die Option “Bidirektionales drucken” deaktivieren und schon ist das Problem gelöst.

Auto-Logout in der Bash Shell

Eingelogged ist man oft schneller als ausgelogged. Sehr problematisch ist es, wenn eine Root-Shell nach dem Verlassen des Computers offen bleibt und jeder Anwesende hier herumwerken kann. Aus diesem Grund gibt es innerhalb der Bash Shell die Environment Variable TMOUT, setzt man diese, entweder per Hand mit “export TMOUT=120″ oder innerhalb der .bashrc oder /etc/profile, wird ein automatisches Logout nach der angegebenen IDLE Time durchgeführt.

Ich hab folgendes in meiner /etc/profile stehen:

IDLELOGOUT=120
echo “Automatischer Logout nach $IDLELOGOUT sekunden!”
export TMOUT=$IDLELOGOUT

Damit werden alle User automatisch nach der bestimmten Inaktivität ausgelogged. Bitte nicht vergessen, wer als User eingelogged ist und mittels “sudo su” die Root-Recht erlangt hat wird nicht automatisch ausgelogged. Um dieses Problem zu lösen muss ich noch etwas nachforschen.