Magento german tax

ADMIN BACKEND:
Sales > Tax > Product Tax Classes
rename classes:
default => Umsatzsteuerpfichtige Güter 19%
Shipping => Versand
Taxable Goods => Umsatzsteuerpfichtige Güter 7%
add classes:
Umsatzsteuerfreie Güter

# create tax class
Sales > Tax > Customer Classes
rename:
Retail Customer => inkl.

Postfix

# view mailqueue
mailq

# view email count in mailqueue
mailq | egrep '^--'

# delete single mail from queue
postsuper -d Queue_ID

# delete all mailqueues
postsuper -d ALL

# send waiting messages
postfix flush

# delete duplicate mail
mailq | awk 'BEGIN { RS = "" } / foo\.bar@example\.com$/ { print $1 }' | tail -1 | postsuper -d -

# statistic
apt-get install pflogsumm
pflogsumm --detail 0 /var/log/mail.log

# view spam
grep "policyd-weight.*action=" /var/log/mail.log | grep -v PREPEND | grep mike

# find mails bigger then 50mb
find /home/ -type f -size +50000k -exe

Install Roundcube

#
# INSTALL
#
# install from repository
apt-get install -y roundcube

OR

http://www.panticz.de/install_webserver

# download
URL=http://freefr.dl.sourceforge.net/sourceforge/roundcubemail/roundcubemail-0.3-beta.tar.gz
wget $URL -P /tmp

# install
cd /var/www
tar xzf /tmp/roundcubemail-*.tar.gz

mv roundcubemail*/ roundcubemail
chmod 777 /var/www/roundcubemail/temp/ /var/www/roundcubemail/logs/

#
# DATABASE
#
# create
echo "CREATE DATABASE roundcubemail; GRANT all ON roundcubemail.* TO 'roundcube'@'localhost' IDENTIFIED BY 'pass';" | mysql -u root -p

#
# CONF

Install Webserver

DB_ROOT_PASS=terceS

debconf-set-selections <<\EOF
mysql-server-5.5 mysql-server/root_password_again string terceS
mysql-server-5.5 mysql-server/root_password string terceS
EOF

# install some basic tools
apt-get -y install bzip2 wget vim

# install apache
apt-get -y install apache2

# install php
apt-get -y install php5
# OPTIONAL
apt-get -y install php5-mcrypt php5-gd php5-curl php5-cli

# install mysql
apt-get -y install mysql-server php5-mysql libapache2-mod-auth-mysql

# configure apache modules
a2enmod auth_mysql

# install ssl
http://www.panticz.de/apache2_ope

Install x2go PXE

# server
http://www.panticz.de/node/370

# client
#echo "deb http://x2go.obviously-nice.de/deb/ lenny main" >>/opt/x2gothinclient/etc/apt/sources.list
cat < /etc/apt/sources.list.d/x2go.list
deb http://x2go.obviously-nice.de/deb/ lenny main
EOF
apt-get update
apt-get install -y --force-yes x2goclient-gtk

# install and configure pxe server
apt-get install -y tftpd-hpa syslinux openbsd-inetd nfs-kernel-server debootstrap

# configure pxe envirement
cp /usr/lib/syslinux/pxelinux.0 /var/lib/tftpboot/
cp /usr/lib/syslinux/vesamenu.c32 /var/lib/tftpboot/
cp /usr/lib/sysl

x2go domU

# set domU parameter
[ -z $DOMAIN_NAME ] && DOMAIN_NAME=x2go
[ -z $DOMAIN_MAC ] && DOMAIN_MAC=00:00:00:a0:b0:c0
[ -z $DOMAIN_RAM ] && DOMAIN_RAM=1Gb
[ -z $DOMAIN_HDD ] && DOMAIN_HDD=8Gb

# create domU
http://www.panticz.de/Xen-domU-ubuntu-jaunty
or
http://www.panticz.de/Ubuntu-Karmic-domU-under-Debian-Lenny-Dom0

# add to autostart (optional)
ln -s /etc/xen/${DOMAIN_NAME} /etc/xen/auto

# start domU
xm create -c ${DOMAIN_NAME}

# old # apt-get install gnome-desktop-environment
apt-get install debconf-utils

apt-get -y install ubuntu-desktop

# new
gpg --keyserver

Hylafax to Email

# configure dispatch
cat < /etc/hylafax/FaxDispatch
SENDTO=YOU@YOUR_DOMAIN
FILETYPE=pdf
TEMPLATE=de
EOF

# configure postfix
postconf -e 'smtp_sasl_security_options = noanonymous'
postconf -e 'smtp_sasl_password_maps = hash:/etc/postfix/sasl_password'
postconf -e 'smtp_sasl_auth_enable = yes'
postconf -e 'relayhost = smtp'
echo "smtp faxmaster:faxmaster" > /etc/postfix/sasl_password
postmap /etc/postfix/sasl_password
/etc/init.d/postfix restart

# get sender name from url (optional)
cat < /etc/hylafax/FaxDispatch
SENDTO=YOU@YOUR.DOMAIN
FILETYPE=pdf
TEMPLATE=de

Ubuntu Jaunty domU under Debian Lenny Dom0

# configure domU
[ -z $DOMAIN_NAME ] && DOMAIN_NAME=jaunty
[ -z $DOMAIN_MAC ] && DOMAIN_MAC=00:00:00:00:aa:bb
[ -z $DOMAIN_RAM ] && DOMAIN_RAM=512Mb
[ -z $DOMAIN_HDD ] && DOMAIN_HDD=4Gb

# create vm
xen-create-image --hostname=${DOMAIN_NAME} --dhcp --mac=${DOMAIN_MAC} \
--lvm=vg01 --dist=jaunty --mirror=http://archive.ubuntu.com/ubuntu --size=${DOMAIN_HDD} --memory=${DOMAIN_RAM} --swap=${DOMAIN_RAM}

# rename vm config
mv /etc/xen/${DOMAIN_NAME}.cfg /etc/xen/${DOMAIN_NAME}

# post config domU
mount /dev/vg01/${DOMAIN_NAME}-disk /mnt/
# configure hvc0
sed -i 's|tty1|hvc0|g' /mnt