install

warning: Creating default object from empty value in /data/web/1/000/027/003/273448/htdocs/panticz.de/modules/taxonomy/taxonomy.pages.inc on line 33.

Install NetBeans

wget https://raw.githubusercontent.com/panticz/installit/master/install.netbeans.sh -O - | bash -

#!/bin/bash

if [ "$1" == "-j" ]; then
  # Java SE only
  URL=http://download.netbeans.org/netbeans/8.2/final/bundles/netbeans-8.2-javase-linux.sh
else
  # with all included programming languages
  URL=http://download.netbeans.org/netbeans/8.2/final/bundles/netbeans-8.2-linux.sh
fi

# install Java JDK
wget -q https://raw.githubusercontent.com/panticz/installit/master/install.java-jdk.sh -O - | bash -

# download and install netbeans from homepage
wget -q ${URL} -O /tmp/netbeans-linux.sh
sudo bash /tmp/netbeans-linux.sh --silent

# cleanup
rm /tmp/netbeans-linux.sh

# configure jdk
echo netbeans_jdkhome="/usr/lib/jvm/java-8-oracle" >> /usr/local/netbeans-8.2/etc/netbeans.conf

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

Acrobat Reader

wget https://raw.githubusercontent.com/panticz/installit/master/install.acroread.sh -O - | bash -

#!/bin/bash

# create debconf answer file
sudo debconf-set-selections <<\EOF
acroread acroread/default-viewer boolean false
EOF

# enable partner repository
sudo sed -i "s/# \(deb .* partner\)/\1/" /etc/apt/sources.list
sudo apt-get update -qq

# install acrobat reader
sudo apt-get install -y acroread

# set evince as default pdf viewer
sudo sed -i 's/application\/pdf.*$/application\/pdf=evince.desktop/g' /etc/gnome/defaults.list

# TODO
# disable Firefox PDF plugin

# OPTIONAL:
sudo add-apt-repository "deb http://archive.canonical.com/ubuntu $(lsb_release -sc) partner"
sudo apt-get -y install acroread-fonts

Install TeamViewer under Ubuntu

wget https://raw.githubusercontent.com/panticz/installit/master/install.teamviewer.sh -O - | bash -

#!/bin/bash

URL=http://download.teamviewer.com/download/teamviewer_i386.deb

# add required 32 bit architecture on a 64 bit system
sudo dpkg --add-architecture i386

# install required applications
sudo apt-get install -y wget

# download teamviewer
wget -q ${URL} -O /tmp/teamviewer.deb

# install teamviewer
sudo apt install -y /tmp/teamviewer.deb

# clean up
rm /tmp/teamviewer.deb

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

Install docky, gnome-do, gnome-shell and zeitgeist

# install gnome-do
sudo add-apt-repository ppa:do-core/ppa
sudo apt-get update
sudo apt-get install gnome-do

# install zeitgeist
sudo add-apt-repository ppa:zeitgeist/ppa
sudo apt-get update
sudo aptitude install zeitgeist

# install gnome-shell
sudo add-apt-repository ppa:ricotz/testing
sudo apt-get install gnome-shell
gnome-shell --replace

# Links
http://wiki.go-docky.com/index.php?title=List_of_helpers
https://addons.mozilla.org/de/thunderbird/addon/72199 - Docky Unread Count (Thunderbird extension)

Skipfish

sudo apt-get install libidn11-dev libssl-dev
wget http://skipfish.googlecode.com/files/skipfish-1.29b.tgz -P /tmp
tar xzf /tmp/skipfish-1.29b.tgz -C /tmp
cd /tmp/skipfish
make
cp dictionaries/default.wl /tmp/skipfish/skipfish.wl
/tmp/skipfish/skipfish -o /tmp/x http://www.panticz.de

Terratec Cinergy T USB XXS

# install firmware für dvbt (/lib/firmware/dvb-usb-dib0700-1.20.fw)
sudo apt-get install linux-firmware
sudo apt-get install kaffeine
sudo apt-get install libxine1-plugins libxine1-all-plugins

# Links
http://kuparinen.org/martti/comp/ubuntu/en/terratecxxs.html
http://forum.xbmc.org/showthread.php?t=51945&highlight=dvb-t

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

wget https://raw.githubusercontent.com/panticz/installit/master/install.libreoffice.sh -O - | bash -

#!/bin/bash

# add ppa repository
sudo add-apt-repository -y ppa:libreoffice/ppa
sudo apt-get update -qq

# install
sudo apt-get install -y libreoffice
sudo apt-get install -y libreoffice-gnome libreoffice-help-de libreoffice-l10n-de libreoffice-officebean libreoffice-java-common libreoffice-base
sudo apt-get install -y hunspell-de-de hunspell-en-us hyphen-de mythes-de

# remove unnecessary gnome menu entries
sed -i 's|Education;Science;||' /usr/share/applications/libreoffice-math.desktop

# fix libjpipe
[ -f /usr/lib/libjpipe.so ] || sudo ln -s /usr/lib/libreoffice/program/libjpipe.so /usr/lib/libjpipe.so

# do we need this?
#sudo apt-get install -y openoffice.org openoffice.org-style-human openoffice.org-java-common

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 Firefox from PPA

wget https://raw.githubusercontent.com/panticz/installit/master/install.firefox.sh -O - | bash -

#!/bin/bash

# add repository if necessary
RELEASE=$(lsb_release -rs | tr -d ".")
if [ ${RELEASE} -le 1104 ]; then
  sudo add-apt-repository -y ppa:mozillateam/firefox-stable
  sudo apt-get update -qq
fi

# install firefox
sudo apt-get install -y firefox

# install language packs
sudo apt-get install -y firefox-locale-de firefox-locale-en

Global Firefox extensions folder
/usr/lib/thunderbird-addons/extensions/

OPTIONAL: install flash
wget http://fpdownload.macromedia.com/get/flashplayer/pdc/11.2.202.233/install_flash_player_11_linux.x86_64.tar.gz -O /tmp/install_flash_player.tar.gz
tar -xzf /tmp/install_flash_player.tar.gz -C /tmp
cp /tmp/libflashplayer.so /usr/lib/firefox-addons/plugins/

OPTIONAL, install german language pack
http://www.gtlib.gatech.edu/pub/mozilla.org/firefox/releases/3.6/linux-i686/xpi/de.xpi

Leo translate engine
http://dict.leo.org/pages.ende/toolbars_de.html

Gmail Notifier
http://www.nuko.org:4649/addons/temp/gmail_notifier-0.6.4.3.privateBuild1-fx.xpi

Links
http://www.daniel-ritter.de/blog/ubuntuzilla-immer-die-aktuelle-firefox-und-thunderbirdversion-unter-ubuntu

Syndicate content