Wenn möglich die netinstall verwenden, und ein “stable” System installieren. Als Bootkernel immer expert auswählen. Das System Sollte grundsätzlich auf Englisch installiert werden, die Deutschen/Schweizer Locales sollten auch installiert werden, aber als default muss en_US.UTF-8 ausgewählt werden, das Tastaturlayout ist de-CH.UTF-8.

* Choose a language: english > Choose a contry: other > Europe > Switzerland > Choose a locale: en_US.UTF-8 > Choose other locals: de_CH.UTF-8
* Select a keyboard layout: PC-style > Swiss German
* Detect and mount CD-ROM: Continue > Start PC card services (PCMCIA)? NO
* Load installer componets from CD: nichts auswählen > Continue
* Detect network hardware: floppy (Linux Floppy) deaktivieren > Continue
* Configure the network: DHCP oder statische IP
* Detect disks
* Partition disks (siehe unten)
* Configure time zone: Europe/Zurich
* Configure the clock: set to UTC? NO
* Set up users and passwords: enable shadow passwords? YES > Allow login as root? YES > Create a normal user account now? YES > Full name: USERNAME > Username: username
* Install the base system > Kernel to install: 2.6.??-?-686
* Configure the package manager: Use a network mirror? YES > Siwitzerland > (mirror: ETH Zürich sonst SWITCH) > (kein Proxy) > Use non-free software? YES

* Select and install software? diesen Punkt nicht auswählen, auch wenn jede Paketauswahl deaktivieren ist, werden immer noch diverse unnötigen Packete installiert

* Install the GRUB boot loader on a hard disk: Install the GRUB boot loader on the master boot record? YES > kein GRUB password setzten
* Finish the installation

Partitioning method: Manuel

* / type ext3, primary, bootable flag, Grösse mind. 10G (wenn wenig Platz ist 6GB)
* SWAP type swap primary Grösse mind. doppelte Grösse von physikalischem RAM bis 1GB danach nicht mehr doppelte Grösse

das LVM auch als primary mit dem restlichen Speicher

* /var type ext3 Grösse mind. 10G (Nach möglichkeit im LVM)
* /home type ext3 Restlicher Platz (im LVM nach Möglichkeit noch Platz freilassen)

Falls man mehrere Partitionen für Benutzer-Daten braucht diese unter das /home mounten. Z.B. /home/archiv, /home/public. Natürlich auch mit LVM.

Basis System

vi /etc/apt/source.list (deb cdrom auskommentieren)

#deb cdrom:[Debian GNU/Linux 5.0.1 _Lenny_ – Official amd64 NETINST Binary-1 20090413-22:20]/ lenny main

deb http://ftp.ch.debian.org/debian/ lenny main non-free contrib
deb-src http://ftp.ch.debian.org/debian/ lenny main non-free contrib

deb http://security.debian.org/ lenny/updates main contrib non-free
deb-src http://security.debian.org/ lenny/updates main contrib non-free

deb http://volatile.debian.org/debian-volatile lenny/volatile main contrib non-free
deb-src http://volatile.debian.org/debian-volatile lenny/volatile main contrib non-free

linux:~# apt-get update
linux:~# apt-get upgrade
linux:~# apt-get install bzip2 mc libncurses5-dev tcpdump ngrep iptraf vim nmap acl rsync wget mutt postfix \
strace make gcc tar cron iptables iproute screen hdparm hwinfo ntpdate links dnsutils ssh less psmisc ftp \
mailx util-linux lvm2 pciutils links lsof sysstat

wichtig ist zuerst sortieren bevor man mit uniq die Doppelten löscht:
cat /var/log/anylog.log | grep suchbegriff* >> ~/temp_neutral_unsort
sort ~/temp_neutral_unsort | uniq > ~/temp_2

hier habe ich die noch nach datum sortiert (siehe vorheriger Eintrag)
/usr/local/bin/sortapache.sh ~/temp_2 neuerpfadunddatei
achtung diese Datei wächst und wächst, darum habe ich sie mit der gefixten Version ersetzt
cp neuerpfadunddatei ~/temp_neutral_unsort

I had to sort the apache log from the date,
I found this nice Scrip:

#!/bin/sh
if [ ! -f $1 ]; then
echo "Usage: $0 "
exit
fi
echo "Sorting $1"
sort -t ' ' -k 4.9,4.12n -k 4.5,4.7M -k 4.2,4.3n -k 4.14,4.15n -k 4.17,4.18n -k 4.20,4.21n $1 > $2

Script um via ssh auf den eine bliebige IP und Port via ssh Tunnel zuzugreifen
#! /bin/bash
# establish a connection to customer
# use Firefox with htp://localhost:8888
ssh -L 8888:"targetIP":"targetPort" root@host.office-on-the.net -p 22

Einfach aus einem Laufwerk eine iso Datei machen:

paede@kamino:~$ cat /dev/scd0 > /home/paede/Myiso.iso

das scheint eine nicht soo profesionelle Methode die funktioniert, das soll besser sein:

Instead, you should be using the right tool for the right job. In this case, you need to check out the ‘readom’ command (read optical media). It does exactly what you’re looking for, and has built in error checking.

readom dev=/dev/scd0 f=/home/shamanstears/test.iso

If you want to record the ISO, then you should be using ‘wodim’, not ‘dd’, or any other horrible “solution”.

wodim -v -eject /home/shamanstears/test.iso