Downtime 2023, Dec 18:
- New SD card installed, code is still working:
Old Notes
Code
- Available via git
Start the camera server
- ssh onto the pi: ssh e320@e320pi
- (optional/advanced): start a 'screen' session with 'screen'.
Then you can detach from the server via CTRL+A, CTRL+D (the server remains alive even after you close the ssh connection)
run 'screen -r' to reattach - run the server code as root
Troubleshooting
- If the pi is not reacting: toggle powerstrip to reboot it (takes 30-60 seconds)
Start the viewer on a facet control computer (e.g., trailer)
You are already logged onto the control computer, but you need to establish a port forwarding (or use x-forwarding):
- ssh back to mcclogin: ssh smeuren@mcclogin -Y
- make sure you have bash (on mcclogin): bash
- source /afs/slac/g/lcls/package/anaconda/envs/python3.8env/bin/activate
- git clone /afs/slac/g/cd/swe/git/repos/slac/FACET/facet-E320.git/
- cd facet-E320/tunnelpi/cameraserver
- python3 camviewer.py
Start the viewer: on mcclogin
...