Introduction: Install Arduino on Linux
How to install the latest version of Arduino in Ubuntu
Step 1: Download the Latest Version of the Official Website
Access the site https://www.arduino.cc/en/Main/Software and download the package that fits the settings of the computer you are using, in my case it is an Ubuntu x64.
You will be redirected to a page where you can choose to contribute with Arduino software or not, if you do not want to contribute click on "JUST DOWNLOAD" link
Step 2: Installing Arduino
After the download, open a terminal and type:
- cd Downloads/
This command will cause the terminal to go to the download folder where the installation package was downloaded
type it:
- ls
This command lists the files in the folder, it is important to know the package name In my case
"arduino-1.8.3-linux64.tar.xz"
To unpack the package:
- tar -Jxf arduino-1.8.3-linux64.tar.xz
Remember that if your has the different name you should replace the correct name in the command
If you execute "ls" again you will get:
"arduino-1.8.3 arduino-1.8.3-linux64.tar.xz"
So that the folder does not remain in downloads, let's move it to a more appropriate folder, using the command:
- sudo mv arduino-1.8.3 /usr/share
Let's acess the moved folder using:
- cd /usr/share/arduino-1.8.3/
If you execute "ls" again must be obtained:
"arduino hardware lib revisions.txt uninstall.sh
arduino-builder install.sh libraries tools examples
java reference tools-builder"
And finally run the installation script that comes with the package using:
- sudo ./install.sh
At the end the terminal should look like the one in Figure
Step 3: Testing
To run the program enter:
- sudo ./arduino
Note that this command will only work inside the folder where the installation was done
After the command a window should open
Select the port being used "Tool> Port:> port_that_the_arduino_is_connected"
Open the Blink example "File> Examples> 01. Basics> Blink"
Click on the code upload button
Check if the program was able to load the code on Arduino
If no error message appears you have finished installing correctly