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 » Wed Apr 27, 2016 9:36 pm

WillAdams wrote: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.
Thanks, I'll have a pop at that if I get up early enough tomorrow morning!
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 » Tue May 03, 2016 8:24 am

Finally got a little time this morning and tried it. Came up with a lot of words that don't currently mean much to me, in the context of computing :?
Thanks for the help, will Google further to try and find more info on the subject.
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 » Sat May 07, 2016 9:07 pm

This is what is currently in the start.sh file:

Code: Select all

#!/bin/bash

platform='unknown'
unamestr=`uname`
case "$unamestr" in
        Linux)
                platform='linux'
                rootdir=$(dirname "$(readlink -f $0)")
        ;;
        Darwin)
                platform='mac'
                rootdir=$(cd "$(dirname $0)"; pwd -P)
        ;;
esac

case "$platform" in
        mac)
                java -Xdock:name=UniversalGCodeSender -jar -Xmx256m "$rootdir"/UniversalGcodeSender*.jar
        ;;
        linux)
                java -jar -Xmx256m "$rootdir"/UniversalGcodeSender*.jar
        ;;
esac
        
It's looking in the current folder for the jar file. On the desktop, the current folder is /home/pi/Desktop instead of /home/pi/ugs

you could just create a file on your desktop named JoePineapplesAwesomerStart.sh and put this one-liner in there:

Code: Select all

java -jar -Xmx256m /home/pi/ugs/UniversalGcodeSender*.jar
make it executable with:

Code: Select all

chmod +x /home/pi/Desktop/JoePineapplesAwesomerStart.sh 
Shapeoko 3 (#1107)

Post Reply