Skip to content

Instantly share code, notes, and snippets.

@fookingthg
fookingthg / gist:f004f22ea03d50a28cbd2d21535042b5
Created December 23, 2018 10:46
Static IP on Raspi Stretch
Edit /etc/dhcpcd.conf
interface wlan0
static ip_address=192.168.1.10/24
static domain_name_servers=192.168.1.1 8.8.8.8
static routers=192.168.1.1
sudo systemctl restart dhcpcd.service
sudo reboot
@fookingthg
fookingthg / test.desktop
Last active December 23, 2018 09:59
raspberry Pi : Start java apps on startup which required GUI
create a file test.desktop in /home/pi/.config/autostart/ with the following content.
replace app.jar with your jar location. (tested in raspi stretch)
[Desktop Entry]
Name=test
Type=Application
Exec=/usr/bin/java -jar /home/pi/Documents/app.jar
Terminal=true
Hidden=false