7. Installing EUI¶
This page contains instructions for installing the EUI from scratch.
7.1. Pre-requisites¶
Install Git.
Do
sudo nano /etc/yum.repos.d/wandisco-git.repo.Copy the text below and paste into
wandisco-git.repo.[wandisco-git] name=Wandisco GIT Repository baseurl=http://opensource.wandisco.com/centos/7/git/$basearch/ enabled gpgcheck=1 gpgkey=http://opensource.wandisco.com/RPM-GPG-KEY-WANdisco Import GPG key for added repository key typing sudo rpm --import http://opensource.wandisco.com/RPM-GPG-KEY-WANdisco
Import the keys with
sudo rpm --import http://opensource.wandisco.com/RPM-GPG-KEY-WANdisco.Install git
sudo yum install git.
Install the following CentOS7 libraries for development.
sudo yum update sudo yum groupinstall "Development Tools" sudo yum install cmake boost-devel.x86_64 wget http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm sudo rpm -ivh epel-release-latest-7.noarch.rpm sudo yum install geany java-1.7.0-openjdk-develInstall the following Linux libraries to run Labview
sudo yum install glibc.i686 libstdc++.so.6 libXinerama.i686 sudo yum upgrade gnome-packagekit-common sudo yum install libglvnd-glx-1.0.1-0.8.git5baa1e5.el7.i686
- Install the following for use with Docker.
sudo yum install -y yum-utils device-mapper-persistent-data lvm2
7.2. EUI Installation¶
- Install SAL, latest instructions for this can be found here
Todo
Insert SAL technote installation guide. for ts_xml use commit f9156b8bf300e6381b2d505da058c6b6475aed1f.
7.2.1. Install TMA Operation Manager¶
git clone https://gitlab.tekniker.es/sai/projects/3151-LSST/lsst.gitcd lsstgit checkout feature-rotator-track(As of writinig this is branch to use)cd tma_management/mkdir buildcd buildcmake ..make
7.2.2. Install LabVIEW and dependencies¶
Install Labview 2015. LabVIEW package manager runs on Labview 2015. This is the only reason we install LV 2015.
Download LabVIEW2015- Extract the file.
- CD LabVIEW2015/32-bit
- ./INSTALL say yes to everything.
Install Labview 2018. Tekniker provided software was developed on LabVIEW 2018.
Download LabVIEW 2018, say yes to everything.- Extract the file.
- CD LabVIEW2018
- ./INSTALL say yes to everythin3/31/20g.
Install Labview package manager https://vipm.jki.net/download, then install the following libraries.
Note
I would like to point out an observation while downloading the libraries. For a reason that is not apparent to me the download may sometimes fail. The following are some tricks that worked for me. - right click, install - Install the rest of the libraries and come back to it - Manually find the download online
Note
if it is your first time running labVIEW you will need to make sure the port on Labview 2018 is configured and has localhost.
OpenG Toolkit, as of writing this has all but two dependencies installed. The uninstalled dependencies areOpenG Port IOandOpenG Toolkit. We only need the Toolkit, you can find the link for a manual download here https://sourceforge.net/projects/opengtoolkit/files/lib_openg_toolkit/4.x/openg.org_lib_openg_toolkit-4.0.1.9.vip/download.GPower All Toolsets, as of writing this all but two dependencies installed. The uninstalled dependencies are GPower Timing, and GPower Events. We only need Gpower Timing, attempt to install it on VI Package Manager by searching for it just as you would normally search and install any package.Hidden GemsNI GOOP Development SuiteNI Event Logger LibraryNI GXMLNI LogRotateNI Syslog LibraryCopy LabVIEW libraries created by Tekniker into the LabVIEW installation directory.
Download and unzip the Tekniker LabVIEW Libraries- cd /usr/local/natinst/LabVIEW-2018-64
- sudo rsync -ra /path/to/TeknikerLabVIEWLibraries/* .
- sudo chmod -R 777 ./*
Install Docker
- Follow these steps https://docs.docker.com/install/linux/docker-ce/centos/
- Install the latest version of Docker CE and containerd.
sudo yum install docker-ce docker-ce-cli containerd.io - Start docker.
sudo systemctl start docker - Verify that Docker CE is installed correctly by running the hello-world image.
sudo docker run hello-world
Install database
Add the user to docker users:
$ sudo usermod -aG docker $USERActivate docker to automatically launch
$ sudo systemctl start docker$ sudo systemctl enable dockerReboot machine
$ sudo rebootInstall docker compose
$ sudo curl -L "https://github.com/docker/compose/releases/download/1.24.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-composesudo chmod +x /usr/local/bin/docker-composeClone the repository here: /home/lsst/LSST
cd /home/lsst/LSSTgit clone https://gitlab.tekniker.es/aut/projects/3151-LSST/mariadb-docker.gitUpdate repository:
cd /home/lsst/LSST/mariadb-dockergit pullGo to /home/lsst/LSST/mariadb-docker
Start the docker service:
docker-compose up -dGet the last backup database available and copy it to: ./backup Copy the three files: a. lsst_AppData-XXX.sql.gz b. lsst_events-XXX.sql.gz c. lsst_settings-XXX.sql.gz
Create database
sudo ./createdatabases.plRestore last backup database. The script will choose the most recent backup.
sudo ./restoredatabases.plEdit contrab file to execute the python code that generates the backups:
sudo crontab -eAdd the following lines (Note: that the paths may change for each specific installation.): .. code:: bash
5 12 * * * /home/lsst/Documents/Docker/mariadb-docker/createbackup.pl .. code:: bash
5 13 * * * docker run –rm -v /home/lsst/Documents/Docker/mariadb-docker/python:/script -v /home/lsst/Documents/Docker/mariadb-docker/backup:/backup python:3.7 python /script/main.py
Save and exit crontab editor:
:wq