Skip to content

Preparing your Pi or PC

Install the operating system

Use the Raspberry Pi Imager to flash your SD card.

  1. Choose the appropriate board.
  2. Click on "Raspberry Pi OS (64-bit)"
  3. If using WiFi, set your wireless network settings in the customization menu.
  1. Ensure your PC has Linux Debian installed.

Prepare the Hardware

Warning

Do not apply power to the Pi until you've completed these steps.

  1. Install the SMA 90-degree connector and attach the provided antennas to the hotspot.
  2. Place the hotspot onto the Pi GPIO pins found at the top of the board for flashing.
  3. Alternatively, place the hotspot on the USB board and connect the USB port to your Pi.
  4. 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.
Warning

Do not apply power to the computer until you've completed these steps.

  1. You will need at least one USB conversion board for DVRS, or two for CC/VC operation.
  2. 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.
  3. Connect the computer to power, and an internet connection through Ethernet or WiFi.

Install the Software

  1. Log into myCTRS and create a site.
  2. Click the "set up my hotspot" button and run the command on your hotspot in a terminal or ssh session.
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.

  1. Connect to your Pi and open a terminal window

    1. If you are using a monitor and keyboard connected to the Raspberry Pi itself, open the terminal window and skip to Step 2.
    2. If you are accessing the Raspberry Pi over your network, open a session in PuTTY or Windows PowerShell.
      1. 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.
      2. 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.
  2. Update the Pi and install needed utilities with the following commands:

    sudo apt-get update && apt-get upgrade -y # (1)!
    
    1. This updates your Pi to the latest software. The command -y, in this context, enables to bypass the prompt asking you to confirm with y that you want to make the changes.
    sudo apt-get install -y git stm32flash gcc-arm-none-eabi gcc g++ make build-essential libasio-dev libncurses-dev libssl-dev
    
  3. Open the cmdline config:

    sudo nano /boot/firmware/cmdline.txt
    
  4. Remove console=serial0,115200 at the start of the file, then press Ctrl + S to save and Ctrl + X to close.

  5. Open the startup config:

    sudo nano /boot/firmware/config.txt
    
  6. Add dtoverlay=disable-bt to the [all] section of the file, then press Ctrl + S to save and Ctrl + X to close.

    Warning

    If you are using a Pi 3, add dtoverlay=pi3-disable-bt to the [all] section of the file instead.

  7. If on a Pi 5 using Bookworm or newer, add the following to the [all] section of the file:

    enable_uart=1
    dtoverlay=uart0,ctsrts
    

  8. 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
    

  9. Make directories to the Centrunk folder, navigate to it, then clone the firmware with the following commands:

    sudo mkdir /opt/centrunk
    
    cd /opt/centrunk
    

    Info

    The firmware varies whether you use a hotspot or a repeater board.

    sudo git clone --recurse-submodules https://github.com/DVMProject/dvmfirmware-hs.git
    
    sudo git clone --recurse-submodules https://github.com/DVMProject/dvmfirmware.git
    
  10. Reboot the Raspberry Pi with the following command:

    sudo reboot now
    

Joining the network

You are ready to join the CTRS network. Run the following command, then open a ticket by clicking the button below.

sudo curl -fsSL https://pkgs.netbird.io/install.sh | sudo sh

Open a ticket

  1. Update the PC and install needed utilities with the following commands:

    sudo apt-get update && apt-get upgrade -y # (1)!
    
    1. This updates your PC to the latest software. The command -y, in this context, enables to bypass the prompt asking you to confirm with y that you want to make the changes.
    sudo apt-get install -y git stm32flash gcc-arm-none-eabi gcc g++ make build-essential libasio-dev libncurses-dev libssl-dev
    
  2. Make directories to the Centrunk folder, navigate to it, then clone the firmware with the following commands:

    sudo mkdir /opt/centrunk && \
    cd /opt/centrunk
    

    Info

    The firmware varies whether you use a hotspot or a repeater board.

    sudo git clone --recurse-submodules https://github.com/DVMProject/dvmfirmware-hs.git
    
    sudo git clone --recurse-submodules https://github.com/DVMProject/dvmfirmware.git
    

Joining the network

You are ready to join the CTRS network. Run the following command, then open a ticket by clicking the button below.

sudo curl -fsSL https://pkgs.netbird.io/install.sh | sudo sh

Open a ticket