Note that if the folder does not get reset, VNC will not work until it is renamed back to the original name. home/pi/ugsplatform-pi/bin/ugsplatform & In my case I created a shell script file called ugsstart.sh on the desktop
sudo apt-get install realvnc-vnc-server.If you are going to run headless, check to ensure that remote desktop (VNC) is working properly (you probably want to have the Raspberry Pi have a fixed IP address).If it is not there or not the most current jdk (you’ll need to do this if you don’t use the full Raspian image).Make sure that java is installed with java -version.Advanced optons -> Expand the file system using advanced options.
Advanced Options -> GL Driver -> GL (fake KMS) this allows for OpenGL to work and your screen size to be large on VNC.
There were some instructions available on how to install UGS on a Pi. I do want to thank the author of the code for pointing me to more detailed information that helped me overcome some of the issues I encountered. I think I’ve accomplished my goal, though I still have a few minor bugs to work out. So, it started me on a 3-4-day quest to get it to work. This Java based solution looked like it would be ideal. I found an open source project Universal G-code Sender. For my 3D printer I use Repetier to drive the device. Computers and dust don’t mix that well, so that started me on a quest to find a Raspberry Pi solution. Anyone will tell you that a CNC machine generates dust.