Skip to content

Commit

Permalink
Updates for bullseye release
Browse files Browse the repository at this point in the history
  • Loading branch information
Dreamsorcerer committed Sep 10, 2023
1 parent ab76d1f commit cf80de3
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 17 deletions.
4 changes: 1 addition & 3 deletions install/on_rpi/on_pi_setup.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
cd /home/pi/bthidhub/install/on_rpi

sudo echo 0 | sudo tee /sys/class/leds/led0/brightness > /dev/null

sudo apt-get update -y | sudo apt-get upgrade -y
sudo echo 0 | sudo tee /sys/class/leds/ACT/brightness > /dev/null

systemctl --user stop pulseaudio.socket
systemctl --user stop pulseaudio.service
Expand Down
4 changes: 2 additions & 2 deletions install/on_rpi/remapper.service
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ After=multi-user.target
[Service]
Type=simple
ExecStart=/usr/bin/python3 /home/pi/bthidhub/remapper.py
ExecStartPost=/usr/bin/bash -c 'echo none > /sys/class/leds/led0/trigger'
ExecStopPost=/usr/bin/bash -c 'echo heartbeat > /sys/class/leds/led0/trigger'
ExecStartPost=/usr/bin/bash -c 'echo none > /sys/class/leds/ACT/trigger'
ExecStopPost=/usr/bin/bash -c 'echo heartbeat > /sys/class/leds/ACT/trigger'
WorkingDirectory=/home/pi/bthidhub
Restart=on-abort

Expand Down
23 changes: 15 additions & 8 deletions install/readme.txt
Original file line number Diff line number Diff line change
@@ -1,15 +1,22 @@
1) in the wpa_supplicant.conf set your wifi network and password
2) After flashing Raspberry Pi OS (32-bit) Lite (https://www.raspberrypi.org/downloads/raspberry-pi-os/) to SD card, open it as a drive and copy wpa_supplicant.conf and ssh file to the root of the boot partition
3) Plug SD card into the RPi and start it
4) get an IP address of the newly booted RPi
At time of writing this setup has been tested on the Bullseye release, with a 32-bit Raspberry Pi Zero.

## Install Instructions

1) Flash Raspberry Pi OS (32-bit) Lite (https://www.raspberrypi.org/downloads/raspberry-pi-os/) to an SD card.
2) If you didn't configure user, network and SSH via the Pi Imager, then mount the SD card as a drive.
a) Copy wpa_supplicant.conf, ssh and userconf files to the root of the boot partition.
b) Update Wifi network/password in wpa_supplicant.conf.
c) Optionally, update username/password in userconf (A password hash can be produced with: `echo 'mypassword' | openssl passwd -6 -stdin`).
3) Plug SD card into the RPi and start it.
4) Get the IP address of the newly booted RPi.

Windows:
5) install putty https://www.putty.org/
6) edit install_windows.bat and enter this ip address
7) run install_windows.bat, follow prompts until complete
5) Install putty: https://www.putty.org/
6) Edit install_windows.bat and update the IP address and password.
7) Run install_windows.bat, follow prompts until complete.
Linux/Mac:
5) Run: ssh pi@[rpi-ip-address] 'bash -s' < setup.sh
Default password is 'raspberry'
Password, if not change above, is 'raspberry'.

That last step could take an hour to complete.
When the RPi reboots, the LED will switch off once the service is ready to use.
Expand Down
6 changes: 2 additions & 4 deletions install/setup.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
echo 0 | sudo tee /sys/class/leds/led0/brightness > /dev/null

cd /home/pi

sudo apt-get update -y
sudo apt-get update
sudo apt-get upgrade -y
sudo apt-get install git -y

git clone https://github.com/ruundii/bthidhub
cd /home/pi/bthidhub/install/on_rpi
sh ./on_pi_setup.sh
bash ./on_pi_setup.sh
1 change: 1 addition & 0 deletions install/userconf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pi:$6$UIhrY5sJ9kT2VH5V$dwk63u6zscWWP6sQ8CUsi.iI/tJleNkLS6tvR/1lieV8gaNOJrAobR7m52rWYV7m0lL3nrbWzoSHCaqrZrXHE.

0 comments on commit cf80de3

Please sign in to comment.