slowcontrol:basic_setup
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
slowcontrol:basic_setup [2020/08/28 10:29] – himuser | slowcontrol:basic_setup [2022/01/14 18:44] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
**Steps for setting up slow control:** | **Steps for setting up slow control:** | ||
+ | |||
+ | The purpose of this page is to list instructions to create a docker container containing all the tools required to run a slow control system. EPICS is the back-end. It keeps track of the process variables and Handels the communication between the slow control computer and the components of a scientific experimental setup over Local network. Node-RED is the front-end. It interacts with EPICS using EPICS-Python interface. With Node-RED ' | ||
+ | |||
+ | The following steps are for reference. If the intention is to just set up a slow control without having to go through underlying details, then execute step one and skip to the last command on this page. | ||
**1. Installing docker on ubuntu**: Open terminal in ubuntu and run the following commands. | **1. Installing docker on ubuntu**: Open terminal in ubuntu and run the following commands. | ||
Line 13: | Line 17: | ||
$ docker run --it --network host --name slow_control ubuntu bin/bash | $ docker run --it --network host --name slow_control ubuntu bin/bash | ||
</ | </ | ||
+ | |||
+ | Containers are usually completely isolated from the host system. But containers with ' | ||
+ | |||
+ | **Note:** | ||
+ | |||
+ | ' | ||
+ | '#' | ||
**3. Access terminal inside the container** | **3. Access terminal inside the container** | ||
Line 21: | Line 32: | ||
**4. Install epics using the script on [[epics: | **4. Install epics using the script on [[epics: | ||
+ | |||
+ | The downloaded script should be copied into the container. | ||
+ | Open another terminal window on the host and execute the following command. | ||
+ | < | ||
+ | docker cp < | ||
+ | </ | ||
**5. install Node.js** | **5. install Node.js** | ||
< | < | ||
- | $ curl -sL https:// | + | # curl -sL https:// |
- | $ sudo apt-get install -y nodejs | + | # sudo apt-get install -y nodejs |
</ | </ | ||
**5. Install Node-RED** | **5. Install Node-RED** | ||
< | < | ||
- | $ sudo npm install -g --unsafe-perm node-red | + | # sudo npm install -g --unsafe-perm node-red |
</ | </ | ||
Line 43: | Line 60: | ||
(you will be prompted form username and password). | (you will be prompted form username and password). | ||
- | **8. Create an image of the container that has been created in the previous steps. | + | **8. Create an image of the container that has been created in the previous steps.** |
< | < | ||
Line 56: | Line 73: | ||
</ | </ | ||
- | **9. Upload the image to repository that was created in step 6 | + | **9. Upload the image to repository that was created in step 6** |
< | < | ||
$ docker push < | $ docker push < | ||
</ | </ | ||
- | Now | + | Now the image slow_control: |
+ | |||
+ | The following command can be executed to setup a container which has already been created. | ||
+ | < | ||
+ | $ docker run --it --network host --name slow_control ravigmathim/ | ||
+ | </ | ||
+ | |||
+ | The ' |
slowcontrol/basic_setup.1598610567.txt.gz · Last modified: (external edit)