-
Notifications
You must be signed in to change notification settings - Fork 122
Linux
MaslowCNC Wiki: Electronics | Firmware | Mechanics | Software | Community Garden
Note, this method does not work well for Raspberry Pi. See the Raspberry Pi instructions here.
Kivy is the python library that handles the GUI of the Ground Control program. Kivy requires OpenGL 2 or higher or on Linux the mesa emulator. Check your version with the command glxinfo | grep "OpenGL version"
. You should get an output string like OpenGL version string: 3.0 Mesa 18.0.5
or instructions for installing mesa. If not, you can update mesa with the command sudo apt-get update && sudo apt-get install mesa-utils
.
Install Kivy using by folowing the instructions found at https://kivy.org/docs/installation/installation-linux.html
NOTE: at this time Ground Control does not support Python3, so use Python2 instead
Install the PySerial package by running the command pip install pyserial
On Debian/Ubuntu distros you may be able to install pySerial using sudo apt-get install python-serial
Download a copy of the Ground Control source code from https://github.com/MaslowCNC/GroundControl using the "clone or download" button on the right side.
Launch a terminal window (ctrl-alt-T is a handy shortcut in some Linux distros) and type the following commands:
sudo usermod -a -G tty $USER
sudo usermod -a -G dialout $USER
Note that the "sudo" in this command means that you will need to type your password and your account has to have permission to act as root. If this is not the case, you may need to ask your system administrator to run those commands, but substituting your user name for "$USER".
Launch Ground Control by using the command python main.py
from within the folder
Optional: Make a desktop shortcut to launch GC (tested on Lubuntu)
-
Create a new file on the desktop (or wherever you want the shortcut)
-
Copy/Paste the following into the file:
[Desktop Entry]
Name=GC Shortcut
Exec=python /home/username/Documents/GroundControl-master/main.py
Type=Application
Terminal=true
Path=me/username/Documents/GroundControl-master/
StartupNotify=false
X-KeepTerminal=false -
Change "Name=" to whatever name you want for the shortcut
-
Make sure the paths for "Exec=" and "Path=" are correct (including changing "username" to your username)
-
Save file. You should now be able to open/double-click it to launch GC!