CaltechOpticalObservatories / NGPS

NGPS Software
3 stars 0 forks source link

"ontarget" button for TCS operator #218

Open astronomerdave opened 6 days ago

astronomerdave commented 6 days ago

It would be helpful if you could create a very small VNC server, the smallest allowable, on screen :1, for user=palop (pw in slack), which has a clean desktop with one icon (for now) that sends the ontarget command to the sequencer. You could make use of the ~/Software/run/seq script for sending the command (e.g. seq ontarget) or send directly from Python.

chazshapiro commented 5 days ago
[developer@ngps ~]$ su tcsop
su: user tcsop does not exist

Also, before I noticed the different username, I tried making a VNC session for user=observer and it didn't work. How do you make a VNC session for non-developer?

astronomerdave commented 5 days ago

sorry, typo, user is palop. To make a VNC server for another user you must login as that user, but this VNC server should be made to start automatically onboot, so probably requires root (or sudo).

[developer@ngps ~]$ su - palop
Password: 
[palop@ngps ~]$ exit
chazshapiro commented 5 days ago

If I have to log in as palop to start the server, what does it mean that it "requires root"?

astronomerdave commented 5 days ago

root (or sudo) might be required to make it part of the system startup

chazshapiro commented 5 days ago

Currently running for user=palop on :1. The hardest part was getting vncserver running - I had to change some permissions.

Smallest screen seems to be 640x480 Screenshot 2024-11-26 at 10 45 20 PM I'm not sure how to automate this on startup.