Commit ce27b279 authored by Hericourt Pierre's avatar Hericourt Pierre
Browse files

oops forgotten update

parent e04ea75c
......@@ -6,6 +6,10 @@ Created Monday 07 December 2020
A beginners install guide to Tango Controls & Friends (written by noobs)
Works (Tested) on Mint 20 an Debian 10.
We write the note with Zim (`https://zim-wiki.org/ <https://zim-wiki.org/>`_) :
- the 'src' folder contains the 'zim' project
- the top view is a 'rst' export
`+Prerequisite <./README/Prerequisite.rst>`_
`+Server <./README/Server.rst>`_
......@@ -14,3 +18,5 @@ Works (Tested) on Mint 20 an Debian 10.
`+First Device Server in Python <./README/First_Device_Server_in_Python.rst>`_
`+Starter <./README/Starter.rst>`_
......@@ -3,7 +3,7 @@ Device
======
Created Monday 14 December 2020
vérifier dns
check dns
systemd-resolve --status
./configure --disable-dbserver
......
......@@ -4,7 +4,7 @@ Prerequisites
Created Monday 07 December 2020
usable DHCP and DNS on the localnet (optional).
Server name : vtango (like virtual, for test, he runs on a virtual machine)
Server name : vtango (like virtual tango, for test, he runs on a virtual machine)
Domain name : local.lab
an ubuntu 20.04 desktop fresh install (to prevent localization issues choose us eveywhere but keyboard)
......
=======
Starter
=======
Created Monday 14 December 2020
Play with Starter (with simple example : `Example <./examples/Counter_Push/Counter_Push>`_)
in few words, create file DeviceServerClassName, DeviceServerClassName.sh
do not forget to tune permissions (chmod +x)
In game files :
- Counter_Push.py
- Counter_Push.sh
- Counter_Push
Manual start the ... Starter :
::
host=$(hostname -s)
tango_admin --add-server Starter/$host Starter tango/admin/$host
Starter $host
Reference : ``https://tango-controls.readthedocs.io/en/latest/administration/deployment/starter.html <https://tango-controls.readthedocs.io/en/latest/administration/deployment/starter.html>`_ <`https://tango-controls.readthedocs.io/en/latest/administration/deployment/starter.html <https://tango-controls.readthedocs.io/en/latest/administration/deployment/starter.html>`_>`_
care paths (/var/tmp, a forgotten note)
Un service pour lancer le Starter :
::
[Unit]
Description=Starter device server
[Service]
Restart=always
RestartSec=10
User=tangouser
StandardOutput=inherit
StandardError=inherit
KillSignal=SIGINT
Environment=TANGO_HOST=vtango.local.lab:10000
Environment=LD_LIBRARY_PATH=LD_LIBRARY_PATH:/usr/local/lib
ExecStartPre=/bin/sleep 5
ExecStart=/usr/local/bin/Starter %H
[Install]
WantedBy=multi-user.target
::
chmod 644 tango-starter.service
systemctl enable tango-starter
systemctl --system daemon-reload
systemctl start tango-starter
systemctl status tango-starter
Run and configure Astore :
Edit properties to write path
Open Control Panel to start new device server
Start New, Level 1
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment