Skip to content

Instantly share code, notes, and snippets.

@chrisallenlane
Created March 11, 2016 15:03
Show Gist options
  • Save chrisallenlane/c6c49837bfd909e0e175 to your computer and use it in GitHub Desktop.
Save chrisallenlane/c6c49837bfd909e0e175 to your computer and use it in GitHub Desktop.
Configures a virtual-machine to use Universal G-code Sender to control a Shapeoko 3
#!/bin/bash
# This script configures a Lubuntu 15.10-based virtual machine to use Universal
# G-code sender to communicate with a Shapeoko 3.
# Update the system dependencies
sudo apt-get update && sudo-apt-get upgrade --assume-yes
sudo apt-get autoclean && sudo apt-get autoremove
# Install the required dependencies
sudo apt-get install build-essential --assume-yes
sudo apt-get install curl --assume-yes
sudo apt-get install default-jre --assume-yes
# Download Universal G-code Sender
cd ~ && mkdir bin && cd bin
curl https://github.com/winder/builds/raw/master/UniversalGCodeSender/UniversalGcodeSender-v1.0.9.zip
unzip ./UniversalGcodeSender-v1.0.9.zip
rm start-windows.bat UniversalGcodeSender-v1.0.9.zip
chmod +x start.sh
# Not strictly required, but always useful:
sudo apt-get install git --assume-yes
sudo apt-get install vim-gtk --assume-yes
# add $USER to the `dialout` group to gain read/write on the serial port
sudo usermod -a -G dialout $USER
# reboot the computer
sudo reboot now
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment