Installing Arduino IDE on Ubuntu

Installing Arduino IDE on Ubuntu is simple and straightforward. There’s a tutorial on Arduino site explaining how to set up Arduino IDE on Linux. We can also install the IDE safely from Ubuntu Software Center. However, I prefer to use command line to install the IDE since I can install the latest beta version as well. These are steps to install Arduino IDE using command line:

1. Getting download link

Open Arduino download page on and find link to download *.tar.gz file.


Arduino IDE Installer


The link to download the IDE will have the following format:[VERSION].tar.xz

We have to substitute [VERSION] in the preceding format with the IDE version and target platform. In writing this note, the latest version is 1.8.5 and I would like to install it into Ubuntu 64 bit, so the [VERSION] will be 1.8.5-linux64. As a result, the download link is which we will use in the next step.

2. Retrieving Arduino IDE files

For simplicity, go to $HOME directory by running the following command:

Download the files from the link we’ve got in the previous step using the following command:

Extract the arduino-1.8.5-linux64.tar.xz file using this command:

By now, we have arduino-1.8.5 directory on $HOME directory.

3. Moving the files to /opt directory

As we can see in this link:, we should store software which is not handled by the package manager in /opt directory. In this step, we are going to move the arduino-1.8.5 directory to /opt directory use the following command:

Then, change the /opt/arduino directory permissions using the following command:

4. Running installation script

By now, the Arduino IDE has been placed in the right place. Before we can run the IDE, we have to run an installation script in /opt/arduino directory. To do so, run the following command:

After successfully run the preceding code, we should see a Arduino IDE shortcut on Ubuntu desktop. Just double click the shortcut to run the IDE.

5. Modifying the desktop shortcut

In case you face an error notifying that the shortcut cannot launch the application, you need to modify the shortcut using the following command:

Find the Exec= below [Desktop Entry] and change the value as follow:

Press Ctrl-X and press Y to save the updated file. Double click the shortcut again and the IDE now should be loaded and ready to use.

6. Setting serial port permission

The first time we use the IDE and try to upload the sketch, we might get an error explaining that serial port permission is denied. To solve this problem, we need to set serial port permission.

First, run the following command to list all available serial port:

We should get output similar to following output:

crw-rw—- 1 root dialout 188, 0 Peb 21 15:14 /dev/ttyACM0

Then, we need to add our user name to this dialout group (or any group you find from the preceding command) as follow:

Change wisnu with your user name. This action might need log out to perform successfully.