This guide shows the steps required for creating a complete deployment of the OpenCMT software for develpment and tests.
Setup for CentOS 7
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
No Format sudo yum -y install wget epel-release yum-plugin-priorities sudo yum -y update
Install the CA certificate required by the internal software repositories
No Format 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)
No Format sudo wget -O /etc/yum.repos.d/root-el7.repo https://cld-smact-02.pd.infn.it/artifacts/repository/repo-files/root-el7.repo sudo wget -O /etc/yum.repos.d/muotom-el7.repo https://cld-smact-02.pd.infn.it/artifacts/repository/muotom-repo-files/muotom-el7.repo
Install the tools and libraries required by the CMT software
No Format 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
No Format sudo geant4-dataset-download
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
No Format 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
No Format sudo reboot
Install the VNC server
No Format 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
No Format vncpasswd
and set the same password for the current user (centos)
Configure the VNC server (file $HOME/.vnc/config), this is a basic setup:
No Format # securitytypes=vncauth,tlsvnc # desktop=sandbox geometry=1920x1080 # localhost # alwaysshared bs
Activate the service and the firewall setup
No Format 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
Setup for CentOS 8
System setup
The basic requirement for the next recipe is working on a clean Virtual Machine with CentOS 8 operating system. These steps must be executed by root:
Be sure to have an updated version of the system, with the EPEL extension enabled
No Format sudo yum -y update sudo yum -y install epel-release yum-utils wget sudo yum-config-manager --set-enabled powertools sudo yum-config-manager --set-enabled appstream
Install the CA certificate required by the internal software repositories
No Format 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)
No Format sudo wget -O /etc/yum.repos.d/root.repo https://cld-smact-02.pd.infn.it/artifacts/repository/repo-files/root-c17.repo sudo wget -O /etc/yum.repos.d/muotom.repo https://cld-smact-02.pd.infn.it/artifacts/repository/muotom-repo-files/muotom.repo
Install the tools and libraries required by the CMT software
No Format sudo yum install git gcc-c++ make cmake doxygen geant4-vmc-mt-devel cmt-ulib-devel root-graf3d-eve xorg-x11-xauth mesa-dri-drivers pcl-devel vim-enhanced rpm-build
Since the GEANT4 package does not contain the particle data sets, download the required files from central repository
No Format sudo geant4-dataset-download
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
No Format sudo yum -y check-update sudo yum -y groupinstall "Server with GUI" sudo systemctl set-default graphical
Reboot the virtual machine
No Format sudo reboot
Install the VNC server
No Format sudo yum -y install tigervnc-server
Register the current user, for example centos, in the users configuration file (/etc/tigervnc/vncserver.users). Just add the following line:
No Format :1=centos
Create a password for accessing the VNC server
No Format vncpasswd
and set the same password for the current user
Configure the VNC server (file $HOME/.vnc/config), this is a basic setup:
No Format # securitytypes=vncauth,tlsvnc # desktop=sandbox geometry=1920x1080 # localhost # alwaysshared bs
Activate the service
No Format sudo systemctl enable vncserver@:1.service sudo systemctl start vncserver@:1.service
Storage setup
The data for tests are available via NFS, add this row to the file /etc/fstab
No Format |
---|
10.64.18.250cld-storage-01.pd.infn.it:/data/brickOpenstack/muon-steel/sdb /mnt/muotom-data nfs defaults 0 0 |
then create the directory and mount the endpoint
No Format |
---|
sudo mkdir -p /mnt/muotom-data sudo chmod a+rx /mnt/muotom-data sudo mount -a |
Info |
---|
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 |
Page properties | ||
---|---|---|
| ||
|