# Livestreamer Twitch GUI - A multi platform Twitch.tv browser for Livestreamer
# bash install script
sudo apt-get update
sudo apt-get install livestreamer x11-utils xdg-utils git
cd
sudo rm -rf livestreamer-twitch-gui
git clone https://github.com/bastimeyer/livestreamer-twitch-gui.git
cd livestreamer-twitch-gui/
sudo npm install -g grunt bower grunt-cli
npm install qunit phantomjs
npm update
bower install
grunt release
grunt
# the grunt command replaces the use of the following command:
# ~/livestreamer-twitch-gui/build/releases/livestreamer-twitch-gui/linux64/livestreamer-twitch-gui
# How to compile, install and run newest version of Orthanc DICOM server
# from Github source in Ubuntu 16.04 LTS
cd 
sudo apt-get update
sudo apt-get install build-essential unzip cmake mercurial uuid-dev libcurl4-openssl-dev liblua5.1-0-dev libgtest-dev libpng-dev libsqlite3-dev libssl-dev libjpeg-dev zlib1g-dev libdcmtk2-dev libboost-all-dev libwrap0-dev libcharls-dev libjsoncpp-dev libpugixml-dev doxygen qupzilla
sudo rm -rf Orthanc*
sudo apt-get purge orthanc
git clone https://github.com/jodogne/OrthancMirror.git
mkdir ~/OrthancBuild
cd ~/OrthancBuild/
cmake -DSTATIC_BUILD=ON -DCMAKE_BUILD_TYPE=Release ~/OrthancMirror/
sudo make
sudo make doc
./Orthanc --version
./Orthanc &
qupzilla http://localhost:8042/app/explorer.html
# press ESC key twice to ignore warning messages about Mozilla Firefox
# when using the file upload function
# How to compile and install ChucK Music Programming Language (http://chuck.stanford.edu/) from source code (via Github) in Ubuntu 16.04 LTS 64-bit:
cd
sudo apt-get update
sudo apt-get purge chuck
sudo apt-get install pulseaudio aptitude curl cmake git checkinstall build-essential  git-core
sudo apt-get build-dep chuck
sudo rm -rf chuck
git clone https://github.com/ccrma/chuck.git
cd ~/chuck/src
sudo make linux-alsa
sudo checkinstall
# during the checkinstall process, press 2 to change the name from "src" to "chuck"
apt-cache show chuck
# Terminal output should look like this:
# Package: chuck
# Status: install ok installed
# Priority: extra
# Section: checkinstall
# Installed-Size: 2104
# Maintainer: root
# Architecture: amd64
# Version: 20160612-1
# Provides: src
# Description: Package created with checkinstall 1.6.2
# Description-md5: 556b8d22567101c7733f37ce6557412e
# How to compile and install root data analysis framework from source code (via Github) in Ubuntu 14.04 LTS 64-bit:
# Please run the following Terminal commands ONE LINE AT A TIME manually in bash shell
# The following commands CANNOT be successfully run using a bash script due to the way the privilege escalation occurs!
cd
sudo apt-get update
sudo apt-get build-dep root-system
sudo apt-get install aptitude curl cmake git checkinstall build-essential  git-core 
sudo aptitude install libafterimage-dev  freeglut3-dev    libftgl-dev    libgl1-mesa-dev   libglew-dev    libglu1-mesa-dev libnet-dev libroot-net-dev
sudo aptitude install  libiodbc2-dev   libqt4-opengl-dev mesa-common-dev  libdrm-dev  libiodbc2  libdrm-intel1 libxpm-dev libxft-dev
sudo rm -rf root
git clone http://root.cern.ch/git/root.git
cd root
sudo ./configure
sudo make
# use the following command to speed up the compilation process if you are using an 8-core CPU:
#sudo make -j8
sudo su
source bin/thisroot.sh
export ROOTSYS=/home/`logname`/root
checkinstall 
# during checkinstall process, press 3 and manually change 'Version' to 20160602
apt-cache show root
ln -s $ROOTSYS/bin/root  /usr/bin/root
# exit the bash shell session, open a new Terminal window and run the following Terminal command to start the root data analysis framework:
root
 ###############################################################
# install recommended Java version for OmegaT
 ###############################################################
 sudo add-apt-repository ppa:webupd8team/java
 sudo apt-get update
 # uninstall Java 9 which is currently incompatible with OmegaT:
 sudo apt-get purge icedtea-netx oracle-java9-installer
 sudo apt-get build-dep ant omegat
 sudo apt-get install icedtea-netx oracle-java8-installer
 export JAVA_HOME=/usr/lib/jvm/java-8-oracle
 java -version
 # Terminal output should be similar to this:
 # java version "1.8.0_111"
 # Java(TM) SE Runtime Environment (build 1.8.0_111-b14)
 # Java HotSpot(TM) 64-Bit Server VM (build 25.111-b14, mixed mode)
 ###############################################################
 # install newest version of OmegaT
 ###############################################################
 cd
 sudo rm -rf OmegaT
 git clone https://github.com/OmegaT-Project/OmegaT
 cd OmegaT
