Skip to content

Instantly share code, notes, and snippets.

@GuySawyer
GuySawyer / gist:fae11b0efefd20927ef029c6b3c6fd4e
Created October 31, 2017 06:00
Raspberry Pi 3 - Starting a Java JAR on Boot using systemd
Jessie has moved away from sysvinit and onto systemd. Writing an init script to /etc/init.d/ is outdated,
and a bit tedious since you have to handle the start/stop/restart logic yourself (if you want those capabilities).
New Method:
1. Write a unit file for systemd.
$ sudo nano /etc/systemd/system/your_jar_software.service
[Unit]
Description=Example on starting a JAR with systemd
@GuySawyer
GuySawyer / Raspberry pi 3 - wifiOverBluetoothSetup
Last active September 7, 2017 08:51
Raspberry Pi 3 - Wifi setup over bluetooth from Android App
1. Setup Bluetooth on Raspberry Pi 3:
https://hacks.mozilla.org/2017/02/headless-raspberry-pi-configuration-over-bluetooth/
2. Add these lines to startupScript in 1 to start bluetooth as discoverable:
#make bluetooth discoverable
sudo hciconfig hci0 piscan
3a. Install Python script which will receive wifi creds over bluetooth and write them to the necessary files:
https://github.com/brendan-myers/rpi3-wifi-conf
@GuySawyer
GuySawyer / Omega 2+
Last active April 17, 2018 03:09
Running document of issues and solution using the Omega 2+
Flashing Atmega from Arduino IDE over wifi
Error:
$ Can't export GPIO 19, already exported/busy?: Invalid argument
$ avrdude done. Thank you.
Solution:
Avrdude v6.3-1 on the Omega has known issues.