Ubuntu Trusty DomU

# configure domU
[ -z $DOMAIN_NAME ] && DOMAIN_NAME=trusty
[ -z $DOMAIN_MAC ] && DOMAIN_MAC=00:00:00:00:aa:bb
[ -z $DOMAIN_RAM ] && DOMAIN_RAM=1Gb
[ -z $DOMAIN_HDD ] && DOMAIN_HDD=8Gb

# create domU on LVM (for image file use --dir=/root,)
xen-create-image \
--hostname=${DOMAIN_NAME} \
--dist=trusty \
--lvm=vg1 \
--fs=ext4 \
--dhcp \
--mac=${DOMAIN_MAC} \
--mirror=http://archive.ubuntu.com/ubuntu \
--size=${DOMAIN_HDD} \
--memory=${DOMAIN_RAM} \
--swap=${DOMAIN_RAM}
--genpass=0 \
--password=t00r \
--apt_proxy=http://apt-cacher:3142/ \
--vcpus $(cat /proc/cpuinfo | grep pro

Add extra language to Drupal

# download and extract german language pack
http://drupal-de.googlecode.com/files/de.po.zip

# enable locale module
Administer > Site building >Modules
admin/build/modules
check: Locale

# install german language
Administer > Site building > Translate interface > Import
admin/build/translate/import
Language file: de.po/de.po
Import into: German
[Import]

# set german to default language
Administer > Site configuration > Languages
admin/settings/language
German: Default

# Links
http://drupal.org/project/de

Change Magento Default Theme

# Modern
cd /var/www
/var/www/pear mage-setup /var/www
/var/www/pear install magento-core/Interface_Frontend_Default_Modern

System > Configuration > Design > Themes
Default: modern

# Blank
cd /var/www
/var/www/pear mage-setup /var/www
/var/www/pear install magento-core/Interface_Frontend_Default_Modern

System > Configuration
General > Design > Themes
Default: blank

# Links
http://www.magentocommerce.com/design_guide/articles/working-with-magento-themes#head-say-hello-to-multiple

Lightbox

cd /var/www/
./pear install magento-community/magento_easy_lightbox

# enable by sql
INSERT INTO core_config_data (scope, scope_id, path,value)
VALUES ('default', 0 ,'easy_lightbox/general/enabled', '1')
ON DUPLICATE KEY UPDATE value = '1';

# clear cache
rm -r var/cache/

# enable in admin menu
change settings > Preferred State: "beta"
magento-community/magento_easy_lightbox

first LOGOUT and LOGIN again!

Admin > Templates-master >Easy Lightbox > General
Enable EasyLightbox: Yes

LINKS
http://www.magentocommerce.com/extension/1487/magento-easy-lightbox

Extend Magento Product Attribute Api

# OPTIONAL, install patch
apt-get install -y patch

# patch on command line
cd /var/www/
wget http://www.panticz.de/sites/default/files/api.xml_.diff -O /tmp/api.xml.diff
patch -p2 ./app/code/core/Mage/Catalog/etc/api.xml < /tmp/api.xml.diff

wget http://www.panticz.de/sites/default/files/Api.php_.diff -O /tmp/Api.php.diff
patch -p2 ./app/code/core/Mage/Catalog/Model/Product/Attribute/Api.php < /tmp/Api.php.diff

1. go to magento installation folder, for example /var/www/magento

2.