Docker-in-Docker (DinD) capabilities of public runners deactivated. More info

Commit 217d13e6 authored by Philippe Gauron's avatar Philippe Gauron
Browse files

Merge branch 'installation' into 'master'

Installation

See merge request CCThomX/installation!18
parents 57fcd309 10f4a47d
......@@ -16,6 +16,8 @@ DEPENDENCIES=1
DATABASE=0
## TANGO base tools
TANGO=0
## CLIENT for users
CLIENT=1
## TANGO DB (depends on TANGO and DATABASE)
TANGO_DB=1
## Archiving (depends on DATABASE)
......
......@@ -174,9 +174,17 @@ SERVERNAME=${HOSTNAME}
info "server will be installed with name '${SERVERNAME}'"
## Definition of user's group
SUDO_GROUP=$(id -g -n "${SUDO_USER}")
## Definition of user:group
if [ -z "${SUDO_USER}" ]
then
#if SUDO is not used
SUDO_USER=$(id -u -n)
SUDO_GROUP=$(id -g -n)
warning "script is ran without sudo, user:group will be set to ${SUDO_USER}:${SUDO_GROUP}"
else
SUDO_GROUP=$(id -g -n "${SUDO_USER}")
fi
......@@ -242,6 +250,10 @@ if [ "${TANGO}" -eq "1" ]
then
echo "TANGO base tools"
fi
if [ "${CLIENT}" -eq "1" ]
then
echo "CLIENT for users"
fi
if [ "${TANGO_DB}" -eq "1" ]
then
echo "TANGO DB"
......@@ -456,6 +468,33 @@ then
fi
if [ "${CLIENT}" -eq "1" ]
then
echo
info "downloading software for client"
## connection to remote windows
apt install -d --assume-yes rdesktop
## included: PDF reader (evince), bureautique suite (libreoffice), video reader (VLC)
## library for Basler (Pylon)
if [ ! -f "${REPO_DIR}/tmp/pylon.zip" ]
then
wget -c "https://owncloud.lal.in2p3.fr/index.php/s/hwx2isIFuYlVuAd/download" -P "${REPO_DIR}/tmp" -O pylon.tar.gz
fi
## libraries for LabVIEW GUI
dpkg --add-architecture i386
apt update
apt-get install -d --assume-yes libx32gcc-6-dev libgl1-mesa-dev:i386 libxinerama1:i386
## fonts for LabView GUI
apt-get install -d assume-yes xfonts-75dpi-transcoded xfonts-100dpi-transcoded
fi
echo
echo
info "downloading software for offline installation finished with success"
......@@ -668,6 +707,45 @@ fi
### installation of Client for users
if [ "${CLIENT}" -eq "1" ]
then
echo
info "downloading software for TANGO base tools"
## connection to remote windows
apt install --assume-yes rdesktop
## included: PDF reader (evince), bureautique suite (libreoffice), video reader (VLC)
## library for Basler (Pylon)
## downloading
if [ ! -f "${REPO_DIR}/tmp/pylon.zip" ]
then
wget -c "https://owncloud.lal.in2p3.fr/index.php/s/hwx2isIFuYlVuAd/download" -O "${REPO_DIR}/tmp/pylon.tar.gz"
fi
## extracting archive
tar xzf "${REPO_DIR}/tmp/pylon.tar.gz" -C "${REPO_DIR}/tmp/"
## extracting inside archive
cd "${REPO_DIR}/tmp/pylon-5*"
tar xzf pylonSDK*.tar.gz -C /opt
## libraries for LabVIEW GUI
apt-get install --assume-yes libx32gcc-6-dev libgl1-mesa-dev:i386 libxinerama1:i386
## ?? , nécessite les dépôts non-free
apt-get install --assume-yes libgl1-nvidia-glx:i386
## fonts for LabView GUI
apt-get install assume-yes xfonts-75dpi-transcoded xfonts-100dpi-transcoded
fi
### installation of ArchivingRoot ###
if [ "${ARCHIVING}" -eq "1" ]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment