Skip to content

UWST-Robotics/BlueBox-Bridge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BlueBox-Bridge

Helpful functions

sudo netstat -lptu

sudo systemctl status ser2net

sudo systemctl restart ser2net

Install Directions

Install Operating System

Install Default Operating System via Rasberry Pi Imager (https://www.raspberrypi.com/software/)

Chose the correct device (Raspberry pi Zero 2 recommended)

Chose "Raspberry Pi OS LITE (64 bit) (Bulleye)" as Operating System (Does not work with bookworm and later)

Chose Correct storage device

Click and edit OS customisation

change hostname to "bluebox"

change username to "bluebox"

change password to "bluebox" or something more secure (write it down)

configure wireless settings to a network with internet connection

enable ssh

click save and apply

install Operating system

Install Services ( AS SUDO )

turn on pi with micro sd card installed (make sure pi can connect to configured wifi connection, first boot can take a while)

connect laptop to network

open putty

open an ssh connection to hostname "bluebox"

Accept new key

login as configured username and password

run the following commands to install required packages

sudo apt install git -y

cd /home/bluebox

"bluebox" will be your configured username

git clone https://github.com/UWST-Robotics/BlueBox-Bridge.git

sudo chmod +x BlueBox-Bridge/install/install.sh

sudo BlueBox-Bridge/install/install.sh

if you want to change your wifi name or password edit BlueBox-Bridge/install/config.sh

ssid=BlueBox
wpa_passphrase=BlueBox

any other information can be changed in this file as well, change at your own risk

systemctl unmask hostapd
systemctl enable hostapd

nano /etc/dhcpcd.conf.adhoc

echo "interface wlan0 static ip_address=192.168.1.1/24 nohook wpa_supplicant" | sudo tee /etc/dhcpcd.conf.adhoc

mv /etc/dhcpcd.conf /etc/dhcpcd.conf.wifi
mv /etc/dhcpcd.conf.adhoc /etc/dhcpcd.conf

nano /etc/sysctl.d/routed-ap.conf

echo "# Enable IPv4 routing

net.ipv4.ip_forward=1" | sudo tee /etc/sysctl.d/routed-ap.conf

iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE

netfilter-persistent save

mv /etc/dnsmasq.conf /etc/dnsmasq.conf.orig

nano /etc/dnsmasq.conf

echo "interface=wlan0 # Listening interface

dhcp-range=192.168.1.2,192.168.1.20,255.255.255.0,24h # Pool of IP addresses served via DHCP domain=wlan # Local wireless DNS domain address=/gw.wlan/192.168.1.1 # Alias for this router" | sudo tee /etc/dnsmasq.conf

rfkill unblock wlan

nano /etc/hostapd/hostapd.conf

echo "country_code=US

interface=wlan0 ssid=BlueBox hw_mode=g channel=7 macaddr_acl=0 auth_algs=1 ignore_broadcast_ssid=0 wpa=2 wpa_passphrase=BlueBox wpa_key_mgmt=WPA-PSK wpa_pairwise=TKIP rsn_pairwise=CCMP " | sudo tee /etc/hostapd/hostapd.conf

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors