From 5401349b0826ac923c52665149fb573b0ce5d4ba Mon Sep 17 00:00:00 2001 From: Sebastian Date: Wed, 12 Jan 2022 22:01:56 +0100 Subject: [PATCH] Fixed bug in install script --- README.md | 17 +++++++++++++++++ install.sh | 4 ++-- 2 files changed, 19 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index d265406..1933ac9 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,8 @@ This project prints all SSIDs, MAC addresses, and their vendors on a thermal pri ## Overview + + ## Usage 1. Setup a Raspberry Pi with Raspbian/Raspberry OS 2. Connect to Internet @@ -19,3 +21,18 @@ This project prints all SSIDs, MAC addresses, and their vendors on a thermal pri ## Important * You might need to adapt the printer configuration in ``cms.py`` depending on the printer you use * You might need to change the name of the network adaptor in ``install.sh`` + +## Tips +For a headless install you need to +* Enable SSH: ``touch /boot/ssh`` +* Configure Wi-Fi: Create file ``/boot/wpa_supplicant.conf`` + + country=DE + ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev + update_config=1 + + network={ + ssid="NETWORK-NAME" + psk="NETWORK-PASSWORD" + } + diff --git a/install.sh b/install.sh index 6fd838f..4665572 100644 --- a/install.sh +++ b/install.sh @@ -16,7 +16,7 @@ apt-get update apt-get dist-upgrade --yes # Install Python3 and additional stuff -apt-get install python3-pip libopenjp2-7-dev python3-serial python3-pil --yes +apt-get install git python3-pip libopenjp2-7-dev python3-serial python3-pil --yes # Remove old trackerjacker pip3 uninstall -y trackerjacker @@ -27,7 +27,6 @@ ln -s -f /usr/lib/arm-linux-gnueabihf/libc.a /usr/lib/arm-linux-gnueabihf/liblib # Get trackerjacker, add plugin and install it cd /tmp git clone https://github.com/calebmadrigal/trackerjacker.git - git clone https://git.chaospott.de/sirgoofy/wifi-printer.git cp wifi-printer/cms.py trackerjacker/trackerjacker/plugins cp wifi-printer/*.png trackerjacker/trackerjacker/plugins @@ -35,6 +34,7 @@ cp wifi-printer/*.png trackerjacker/trackerjacker/plugins pip3 install escpos cd trackerjacker +python3 setup.py build python3 setup.py install