04-06-2021 11:42 AM - edited 04-06-2021 12:17 PM
I have some cRio 9041s running programs on their RT targets and I am currently using x11vnc to control them from a host laptop
Currently I start the x11vnc server by sshing into the devices and running:
> export DISPLAY=:0
> xrandr --fb 1280x800
> x11vnc -display :0 -forever -geometry 1280x800
I would rather have this happen when the device boots so I can skip the ssh portion. There are guides on the web on how to do this on ubuntu and other systems, but I'm not sure how to do it on the real-time linux that's installed on the Rio.
One thing I tried was to put the startup commands in a .sh file, and add that to Settings->Session and Startup-> Application Autostart, but the xrandr command doesn't get set correctly, which results in a vnc viewer only seeing a small portion of the screen.
Has anyone done this? Any advice?
Thanks
J
Solved! Go to Solution.
05-17-2021 07:49 AM
I've been facing the same problem, I ended up adding a system exec with the resolution command in the startup vi😀
05-24-2021 11:19 PM
I tried putting the xrandr command in a system exec vi in my startup vi, but it didn't seem to do anything. Can you give me more details on what you did?
05-25-2021 02:58 AM - edited 05-25-2021 03:00 AM
Hey
Let me know if this helps.
1. VNC into the RT device
i.) Open a Putty Port 22 connection
ii.) Execute the commands
#xrandr --fb 1480x900
#DISPLAY=:0 x11vnc -forever
2. In Settings Manager
Settings Manager > Session and Startup > Application Autostart > + Add
Copy whats in the attached image
3. Now make that .vi that runs at startup as shown in image.
If you need further assistance setup a zoom meeting I'll help you out then, just note that my time zone is GMT +2
05-25-2021 09:12 AM
Ah, I get it now. Yes that works. Thanks!