Skip to content

Instantly share code, notes, and snippets.

@dzanaga
dzanaga / Dockerfile
Created February 6, 2020 22:45 — forked from klokan/Dockerfile
GDAL in Docker - stable GDAL with JP2KAK, MRSID and ECW: https://registry.hub.docker.com/u/klokantech/gdal/
FROM debian:7
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get -qq update \
&& apt-get -qq -y --no-install-recommends install \
autoconf \
automake \
build-essential \
curl \

Prepare SD card

  1. Download imager from https://www.raspberrypi.org/downloads/ / sudo apt install rpi-imager -y

  2. Install Raspbian lite on the SD. For newer >Bookworm click on the gear and setup WiFi and ssh from the imager. Bookworm doesn't use wpa_supplicant.conf

I had issues. So i connected via WiFi, enabled wifi with sudo raspi-config. Then generated a pair key, copied to the client, set 600 for key and 644 for pub and was able to passwordless ssh via wifi.

To manage static IP and DNS:

@dzanaga
dzanaga / conda_qgis.txt
Created February 15, 2023 10:11
Add desktop shortcut for conda QGIS
Create the desktop shortcut:
```
nano .local/share/applications/qgis.desktop
```
```
#!/usr/bin/env xdg-open
[Desktop Entry]
Version=1.0
Type=Application
@dzanaga
dzanaga / anon_evince.txt
Created March 17, 2023 10:01
Use Evince to annotate pdfs as anonymous user
Create a new user 'anon' or similar.
Copy the pdf to the user home
open terminal as the main user and run evince as the anon user:
```
xhost +SI:localuser:anon
sudo -u anon DISPLAY=:0 evince /home/anon/my.pdf
```