[ Content | View menu ]

Did You Know 3.0

22.11.2008

Abgesehen von irgendwelchen Zukunftserahnungen ist das Video nett anzusehen und sehr gut gemacht. Die Musik stammt von Fatboy Slim - Right Here, Right Now.

Allgemein - 0 Comments

Creative gibt offene X-Fi Treiber heraus

10.11.2008

Endlich! Nach über 2 Jahren closed-Source Treibern für die Creative X-Fi Reihe gibt nun Creative die Sourcen für die Treiber heraus und lizensiert diese unter GPL v2, wie gulli berichtet.

Die offizielle Nachricht findet sich im Creative-Board.

Allgemein - 0 Comments

mdadm Raid-5 erweitern

06.11.2008

mdadm --add /dev/md0 /dev/sde1 /dev/sdf1
mdadm --grow /dev/md0 --raid-devices=6
 
resize2fs /dev/md0

Allgemein - 0 Comments

Thunderbird + GMail - Alle Odner / Labels auf neue Nachrichten prüfen

03.11.2008

Ich habe bei Thunderbird mit GoogleMail das Problem, das nicht alle Ordner / Labels auf neue Nachrichten geprüft werden. Mit folgender Konfigurationsänderung prüft Thunderbird absofort alle Ordner / Label auf neue Nachrichten:

Extras -> Einstellungen -> Erweitert -> Konfiguration bearbeiten

mail.check_all_imap_folders_for_new = true

Allgemein - 0 Comments

Datendurchsatz von Netzwerken mit Linux und Windows messen

02.11.2008

Windows

Unter Windows gibt es das Freeware Server-Client Programm netcps (Download) das eine normale TCP/IP-Verbindung nutzt um ohne Festplattenzugriff Daten zu versenden und empfangen.

Server

Auf dem Server starten wir das Programm mit folgendem Parameter:

netcps.exe -server

Client

Auf dem Client starten wir das Programm ebenfalls, übergeben aber mit “-m500″ die Anzahl der zu übertragenen Daten in Megabyte an. Der zweite Parameter ist die IP des Servers, der auf dem Standardport 4455 lauscht:

netcps.exe -m500 192.168.0.40

In meinem 1Gbit-Netzwerk erziele ich dabei im Durchschnitt 90MB/s:

Linux

Für Linux gibt es das freie Programm iperf, das von der Anwendung her fast gleich ist.

Server

iperf -s

Client

iperf -c 192.168.0.4

Ergebnis zwischen meinem Router und meinem Fileserver:

Allgemein - 0 Comments

Kaffee Drucker

26.10.2008

Allgemein - 0 Comments

Xen: vif could not be connected. Backend device not found.

23.10.2008

Sollte folgende Fehlermeldung beim Versuch eine domU zu starten auftreten, sicherstellen ob brctl installiert ist und gegebenenfalls nach installieren!

Device 0 (vif) could not be connected. Backend device not found.

Falls brctl fehlt:

apt-get install bridge-utils

Allgemein - 0 Comments

Xen erkennt Ram nicht vollständig

Auf meiner neuen Hetzner DS5000 Kiste wird bei meinem 2.6.18-6-xen-686 Kernel-Image (aus den Debian Repositorys) die 4GB Ram nicht vollständig erkannt.

Abhilfe schafft ein modifizierter Grub.

Allgemein - 0 Comments

Setup-Script nach Debian Installation

Nach einer Debian Installation passt man meist als erstes die Arbeitsumgebung an, d.h. installiert nützliche Pakete, Konfiguriert das Aussehen der Bash-Shell, installiert Crontabs und Konfiguriert Pakete nach eigenem Wunsch.

Mein Basis-Setup, was ich grundsätzlich nach jeder Debian-Installation durchführe, findet hier ihr:

#!/bin/bash
 
# install packages
apt-get install vim screen mc vnstat ntpdate ssh
 
# add crontabs
cat >> /etc/crontab <<EOF
# vnstat
* *     * * *   root    /usr/bin/vnstat -u -i eth0
 
# time
5 1     * * *   root    /usr/sbin/ntpdate ntp.fhg.de
EOF
 
# add .bashrc
cat > /root/.bashrc <<EOF
umask 022
 
