Configure network bridge

#!/bin/bash

# backup original network config
mv /etc/network/interfaces /etc/network/interfaces.org

# configure network bridge for xen
cat < /etc/network/interfaces
auto lo
iface lo inet loopback

# eth0 (internal lan)
auto eth0 eth1 xenbr1
iface eth0 inet static
address 192.168.1.111
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.5
#post-up ethtool -K eth0 tx off

# eth1 (DSL)
iface eth1 inet manual
up ifconfig eth1 0.0.0.0 promisc up

# xenbr1 (bridge between second nic

Create Webform in Drupal

# project page
http://drupal.org/project/webform

# download
# old # http://ftp.drupal.org/files/projects/webform-6.x-2.8.tar.gz
http://ftp.drupal.org/files/projects/webform-6.x-2.9.tar.gz
extract
copy webform to /sites/all/modules

# enable module
Administer > Modules
/admin/build/modules
check: Webform

# (optional, disable display post information)
Site building > Themes > Configure
/admin/build/themes/settings
checkout: Webform

# Site configuration > Languages
# admin/settings/language

# Translate interface
# /admin/build/translate/search

# String contains:

Hitachi Feature Tool over PXE

#!/bin/bash

URL=http://www.hitachigst.com/hdd/support/downloads/ftool_215_install.IMG

# download dft image
wget ${URL} -O /var/lib/tftpboot/hitachi_ftool.img

# create config for pxe boot
cat < /var/lib/tftpboot/pxelinux.cfg/hitachi_ftool.cfg
LABEL linux
MENU LABEL Hitachi Feature Tool
kernel memdisk
append initrd=hitachi_ftool.img
EOF

# add config to default config
echo "MENU INCLUDE pxelinux.cfg/hitachi_ftool.cfg" >> /var/lib/tftpboot/pxelinux.cfg/default

# LINKS
# http://www.hitachigst.com/hdd/support/download.htm

Hitachi Drive Fitness Test over PXE

#!/bin/bash

URL=http://www.hitachigst.com/hdd/support/downloads/dft32_v414_b00_install.IMG

# download dft image
wget ${URL} -O /var/lib/tftpboot/hitachi_dtf.img

# create config for pxe boot
cat < /var/lib/tftpboot/pxelinux.cfg/hitachi_dtf.cfg
LABEL linux
MENU LABEL Hitachi Drive Fitness Test
kernel memdisk
append initrd=hitachi_dtf.img
EOF

# add config to default config
echo "MENU INCLUDE pxelinux.cfg/hitachi_dtf.cfg" >> /var/lib/tftpboot/pxelinux.cfg/default

# LINKS
# http://www.hitachigst.com/hdd/support/download.htm

extractEbook.sh

#!/bin/bash

# install
# apt-get install pdftk

FILE=$1
PAGES=$2
OUT=$3

COVER=/media/lagerliste/vorlagen/ebook/cover.pdf

# check if file already exists
if [ -f ${OUT} ]; then
echo "${OUT} already exists"
exit 0
fi

# get pages
pdftk A=${COVER} B="${FILE}" cat A1 B${PAGES} output /tmp/pdftk.out.pdf

# reduce image resolution
gs -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -dPDFSETTINGS=/ebook -sOutputFile="${OUT}" -f /tmp/pdftk.out.pdf

# view
if [ -n ${DISPLAY} ]; then
evince "${OUT}"
fi

# USAGE
# ./mkEbook.sh s02_s201.pdf 1-3 ../ebook/l83_1.1_antike.pdf

Trekstor surftab wintron Atom Z3735f tablet

/home/pako/xserver-xorg-video-ati-6.6.3# fakeroot ./debian/rules binary

mkdir stampdir
>stampdir/stampdir
if [ ! -e stampdir/patches ]; then \
mkdir stampdir/patches; \
ln -s stampdir/patches .pc; \
echo 2 >stampdir/patches/.version; \
fi; \
if [ ! -e stampdir/log ]; then \
mkdir stampdir/log; \
fi; \
if [ ! -e patches ]; then \
ln -s debian/patches patches; \
fi; \
>stampdir/prepare
if ! [ `which quilt` ]; then \
echo "Couldn't find quilt.

Install Drupal SMTP authentication support module

# install SMTP Authentication Support
http://drupal.org/project/smtp

download
http://ftp.drupal.org/files/projects/smtp-6.x-1.0-beta4.tar.gz
extract
copy smtp /var/www/sites/all/modules

# install PHPMailer
#http://phpmailer.worxware.com/
#http://sourceforge.net/projects/phpmailer/files/phpmailer%20for%20php5_6/

download phpMailer v2.3 (NOT 5.x)
http://downloads.sourceforge.net/phpmailer/phpMailer_v2.3.tar.gz
extract
rename phpMailer_v2.3 to phpmailer (LOWERCASE!)
copy phpMailer/ /sites/all/modules/smtp/

# Configure
# Enable the SMTP Authentication Support module
Admi

convertToUtf.php

<?php
function convertToUtf($string) {
$string = str_replace("ü", "ü", $string);
$string = str_replace("Ãœ", "Ü", $string);
$string = str_replace("ö", "ö", $string);
$string = str_replace("Ö", "Ö", $string);
$string = str_replace("ä", "ä", $string);
$string = str_replace("Ä", "Ä", $string);
$string = str_replace("ß", "ß", $string);

return $string;
}
?>