Arduino ide path linux

Как установить Arduino IDE на linux

На данный момент у меня стоит Linux 20.04 и Arduino IDE у меня получилось поставить только версии 1.8.15 — почему? — расскажу далее.

Мои неудачные попытки установки Arduino IDE на linux

На официальном сайте https://www.arduino.cc/en/software имеется дистрибутив. Всё отлично, скачал его, распаковал. Но вот беда: исполнительный фаил не открывается.
Начал разбираться — совет был переустановить Java JDK — но ходил по кругу, т.к. Java JDK у меня устанавливается с ошибкой.

Хорошо, следующая мысль — надо обновить Linux до версии 21.XX или даже 22.XX — нашел «Мурзилку» по обновлению, сделал все подготовительные операции: судо апэтэ апдейт, апргрейд и т.п., но смутила фраза «сделать бекап» . Читаю комменты — у многих ничего не получилось — и такой вариант меня вообще не устраивает.

Теперь пришла мысль: так, линукс версия у меня старая, почему бы не поставить старую версию Arduino IDE?

Как я поставил Arduino IDE на linux

  1. Выполняем все подготовительные операции Апдейт и Апгрейд:
    sudo apt update && sudo apt upgrade
  2. Скачиваем пакет с Arduino IDE версии 1.8.15:
    wget https://downloads.arduino.cc/arduino-1.8.15-linux64.tar.xz
  3. Находим наш скачанный архив и распаковываем его:
    Тут я действовал просто: правой кнопкой мыши — распаковать «тут»
  4. Проваливаемся в распакованные папки:
    arduino-1.8.15-linux64 / arduino-1.8.15 / install.sh
  5. Видим фаил install.sh но не торопимся его кликать. Несколько попыток прокликать его не увенчались успехом — в левом верхнем углу крутилось колесико «Загрузка» несколько секунд, затем пропадало и просто ничего не происходило. Ну всё. накипело до предела. тут же (в этой же папке) открываю консоль (правой кнопкой / терминал) и ввожу команду
    sudo ./install.sh
  6. Заходим в «Приложения» — сразу заметил по последней странице, что что-то прибавилось, что-то тут новенькое появилось — ищу — да . вот она .

Источник

Install the Arduino Software (IDE) on Linux

The Linux build of the Arduino Software (IDE) comes in different packages depending on your system architecture. There are no specific instructions needed for the different distributions of Linux (e.g. Ubuntu).

Читайте также:  Gpg encrypt file linux

Download the Arduino Software (IDE)

Get the latest version from the download page. You can choose between the 32, 64 and ARM versions. It is very important that you choose the right version for your Linux distro. Clicking on the chosen version brings you to the donation page and then you can either open or save the file. Please save it on your computer.

Linux Download

Extract the package

The file is compressed and you have to extract it in a suitable folder, remembering that it will be executed from there.

Linux Extract

Run the install script

Open the arduino-1.6.x folder just created by the extraction process and spot the install.sh file. Right click on it and choose Run in Terminal from the contextual menu. The installation process will quickly end and you should find a new icon on your desktop.

If you don’t find the option to run the script from the contextual menu, you have to open a Terminal window and move into the arduino-1.6.x folder. Type the command ./install.sh and wait for the process to finish. You should find a new icon on your desktop.

Linux Install 2

Proceed with board-specific instructions

When the Arduino Software (IDE) is properly installed you can go back to the Getting Started Home and choose your board from the list on the right of the page.

Please Read.

It might happen that when you upload a sketch — after you have selected your board and the serial port -, you get an error Error opening serial port . If you get this error, you need to set serial port permission.

you will get something like:

crw-rw—- 1 root dialout 188, 0 5 apr 23.01 ttyACM0

The «0» at the end of ACM might be a different number, or multiple entries might be returned. The data we need is «dialout» (is the group owner of the file).

Now we just need to add our user to the group:

where is your Linux user name. You will need to log out and log in again for this change to take effect.

Ubuntu Serial

This is the procedure to access the serial port from the Arduino Software (IDE) if you get an error

After this procedure, you should be able to proceed normally and upload the sketch to your board or use the Serial Monitor.

Читайте также:  Astra linux узнать видеокарту

The text of the Arduino getting started guide is licensed under a Creative Commons Attribution-ShareAlike 3.0 License. Code samples in the guide are released into the public domain.

Источник

VS Code cannot find Arduino IDE path

I have been trying to use the Arduino extension for VS Code in Ubuntu 18, but when I execute the initialize command, I get the error «Cannot find the Arduino IDE. Please specify the arduino.path in the user settings». So I wrote every path that comes out when executing the command «whereis arduino», I’ve also tried leaving the box empty (in theory that makes VS Code search for the IDE) and reinstalling both the Arduino IDE and VS Code several times, without any result. Does somebody knows a possible fix for this issue?

I am having the exact same issue on Windows. I found the path and copied and pasted it into VSC to no avail. I have the Arduino IDE but may have to use it since VSC wont work.

Engineerpioneer wrote an Answer saying «Did you switch on the feature image. What you should have enabled»

8 Answers 8

Open Settings(JSON)

  • Download and extract the appropriate Arduino version according to your need from here, and install it using command sudo ./install . In my case, I have downloaded Arduino 1.8.6 Linux 64 Bit .
  • Goto Files -> Preferences -> Settings, Open Settings(JSON) as shown below.
  • Change arduino.path to the path location of extracted Arduino file. In my case it is /home/user/Downloads/arduino-1.8.6 and arduino.commandPath to arduino .
    OR
    For those who installed Arduino through snap platform refer this post.
  • Your Settings JSON file should look like this.
  • Save and restart.
    It’s Done!!
    Good Luck
    P.S.:Add arduino.commandPath if not already exist and should point to Arduino executable present in the arduino.path .

Why oh why isn’t this answer in the extension README. I faffed around for ages with various paths & commands & had no joy — this got it working in 5 seconds flat. Note: Also works with arduino-cli 🙂 Thank you.

Источник

Arduino IDE 1 Installation (Linux)

This document explains how to install the Arduino Software (IDE) on Linux machines.

Quick Start

The Linux build of the Arduino Software (IDE) comes in different packages depending on your system architecture. There are no specific instructions needed for the different distributions of Linux (e.g. Ubuntu).

Download the Arduino Software (IDE)

Get the latest version from the download page. You can choose between the 32, 64 and ARM versions. It is very important that you choose the right version for your Linux distro. Clicking on the chosen version brings you to the donation page and then you can either open or save the file. Please save it on your computer.

Читайте также:  Arch linux bios grub

Save the file.

Extract the package

The file is compressed and you have to extract it in a suitable folder, remembering that it will be executed from there.

Extracting the package.

Run the Install Script

Open the arduino-1.x.x folder just created by the extraction process and spot the install.sh file. Right click on it and choose Run in Terminal from the contextual menu. The installation process will quickly end and you should find a new icon on your desktop.

If you don’t find the option to run the script from the contextual menu, you have to open a Terminal window and move into the arduino-1.x.x root directory and run the following command:

This method only works for versions greater or equal than 1.6.5. Remove

You should find a new icon on your desktop.

Running the installation script.

Please Read

It might happen that when you upload a sketch — after you have selected your board and the serial port -, you get an error Error opening serial port . If you get this error, you need to set serial port permission.

you will get something like:

crw-rw---- 1 root dialout 188, 0 5 apr 23.01 ttyACM0

The «0» at the end of ACM might be a different number, or multiple entries might be returned. The data we need is «dialout» (is the group owner of the file).

Now we just need to add our user to the group:

sudo usermod -a -G dialout username>

is your Linux user name. You will need to log out and log in again for this change to take effect.

Adding user to the group.

This is the procedure to access the serial port from the Arduino Software (IDE) if you get an error

After this procedure, you should be able to proceed normally and upload the sketch to your board or use the Serial Monitor.

The text of the Arduino getting started guide is licensed under a Creative Commons Attribution-ShareAlike 3.0 License. Code samples in the guide are released into the public domain.

Источник

Оцените статью
Adblock
detector