export LS_OPTIONS=' --color=auto'
eval \$(dircolors)
alias ls='ls \$LS_OPTIONS -l'
alias ll='ls \$LS_OPTIONS -l'
alias l='ls \$LS_OPTIONS -lA'
 
alias t-sys='tail -f /var/log/syslog'
 
BLACK="\[\033[0;30m\]"
BLUE="\[\033[0;34m\]"
GREEN="\[\033[0;32m\]"
CYAN="\[\033[0;36m\]"
RED="\[\033[0;31m\]"
PURPLE="\[\033[0;35m\]"
BROWN="\[\033[0;33m\]"
LIGHT_GRAY="\[\033[0;37m\]"
DARK_GRAY="\[\033[1;30m\]"
LIGHT_BLUE="\[\033[1;34m\]"
LIGHT_GREEN="\[\033[1;32m\]"
LIGHT_CYAN="\[\033[1;36m\]"
LIGHT_RED="\[\033[1;31m\]"
LIGHT_PURPLE="\[\033[1;35m\]"
YELLOW="\[\033[1;33m\]"
WHITE="\[\033[1;37m\]"
NO_COLOUR="\[\033[0m\]"
 
export PS1="\u\$DARK_GRAY@\$NO_COLOUR\h\$DARK_GRAY:\$NO_COLOUR\w\$GREEN\\\$\$NO_COLOUR "
EOF
 
# edit vimrc to enable syntax highlighting
sed -e 's/\"syntax/syntax/g' -i /etc/vim/vimrc

Download setup.sh

Allgemein - 0 Comments

Howto install Debian Etch on USB-Stick

22.10.2008

This howto describes how to install debian etch on a usb-stick. The usb-stick will be bootable and your debian system runs directly on it (for example as emergency system).

Variables

/dev/sdb = usb-device
/mnt/usb = mountpoint for usb-device
_ = in the chrooted-system

Install

clean usb-device

deletes mbr, all partitons and all data:

shred -n 0 -v -z /dev/sdb

or

dd if=/dev/zero of=/dev/sdb

partition

create one primary partiton with type 83 and no swap (swap = faster dead for usb-device):

cfdisk /dev/sdb

format

format as ext2 (ext2 is like ext3, but without journaling = no faster dead for the usb-device):

mkfs.ext2 /dev/sdb1

mount

mount usb-device:

mount /dev/sdb1 /mnt/usb

debootstrap

install debian system with debootstrap:

debootstrap --arch i386 etch /mnt/usb http://ftp.us.debian.org/debian

device-uuid

get UUID from usb-device (save it for later):

blkid /dev/sdb1
Output: /dev/sdb1: UUID="e659faf9-c042-4c1b-b831-469c30392a3c" TYPE="ext2"

grub

install grub on usb-device:

grub-install --recheck --root-directory=/mnt/usb /dev/sdb

bind dev

mount --bind /dev /mnt/usb/dev

chroot

chroot into new system:

chroot /mnt/usb

_ install base packages

Notice: Do not abort the installation of the kernel!

apt-get install locales linux-image-2.6.18-6-686 grub

_ locale

set it to ‘en_US.UTF-8′:

dpkg-reconfigure locales

_ generate menu.lst

grub-install didnt create it (dont know why):

update-grub

Configure

_ network

/etc/network/interfaces

_ hostname

/etc/hostname

_ hosts

/etc/hosts

_ fstab

/etc/fstab

Use ‘UUID=“YOUR_USB_BLKID”‘ for the device (instead /dev/sdb1), cause the uuid is a permanent identifier of your usb-device and will not change.

Example:

proc            /proc           proc    defaults        0       0
UUID="e659faf9-c042-4c1b-b831-469c30392a3c"       /               ext2    defaults,errors=remount-ro 0       1

_ grub

/boot/grub/menu.lst

Go to this line: ‘# kopt=root=/dev/hda1 ro’ and change it to:

# kopt=root=UUID=YOUR_UUID_FROM_BLKID ro rootdelay=10

rootdelay = 10 waits for the usb-device to come up.

Example:

# kopt=root=UUID=e659faf9-c042-4c1b-b831-469c30392a3c ro rootdelay=10

grup update:

update-grub

_ initramfs image

update-initramfs -u all

_ exit from chroot

exit

umount

umount /mnt/usb/dev
umount /mnt/usb

Finish :-). Now you can boot your new debian system on your usb-device!

Allgemein - 0 Comments