OpenLDAP replication on Ubuntu Lucid with cn=config backend
von Mario Rasser
Introduced with Ubuntu 9.10 OpenLDAP uses the cn=config-Backend for “live” configuration of the LDAP-Server without restarting the service. The benefit of the “live” config feature is bought by a complexer configuration with LDAP Syntax and LDIF-Files.
I will describe a easier way to setup a OpenLDAP Replication using slapd.conf as a base for the cn=config-Backend.
The shown way is based on OpenLDAP shipped with Ubuntu 10.04 LTS (Lucid) using SSL. The master LDAP-Server configuration is not part of this HowTo. So we are considering you have a running Master LDAP Server, that is already configured to provide LDAP Replication mechanism.
Weiterlesen
Atlassian Confluence 3.1.2 on Sun Glassfish V2
von Mario Rasser
Abstract
Confluence is a Enterprise Wiki from Atlassian, which is just awesome. It is supporting tons of free and commercial Plugins and Themes. It is perfect for documentation, document management and working in Teams.
We are using it since the middle of the last year starting with Version 3.0.2 running on Sun Oracle Glassfish V2 Application Server. The first Upgrade try to Confluence 3.1.1 failed caused by compatibility issues of Apache Xerces. Denny a colleague of mine figured out a way to solve that issue.
The Confluence setup it self is well described on the Atlassian Homepage, but as Atlassian is not officially supporting Sun Oracle Glassfish Application Server, this post will describe how to get Confluence running on Glassfish V2.
Weiterlesen
Temperature Monitoring of 3Ware Controller with smartmontools, Nagios and NagiosGrapher
von Mario Rasser
We have a 3Ware 9550SX-8LP installed in a Linuxserver running Ubuntu Server. What I am going to describe is, how we monitor the Harddisk Temperature via Nagios and graphing it via NagiosGrapher. This HowTo can easily be modified for other 3Ware Controllers.

Temperature graph from a 3Ware 9550SX-8LP with NagiosGrapher
(Arrow) keys are not working in VMWare guest
von Mario Rasser
We had problems within some keys like Arrow, Up, Down etc. in the Guest OS running on a Ubuntu 8.10 and 9.04 running VMWare Server 2.0. The keymapping between host and guest is broken. That could be fixed with the following entries in ~/.vmware/config (create the file if it is not existing). The file is located in the home of the user that runs ther VMWare Console, e.g. from the VMWare Infrastructure Web Access environment.
xkeymap.keycode.108 = 0x138 # Alt_R xkeymap.keycode.106 = 0x135 # KP_Divide xkeymap.keycode.104 = 0x11c # KP_Enter xkeymap.keycode.111 = 0x148 # Up xkeymap.keycode.116 = 0x150 # Down xkeymap.keycode.113 = 0x14b # Left xkeymap.keycode.114 = 0x14d # Right xkeymap.keycode.105 = 0x11d # Control_R xkeymap.keycode.118 = 0x152 # Insert xkeymap.keycode.119 = 0x153 # Delete xkeymap.keycode.110 = 0x147 # Home xkeymap.keycode.115 = 0x14f # End xkeymap.keycode.112 = 0x149 # Prior xkeymap.keycode.117 = 0x151 # Next xkeymap.keycode.78 = 0x46 # Scroll_Lock xkeymap.keycode.127 = 0x100 # Pause xkeymap.keycode.133 = 0x15b # Meta_L xkeymap.keycode.134 = 0x15c # Meta_R xkeymap.keycode.135 = 0x15d # Menu
Install VMWare Tools on Ubuntu Server
von Mario Rasser
How to install VMWare Tools on Ubuntu (tested on Ubuntu 8.10 and 8.04 LTS) in a rush:
- Within your VMWare Infrastructure Client or WebGUI do a “Install VMWare Tools”
- VMWare will provide a ISO Image with the VMWare Tools to the Virtual Machine
- SSH to the Ubuntu Server you want the VMWare Tools be installed
- OPTIONAL but prefered:
sudo su - aptitude update aptitude full-upgrade
- do the following steps as root or prefix a
sudo:aptitude install build-essential linux-headers-`uname -r` mount /dev/cdrom cd /media/cdrom0/ cp VMwareTools-2.0.0-122956.tar.gz /usr/src/ cd /usr/src/ tar xfzv VMwareTools-2.0.0-122956.tar.gz cd vmware-tools-distrib/ ./vmware-install.pl # answer the question via defaults init 6
Professional VMware and Linux support
Cisco Catalyst 2970 monitoring via SNMP
von Mario Rasser
This article will explain some parts of monitoring a Cisco Catalyst 2970 switch via SNMP and Nagios. Together with NagiosGrapher it gets an powerful combination to have a longtime overview about that device and you can create nice graphics like that:

Prepare the switch for SNMP requests from a SNMP polling host (here 192.168.200.200) :
access-list 60 permit 192.168.200.200 snmp-server community yoursnmpcommunitystring RO 60 snmp-server location "near the backbone" snmp-server contact "admin@myswitch.de"
Sortierverfahren mit Struktogramm und einer Implementationsvariante unter Pascal
von Mario Rasser
Diese unten aufgeführten Struktogramme und Algorithmen, erheben kein Anspruch auf Fehlerlosigkeit. Sie wurden aber nach besten Wissen und Gewissen erarbeitet und auch erfolgreich unter Borland Turbo Pascal 6.0/7.0 getestet.
1. Selektion-Sort
weitere Bezeichnungen
- Selection-Sort
- Sortieren durch (direktes) Auswählen
Prinzip
- man sucht den kleinsten Wert
- diesen tauscht man mit dem ersten Element
- man sucht den nächsten kleinsten Wert und setzt ihn an die zweite Stelle
- dies macht man solange bis das komplette Feld (Array) sortiert ist
- Es ist eines der einfachsten, aber auch langsamsten Sortierverfahren
Struktogramm

Quellcode
{Beispielwerte} CONST min=0; max=1000; {Ende Bespielwerte} TYPE TFeld=Array[min..max] of Real; {} Procedure Selection_Sort(var feld : TFeld; min, max : integer); var i,j : integer; a : real; {} Begin For i:=min to max-1 do Begin a:=feld[i]; For j:=i+1 to max do Begin if feld[j] < a then Begin a:=feld[j]; feld[j]:=feld[i]; feld[i]:=a; end; end; end; end;
Erstellen einer PDF Datei unter MS Windows 9x mit freier Software (auch für Windows 2000/XP geeignet)
von Mario Rasser
Hier das PDF zum Download.
(Archiviert aus unseren alten Tipps und Tricks Sektion.)
Parameterübergabe an Unterprogramme per Stack
von Mario Rasser
Hierbei handelt es sich um eine Vortrag meines Studienkollegens Dipl. Inf. (FH) Frank Grimm zum Thema Parameterübergabe an Unterprogramme per Stack und eine Darstellung der Funktionsweise mit Beispielen.
Voraussetzung
- Es gibt ein Register, das auf eine Speicherstelle zeigt, die sich im sogenannten Stack befindet, es wird unter x86 mit esp bezeichnet.
- Der Stack in ein Stück Speicher, das sich im Speicherraum eines Prozesses befindet und dient zum Sichern von Werten, zur Wertübergabe an Unterprogramme und zum Anlegen von lokalen Variablen.
- Es gibt zwei Befehle, mit denen ein Operant auf dem Stack gesichert bzw. vom Stack geholt werden kann: push und pop.
- Jedes push/pop verändert den Stackzeiger (den Inhalt von esp).
- Auf x86 wächst der Stack von den hohen Adressen zu niedrigen Adressen auf den Heap zu.
- Mit den Befehlen push und pop kann nur nach dem “First In – Last Out”-Prinzip auf Werte im Stack zugriffen werden.
- Da esp eine Adresse auf dem Stack beinhaltet, kann aber per Zeigerarithmetik auch beliebig auf den Stack zugegriffen werden.
1. Parameter auf Stack pushen
Der letzte Parameter wird zu erst auf den Stack geschafft, die Parameter werden also von rechts nach links gesichert (gepusht) und können daher im Unterprogramm wieder von links nach rechts gelesen (pop) werden.
2. call zum Unterprogramm
Wie immer, zeigt der Befehlszeiger auf den Speicherplatz mit dem n&äuml;chsten Befehl im Hauptprogramm, dieser Wert des Befehlszeigers wird automatisch vom Befehl call auf den Stack gepusht.
3. Stack-Frame aufbauen und Unterprogramm-Befehle ausfuehren
- Wert des ebp-Registers (allgemeines Register) auf Stack sichern (pushen)
- Aktuelles esp-Register (Stackzeiger) in ebp sichern (per mov)
Vortrag zu WinCVS (Version 1.3)
von Mario Rasser
Folgende Folien und Dateien liegen zum Download bereit:
(Archiviert aus unseren alten Tipps und Tricks Sektion.)
