Install Arduino Linux
How to Install Arduino IDE On Ubuntu Linux – Using Linux as the OS in the development of microcontroller electronic devices is the right choice for me.
This article is based on my experience of several times failing to install Arduino Linux. In Linux, we have to do the installation starting from the downloaded extracted folder and set permission using the terminal.
Download Arduino IDE
Download the Arduino file with the tar.xz extension. In this tutorial, I downloaded arduino-1.8.13-linux64 Version.
Open Terminal
After the download is complete, open Terminal and go to your Download folder using command.
cd Downloads/
Extract tar.xz
We will extract it using the command:
tar -xf arduino-1.8.13-linux64.tar.xz
Move Arduino to /opt
Now we will move the extracted Arduino folder into the /opt folder, using the following command:
sudo mv arduino-1.8.13 /opt/
Then we go into the Arduino folder which is in the /opt folder.
cd /opt/arduino-1.8.13/
(Optional) Show the files in the arduino-1.8.10 folder in the form of a list to view the install.sh file using the command:
ls -l
Install the file
Make the install.sh file executable using the command:
chmod +x install.sh
Install Arduino with the command:
sudo ./install.sh
Done. Arduino is installed on your computer.
The following is a list of commands used in the Arduino installation process on Ubuntu Linux.
How to Configure Permission Denied Port
When you upload the code to the Arduino board an error appears like this:
avrdude: ser_open(): can’t open device “/dev/ttyACM0”: Permission denied
How to fix it?
Modify user accounts.
sudo usermod -a -G dialout <username>
For example, my computer username is neon, then write:
sudo usermod -a -G dialout neon
Give permission
Give permission for ports to be read and written using the terminal with two commands:
sudo chmod a+rw /dev/tty<ACM or USB>
For example, if the detected port name is ttyUSB0, then the command is:
sudo chmod a+rw /dev/ttyUSB0
Please log out/Reboot!
If not, this method only works once, not permanently. You must to logout/reboot your computer.
Video
If you want to see the video Arduino ide installation in Ubuntu, you can see this:
If you think this Install Arduino ubuntu article is useful, please share it with your friends using the share button below this article