Created
March 7, 2025 20:43
-
-
Save stajkowski/b6d3b017cd4f7ab7ff7395cdaa914a3b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
export USER='set_username' | |
sudo apt-get install git wget flex bison gperf python3 python3-pip python3-venv cmake ninja-build ccache libffi-dev libssl-dev dfu-util libusb-1.0-0 | |
mkdir -p ~/esp | |
cd ~/esp | |
git clone -b v5.2.3 --recursive https://github.com/espressif/esp-idf.git | |
cd ~/esp/esp-idf | |
./install.sh all | |
echo ". $HOME/esp/esp-idf/export.sh" >> ~/.bashrc | |
echo "export ESPPORT=/dev/ttyACM0" >> ~/.bashrc | |
chmod +x $HOME/esp/esp-idf/export.sh | |
sudo adduser $USER dialout | |
# Need to also disable the ModemManager service | |
sudo systemctl disable ModemManager | |
sudo systemctl stop ModemManager |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment