Tomcat configuration

<?php
$URL="https://raw.githubusercontent.com/panticz/installit/master/install.tomcat.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 "

";
?>

# start
export JAVA_HOME=/usr/lib/jvm/jdk1.6.0
export JAVA_OPTS="$JAVA_OPTS -Xmx256m"
/usr/local/apache-tomcat-5.5.20/bin/startup.sh

# deploy
/opt/SDK2/bin/asadmin deploy /tmp/Intranet.war

# change defau

Send mail from console

# install
sudo apt-get install -y mailx

# configure postfix
postconf -e 'smtp_generic_maps = hash:/etc/postfix/generic'
cat <> /etc/postfix/generic
root@ubuntu.example.local info@example.com
EOF
service postfix restart
postmap /etc/postfix/generic

# configure smtp
cat < ~/.mailrc
set from="YOU@YOUR_MAIL.COM"
set smtp="YOUR_SMTP_SERVER"
set smtp-auth-user="SMTP_USER"
set smtp-auth-password="SMTP_PASS"
EOF

# test
echo "This is a test message from ${USER}@${HOSTNAME} at $(date)" | mail -s "Test email" YOU@YOUR_MAIL.COM

# v2
sudo apt-get install nullmailer

lts.conf parameter

XSERVER=nsc
LDM_USERNAME=root
LDM_PASSWORD=toor
PRINTER_0_TYPE=U
PRINTER_0_DEVICE=/dev/usb/lp0
SCREEN_02=shell
SCREEN_07=ldm
LDM_REMOTECMD="/usr/sbin/ethtool -s eth0 msglvl 0"
X_COLOR_DEPTH=16
X_VIDEORAM=4096
X_MODE_0=1024x768
X_HORZSYNC=30-70
X_VERTREFRESH=50-150
XKBLAYOUT=de
LDM_USERNAME=service
LDM_PASSWORD=terceS
SCREEN_07=startx-custom
PRINTER_0_TYPE=P
PRINTER_0_DEVICE=/dev/lp0
PRINTER_1_TYPE=U
PRINTER_1_DEVICE=/dev/usb/lp1

[LG]
X_HORZSYNC = "40-83"
X_VERTREFRESH = "55-60"
X_MODE_0 = 1280x1024

[00:33:44:55:66:77

Install OpenTTD (Transport Tycoon Deluxe) under Ubuntu

<?php
$URL="https://raw.githubusercontent.com/panticz/installit/master/install.openttd.sh";
echo "wget $URL -O - | bash -s";
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 newest Version
wget https://raw.githubusercontent.com/panticz/installit/master/install.openttd.sh -O - | bash -s -- -n

#
# OLD?
#
# sudo apt-get install -y libsdl1.2debian

# pre configure
debconf-set-selections <<\EOF
openttd openttd/datafiles select
EOF

# install openttd
sudo apt-get install -y openttd timidity
wget http://www.tt-ms.de/downloads/ttdwin302011.rar -P /tmp
mkdir /tmp/ttd
unrar x /tmp/ttdwin302011.rar /tmp/ttd

# copy data
sudo cp /tmp/ttd/*.grf /tmp/ttd/*.cat /usr/share/games/openttd/data
sudo cp /tmp/ttd/gm/* /usr/share/games/openttd/gm

# clean up
rm /tmp/ttdwin302011.rar
rm -r /tmp/ttd

# Links
http://wiki.ubuntuusers.de/Spiele/OpenTTD
http://www.openttd.org/en/download-stable
http://www.tt-ms.de/downloads/

Build GeeXboX from repository

#!/bin/bash

# install required packages
sudo apt-get install -y mercurial build-essential libncurses5-dev flex bison gawk \
gettext libreadline5 libreadline5-dev libunistring0 texinfo

# get source code
hg clone http://hg.openbricks.org/openbricks

# change into source code directory
cd openbricks/

# configure
make menuconfig

# compile
make

exit

# OLD

#
# PARAMETERS
#
GEEXBOX_PATH=~/gxdev

#
# FUNCTIONS
#
add_patch() {
echo "-- add_path ---"

# echo "http://www.uclibc.org/downloads/snapshots/uClibc-20070829.tar.bz2" > $GEEXBOX_PATH/geexbox/packa