This is commands used in youtube video
Commands:
sudo apt update && sudo apt upgrade -ysudo update-alternatives --install /usr/bin/python python /usr/bin/python3 1sudo apt install -y python3-pipsudo update-alternatives --install /usr/bin/pip pip /usr/bin/pip3 1sudo apt install -y git wget flex bison gperf python-setuptools cmake ninja-build ccache libffi-dev libssl-dev dfu-utilcd ~mkdir espcd espgit clone --recursive https://github.com/espressif/esp-idf.gitcd esp-idf. ./install.shpip install --upgrade pip. ./export.shnano ~/.profileAppend next line to ~/.profile script:
. $HOME/esp/esp-idf/export.shTo save press CTRL+X, Y, ENTER
sudo usermod -a -G dialout,tty $USERRestart machine. If you are on virtual machine then shutdown completely and start it again.
ls /dev/ttyUSB*cd ~/Desktopcp -r $IDF_PATH/examples/get-started/hello_world .cd hello_worldidf.py set-target esp32idf.py menuconfigidf.py buildPut ESP32 into programming mode.
idf.py -p /dev/ttyUSB0 flashidf.py monitorTo exit monitor press CTRL+]

Mate, thanks a lot for this guide, I am following it just now 2025_11_08 this was my findings:
Now the package
python-setuptoolsis calledpython3-setuptoolsI am using a Waveshare-S3-Zero and the tty device is
/dev/ttyAMS0I had to use the commandsudo udevadm monitor -uand connect the device via USB to discover that.For the command
sudo usermod -a -G dialout,tty $USERto be effective you need to logoff and login again. I am not a regular linux user so that was not obvious for me.After that I was able to test my new Zero board without problem, even create a small program to test the onboard RGBLED and worked flawless.