Install myTinyTodo under Ubuntu

# install webserver
http://www.panticz.de/install_webserver

# download and extract mytinytodo
wget http://www.mytinytodo.net/latest.php -O /tmp/mytinytodo.zip
unzip /tmp/mytinytodo.zip -d /var/www

# OPTIONAL: download and extract german translation
wget http://www.mytinytodo.net/lang/zip/de.zip -O /tmp/de.zip
unzip /tmp/de.zip -d /var/www/mytinytodo/lang/

# rename directory to "todo"
mv /var/www/mytinytodo/ /var/www/todo/

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

# set file permissions
chown -R www-data:www-data /var/www/todo
chmod u+w /var/www/todo/db/config.php

# init db
http://YOUR_SERVER/todo/setup.php

# remove setup.php file
rm /var/www/todo/setup.php

# configure mytinytodo
cat < /var/www/todo/db/config.php
<?php
$config = array();
$config['db'] = 'mysql';
$config['mysql.host'] = 'localhost';
$config['mysql.db'] = 'mytinytodo';
$config['mysql.user'] = 'user';
$config['mysql.password'] = 'pass';
$config['prefix'] = 'mtt_';
$config['url'] = '';
$config['mtt_url'] = '';
$config['title'] = 'My ToDo';
#$config['lang'] = 'en';
#$config['lang'] = 'de';
$config['password'] = '';
$config['smartsyntax'] = 1;
$config['autotz'] = 1;
$config['autotag'] = 1;
$config['duedateformat'] = 1;
$config['firstdayofweek'] = 1;
$config['session'] = 'files';
$config['clock'] = 24;
$config['dateformat'] = 'j M Y';
$config['dateformatshort'] = 'j M';
$config['template'] = 'default';
$config['showdate'] = 1;
?>
EOF

# redirect by domain name
cat <> /var/www/.htaccess
RewriteEngine on

RewriteCond %{HTTP_HOST} ^(.*)(todo)(.*)$
RewriteRule ^$ http://intranet/todo [L,R=301]
EOF

# Links
http://www.mytinytodo.net/