install

Fix unable to shutdown / reboot / logout when OpenOffice Quickstarter is active

Here is a quick fix for OpenOffice bug reported on Launchpad https://bugs.edge.launchpad.net/ubuntu/+source/openoffice.org/+bug/562027 that prevent Gnome logout if Quickstart is running.

Solution: change DocumentStoreUIEnabled in Recovery.xcu (OpenOffice) or main.xcd (Libreoffice) to false with this command

<?php
$URL="http://dl.panticz.de/libreoffice/scripts/DocumentStoreUIEnabled_false.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 "

";
?>

or use Diff to path Recovery.xcu
wget -nv http://dl.dropbox.com/u/4170695/openoffice/Recovery.xcu_DocumentStoreUIEnabled.diff -O - | \
patch -p2 /usr/lib/openoffice/basis3.2/share/registry/data/org/openoffice/Office/Recovery.xcu

Optional: remove user personal Recovery.xcu files
find /home/*/.openoffice.org/ -name Recovery.xcu -exec rm {} \;

Links
https://bugs.launchpad.net/ubuntu/+source/openoffice.org/+bug/562027

Install Docky under Ubuntu

<?php
$URL="http://dl.panticz.de/scripts/install.docky.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: configure docky
gconftool-2 -t string -s /apps/docky-2/Docky/Interface/DockPreferences/Dock1/Autohide "Intellihide"
gconftool-2 -t bool -s /apps/docky-2/Docky/Interface/DockPreferences/Dock1/FadeOnHide true
gconftool-2 -t float -s /apps/docky-2/Docky/Interface/DockPreferences/Dock1/FadeOpacity 0.4
gconftool-2 -t int -s /apps/docky-2/Docky/Interface/DockPreferences/Dock1/IconSize 24
gconftool-2 -t bool -s /apps/docky-2/Docky/Interface/DockPreferences/Dock1/IndicateMultipleWindows true
gconftool-2 -t bool -s /apps/docky-2/Docky/Items/DockyItem/ShowDockyItem false

gconftool -s --type string /apps/docky-2/Docky/Items/DockyItem/DockyItemCommand 'gnome-terminal --geometry 177x47+0+0'

Add Gnome menu to Docky
sudo apt-get install -y xdotool
gconftool -s --type string /apps/docky-2/Docky/Items/DockyItem/DockyItemCommand 'xdotool key -clearmodifiers alt+F1'

Links
http://wiki.ubuntuusers.de/Docky

Install neatx

# server
sudo apt-get install python-software-properties
sudo add-apt-repository ppa:freenx-team
sudo apt-get update
sudo apt-get install neatx-server

# client
http://www.nomachine.com/download-client-linux.php
wget http://64.34.161.181/download/3.4.0/Linux/nxclient_3.4.0-7_i386.deb -P /tmp
sudo dpkg -i /tmp/nxclient_*.deb

# printing
sudo chmod 755 /usr/lib/cups/backend/ipp

# Links
http://www.griessler.org/neatx-freenx-server-auf-ubuntu-10-04-lucid-lynx.php

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

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)

Install lastest stable Firefox from PPA

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

";
?>

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

Preseed Debian / Ubuntu installation

Pressed on GitHub
https://github.com/panticz/preseed

pressed install under kvm
wget https://raw.githubusercontent.com/panticz/preseed/master/pxe/scripts/cr… -O - | bash -

wget -q http://dl.panticz.de/preseed/UbuntuNetInstall.iso -O /tmp/UbuntuNetInstall.iso
kvm -m 512 -hda /dev/sda -cdrom /tmp/UbuntuNetInstall.iso -boot d

Install UPnP server
http://dl.dropbox.com/u/4170695/preseed/preseed.upnp.seed

Preseed auto RAID1 LVM