python-microscope / microscope

Python library for control of microscope devices, supporting hardware triggers and distribution of devices over the network for performance and flexibility.
https://www.python-microscope.org
GNU General Public License v3.0
69 stars 41 forks source link

Improve complicated startup process. #116

Closed iandobbie closed 1 year ago

iandobbie commented 4 years ago

On CryoSIM yesterday it was pretty clear we need a better startup process. I haven't been on the system in a while and needed to work out what was where and start individual deviceservers.

Could we knock up a basic ssh script which would do

ssh host1 screen -d -m ' deviceserver config1.py' ssh host2 screen -d -m 'deviceserver config2.py' etc....

then we could have it as a batch file, or shell script on the master computer.

mickp commented 4 years ago

Possibly, but Windows doesn't come with an ssh server, so we'd need to install one and figure out what permissions to give it. (This is why I wrapped the old device remotes in a Windows service.)

carandraug commented 4 years ago

Are you suggesting this as a solution for CryoSIM only? Or are you suggesting we create something general enough for all cases of microscope users?

iandobbie commented 4 years ago

It was pretty obvious that the startup from scratch process is hard and it would be nice to have a mechanism that could start all the remote deviceservers from one command. This would be useful on Cryosim, but also any other system which requires servers on multiple computers. In the mean time the solution is I guess rdp and batch files on the desktops.

carandraug commented 4 years ago

To start all the servers, there's systemd and sysinitv on linux and windows services on windows. deviceserver works with all of those. I guess we should write documentation for that though, even though that's not technically microscope documentation.

juliomateoslangerak commented 4 years ago

Our Abberior STED uses a Ethernet remotely controlled power supply. It is a beauty!!

Upon quiting the software is asking if you also want to shut down the hardware. If you star again devices that are on are showing that they are on.

juliomateoslangerak commented 4 years ago

I believe it is something like this: https://www.apc.com/shop/us/en/products/Rack-PDU-Switched-2U-30A-208V-16-C13/P-AP7911B

iandobbie commented 1 year ago

Great idea but slightly different from the original issue. I think we should close this as the rdp solution kind of works and I cant think of any other cross platform solution. Maybe future windows system for linux will give us SSH but I dont hold out much hope