NSCL DAQ: Difference between revisions

From FSU Fox's Lab Wiki
Jump to navigation Jump to search
Line 1: Line 1:


== installation in Ubuntu or Debian ==
== installation in Ubuntu or Debian ==
In order to run the NSCLDAQ in a container (or a VM). We need 3 things,
# The container program, we are using [https://sylabs.io/guides/3.5/user-guide/index.html singularity container]
# The OS image for the container, which is Debian 8 or 10 for NSCLDAQ
# The compiled NSCLDAQ for the corresponding OS.


=== install singularity ===
=== install singularity ===


* add neuro debain repository (when the following command fail, go to [http://neuro.debian.net/]
* add neuro debain repository (when the following command fail, go to [http://neuro.debian.net/]
  wget -O- http://neuro.debian.net/lists/focal.us-tn.libre | sudo tee /etc/apt/sources.list.d/neurodebian.sources.list
  ~>wget -O- http://neuro.debian.net/lists/focal.us-tn.libre | sudo tee /etc/apt/sources.list.d/neurodebian.sources.list
  sudo apt-key adv --recv-keys --keyserver hkps://keyserver.ubuntu.com 0xA5D32F012649A5A9
  ~>sudo apt-key adv --recv-keys --keyserver hkps://keyserver.ubuntu.com 0xA5D32F012649A5A9


* update the repository
* update the repository
  sudo apt update
  ~>sudo apt update


* install  singularity
* install  singularity
  sudo apt install signularity-container
  ~>sudo apt install signularity-container


=== install docker  ===
=== Download the compiled NSCLDAQ ===


<span style="color:red"> is it necessary? </span>
[https://sourceforge.net/projects/nscldaq/files/for-containers/usropt-jessie.tar.gz Link to download Debian 8 Jessie]


=== Download the NSCL DAQ container ===
[https://sourceforge.net/projects/nscldaq/files/for-containers/ Link to download Debian 10 buster]
 
[https://sourceforge.net/projects/nscldaq/files/for-containers/usropt-jessie.tar.gz Like to download]


And decompress it into /usr/opt/ -> so that the path is /usr/opt/opt-jessie
And decompress it into /usr/opt/ -> so that the path is /usr/opt/opt-jessie


=== Download the singularity image ===
=== Download the OS image ===


/usr/opt>singularity build nscl-buster.img docker://fribdaq/frib-buster:XXX
  /usr/opt>singularity build nscl-jessie.img docker://fribdaq/frib-jessie:XXX
  /usr/opt>singularity build nscl-jessie.img docker://fribdaq/frib-jessie:XXX


where XXX is the version, please check [https://hub.docker.com/r/fribdaq/frib-jessie/tags here]
where XXX is the version, please check [https://hub.docker.com/r/fribdaq/frib-jessie/tags Jessie here] and [https://hub.docker.com/r/fribdaq/frib-buster/tags Buster here]
 
=== to test the singularity is working ===
 
anywhere>singularity shell /usr/opt/nscl-jessie.img
 
you will bring to the singularity interactive shell
Singularity: Invoking an interactive shell within container...
Singularity nscl-jessie.img:~>

Revision as of 17:04, 21 April 2022

installation in Ubuntu or Debian

In order to run the NSCLDAQ in a container (or a VM). We need 3 things,

  1. The container program, we are using singularity container
  2. The OS image for the container, which is Debian 8 or 10 for NSCLDAQ
  3. The compiled NSCLDAQ for the corresponding OS.

install singularity

  • add neuro debain repository (when the following command fail, go to [1]
~>wget -O- http://neuro.debian.net/lists/focal.us-tn.libre | sudo tee /etc/apt/sources.list.d/neurodebian.sources.list
~>sudo apt-key adv --recv-keys --keyserver hkps://keyserver.ubuntu.com 0xA5D32F012649A5A9
  • update the repository
~>sudo apt update
  • install singularity
~>sudo apt install signularity-container

Download the compiled NSCLDAQ

Link to download Debian 8 Jessie

Link to download Debian 10 buster

And decompress it into /usr/opt/ -> so that the path is /usr/opt/opt-jessie

Download the OS image

/usr/opt>singularity build nscl-buster.img docker://fribdaq/frib-buster:XXX

/usr/opt>singularity build nscl-jessie.img docker://fribdaq/frib-jessie:XXX

where XXX is the version, please check Jessie here and Buster here

to test the singularity is working

anywhere>singularity shell /usr/opt/nscl-jessie.img

you will bring to the singularity interactive shell

Singularity: Invoking an interactive shell within container...

Singularity nscl-jessie.img:~>