Strato HiDrive under Ubuntu

# create OpenVPN tunel
wget http://www.strato-faq.de/download/OpenVPN_HiDrive_config.zip -P /tmp
unzip /tmp/OpenVPN_HiDrive_config.zip -d /tmp/
cd /tmp/OpenVPN_config/
sudo openvpn /tmp/OpenVPN_config/hidrive.strato.com.ovpn

# smb (works only with OpenVPN tunel)
smb://smb.hidrive.strato.com/root

# ssh
sftp://USER_NAME@sftp.hidrive.strato.com/

# rsync
rsync -avzre "ssh" LOCAL_DIR YOU_USER_NAME@rsync.hidrive.strato.com:/users/YOU_USER_NAME/

# webdav
Browser: http://USER_NAME.webdav.hidrive.strato.com
Nautilus: dav://USER_NAME.webdav.hidrive.strato.com

Install TeamViewer under Ubuntu

<?php
$URL="https://raw.githubusercontent.com/panticz/installit/master/install.teamviewer.sh";
echo "wget $URL -O - | bash -";
echo "

";
$c = curl_init();
curl_setopt($c, CURLOPT_URL, $URL);
curl_setopt($c, CURLOPT_RETURNTRANSFER, 1);
echo htmlspecialchars(curl_exec($c));
curl_close($c);
echo "

";
?>

Install without daemon
wget https://download.teamviewer.com/download/linux/teamviewer_amd64.tar.xz -O /tmp/teamviewer_amd64.tar.xz
./tv-setup checklibs
sudo apt install -y libdbus-1-3 libqt5gui5 libqt5widgets5 libqt5qml5 libqt5quick5 libqt5webkit5 libqt5x11extras5 qml-module-qtquick2 qml-module-qtquick-controls qml-module-qtquick-dialogs qml-module-qtquick-window2 qml-module-qtquick-layouts

Ansible role
https://github.com/panticz/ansible/tree/master/roles/teamviewer/

Installation documentation
https://community.teamviewer.com/t5/Knowledge-Base/How-to-update-TeamViewer-on-Linux-via-repository/ta-p/30666

Restart daemon
sudo systemctl start teamviewerd.service

Documentation
$ teamviewer help
teamviewer Start TeamViewer user interface (if not running).
teamviewer help Print this help screen.
teamviewer version Print version information.
teamviewer info Print version, status, id.
teamviewer ziplog Create a zip containing all teamviewer logs (useful when contacting support).
teamviewer license [show|accept] Interactively agree or show/agree to End User License Agreement.
teamviewer setup Configure headless modes (non-gui/console)
teamviewer passwd [PASSWD] Set a password (useful when installing remote (ssh).
teamviewer daemon status Show current status of the TeamViewer daemon.
teamviewer daemon start Start TeamViewer daemon.
teamviewer daemon stop Stop TeamViewer daemon.
teamviewer daemon restart Stop/Start TeamViewer daemon.
teamviewer daemon disable Disable TeamViewer daemon - don't start daemon on system startup.
teamviewer daemon enable Enable TeamViewer daemon - start daemon on system startup (default).

Uninstall
sudo apt-get purge *teamviewer*
rm -r ~/.config/teamviewer*
rm -r ~/.local/share/teamviewer*

Links
http://askubuntu.com/questions/267010/how-to-configure-teamviewer-so-it-does-not-load-unless-needed

Hetzner Xen Web Server

# reinstall root server
start hetzner rescue system

installimage
Debian
Debian-60-squeeze-64-minimal
HOSTNAME your_host_name
PART /boot ext2 256M
PART lvm vg0 all
LV vg0 root / ext4 10G
LV vg0 swap swap 4G
#PART swap swap 2G
#PART /boot ext3 256M
#PART / ext3 all

ALT + 0
Yes

# install xen
http://www.panticz.de/install-xen

# create domU
DOMAIN_NAME=www
DOMAIN_IP=178.1.1.1
DOMAIN_GW=178.63.46.213
[ -z ${DOMAIN_RAM} ] && DOMAIN_RAM=512Mb
[ -z ${DOMAIN_HDD} ] && DOMAIN_HDD=8Gb

#
# Squeze
#
xen-create-image --hostname=${DOMAIN_NAME} \
--netmask=255.255.255

Webserver UTF-8 encoding

# Apache
/etc/apache2/conf.d/charset

AddDefaultCharset utf-8

# PHP
/etc/php5/apache2/php.ini

[PHP]
default_charset = "utf-8"
[mbstring]
mbstring.language = utf-8
mbstring.internal_encoding = utf-8
mbstring.http_input = utf-8
mbstring.http_output = utf-8

# MySQL
/etc/mysql/my.cnf

[client]
default-character-set = utf8
[mysqld]
default-character-set = utf8
character-set-server = utf8
collation-server= utf8_general_ci
init_connect = 'SET collation_connection = utf8_general_ci'
init_connect = 'SET NAMES utf8'
[mysqldump]
default-character-set = utf8
[mysqlimport]

Drupal Galleria

http://drupal.org/project/galleria

http://ftp.drupal.org/files/projects/galleria-6.x-1.0.tar.gz

# enable modules
/admin/build/modules
Upload
Galleria

# create gallery node type
/admin/content/types
Name: Galleria
Type: galleria
Description: This module allows users to create image galleries using the Galleria jQuery plugin

Workflow settings
Galleria from attachments: Enabled

# disable submitted by
/admin/build/themes/settings
Display post information on
checkout: Galleria

# Create Galleria
/node/add/galleria

Add Breadcrumb to Magento

wget http://www.mxperts.de/wp-content/uploads/2009/06/breadcrumb.zip -P /tmp/

unzip /tmp/breadcrumb.zip -d /tmp/

mv "/tmp/Breadcrumb/app/design/frontend/default/[ihr theme]" /tmp/Breadcrumb/app/design/frontend/default/default/
mv "/tmp/Breadcrumb/skin/frontend/default/[ihr theme]" /tmp/Breadcrumb/skin/frontend/default/default/

cd /var/www/
cp -a /tmp/Breadcrumb/* .

# add to ./app/design/frontend/default/default/layout/local.xml

skin_jsjs/jquery.easing.1.3.js