I have an Arduino UNO, which I need to get working with Ubuntu.
Can somebody explain to me the steps required to install the IDE on Ubuntu?
I have an Arduino UNO, which I need to get working with Ubuntu.
Can somebody explain to me the steps required to install the IDE on Ubuntu?
Arduino IDE from Ubuntu's repos are usually outdated. There are several ways to install the latest Arduino IDE: with
umake
, from arduino.cc tar.gz, as a snap or flatpak. In all cases you may need to add your user todialout
group (if it doesn't work, add it also totty
group):Install using flatpak package
Install using Ubuntu Make (on GitHub)
Install Ubuntu Make
If not using Ubuntu 18.04+ or want the latest versions:
Install Arduino IDE with umake
Warning:
umake ide arduino
is deprecated.This will install it on
~/.local/share/umake/electronics/arduino
. If you don't get the shortcut available you'll need to runinstall.sh
found there.Some other software options (like Eagle or Sublime) are not free software. I recommend instead Fritzing and VSCodium (a community-driven, freely-licensed binary distribution of Microsoft’s editor VS Code).
Install using arduino.cc
Just follow official guide (or Canonical's tutorial):
lscpu
will tell you if 32 or 64 bits. If unsure, use 32 bits.tar -xvf arduino-1.8.2-linux64.tar.xz
)../install.sh
).Install using snap package
If you need any other Python 3 dependencies other than
serial
, you can install them inside the snap sandbox using thearduino.pip
command.Notes
/opt/
or/usr/local/
.You also have
With the latest versions come newer features like the "Additional Boards Manager URLs" on Preferences (to add ESP8266 board):
This is from notes I took when installing an Arduino. It was very helpful when I had to go through the same thing with other computers.
Install Sketch which is used to program Arduinos.
Use one of the following methods.
or
or
Open "Ubuntu Software Center" Search "arduino"
Set up the vendor ID.
Without Arduino plugged in
This is what I got
Again with Arduino plugged in.
This is what I got
Look at the addition line.
It will look something like this
Insert the numbers that you have in the command below.
Let's get the serial port to work
Without Arduino plugged in
Again with Arduino plugged in.
Look for the additional tty* NAME. Mine was ttyAMC0, yours may be ttyUSB* or ttyS*.
Now we know which port it is trying to use.
The following is used to log the serial input from the Arduino. You may not need it.
//It may be already installed on your computer.
You will get a setup menu.
Change first line with /dev/ttyAMC0 or whatever you found in your /dev/ directory.
Save setup as dfl.
I don't know what this does I just read it somewhere and it worked.
It is on ttyACM0. When I looked at the directory /dev I found that ttyACM0 would come and go when the Ardunio was plugged in or taken out.
Install kst //This program will take a your ascii file and put it on chart.
sudo apt-get install kst
newer version will be available at some date.
Install GtkTerm
Configure GtkTerm to the port which Arduino is connected to. The Arduino needs to be plugged in and the serial reader in Sketch can't be on.
You should be seeing the ascii numbers scrolling on GtkTerm.
Configure the GtkTerm to log the information to a text file.
If you open the text file now you should see the data in the file. I can't remember if GtkTerm needs to be pause to read this.
Open kst. Use Data wizard to connect to the data text file with ascii.
The data should be column 1.
From here your on you own.
As of Ubuntu 16, my best luck has come with the software center, but don't install Arduino IDE if it comes up. You will want to install
arduino-mhall
. It should look something like this:I tried various other methods here, and had all sorts of problems. This one just worked and I've been happily making stuff with my Arduino ever since.
Is this not what you're looking for? Is universe not enabled in your software update prefs? From Precise.
If you are installing the latest version (version 1.8.2) of the Arduino IDE, there is a file-naming error in the script which results in the error message:
When I looked in Arduino-1.8.2 64/lib there is no file
cc.arduino.arduinonoide.xml
but there is a file namedarduino-arduinonoide.xml
The solution is to open
install.sh
in your editor of choice and changeRESOURCE_NAME=cc.arduino.arduinoide
toRESOURCE_NAME=arduino-arduinoide
(and save the changes).Now,
./install.sh
can be run in the terminal without a hitch.I understand that this problem will be fixed in release 1.8.3
The full installation process is thus:
Download the Aduino IDE from the Arduino website (selecting the 32-bit or 64-bit version according to your needs).
Navigate to your downloads folder:
edit the install.sh script as described above to correct the problem with RESOURCE_NAME:
Make the changes as explained above, then save and exit.
Move the
Arduino-1.8.2 64
installation folder from your/downloads
folder to the/opt/
directory: and then navigate to the new folder:Make
install.sh
executable:and then run the script:
The Arduino IDE should now be installed and you should see the icon on your desktop.
First, you need to go to http://arduino.cc/hu/Main/Software. Then, download the Linux version of Arduino 1.0 for Linux. Next, extract the folder arduino-1.0 from the downloaded archive. Now, you just need to double click on the arduino file, choose Run from the dialog box that opens, and you're done! Arduino should now open.
If after extracting it is not working then Goto arduino 1.0 folder from your terminal and write
it should now open.
To get your Arduino working in ubuntu, just search "Arduino IDE" in the software center. Find it, and click install. You should then be able to get your Arduino working. Hope this helps!
Since February 2020, the easiest way to install the latest Arduino IDE is to use the Arduino snap:
Then add your user to the
dialout
group:After this, reboot your device and open Arduino IDE.
A note about Python support
The Arduino IDE snap runs inside a sandbox for security and stability reasons. This means it cannot access the Python libraries on your device. The snap bundles Python 3 and the
serial
library. If you need any other Python dependencies, you can install them inside the sandbox using thearduino.pip
command.Note: do not use
sudo
for this command