Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
NMPP
FaVAD
Commits
ca79a7e8
Commit
ca79a7e8
authored
Jan 13, 2020
by
Michele Compostella
Browse files
Variuos fix and improvements
parent
f028d804
Changes
1
Show whitespace changes
Inline
Side-by-side
assets/installer.sh
View file @
ca79a7e8
#!/bin/bash
###############################################################################################################
## Copyright (C) 2020 Udo von Toussaint, F. J. Dominguez-Gutierrez, Markus Rampp, Michele Compostella
## Max-Planck-Institut für Plasmaphysik, Boltzmannstrasse 2, 85748 Garching, Germany
## Max-Planck Computing and Data Facility, Giessenbachstrasse 2, 85748 Garching, Germany
##
## This program is free software; you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published by
## the Free Software Foundation; either version 2, or (at your option)
## any later version.
##
## This program is distributed in the hope that it will be useful,
## but WITHOUT ANY WARRANTY; without even the implied warranty of
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
## along with this program; if not, write to the Free Software
## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
## 02110-1301, USA.
##
#########################################################################
#########################################################################
# This installer works on Ubuntu 18.04 LTS
# This installer works on Ubuntu 18.04 LTS
#
#
# It installs for the user all requirement for running
# It installs all the requirements for running the fingerprinting
# the fingerprinting and visualization of defects in
# and visualization of defects in damages crystal structures
# damages crystal structures
#
#
# Run
as root with
:
# Run
with (requires root permissions)
:
# ./installer.sh /installation_path/ full_name email_address organization
# ./installer.sh /installation_path/ full_name email_address organization
#
#
# For example:
# For example:
...
@@ -16,14 +36,18 @@
...
@@ -16,14 +36,18 @@
#
#
#########################################################################
#########################################################################
# echo an error message if any command fails
set
-e
# Updating distro and installing packages
# Updating distro and installing packages
echo
"Updating LINUX distribution..."
echo
"Updating LINUX distribution..."
apt update
sudo
apt update
apt upgrade
-y
echo
"Installing LINUX packages..."
echo
"Installing LINUX packages..."
apt
install
-y
gcc gfortran libblas-dev liblapack-dev python python-pip python3 python3-pip ffmpeg imagemagick
sudo
apt
install
gcc gfortran libblas-dev liblapack-dev python python-pip python3 python3-pip ffmpeg imagemagick libsm6 libgl1 libgl1-mesa-dri libgl1-mesa-glx libpcre3-dev libxt6
apt
install
-y
libsm6 libgl1 libgl1-mesa-dri libgl1-mesa-glx libpcre3-dev libxt6
# Storing repository location
REPO_FOLDER
=
"
$(
cd
"
$(
dirname
"
$0
"
)
"
;
pwd
-P
)
"
# Creating software folder
# Creating software folder
mkdir
-p
$1
mkdir
-p
$1
...
@@ -64,7 +88,8 @@ pushd $1
...
@@ -64,7 +88,8 @@ pushd $1
# Installing KDTREE
# Installing KDTREE
echo
"Installing KDTREE..."
echo
"Installing KDTREE..."
tar
xvzf ~/kdtree2.tar.gz
-C
$1
/.
KDTREE_PATH
=
$REPO_PATH
/../software/
tar
xvzf
$KDTREE_PATH
/kdtree2.tar.gz
-C
$1
/.
cd
kdtree2/
cd
kdtree2/
gfortran
-c
kdtree2.f90
gfortran
-c
kdtree2.f90
gfortran
-o
kdtree2_iaea_v03.x kdtree2_iaea_v03.f90 kdtree2.o
gfortran
-o
kdtree2_iaea_v03.x kdtree2_iaea_v03.f90 kdtree2.o
...
@@ -82,14 +107,15 @@ pushd $1
...
@@ -82,14 +107,15 @@ pushd $1
mkdir
archive/
mkdir
archive/
mv
./QUIP/GAP.tar.gz archive/
mv
./QUIP/GAP.tar.gz archive/
mv
./voro++-0.4.6.tar.gz archive/
mv
./voro++-0.4.6.tar.gz archive/
mv
~
/kdtree2.tar.gz archive/
cp
$KDTREE_PATH
/kdtree2.tar.gz archive/
mv
./visit2_13_3.linux-x86_64-ubuntu18-wmesa.tar.gz archive/
mv
./visit2_13_3.linux-x86_64-ubuntu18-wmesa.tar.gz archive/
mv
./visit-install2_13_3 archive/
mv
./visit-install2_13_3 archive/
popd
popd
echo
echo
echo
"Installation complete"
echo
"Installation complete!"
echo
"A copy of the installed packages is available in
$1
/archive"
echo
echo
exit
0
exit
0
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment