Headless Raspberry Pi (or better suggestions!)

Joe Pineapples
Posts: 41
Joined: Sun Apr 10, 2016 1:22 pm

Re: Headless Raspberry Pi (or better suggestions!)

Post by Joe Pineapples » Mon Apr 18, 2016 12:19 pm

WillAdams wrote:List of options at: http://www.shapeoko.com/wiki/index.php/ ... spberry_Pi

Esp. See https://github.com/fsantini/rasPyCNCController (which I really wish had been done as a stripped-down, refactored bCNC, rather than a new project)
Thanks Will, RasPyCNCController is possibly even better suited to my needs than Universal G-Code Sender, I'm hopping over to that thread now for question time ;)
Nokia 3310 with custom ringtone
Nintendo Gameboy with backlight upgrade and worn D-pad

Joe Pineapples
Posts: 41
Joined: Sun Apr 10, 2016 1:22 pm

Re: Headless Raspberry Pi (or better suggestions!)

Post by Joe Pineapples » Sat Apr 23, 2016 7:39 am

Shook wrote: 5) I'm running universal G-Code Sender from here - https://github.com/winder/Universal-G-Code-Sender
I finally got some free time this morning and downloaded this, along with some other programs I've been wanting to try. I'm having trouble running it, the readme file says to open a .jar file but I can't seem to find it. How do you run it?
Nokia 3310 with custom ringtone
Nintendo Gameboy with backlight upgrade and worn D-pad

Shook
Posts: 139
Joined: Thu Nov 12, 2015 6:50 pm
Location: Downingtown, PA

Re: Headless Raspberry Pi (or better suggestions!)

Post by Shook » Mon Apr 25, 2016 1:32 am

Joe Pineapples wrote:
Shook wrote: 5) I'm running universal G-Code Sender from here - https://github.com/winder/Universal-G-Code-Sender
I finally got some free time this morning and downloaded this, along with some other programs I've been wanting to try. I'm having trouble running it, the readme file says to open a .jar file but I can't seem to find it. How do you run it?

Sorry for the delayed response. I'm sure you wanted to play with this on Sunday. I'm mentoring on my son's robotics team and we're prepping for the world championship coming up this week. So I've been crazy busy

Click the link under the stable builds 1.0.9 http://bit.ly/1M6z2ys
That should download a file "UniversalGcodeSender-v1.0.9.zip"
you need to unzip that file. In windows, you can right click the file and click extract all. It should put the files in a new folder
You should have a file in there named "start-windows.bat" (again assuming Windows, the Linux/OSX version would be the start.sh - you may need to give execute permissions to start.sh [chmod +x shart/sh] under Linux/OSX)
That file should start Java with the jar file and the correct options.
Shapeoko 3 (#1107)

Joe Pineapples
Posts: 41
Joined: Sun Apr 10, 2016 1:22 pm

Re: Headless Raspberry Pi (or better suggestions!)

Post by Joe Pineapples » Mon Apr 25, 2016 9:10 am

Shook wrote:
Joe Pineapples wrote:
Shook wrote: 5) I'm running universal G-Code Sender from here - https://github.com/winder/Universal-G-Code-Sender
I finally got some free time this morning and downloaded this, along with some other programs I've been wanting to try. I'm having trouble running it, the readme file says to open a .jar file but I can't seem to find it. How do you run it?

Sorry for the delayed response. I'm sure you wanted to play with this on Sunday. I'm mentoring on my son's robotics team and we're prepping for the world championship coming up this week. So I've been crazy busy

Click the link under the stable builds 1.0.9 http://bit.ly/1M6z2ys
That should download a file "UniversalGcodeSender-v1.0.9.zip"
you need to unzip that file. In windows, you can right click the file and click extract all. It should put the files in a new folder
You should have a file in there named "start-windows.bat" (again assuming Windows, the Linux/OSX version would be the start.sh - you may need to give execute permissions to start.sh [chmod +x shart/sh] under Linux/OSX)
That file should start Java with the jar file and the correct options.
Thanks Shook, I'm running Linux (Raspbian). I had 5 minutes spare before work this morning so I double-clicked the start.sh file but it just opened as a text page, should I try copy/pasting that to a terminal?

(Also, is it the VEX Robot championships you're talking about?)
Nokia 3310 with custom ringtone
Nintendo Gameboy with backlight upgrade and worn D-pad

Joe Pineapples
Posts: 41
Joined: Sun Apr 10, 2016 1:22 pm

Re: Headless Raspberry Pi (or better suggestions!)

Post by Joe Pineapples » Mon Apr 25, 2016 5:40 pm

Hmmm, tried copy/pasting the start.sh file to a terminal, doesn't seem to like that either.
"Unable to access jarfile" :(
Nokia 3310 with custom ringtone
Nintendo Gameboy with backlight upgrade and worn D-pad

Shook
Posts: 139
Joined: Thu Nov 12, 2015 6:50 pm
Location: Downingtown, PA

Re: Headless Raspberry Pi (or better suggestions!)

Post by Shook » Tue Apr 26, 2016 2:01 am

OK - I should really make this a tutorial on the wiki or something when I get time (and an account), but for now, here's the simplest way I can describe it.
1) Open the terminal
2) make sure that you have serial port permissions.

Code: Select all

sudo usermod -a -G dialout pi
3) update the raspi

Code: Select all

sudo apt-get update && sudo apt-get upgrade
4) Create a folder for universal gcode sender

Code: Select all

mkdir ugs
5) change directory to the new folder

Code: Select all

cd ugs
6) download universal gcode sender to the current location

Code: Select all

wget https://github.com/winder/builds/raw/master/UniversalGCodeSender/UniversalGcodeSender-v1.0.9.zip
7) uncompress the archive (protip, type 'unzip U' (without the actual quotes) and hit the tab key to allow the shell to complete the file name for you

Code: Select all

 unzip UniversalGcodeSender-v1.0.9.zip
you'll see something like this:

Code: Select all

pi@raspberrypi:~/ugs $ unzip UniversalGcodeSender-v1.0.9.zip
Archive:  UniversalGcodeSender-v1.0.9.zip
  inflating: README.txt
  inflating: start-windows.bat
  inflating: start.sh
  inflating: UniversalGcodeSender.jar
8) make the start.sh executable

Code: Select all

chmod +x start.sh
9) double-click the start.sh from a file explorer and click execute.
Image



(Also, is it the VEX Robot championships you're talking about?)
FIRST robotics.....(specifically FIRST Tech Challenge)
Shapeoko 3 (#1107)

Joe Pineapples
Posts: 41
Joined: Sun Apr 10, 2016 1:22 pm

Re: Headless Raspberry Pi (or better suggestions!)

Post by Joe Pineapples » Wed Apr 27, 2016 9:08 am

Shook wrote:OK - I should really make this a tutorial on the wiki or something when I get time (and an account), but for now, here's the simplest way I can describe it...
Thank you Shook, as a total programming/Rpi/Arduino noob I sincerely appreciate the patience and help from people such as yourself.

I followed your steps and it worked a treat :)
As someone still new to how the RPi works, I noticed that whenever I move the start/execute file of a program to the desktop it no longer works so have to put it back in its original file. I realise this is probably due to long-term Windows use on my part and that the RPi probably doesn't work that way. Do you know how to (or do you know of any tutorials/guides) add a desktoop shortcut icon to open UGS?

Next step is for me to get GRBL on the Mega2560 :shock:
Nokia 3310 with custom ringtone
Nintendo Gameboy with backlight upgrade and worn D-pad

WillAdams
Posts: 8528
Joined: Mon Apr 09, 2012 6:11 pm
Location: Pennsylvania --- south of the Turnpike, East of US-15
Contact:

Re: Headless Raspberry Pi (or better suggestions!)

Post by WillAdams » Wed Apr 27, 2016 11:18 am

Do a right-click drag and create a shortcut / alias / link?

If not that, make a symlink using the command line: man ln
Shapeoko 3XL #0006 w/Makita RT0701 Router w/0.125″ and ¼″ Elaire precision collets
Nomad 883 Pro #596 (bamboo)

Joe Pineapples
Posts: 41
Joined: Sun Apr 10, 2016 1:22 pm

Re: Headless Raspberry Pi (or better suggestions!)

Post by Joe Pineapples » Wed Apr 27, 2016 2:53 pm

WillAdams wrote:Do a right-click drag and create a shortcut / alias / link?
I've tried that with several things that I wanted a desktop shortcut for, doesn't seem to work.
WillAdams wrote:If not that, make a symlink using the command line: man ln
So I just type "man ln" in a terminal and it will create a shortcut for UGS ?
Nokia 3310 with custom ringtone
Nintendo Gameboy with backlight upgrade and worn D-pad

WillAdams
Posts: 8528
Joined: Mon Apr 09, 2012 6:11 pm
Location: Pennsylvania --- south of the Turnpike, East of US-15
Contact:

Re: Headless Raspberry Pi (or better suggestions!)

Post by WillAdams » Wed Apr 27, 2016 3:12 pm

No, type

Code: Select all

man ln
for the man page on the ln command which will explain to you how to create a link using that command.
Shapeoko 3XL #0006 w/Makita RT0701 Router w/0.125″ and ¼″ Elaire precision collets
Nomad 883 Pro #596 (bamboo)

Post Reply