'''Note that the SiTech software cannot control the mirror covers since we put them under PLC control. These can only be operated from the browser TCS.'''
== Starting SiTech & Autoguider software ==
''''N.B. These instructions have been updated in Feb 2023 - changes include the switch from 1ms1 to lesedis2 and setting up the autoguider for Mookodi.''''
These steps involve opening multiple terminals. It is much more manageable to open multiple tabs in the same terminal, than to have many terminal windows to switch between. To do this, open one new terminal, then press '''CTRL-SHIFT-T''' in that window each time the instructions say to open a new terminal.
The software should be opened on ioserver1, by connecting by ssh to lesedis2 and running the software using the mono libraries. If in Sutherland, you can do this from the ioserver1 PC in the warm room, else if working remotely from Cape Town, VNC to ioserver1 (VNC does not currently work for all users for this PC, in which case use Teamviewer):
7. '''Important''': every time the SiTech software is restarted, you also need to restart Lesedi's web server and backend.
* In a new terminaltab (press CTRL-SHIFT-T in the terminal):
ssh observer@lesedis2.suth.saao.ac.za
exit ''(to close the terminal)''
* Restart 8. If you ever need to restart either ServoSCommunicator or SiTechExe, you will first need to close all the autoguider backend softwareother subsystem GUIs, and reopen them in the order above (or just run the start-up script). 9. If working in the dome, bundle all the GUIs onto the left-hand monitor (itmakes it easier to find them if someone needs to VNC from a smaller screen) then minimise them - they won's t need to be accessed during the night unless something goes wrong. If working in Cape Town, you can close the VNC session with ioserver1 by clicking the right-hand "Disconnect" button on the Remmina tool bar (or by pressing the X in the Teamviewer menu). == Starting Autoguider software == '''These steps must be followed if SiTech has been restarted,''' hence the numbering continues from the section above. There are now autoguider-related programmes on both lesedis2 and the Mookodi PC, so the process involves both PCs. 10. From ioserver1, open another terminal tab, log in to the Mookodi PC and run following commands: ssh mookodi@mookodi.suth.saao.ac.za systemctl stop lodestar_source_extr.service systemctl start lodestar_source_extr.service 11. Open another terminal tab on ioserver1 and log in to lesedis2. If the autoguider backend software was open when SiTech shutdown then it has probably hung and won't respond to the red EXIT button, so . We need to kill it and then restart it.:
ssh observer@lesedis2.suth.saao.ac.za
ps aux | grep readPLC
kill -9 xxxxx ''(where xxxxx is the process ID reported from the ps aux task - kill all such processes)''
12. Then start the autoguider backend software: cd sudo xauth merge ~/home/observer.Xauthority p9e cd ~/srcdevelopment/xyslides2ports
sudo ./main_prog -depth 24
13. Open another terminal tab on ioserver1 and start the guider web server:
8 ssh observer@lesedis2. If you ever need to restart either ServoSCommunicator or SiTechExe, you will first need to close all the other subsystem GUIs, and reopen them in the order above (or just run the startsuth.saao.ac.za p9e cd ~/development/lesedi-up scriptguider-web gunicorn -k gevent 'app:create_app()' -b 0.0.0.0:5001
914. If working in Go back to the dome, bundle all terminal tab connected to the GUIs onto Mookodi PC and start the left-hand monitor (it makes it easier to find them if someone needs to VNC from a smaller screen) then minimise them - they won't need to be accessed during the night unless something goes wrongautoguider comms/catalogue services: systemctl stop gaia_list. If working in Cape Town, you can close the VNC session with ioserver1 by clicking the right-hand "Disconnect" button on the Remmina tool bar (or by pressing the X in the Teamviewer menu)service systemctl start gaia_list.service sudo systemctl stop Mookodi_source_extract sudo systemctl start Mookodi_source_extract
== Stopping SiTech Software ==