Posts Tagged ‘14.04’

# 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
# 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
cd
sudo rm -rf LibreCAD
sudo apt-get update
sudo apt-get purge librecad
sudo apt-get install g++ gcc make git-core libqt4-dev qt4-qmake libqt4-help
sudo apt-get install  qt4-dev-tools libboost-all-dev libmuparser-dev libfreetype6-dev pkg-config
sudo apt-get build-dep librecad
git clone https://github.com/LibreCAD/LibreCAD.git
cd LibreCAD/
qmake-qt4 -r
sudo make
sudo make install
~/LibreCAD/unix/librecad
# install prerequisites for p7zip compilation process:
cd
sudo DEBIAN_FRONTEND=noninteractive apt-get --yes --force-yes install build-essential checkinstall
sudo DEBIAN_FRONTEND=noninteractive apt-get --yes --force-yes install unp git g++-4.8
sudo DEBIAN_FRONTEND=noninteractive apt-get --yes --force-yes purge p7zip
sudo DEBIAN_FRONTEND=noninteractive apt-get --yes --force-yes build-dep p7zip
# compile and install newest version of p7zip via Github:
cd
sudo rm -rf p7zip
git clone https://github.com/Zap-Labs/p7zip.git
cd p7zip/
sudo ./install.sh
sudo make
sudo checkinstall
apt-cache show p7zip
# Terminal output should look similar to this output:
#$ apt-cache show p7zip
#Package: p7zip
#Status: install ok installed
#Priority: extra
#Section: checkinstall
#Installed-Size: 1804
#Maintainer: root
#Architecture: i386
#Version: 20160110-1
#Provides: p7zip
#Description: Package created with checkinstall 1.6.2
#Description-md5: 556b8d22567101c7733f37ce6557412e
#Package: p7zip
#Priority: optional
#Section: universe/utils
#Installed-Size: 951
#Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
#Original-Maintainer: Mohammed Adnène Trojette <adn+deb@diwi.org>
#Architecture: i386
#Version: 9.20.1~dfsg.1-4+deb7u1build0.14.04.1
#Depends: libc6 (>= 2.4), libgcc1 (>= 1:4.1.1), libstdc++6 (>= 4.1.1)
#Suggests: p7zip-full
#Filename: pool/universe/p/p7zip/p7zip_9.20.1~dfsg.1-4+deb7u1build0.14.04.1_i386.deb
#Size: 301336
#MD5sum: 541431830c54c4b6019f3f2285cd8bfb
#SHA1: 5f10e1eaf5efdf0b7e93f0f132923467d4662ab1
##SHA256: 2cbdd55618015b8cef617e4c47140e657e2a3124787b02393899506d05a3017b
#Description-en: 7z file archiver with high compression ratio
# p7zip is the Unix command-line port of 7-Zip, a file archiver that
# archives with high compression ratios.
7za | head -n3
# Terminal output should look similar to this output:
#7-Zip (a) [32] 15.09 beta : Copyright (c) 1999-2015 Igor Pavlov : 2015-10-16
#p7zip Version 15.09 beta (locale=en_US.UTF-8,Utf16=on,HugeFiles=on,32 bits,2 CPUs x86)
which 7za
# /usr/local/bin/7za
#############################################################################################
# install and run newest version of bleachbit (cleanup utility) in Ubuntu 14.04 LTS 64-bit
#############################################################################################
# install prerequisites for bleachbit
cd
sudo DEBIAN_FRONTEND=noninteractive apt-get --yes --force-yes  install build-essential unp git python2.7
sudo DEBIAN_FRONTEND=noninteractive apt-get --yes --force-yes  install lynx-cur html-xml-utils python-gtk2
# install and run newest version of bleachbit (cleanup utility) in Ubuntu 14.04 LTS 64-bit
cd
rm *.tar.bz2
rm download*
sudo rm -rf bleachbit*
URL=`echo "http://bleachbit.sourceforge.net/download/source" | wget -O- -i- --no-check-certificate | hxnormalize -x| lynx -stdin -dump -hiddenlinks=listonly -nonumbers|grep bz2| tail -n 1`
wget --no-check-certificate `echo $URL`
tar xvjf bleachbit*tar.bz2 # unpack the archive
cd bleachbit* # change directory
make -C po local # build translations (optional)
sudo python bleachbit.py # start BleachBit GUI
# install prerequisites for lnav compilation process:
cd
sudo DEBIAN_FRONTEND=noninteractive apt-get --yes --force-yes install build-essential checkinstall
sudo DEBIAN_FRONTEND=noninteractive apt-get --yes --force-yes install unp git g++ libgpm-dev
sudo DEBIAN_FRONTEND=noninteractive apt-get --yes --force-yes purge lnav 
sudo DEBIAN_FRONTEND=noninteractive apt-get --yes --force-yes build-dep lnav
# install newest version of lnav
cd
git clone https://github.com/tstack/lnav.git
cd lnav
sudo ./autogen.sh
sudo ./configure
sudo make
sudo checkinstall
# while running checkinstall, make sure to manually set Version to 0.7.3 (latest version)
apt-cache show lnav
# Terminal output should be similar to this:
#Package: lnav
#Status: install ok installed
#Priority: extra
#Section: checkinstall
#Installed-Size: 3428
#Maintainer: root
#Architecture: amd64
#Version: 0.7.3-1
#Provides: lnav
#Description: Package created with checkinstall 1.6.2
#Description-md5: 556b8d22567101c7733f37ce6557412e
lnav -V
# Terminal output should be similar to this:
# lnav 0.7.3-150-g7a476ca
# how to compile and install the newest version of tomcat webserver from Github in Ubuntu 14.04 LTS 64-bit using a bash shell script
# install newest Oracle java version (=prerequisite for ant)
cd
sudo DEBIAN_FRONTEND=noninteractive add-apt-repository  --yes ppa:webupd8team/java
sudo DEBIAN_FRONTEND=noninteractive apt-get --yes --force-yes  update
sudo DEBIAN_FRONTEND=noninteractive apt-get --yes --force-yes  install oracle-java8-installer
java -version
# Terminal output should look like this:
# java version "1.8.0_60"
# Java(TM) SE Runtime Environment (build 1.8.0_60-b27)
# Java HotSpot(TM) 64-Bit Server VM (build 25.60-b23, mixed mode)

# install prerequisites for tomcat
cd
sudo DEBIAN_FRONTEND=noninteractive apt-get --yes --force-yes  install build-essential checkinstall
sudo DEBIAN_FRONTEND=noninteractive apt-get --yes --force-yes  install python-software-properties javahelper  libecj-java
sudo DEBIAN_FRONTEND=noninteractive apt-get --yes --force-yes  install  lynx-cur  default-jdk unp git
sudo DEBIAN_FRONTEND=noninteractive apt-get --yes --force-yes  purge tomcat6 tomcat7 junit4 junit maven ant ant-optional

# install newest version of maven (=prerequisite for junit)
cd
sudo rm -rf maven*
sudo rm -rf ~/apps/maven
git clone https://github.com/apache/maven.git
cd maven
sudo DEBIAN_FRONTEND=noninteractive apt-get --yes --force-yes  install ant ant-optional
ant -Dmaven.home="$HOME/apps/maven/apache-maven-SNAPSHOT"
cd ~/maven/apache-maven/target
unp apache-maven-*-bin.tar.gz
sudo rm /usr/bin/mvn
sudo ln -s ~/maven/apache-maven/target/apache-maven-*/bin/mvn  /usr/bin/mvn
mvn -v
# example of Terminal output:
#Apache Maven 3.3.2-SNAPSHOT
#Maven home: $HOME/maven/apache-maven/target/apache-maven-3.3.2-SNAPSHOT
#Java version: 1.7.0_76, vendor: Oracle Corporation
#Java home: /usr/lib/jvm/java-7-oracle/jre
#Default locale: en_US, platform encoding: UTF-8
#OS name: "linux", version: "4.0.0-040000rc3-lowlatency", arch: "amd64", family: "unix"

# install newest junit version (=prerequisite for ant and tomcat)
cd
sudo rm -rf junit
git clone https://github.com/junit-team/junit.git
cd junit
sudo mvn install

# remove old versions of tomcat and ant
cd
sudo rm -rf tomcat*
sudo rm -rf /opt/apache-tomcat*
sudo rm -rf /opt/apache-ant*
sudo rm -rf ant
sudo rm -rf apache-ant*
sudo DEBIAN_FRONTEND=noninteractive apt-get --yes --force-yes  purge ant ant-optional

#set JAVA_HOME
cd
export JAVA_HOME=/usr/lib/jvm/java-8-oracle 
source ~/.bashrc

# install ant (ant version >= 1.9.5 is prerequisite for compiling tomcat)
cd
git clone https://github.com/apache/ant.git
cd ant
export JAVA_HOME=/usr/lib/jvm/java-8-oracle
./build.sh
sudo mv /usr/bin/ant /usr/bin/antBACKUP
sudo ln -s ~/ant/dist/bin/ant  /usr/bin/ant
ant -version
# output should look like this:
# Apache Ant(TM) version 1.9.7alpha compiled on October 16 2015


# install tomcat
cd
git clone https://github.com/apache/tomcat.git
cd tomcat
# sudo chown -R `whoami`:`whoami` ~/.wine
sudo ant release
mkdir ~/tomcat/bin
sudo cp -R ~/tomcat/output/dist/bin/* ~/tomcat/bin
mkdir ~/tomcat/lib
sudo cp -R ~/tomcat/output/dist/lib/* ~/tomcat/lib
mkdir ~/tomcat/logs/
touch ~/tomcat/logs/catalina.out
mkdir ~/tomcat/temp/
sudo chown -R  `whoami`:`whoami` ~/tomcat

# test tomcat configuration (part 1)
# !!! WARNING: The following command sudo ant test can take a long time to complete. This is normal !!!!
# the following test took 50 minutes 20 seconds to complete on my computer:
sudo ant test
# check for errors from previous test using this command:
grep ERR ~/tomcat/output/build/logs/*

# test tomcat configuration (part 2)
bash ~/tomcat/bin/version.sh
# output of previous version command should look like this:
# Using CATALINA_BASE:   ~/tomcat
# Using CATALINA_HOME:   ~/tomcat
# Using CATALINA_TMPDIR: ~/tomcat/temp
# Using JRE_HOME:        /usr/lib/jvm/java-8-oracle
# Using CLASSPATH:       ~/tomcat/bin/bootstrap.jar:~/tomcat/bin/tomcat-juli.jar
# Server version: Apache Tomcat/9.0.0-dev
# Server built:   Oct 16 2015 12:37:41 UTC
# Server number:  9.0.0.0
# OS Name:        Linux
# OS Version:     4.3.0-040300rc5-lowlatency
# Architecture:   amd64
# JVM Version:    1.8.0_60-b27
# JVM Vendor:     Oracle Corporation
bash ~/tomcat/bin/configtest.sh

# start tomcat server
bash ~/tomcat/bin/catalina.sh start

# test tomcat server using console based webbrowser:
lynx http://localhost:8080
# press q key twice to exit lynx browser session

sudo apt-get update
sudo apt-get purge gnome-schedule
sudo apt-get build-dep gnome-schedule
sudo apt-get install dh-autoreconf build-essential checkinstall
sudo apt-get install dpatch libffi-dev python-gnome2 python-gnome2-dev python-gobject-2-dev
sudo apt-get install python-gtk2-dev python-pyorbit python-pyorbit-dev
cd
rm -rf gnome-schedule
git clone https://github.com/GNOME/gnome-schedule.git
cd gnome-schedule
sudo aclocal
sudo ./autogen.sh
sudo aclocal
sudo make
# IMPORTANT: Please apply following changes while running checkinstall !
# Make sure to change the Name from gnome to gnome-schedule
# Make sure to change the Version from 'schedule' to the digit 1
# If you do not edit the name or version value, checkinstall will fail to create
# a new Ubuntu .deb package and/or overwrite the gnome package !
sudo checkinstall
apt-cache show gnome-schedule
cd /tmp
sudo rm -rf pdf2djvu*
rm index*
wget --no-check-certificate https://bitbucket.org/jwilk/pdf2djvu/downloads/
URL=`grep xz index.html |head -n 1|cut -d"\"" -f6`
wget --no-check-certificate https://bitbucket.org/`echo $URL`
sudo apt-get update
sudo apt-get install aptitude build-essential unp checkinstall
sudo aptitude install libgraphicsmagick++1-dev libgraphicsmagick1-dev liblcms2-dev liblcms2-2
sudo aptitude install libexiv2-dev libgexiv2-dev libuuidm-ocaml-dev libuuidm-ocaml-dev libkexiv2-dev
sudo apt-get build-dep pdf2djvu
unp pdf2djvu-*.tar.xz 
cd pdf2djvu-*/
sudo ./configure
sudo make
sudo checkinstall
pdf2djvu --version
# Output of the last Terminal command should look similar to the following output:
# pdf2djvu 0.9.1
# + DjVuLibre 3.5.25
# + Poppler 0.24.5
# + GraphicsMagick++ 1.3.18 (Q8)
# + Exiv2 0.23
apt-cache show pdf2djvu
# Package: pdf2djvu
# Status: install ok installed
# Priority: extra
# Section: checkinstall
# Installed-Size: 1288
# Maintainer: root
# Architecture: amd64
# Version: 0.9.1-1
# Provides: pdf2djvu
# Description: Package created with checkinstall 1.6.2
# Description-md5: 556b8d22567101c7733f37ce6557412e