This guide shows the steps required for creating a complete deployment of the OpenCMT software for develpment and tests.
System setup
The basic requirement for the next recipe is working on a clean Virtual Machine with CentOS 7 operating system. These steps must be executed by root:
Be sure to have an updated version of the system, with the EPEL extension enabled
sudo yum -y install wget epel-release sudo yum -y update
Install the CA certificate required by the internal software repositories
sudo wget -O /etc/yum.repos.d/EGI-trustanchors.repo http://repository.egi.eu/sw/production/cas/1/current/repo-files/EGI-trustanchors.repo sudo yum -y install ca-policy-egi-core sudo ln -s /etc/grid-security/certificates/USERTrustRSACertificationAuthority.pem /etc/pki/ca-trust/source/anchors/ sudo ln -s /etc/grid-security/certificates/GEANTeScienceSSLCA4.pem /etc/pki/ca-trust/source/anchors/ sudo update-ca-trust extract
Install the metadata for the internal software repositories (GEANT4, and CMT)
sudo wget -O /etc/yum.repos.d/geant4.repo https://cld-smact-02.pd.infn.it/artifacts/repository/muotom-repo-files/geant4.repo sudo wget -O /etc/yum.repos.d/cmt.repo https://cld-smact-02.pd.infn.it/artifacts/repository/muotom-repo-files/cmt.repo
Install the tools and libraries required by the CMT software
sudo yum -y install git gcc-c++ make cmake3 doxygen geant4-vmc-mt-devel cmt-ulib-devel root-graf3d-eve xorg-x11-xauth mesa-dri-drivers
Since the GEANT4 package does not contain the particle data sets, download the required files from central repository
sudo geant4-dataset-download
The data for tests are available via NFS, add this row to the file /etc/fstab
10.64.18.250:/data/brickOpenstack/muon-steel/sdb /mnt/muotom-data nfs defaults 0 0
then create the directory and mount the endpoint
sudo mkdir -p /mnt/muotom-data sudo chmod a+rx /mnt/muotom-data sudo mount -a
Virtual Machines with CentOS 7 are available in the Cloud Veneto infrastructure, within project Muon Tomography.
If the activity requires a considerable amount of resources, the project grants access to dedicated flavors: muon_CPU-12_RAM-64GB and muon_48cores500GB25GB.
Data for tests are available via NFS also outside the cloud infrastructure using the endpoint cld-storage-01.pd.infn.it:/data/brickOpenstack/muon-steel/sdb
VNC server setup
If it is necessary to install a VNC server on the virtual machine the steps required are the following:
Install the graphic environment
sudo yum -y check-update sudo yum -y groupinstall "X Window System" sudo yum -y install gnome-classic-session gnome-terminal nautilus-open-terminal control-center liberation-mono-fonts sudo unlink /etc/systemd/system/default.target sudo ln -sf /lib/systemd/system/graphical.target /etc/systemd/system/default.target
Reboot the virtual machine
sudo reboot
Install the VNC server
sudo yum -y install tigervnc-server sudo cp /lib/systemd/system/vncserver@.service /etc/systemd/system/vncserver@:1.service
- In the file /etc/systemd/system/vncserver@:1.service replace <USER> with the current user (centos)
Create a password for accessing the VNC server
vncpasswd
and set the same password for the current user (centos)
Configure the VNC server (file $HOME/.vnc/config), this is a basic setup:
# securitytypes=vncauth,tlsvnc # desktop=sandbox geometry=1920x1080 # localhost # alwaysshared bs
Activate the service and the firewall setup
sudo systemctl daemon-reload sudo systemctl enable vncserver@:1.service sudo systemctl start vncserver@:1.service sudo firewall-cmd --permanent --add-service vnc-server sudo systemctl restart firewalld.service