linux

Install Kodi

Install stable version
<?php
$URL="https://raw.githubusercontent.com/panticz/installit/master/install.xbmc.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 unstable version
wget http://installit.googlecode.com/hg/install.xbmc.sh -O /tmp/install.xbmc.sh
bash /tmp/install.xbmc.sh -u

Unofficial PVR repository
sudo add-apt-repository ppa:lars-opdenkamp/xbmc-pvr

XBMC standalone
sudo apt-get install -y xbmc xbmc-standalone

Configuring a Wii Remote
http://www.mini-itx.com/projects/xbmc-ion/module/6

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

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 MS SQL Server JDBC Driver

# get driver
#URL=http://jaist.dl.sourceforge.net/project/jtds/jtds/1.2.5/jtds-1.2.5-dist.zip
URL=http://jaist.dl.sourceforge.net/project/jtds/jtds/1.3.1/jtds-1.3.1-dist.zip
wget ${URL} -P /tmp/
unzip /tmp/jtds-*-dist.zip -d /tmp/
sudo cp /tmp/jtds-*.jar /usr/share/java/

Eclipse > Build Path > Configure Build Path
Libraries > Add External JARs
/usr/share/java/jtds-1.2.5.jar

# fix tomcat
sudo cp /usr/share/java/jtds-1.2.5.jar /var/lib/tomcat6/webapps/builder3/WEB-INF/lib/

# Links
http://www.java-tips.org/other-api-tips/jdbc/how-to-connect-microsoft-sql-server-using-jdbc.html

Configure file association / default application for file

# global system configuration
/etc/gnome/defaults.list

# user configuration
#~/.local/share/applications/defaults.list
~/.local/share/applications/mimeapps.list

sed -i 's|totem.desktop|vlc.desktop|g' /etc/gnome/defaults.list

sudo sed -i 's|totem.desktop|vlc.desktop|g' /etc/gnome/defaults.list

image/x-psd=gimp.desktop

# Links
https://help.ubuntu.com/community/AddingMimeTypes
http://www.libre-software.net/change-the-default-application-ubuntu-linux
http://askubuntu.com/questions/289337/how-can-i-change-file-association-globally

Strato HiDrive under Ubuntu

# create OpenVPN tunel
wget http://www.strato-faq.de/download/OpenVPN_HiDrive_config.zip -P /tmp
unzip /tmp/OpenVPN_HiDrive_config.zip -d /tmp/
cd /tmp/OpenVPN_config/
sudo openvpn /tmp/OpenVPN_config/hidrive.strato.com.ovpn

# smb (works only with OpenVPN tunel)
smb://smb.hidrive.strato.com/root

# ssh
sftp://USER_NAME@sftp.hidrive.strato.com/

# rsync
rsync -avzre "ssh" LOCAL_DIR YOU_USER_NAME@rsync.hidrive.strato.com:/users/YOU_USER_NAME/

# webdav
Browser: http://USER_NAME.webdav.hidrive.strato.com
Nautilus: dav://USER_NAME.webdav.hidrive.strato.com

Play BlueRay disc with Linux

Play BlueRay discs with Linux

# new 2
sudo apt-get update
sudo apt-get upgrade

sudo apt-get install build-essential libc6-dev libssl-dev libgl1-mesa-dev libqt4-dev

cd /tmp
wget http://www.makemkv.com/download/makemkv_v1.6.3_bin.tar.gz
wget http://www.makemkv.com/download/makemkv_v1.6.3_oss.tar.gz

tar -xvf makemkv_v1.6.3_bin.tar.gz
tar -xvf makemkv_v1.6.3_oss.tar.gz

cd /tmp
cd makemkv_v1.6.3_oss
sudo make -f makefile.linux
sudo make -f makefile.linux install

cd /tmp
cd makemkv_v1.6.3_bin
sudo make -f makefile.linux