# OmegaT switched from the ant to the gradlew build system in 2016:
./gradlew clean
./gradlew buildNeeded
./gradlew check
# gradlew check Terminal output should look like this:
# :compileJava UP-TO-DATE
# :processResources UP-TO-DATE
# :classes UP-TO-DATE
# :compileTestJava UP-TO-DATE
# :processTestResources UP-TO-DATE
# :testClasses UP-TO-DATE
# :test UP-TO-DATE
# :check UP-TO-DATE
# :release:WebStart-specific:check UP-TO-DATE
# BUILD SUCCESSFUL
# Total time: 1.053 secs
./gradlew run
 # installed OmegaT version should be 4.0.1 or higher
# How to compile and install OpenCPN 4.2.0 from source code (via Github) in Ubuntu 14.04 LTS 64-bit:
cd
sudo apt-get update
sudo apt-get install gettext git-core gpsd gpsd-clients libgps-dev wx-common libwxgtk3.0-dev libglu1-mesa-dev libgtk2.0-dev wx3.0-headers libbz2-dev libtinyxml-dev libportaudio2 portaudio19-dev libcurl4-openssl-dev libexpat1-dev libcairo2-dev
sudo apt-get install libcurl3 curl cmake git plplot12-driver-wxwidgets libalien-wxwidgets-perl checkinstall build-essential
sudo rm -rf OpenCPN
git clone https://github.com/OpenCPN/OpenCPN.git 
cd OpenCPN
mkdir build
cd build
cmake ../
sudo make
sudo checkinstall 
# during checkinstall process, press 2 and manually change name from build to opencpn
apt-cache show opencpn
# if you forgot to change the name of the newly built package, you need to use this command instead:
apt-cache show build
/usr/local/bin/opencpn

Source: http://opencpn.org/ocpn/book/export/html/28

# bash shell script for Ubuntu 14.04 LTS 64-bit:
# Free disk space required: around 5 GB
# Minimum internal memory/RAM requirements: 4 GB RAM minimum
# Time required to execute 'sudo make' compilation of RStudio source code: around 45 minutes, maybe even more 
# sudo checkinstall process should take around 20 minutes to finish
# REQUIRES: newest version of wget compiled from Github sources
# Copy-paste the following commands into the Terminal one by one:
# install newest version of wget from Github sources in order to solve following wget issue in Ubuntu 14.04 LTS : 
# https://github.com/chapmanb/bcbio-nextgen/issues/1133
sudo DEBIAN_FRONTEND=noninteractive apt-get update
sudo DEBIAN_FRONTEND=noninteractive apt-get --yes --force-yes install libqtwebkit-dev checkinstall qtbase5-dev pandoc r-base
sudo DEBIAN_FRONTEND=noninteractive apt-get --yes --force-yes install libboost-all-dev cmake libqt4-dev build-essential default-jdk
sudo DEBIAN_FRONTEND=noninteractive apt-get --yes --force-yes build-dep wget
cd
sudo rm -rf wget
sudo rm /usr/bin/rstudio*
git clone https://github.com/mirror/wget.git
cd wget
./bootstrap
./configure
sudo make
sudo checkinstall
# Press 3 and ENTER and then set version to 1.17.1.13
apt-cache show wget
# Terminal output should look like this:
# apt-cache show wget
# Package: wget
# Status: install ok installed
# Priority: extra
# Section: checkinstall
# Installed-Size: 3864
# Maintainer: root
# Architecture: amd64
# Version: 1.17.1.13-1
# Provides: wget
# Conffiles:
# /etc/wgetrc 618c05b4106ad20141dcf6deada2e87f obsolete
# Description: Package created with checkinstall 1.6.2
# Description-md5: 556b8d22567101c7733f37ce6557412e
# compile and install RStudio Server from source code:
cd
git clone https://github.com/rstudio/rstudio.git
cd rstudio/
mkdir build
cd build/
cd ~/rstudio/dependencies/common
bash install-common
bash install-common
cd
bash ~/rstudio/dependencies/linux/install-dependencies-debian
bash ~/rstudio/dependencies/linux/install-dependencies-debian
cd /tmp
wget http://dl.google.com/closure-compiler/compiler-latest.zip
unzip compiler-latest.zip
rm COPYING README.md compiler-latest.zip
sudo mv compiler.jar ~/rstudio/src/gwt/tools/compiler/compiler.jar
cd ~/rstudio
sudo rm -rf build
sudo cmake -DRSTUDIO_TARGET=Server -DCMAKE_BUILD_TYPE=Release
time sudo make
# sudo make install process should take around 45 minutes to finish
time sudo checkinstall
# sudo checkinstall process should take around 20 minutes to finish
apt-cache show rstudio
# Terminal output should look like this:
# Package: rstudio
# Status: install ok installed
# Priority: extra
# Section: checkinstall
# Installed-Size: 293492
# Maintainer: root
# Architecture: amd64
# Version: 20160206-1
# Provides: rstudio
# Description: Package created with checkinstall 1.6.2
# Description-md5: 556b8d22567101c7733f37ce6557412e
sudo ln -s /usr/local/lib/rstudio-server/bin/rserver /usr/bin
nohup rserver &
# then use a web browser to navigate to http://127.0.0.1:8787/ to access the RStudio Server interface