Install Dropbox under Ubuntu

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

";
?>

# create delayed start
# run this as user
sed -i 's|dropbox start -i|/usr/sbin/dropbox_start_dely|g' ~/.config/autostart/dropbox.desktop

# run this as root
cat < /usr/sbin/dropbox_start_dely
#!/bin/sh
sleep 120
ionice -c 3 dropbox start -i
EOF

chmod a+x /usr/sbin/dropbox_start_dely

Create account and get free Dropbox account with extra 250mb space
https://www.dropbox.com/referrals/NTQxNzA2OTU5

Enable folder share
http://www.dropbox.com/enable_shmodel

Links
http://wiki.ubuntuusers.de/Dropbox
http://www.getdropbox.com/download?plat=lnx.x86
http://www.maximumpc.com/article/features/15_things_you_have_know_about_dropbox

Install Skype from repository

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

";
?>

Fix upside down webcam
<?php
$URL="https://raw.githubusercontent.com/panticz/scripts/master/fix_skype_upsidedown_webcam.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 with snap
sudo snap install skype --classic

Disable "contacts comes online" notification
# Notify
sed -i 's|1|0|g' /home/${USER}/.Skype/*/config.xml
sed -i 's|1|0|g' /home/${USER}/.Skype/*/config.xml

# Sound
sed -i 's|1|0|g' /home/${USER}/.Skype/*/config.xml
sed -i 's|1|0|g' /home/${USER}/.Skype/*/config.xml

Links
https://www.linuxbabe.com/ubuntu/install-skype-ubuntu-18-04-lts-desktop
http://wiki.ubuntuusers.de/Canonical_Partner - Ubuntu partner repository
http://www.semanticpool.de/hidden-skype-emoticons/ - hidden skype emoticons
https://help.ubuntu.com/community/SkypeTroubleshooting
https://wiki.ubuntu.com/SkypeWebCams

Magento Shadowbox (Rewrite EasyLightBox to Shadowbox)

# install easy light box
http://www.magentocommerce.com/magento-connect/TemplatesMaster/extension/1487/magento-easy-lightbox

# xml
edit
./app/design/frontend/default/default/layout/easylightbox.xml
replace
easylightbox
to
shadowbox

# phtml
copy
./app/design/frontend/default/default/template/easylightbox/media.phtml
to
./app/design/frontend/default/default/template/shadowbox/media.phtml
edit or download
http://www.panticz.de/sites/default/files/magento/shadowbox/media.phtml

# js
copy
./custom/shadowbox/shadowbox.js
to

Install VirtualBox

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

";
?>
--allow-unauthenticated

Fix kernel module
sudo /etc/init.d/vboxdrv setup

Links
http://wiki.ubuntuusers.de/VirtualBox/Installation
http://www.virtualbox.org/wiki/Linux_Downloads
http://www.panticz.de/node/143

Install Java JRE

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

";
?>

Download Oracle Java JRE & JDK using a script
https://ivan-site.com/2012/05/download-oracle-java-jre-jdk-using-a-script/

Fix mozilla java plugin
JAVA_HOME=/usr/lib/jvm/jdk1.7.0
MOZILLA_HOME=~/.mozilla
mkdir $MOZILLA_HOME/plugins
ln -s $JAVA_HOME/jre/lib/i386/libnpjp2.so $MOZILLA_HOME/plugins
or
ln -s $JAVA_HOME/jre/lib/amd64/libnpjp2.so $MOZILLA_HOME/plugins
or
ln -s /usr/lib/jvm/java-7-oracle/jre/lib/amd64/libnpjp2.so ~/.mozilla/plugins/

Links
http://wiki.ubuntuusers.de/make-jpkg
https://github.com/flexiondotorg/oab-java6 - Create a local apt repository for Sun Java 6 and/or Oracle Java 7 packages.
http://www.webupd8.org/2012/01/install-oracle-java-jdk-7-in-ubuntu-via.html
http://www.webupd8.org/2011/03/install-java-in-ubuntu-1104-natty.html
http://www.sysadminslife.com/linux/howto-oracle-sun-java-7-installation-unter-debian-6-squeeze/

Fix Magento order tax view

mkdir -p ./app/design/frontend/default/default/template/tax/order
cp ./app/design/frontend/base/default/template/tax/order/tax.phtml ./app/design/frontend/default/default/template/tax/order
<?php
$URL="http://" . $_SERVER['SERVER_NAME'] . "/sites/default/files/magento/tax/tax.phtml.diff";
echo "

";
$c = curl_init();
curl_setopt($c, CURLOPT_URL, $URL);
echo htmlspecialchars(curl_exec($c));
curl_close($c);
echo "

";
?>

mkdir -p ./app/design/frontend/default/default/template/sales/order/
cp ./app/design/frontend/base/default/template/sales/order/totals.phtml ./app/design/frontend/default/default/template/sales/order
<?php
$URL="http://" . $_SERVER['SERVER_NAME'] . "/sites/default/files/magento/tax/totals.phtml.diff";
echo "

";
$c = curl_init();
curl_setopt($c, CURLOPT_URL, $URL);
echo htmlspecialchars(curl_exec($c));
curl_close($c);
echo "

";
?>