install

Install NetBeans

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

";
?>

# configure jdk
# echo netbeans_default_options="netbeans_default_options="--jdkhome" | sudo tee -a /opt/netbeans/etc/netbeans.conf
# Cannot find java. Please use the --jdkhome switch

Add git repository
https://www.youtube.com/watch?v=mzzAUEFS4vs
https://netbeans.org/kb/docs/ide/github_nb_screencast.html

OPTIONAL: install MySQL driver
sudo apt-get install libmysql-java

DEP: fix ubuntu locale settings for german
sed -i 's|en_US.UTF-8|de_DE.UTF-8|g' /etc/scim/global

DEP: disable compiz effects (Visual Effects (System > Preferences > Appearance > Visual Effects => none)
metacity --replace &

Fix bold fonts under Linux
sudo apt-get remove -y fonts-unfonts-core

Ansible role
git clone https://github.com/panticz/ansible.git /tmp/ansible
cd /tmp/ansible/
export ANSIBLE_ROLES_PATH=$(pwd)/roles
ansible-playbook -K /dev/stdin <Links
http://www.techytalk.info/netbeans-cannot-find-java-please-use-jdkhome-switch/ - HowTo (re)configure JAVA JDK
http://wiki.netbeans.org/NBPackagingPlan

APC Back-UPS ES 700G under Ubuntu

# install
apt-get install -y apcupsd

# configure
sed -i 's|UPSCABLE smart|UPSCABLE usb|g' /etc/apcupsd/apcupsd.conf
sed -i 's|UPSTYPE apcsmart|UPSTYPE usb|g' /etc/apcupsd/apcupsd.conf
sed -i 's|DEVICE /dev/ttyS0|DEVICE|g' /etc/apcupsd/apcupsd.conf
sed -i 's|ISCONFIGURED=no|ISCONFIGURED=yes|g' /etc/default/apcupsd

# start apcupsd demon
/etc/init.d/apcupsd start

# get status
apcaccess status

# configure
/etc/init.d/apcupsd stop
apctest

# monitor
tail -f /var/log/apcupsd.events

# OPTIONAL: configure /etc/apcupsd/apccontrol

# LINKS

syslinux

echo 'APT::Cache-Limit "50331648";' >> /etc/apt/apt.conf

# add debian sid repository
cat < /etc/apt/sources.list.d/sid.list
deb http://ftp.de.debian.org/debian sid main
EOF
sudo apt-get update -qq

apt-get install -y --force-yes syslinux

rm /etc/apt/sources.list.d/sid.list
sudo apt-get update -qq

# on i386
wget http://ftp.de.debian.org/debian/pool/main/s/syslinux/syslinux-common_4.01+dfsg-1_all.deb -P /tmp

# on amd64
wget http://ftp.de.debian.org/debian/pool/main/s/syslinux/syslinux_3.86+dfsg-1_amd64.deb -P /tmp

LibreOffice / OpenOffice

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

";
?>

Configure default paper size
echo "a4" > /etc/papersize

# fix broken libjpipe.so /
ln -s /usr/lib/libreoffice/program/libjpipe.so /usr/lib/libjpipe.so

#http://artfiles.org/documentfoundation.org/libreoffice/stable/5.0.1/deb/x86_64/LibreOffice_5.0.1_Linux_x86-64_deb.tar.gz
#dpkg -x libreoffice5.0-ure_5.0.1.2-2_amd64.deb /tmp/
#dpkg -i libreoffice5.0-ure_5.0.1.2-2_amd64.deb
#ln -sf /opt/libreoffice5.0/program/libjpipe.so /usr/lib/libjpipe.so

# optional, start LibreOffice quicksart to speedup
ln -s /usr/lib/libreoffice/share/xdg/qstart.desktop /etc/xdg/autostart/

Links
https://launchpad.net/~libreoffice/+archive/ppa?field.series_filter=oneiric
http://de.openoffice.org/downloads/quick.html?platform=ooo_beta
http://download.openoffice.org/680/index.html
http://tombuntu.com/index.php/2007/06/23/speed-up-openoffice/
http://wiki.documentfoundation.org/ReleasePlan/3.5 - Release Plan
http://download.documentfoundation.org/libreoffice/ - Official downloads (deb)

Install lastest stable Thunderbird

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

";
?>

Releases
https://www.thunderbird.net/en-US/thunderbird/releases/

Extensions
mv /usr/lib/thunderbird.old/extensions/* /usr/lib/extensions/

german language
http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/3.1/linux-i686/xpi/de.xpi

Filter
~/.thunderbird/*.default/ImapMail/*/msgFilterRules.dat

Lightning (calender support)
apt-get install xul-ext-lightning
module name: {e2fda1a4-762b-4020-b5ad-a41df1933103}
https://addons.mozilla.org/de/thunderbird/addon/lightning/versions/
http://releases.mozilla.org/pub/mozilla.org/calendar/lightning/releases/1.0b2rc3/linux-i686/lightning.xpi

# lighting on 64 bit
https://help.ubuntu.com/community/ThunderbirdLightning
wget http://releases.mozilla.org/pub/mozilla.org/calendar/lightning/releases/1.0b2rc3/contrib/linux-x86_64/lightning.xpi

command line arguments
http://kb.mozillazine.org/Command_line_arguments_%28Thunderbird%29

# shortcuts
https://www.thunderbird-mail.de/wiki/Kurzbefehle

### OLD

# german speel check
https://addons.mozilla.org/de/thunderbird/addon/9361

# Lightning for Thunderbird 3
http://ftp.mozilla.org/pub/mozilla.org/calendar/lightning/nightly/linux-xpi/
http://ftp.mozilla.org/pub/mozilla.org/calendar/lightning/nightly/latest-comm-1.9.1/linux-xpi/lightning.xpi
https://addons.mozilla.org/de/thunderbird/downloads/file/75390/xpi/lightning-1.0b1-tb+sm-linux.xpi?src=addondetail

# add german language
#wget http://mozmirror01.true.nl/pub/mozilla.org//thunderbird/releases/3.0/linux-i686/de/thunderbird-3.0.tar.bz2 -P /tmp
wget ftp://ftp.mozilla.org/pub/thunderbird/releases/latest-3.1/linux-i686/de/thunderbird-3.1.2.tar.bz2 -P /tmp
tar xjf /tmp/thunderbird*.tar.bz2 -C /tmp
#cp /tmp/thunderbird/chrome/de.jar /usr/lib/thunderbird-3.0.1pre/chrome/
cp /tmp/thunderbird/chrome/de.* /usr/lib/thunderbird-3.1.1/chrome/

# calender file
local.sqlite
http://sqlitebrowser.sourceforge.net/ - browser for sqlite files

Open winmail.dat in thunderbird
LookOut - https://addons.mozilla.org/en-US/thunderbird/addons/policy/0/4433/33018

Send Email from command line
FILE=/tmp/file-$(date +'%Y%m%dT%H%M%S').json
thunderbird -compose "to='foo@example.com',cc='bar@example.com',subject='my_subject',body='my_text',attachment=${FILE}"

Links
http://egon.resonar.de/2010/07/20/thunderbird-3-1-1-ppa-fuer-ubuntu-maverick-lucid-karmic-jaunty-hardy/
ftp://ftp.mozilla.org/pub/thunderbird/releases/3.0b2/linux-i686/de/
https://wiki.mozilla.org/Thunderbird:Thunderbird3

Install Fax client for Hylafax (YajHFC)

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

";
?>

# OPTIONAL, set evince as default fax viewer
sed -i 's|gnome-open|evince|g' ~/.yajhfc/settings

Links
http://www.yajhfc.de/
http://wiki.xtronics.com/index.php/Faxfrontend
http://www.yajhfc.de/downloads/deb-packages
http://developer.berlios.de/forum/forum.php?forum_id=34299