# Установка Arduino IDE

В гайде описано как скачать Arduino IDE v2.x на Linux.

1. Скачать zip-архив с [сайт](https://github.com/arduino/arduino-ide/releases).
2. Выполнить команды

```bash
cd ~/Downloads
unzip arduino-ide_2.3.6_Linux_64bit.zip
sudo cp -r ~/Downloads/arduino-ide_2.3.6_Linux_64bit /opt/
sudo ln -s /opt/arduino-ide_2.3.6_Linux_64bit/arduino-ide /usr/local/bin/arduino-ide
```

3. Настройка прав доступа к USB-портам (для работы с платами Arduino) Чтобы Arduino IDE могла работать с подключёнными платами, добавьте своего пользователя в группу `dialout`:

```bash
sudo usermod -a -G dialout $USER
```

4. Создаём ярлык

```bash
nvim ~/.local/share/applications/arduino-ide.desktop
```

И прописываем:

```bash
[Desktop Entry]
Name=Arduino IDE
Comment=Arduino Integrated Development Environment
Exec=/usr/local/bin/arduino-ide
Icon=/opt/arduino-ide_2.3.6_Linux_64bit/resources/app/resources/icons/512x512.png
Terminal=false
Type=Application
Categories=Development;IDE;
```

5. Делаем ярлык исполняемым:

```bash
chmod +x ~/.local/share/applications/arduino-ide.desktop
```

6. Обновляем кэш

```bash
update-desktop-database ~/.local/share/applications/
```

7. Можно удалить исходники:

```bash
sudo rm -r ~/Downloads/arduino-ide_2.3.6_Linux_64bit
sudo rm -r ~/Downloads/arduino-ide_2.3.6_Linux_64bit.zip
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://alice-and-alex-docs.gitbook.io/alice_and_alex_docs/ustanovka-po-dlya-udobnoi-raboty/ustanovka-arduino-ide.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
