System Configuration

First steps
  • Setup of ntp Time server via yast2 ot ensure that the time is always correct. This is necessary because every restart with windows as the operating system seems to change the time, so that the next boot of linux shows a wrong time.
  • Set hdb to dm/33 mode to avoid problems. Otherwise I get problems like these
    #!/bin/bash
     
    # --------------------------------------------------------- #
    copy_and_backup_Files ()
    {
    	COPY=$3
    	FROMDIR="$1"
    	DESTDIR="$2"
    	if [ -d "$FROMDIR/$COPY" ]  # Test if origin directory exists.
    	then
    		if [ -d "$DESTDIR/$COPY" ]  # Test if target directory exists.
    		then
    			if [ -d "$DESTDIR/$COPY-old" ]  # Test if target directory exists.
    			then
    				rm -rf "$DESTDIR/$COPY-old" 
    			fi		
    			mv "$DESTDIR/$COPY" "$DESTDIR/$COPY-old"
    			cp -rv "$FROMDIR/$COPY" "$DESTDIR"
    		else
    			echo "> Kopieren..."			
    			cp -rv "$FROMDIR/$COPY" "$DESTDIR"
    		fi
    	fi
    	return 0   # Success.
    }  
    # --------------------------------------------------------- #
    copy_and_backup_File ()
    {
    	COPY=$3
    	FROMDIR="$1"
    	DESTDIR="$2"
    	if [ -e "$FROMDIR/$COPY" ]  # Test if origin directory exists.
    	then
    		if [ -e "$DESTDIR/$COPY" ]  # Test if target directory exists.
    		then
    			if [ -e "$DESTDIR/$COPY-old" ]  # Test if target directory exists.
    			then
    				rm "$DESTDIR/$COPY-old" 
    			fi		
    			mv "$DESTDIR/$COPY" "$DESTDIR/$COPY-old"
    			cp -v "$FROMDIR/$COPY" "$DESTDIR"
    		else
    			echo "> Kopieren..."			
    			cp -v "$FROMDIR/$COPY" "$DESTDIR"
    		fi
    	fi
    	return 0   # Success.
    }  
     
    echo "-----------------------------------"
     
    OLDHOME="/home/matthias-old"
    NEWHOME="/home/matthias"
     
    COPY=".spamassassin"
    copy_and_backup_Files "$OLDHOME" "$NEWHOME" $COPY
     
    COPY="kmail"
    CPATH=".kde/share/apps"
    copy_and_backup_Files "$OLDHOME/$CPATH" "$NEWHOME/$CPATH" $COPY
     
     
    CPATH=".kde/share/apps"
    COPYDIR=(akregator kwallet kontact kile kabc kaddressbook knode kopete korganizer)
    for DIR in "${COPYDIR[@]}"
    do
    	copy_and_backup_Files "$OLDHOME/$CPATH" "$NEWHOME/$CPATH" $DIR
    done
     
    CPATH=".kde/share/config"
    COPYFILE=(akregatorrc amarokrc digikamrc emaildefaults emailidentities kab2kabcrc kaccessrc kaddressbook_addrconfig kaddressbookrc katerc kateschemarc katesyntaxhighlightingrc kilerc kmail.eventsrc kmailrc knoderc kopeterc korganizerrc kwalletrc rsibreakrc)
     
    for COPY in "${COPYFILE[@]}"
    do
    	copy_and_backup_File "$OLDHOME/$CPATH" "$NEWHOME/$CPATH" $COPY
    done
  • setup of vim
    Since I use vim for editing of configuration files I want it to be useable. Unfortunately Suse seems to think, that syntax highlighting should not be switched on to make it useable. So one needs to edit /etc/vimrc and change the line to
    #!/bin/bash
     
     
    HOME="/home/matthias"
     
    # --------------------------------------------------------- #
    create_dir ()
    {
    	if [ -d "$1" ]  # Test if target directory exists.
    	then
    		echo "" 
    	else
    		mkdir $1		
    	fi
    	return 0   # Success.
    }   
     
    # --------------------------------------------------------- #
    create_link ()
    {
    	if [ -d "$2" ]  # Test if target directory exists.
    	then
    		echo "$2 existiert schon" 
    	else
    		ln -s $1 $2
    	fi
    	return 0   # Success.
    }   
     
    MUSIK="/mnt/hdb2/MP3z/Sammlung"
    INSTALL="/mnt/hdb2/INSTALL"
    BACKUP="/mnt/hdb2/SICHERUNG"
    LINKDIR="/home/links"
     
    create_dir $LINKDIR
    create_link $MUSIK "$LINKDIR/Musik"
    create_link $INSTALL "$LINKDIR/Install"
    create_link $BACKUP "$LINKDIR/Backup"
     
    chown -R root:users $LINKDIR
     
    HOME="/home/matthias"
     
    create_dir "$HOME/Download"
     
    create_link "$LINKDIR/Musik" "$HOME/Musik"
    create_link "$LINKDIR/Install" "$HOME/Installation"
    create_link "$LINKDIR/Backup" "$HOME/Sicherung"
     
    MEDIA="/media"
     
    create_link "$MEDIA" "$HOME/Medien"
     
    chown -R root:users $MOUNT
    chmod g+w $MOUNT/*
     
    MOUNT="/mnt"
    for dir in $(ls /mnt/ -A); 
    do 
       create_link "$MOUNT/$dir" "$MEDIA/$dir" 
    done
    to switch it on.

Network

The network is connected via a Wlan Dlink-G510 card with Ralink rt61 chipset – which Suse 10.2 does not recognize and therefore was not configured. The installation process is elsewhere: D-Link DWL-G510 with openSUSE 10.2.

printer

The printer (HP 1200) is connected to a Linksys WPS54G Wlan printserver. The connection via LPT-networkserver worked without a problem.

Removal of unwanted Functions

Due to known problems and decrease of system speed I uninstalled all packages for zmd and beagle (with yast). zmd was introduced to openSUSE with 10.1 and made the installer unuseable. Therefore smart became the favorite installer/packagemanager. Fortunately the zmd dependencies were removed in 10.2 which means as well that there is no reason to keep the packages. Another story is beagle. The idea of a local search engine is great, however the CPU usage of beagle is so high that it blocks the keyboard and mouse which makes it impossible to work with the computer when beagle is refreshing its database. For this reason I rather want to live without beagle. Further I uninstalled all free fonts packages which spoil the font list with fonts nobody really needs.

Samba

The configuration of samba is described elsewhere in good details, so I only link to some relevant sites. In my case I simply copied the whole /etc/samba folder from the old system with all the configuration files. If this can not be done one has to keep in mind to set the passwords via smbpasswd.

Setup of /etc/hosts

This file should have identical content on all clients in the network. In my case I extent it with
# Router
192.168.2.1     router router
# Printer
192.168.2.100   printer printer
# Matthias
192.168.2.101   matthias.linux matthias
# Matthias Laptop
192.168.2.102   matthiasmobil.Linux matthiasmobil
# Sarah
192.168.2.103   sarah.linux sarah
# Sarah Laptop
192.168.2.104   sarahmobil.linux sarahmobil
# Local Web
127.0.0.1       www.local-wordpress.de
127.0.0.1       www.local-cqa.de

Network shares

Take a look at The setup of nfs shares in a local network

Setup of apache

Take a look at Howto install a local webserver on an opensuse system