Install scripts and utilities for setting up an MBot environment.
This has been tested on Raspberry Pi OS (Debain 12, bookworm), on the Raspberry Pi 4 and 5.
To set up a new image, get the latest Raspberry Pi OS (Debian 12, bookworm) from the Raspberry Pi website. Flash the image onto an SD card, then plug in a monitor, keyboard, and mouse into your Raspberry Pi, boot, and set the desired configurations. The default login information is:
- User:
mbot - Password:
i<3robots!
You will need to clone this repository after first boot. Then, follow these steps to set up the Raspberry Pi:
-
Install dependencies using scripts in install_scripts directory.
sudo ./install_scripts/install_mbot_dependencies.sh ./install_scripts/install_lcm.sh
-
Optional installs:
sudo ./install_scripts/install_nomachine.sh # Recommended for debugging. sudo ./install_scripts/install_vscode.sh # Only if you want to develop on the Pi.
-
Copy
mbot_config.txtto the proper loacation in the boot folder.- First check your OS release:
cat /etc/os-release - On Ubuntu 22.04 and Raspberry Pi OS 12 (Bookworm), the proper loacation is
/boot/firmware. Run the following:sudo cp mbot_config.txt /boot/firmware
- On Raspberry Pi OS prior to Bookworm, such as 11 (bullseye), this is just
/boot:sudo cp mbot_config.txt /boot
- First check your OS release:
-
Edit the configuration:
sudo nano [/boot/mbot_config.txt, /boot/firmware/mbot_config.txt]
-
Install udev rules:
cd udev_rules ./install_rules.sh -
Install services:
cd services ./install_mbot_services.sh -
Configure the Raspberry Pi to enable SSH and use X11 (needed for NoMachine):
sudo raspi-config
Then from the menu, change two configurations:
- Interface Options -> SSH -> Enable
- Advanced Options -> Wayland -> X11 (important for NoMachine)
-
Reboot.
You're done! The robot should now have the networking services installed and should either connect to the configured network or start up an access point.