Как установить arduino ide на linux
Перейти к содержимому

Как установить arduino ide на linux

  • автор:

Как установить arduino ide на linux

To check if you have Java installed, open a terminal and enter the command: java

Checking Java Installation

If you see the above message, you do not have Java installed and you will need to install it. To install the Java package, enter the command: sudo apt-get install default.jre

Installing the Java Runtime Environment

You may be prompted to enter your user password.

Get the latest Arduino IDE.

  1. On the USB key: downloads → Linux → edison_media
  2. Based on your Linux operating system (32 bit or 64 bit), copy arduino-[version]-linux32.tar.xz or arduino-[version]-linux64.tar.xz to your computer.

Navigate to the folder where you copied the Arduino IDE .txz file and double-click it to open the archive.

You can decompress the file from the command line. To do so, use xz by entering the following command: unxz arduino-1.6.5-linux64.txz

If you don’t have xz installed, install it by entering one of the following commands:
* For Ubuntu or other Debian-based machines: sudo apt-get install xz-utils
* For Red Hat, Fedora, CentOS, or similar machines: sudo yum install xz

Click Extract and navigate to the directory where you would like to unzip the Arduino IDE. In this example, we will leave it in the Download directory. Click Extract.

The extracted folder should contain a file named arduino, as well as several folders.

Extracted Arduino IDE

Open up a new Terminal window.

Navigate to the Arduino IDE folder. In in this example, the command will be cd Downloads/arduino-x.x.x/ , where x.x.x is the Arduino IDE version number you downloaded. Note: When you start typing in cd Downloads/arduino, you can press Tab to auto-complete the folder path.

Downloads Directory

To run Arduino with administrator privileges, enter the command: sudo ./arduino . If prompted, enter your password.

Arduino IDE on Linux

The Arduino IDE opens.

In a serial communication window, check the availability of /ttyACM port by entering the following command: ls /dev/ttyACM*

Note: If the /ttyACM* port is not available, here are several reasons why:

The modem manager is using the port. When the port becomes active, the modem manager can claim the port, blocking the IDE’s access to the port. The exact command to remove it will depend on your Linux distribution. For example, the command sudo apt-get remove modemmanager may work.

The /ttyACM port was not created automatically when you plugged in your board. To add the port, do the following:

  • Create a file: etc/udev/rules.d/50-arduino.rules
  • Add the following to the file: KERNEL==»ttyACM[0-9]*», MODE=»0666″

Restart udev by entering the following command: sudo service udev restart
If you are using a virtual machine (VM), you may need to reboot Linux within the VM.

To save on internet bandwidth, install the “Intel i686 Boards” toolchain manually to your Arduino IDE installation.

  1. On the USB key: downloads → Linux → edison_media
  2. Copy IntelArduinoToolChain_linux.gz to your computer and unarchive it.
  3. Copy the uncompressed Intel folder and its contents to /home/[YOUR_USER_NAME]/.arduino15/packages on your computer.

Restart the Arduino IDE.

When you are using a more reliable internet connection, you can use the method below to update the Arduino boards list:

Choose Tools > Board > Boards Manager to open the Boards Manager.

Boards Manager - Windows

In the list of boards, select Intel i686 Boards which includes the Intel® Edison board.

Install Arduino IDE on Linux Mint 19

rahul bagul

Arduino IDE or Arduino Software is mainly developed to connect and communicate with Arduino Hardware. It is a cross-platform IDE that can run on Windows, macOS and Linux Distros. By using Arduino IDE you can write, compile and upload code to the Arduino Hardware. In this tutorial, you are going to learn how to install Arduino IDE on Linux Mint 19.

Before you start to Install Arduino IDE on Linux Mint. You must have the non-root user account on your system with sudo privileges.

Install Latest Arduino IDE

To install Arduino IDE, we need to download it first from their official website and then install it.

Open the Terminal Application by visiting Activities -> type "Terminal" .

At the time of writing this tutorial, the latest version available of Arduino IDE is 1.8.10 . When you are going to download it then you should check their official download page for the latest version.

Now download the 1.8.10 version of Arduino IDE by using the following wget command:

Now navigate to the download directory using the following command:

Extract the downloaded Arduino IDE file running following command:

After extraction completes we should navigate the extracted directory, to do so type following in the terminal:

Now to install Arduino IDE run following command in the Terminal:

After completing the above commands execution, you have successfully installed Arduino IDE on your Linux system.

Make sure, you run the following command to ensure the Arduino Desktop icon is accessible from Desktop:

Note: Replace linux4one with username on your system in the above command.

Launch Installation

To launch Arduino IDE from Desktop icon or you can visit Activities -> type 'Arduino' or you can run the following command in the terminal:

Conclusion

You have successfully learned how to Install Arduino IDE on Linux Mint. If you have any queries regarding this then please don’t forget to comment below.

Как установить 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

Выполняем все подготовительные операции Апдейт и Апгрейд:
sudo apt update && sudo apt upgrade

Скачиваем пакет с Arduino IDE версии 1.8.15:
wget https://downloads.arduino.cc/arduino-1.8.15-linux64.tar.xz

Находим наш скачанный архив и распаковываем его:
Тут я действовал просто: правой кнопкой мыши — распаковать «тут»

Проваливаемся в распакованные папки:
arduino-1.8.15-linux64 / arduino-1.8.15 / install.sh

Видим фаил install.sh но не торопимся его кликать. Несколько попыток прокликать его не увенчались успехом — в левом верхнем углу крутилось колесико «Загрузка» несколько секунд, затем пропадало и просто ничего не происходило. Ну всё. накипело до предела. тут же (в этой же папке) открываю консоль (правой кнопкой / терминал) и ввожу команду
sudo ./install.sh

Заходим в «Приложения» — сразу заметил по последней странице, что что-то прибавилось, что-то тут новенькое появилось — ищу — да . вот она .

Установка Arduino на Linux

Важно! При наличии ошибки может потребоваться редакция некоторых строк скрипта установки (каких именно, будет зависеть от версии приложения). По сути один пункт будет заменяться на другой, например:
RESOURCE_NAME = cc.arduino-arduinoide
Если вы предпочитаете работать с центром приложений Ubuntu, для вас будет предпочтительным иной вариант инсталляции. Пробуем установить Arduino IDE на Linux по-другому. В строке поиска вводим слово «Ардуино» (латиницей), кликаем «Установить»:

Нас попросят добавиться в группу dialout для доступа к USB-интерфейсу, потому выбираем «Add» и дожидаемся завершения процесса. Тут важен один момент – отсутствие русифицированного интерфейса, потому учитывайте свои предпочтения.

Не забываем — для нормального функционирования среды потребуется скачать и положить в папку с утилитой специализированные библиотеки:
sudo apt-get install gcc-avr avr-libc openjdk-6-jre
Они существуют как в авторском исполнении, так и стандартные (первые ищем в Инете).
О других важнейших этапах настройки мы расскажем в отдельной статье.

Добавить комментарий

Ваш адрес email не будет опубликован. Обязательные поля помечены *