Fixed bug in install script

This commit is contained in:
Sebastian 2022-01-12 22:01:56 +01:00
parent 2ac5aed8c6
commit 5401349b08
2 changed files with 19 additions and 2 deletions

View File

@ -6,6 +6,8 @@ This project prints all SSIDs, MAC addresses, and their vendors on a thermal pri
## Overview ## Overview
## Usage ## Usage
1. Setup a Raspberry Pi with Raspbian/Raspberry OS 1. Setup a Raspberry Pi with Raspbian/Raspberry OS
2. Connect to Internet 2. Connect to Internet
@ -19,3 +21,18 @@ This project prints all SSIDs, MAC addresses, and their vendors on a thermal pri
## Important ## Important
* You might need to adapt the printer configuration in ``cms.py`` depending on the printer you use * 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`` * 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 <sd-card>/boot/ssh``
* Configure Wi-Fi: Create file ``<sd-card>/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"
}

View File

@ -16,7 +16,7 @@ apt-get update
apt-get dist-upgrade --yes apt-get dist-upgrade --yes
# Install Python3 and additional stuff # 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 # Remove old trackerjacker
pip3 uninstall -y 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 # Get trackerjacker, add plugin and install it
cd /tmp cd /tmp
git clone https://github.com/calebmadrigal/trackerjacker.git git clone https://github.com/calebmadrigal/trackerjacker.git
git clone https://git.chaospott.de/sirgoofy/wifi-printer.git git clone https://git.chaospott.de/sirgoofy/wifi-printer.git
cp wifi-printer/cms.py trackerjacker/trackerjacker/plugins cp wifi-printer/cms.py trackerjacker/trackerjacker/plugins
cp wifi-printer/*.png trackerjacker/trackerjacker/plugins cp wifi-printer/*.png trackerjacker/trackerjacker/plugins
@ -35,6 +34,7 @@ cp wifi-printer/*.png trackerjacker/trackerjacker/plugins
pip3 install escpos pip3 install escpos
cd trackerjacker cd trackerjacker
python3 setup.py build
python3 setup.py install python3 setup.py install