Preparing your Pi or PC¶
Install the operating system¶
Use the Raspberry Pi Imager to flash your SD card.
- Choose the appropriate board.
- Select the Legacy 32-bit (normal or lite) version of Raspberry Pi OS.
- In the customizations, if applicable, input your wireless network settings.
- Ensure your PC has Linux Debian installed.
Prepare the hardware¶
- Before applying power to any parts, install the SMA 90-degree connector and attach the provided antennas to the hotspot. Once the antennas are successfully installed, place the hotspot onto the Pi GPIO pins found at the top of the board for flashing. Alternatively, place the hotspot on the USB board and connect the USB port to your Pi.
- Connect the Raspberry Pi to power, and an internet connection through Ethernet or WiFi. If you configured a WiFi network during image setup, the Raspberry Pi should connect to your network automatically.
- You will need at least one USB conversion board for DVRS, or two for CC/VC operation.
- Before applying power to any parts, install the SMA 90-degree connector and attach the provided antennas to the hotspot. Once the antennas are successfully installed, place the hotspot onto the USB board and connect the USB port to your computer.
- Connect the computer to power, and an internet connection through Ethernet or WiFi.
Software operations¶
Info
There is an automatic script to perform the steps below. Once the script completes, your computer will reboot and you can proceed to the next section, Flashing a hotspot.
wget -qO- https://raw.githubusercontent.com/Centrunk/centrunk.github.io/main/script/prepare-pi.sh | sudo bash -
Executing scripts directly from the internet poses significant security risks. Always review the script's content before running it, especially when running it with elevated permissions like sudo. You can review the script by visiting the link of the script above.
-
Connect to your Pi and open a terminal window
- If you are using a monitor and keyboard connected to the Raspberry Pi itself, open the terminal window and skip to Step 2.
- If you are accessing the Raspberry Pi over your network, open a session in PuTTY or Windows PowerShell.
- The syntax is ssh user@ipaddress, where user is the username specified in the image setup (default of pi) and ipaddress is the local IP address of the pi on your network.
- You will be prompted to enter your password. Enter the password you specified in the image setup (default raspberry) and press Enter on your keyboard.
-
Update the Pi and install needed utilities with the following commands:
- This updates your Pi to the latest software. The command
-y
, in this context, enables to bypass the prompt asking you to confirm withy
that you want to make the changes.
- This updates your Pi to the latest software. The command
-
Open the
cmdline
config: -
Remove
console=serial0,115200
at the start of the file, then pressCtrl + S
to save andCtrl + X
to close. -
Open the startup config:
-
Add
dtoverlay=disable-bt
to the[all]
section of the file, then pressCtrl + S
to save andCtrl + X
to close.Warning
If you are using a Pi 3, add
dtoverlay=pi3-disable-bt
to the[all]
section of the file instead. -
Disable services that will interfere with the hotspots function with the following commands:
sudo systemctl disable serial-getty@ttyAMA0.service && \ sudo systemctl disable hciuart.service && \ sudo systemctl disable bluealsa.service && \ sudo systemctl disable bluetooth.service && \ sudo systemctl mask serial-getty@ttyAMA0.service && \ sudo systemctl mask hciuart.service && \ sudo systemctl mask bluealsa.service && \ sudo systemctl mask bluetooth.service
-
Make directories to the Centrunk folder, navigate to it, then clone the firmware with the following commands:
-
Reboot the Raspberry Pi with the following command:
-
Update the PC and install needed utilities with the following commands:
- This updates your PC to the latest software. The command
-y
, in this context, enables to bypass the prompt asking you to confirm withy
that you want to make the changes.
- This updates your PC to the latest software. The command
-
Make directories to the Centrunk folder, navigate to it, then clone the firmware with the following commands: