Install Arduino IDE on Linux/Ubuntu: Are you ready to dive into the world of Arduino programming on your Linux/Ubuntu system? Installing the Arduino IDE on Linux/Ubuntu is a straightforward process, and this guide will walk you through every step. Whether you’re a beginner or an experienced developer, this tutorial will ensure you have the Arduino IDE up and running in no time.
In this blog, we’ll cover how to install Arduino IDE on Linux/Ubuntu, starting from downloading the .xz file to running the installation script. By the end, you’ll have a fully functional Arduino IDE ready for your creative projects. Let’s get started!
Table of Contents

Why Install Arduino IDE on Linux Ubuntu?
Before we dive into the installation process, let’s talk about why you should install Arduino IDE on Linux/Ubuntu. The Arduino IDE is a powerful tool that allows you to write, compile, and upload code to Arduino boards. Linux/Ubuntu, known for its stability and flexibility, is an excellent platform for developers. Combining the two opens up endless possibilities for IoT projects, robotics, and more.
Downlaod and Install Arduino IDE on Linux/Ubuntu
1: Download the Arduino IDE .xz File
To install Arduino IDE on Linux/Ubuntu, the first step is to download the official Arduino IDE package. Here’s how:
- Open your web browser and visit the official Arduino website:Â https://www.arduino.cc/en/software.
- Scroll down to the Linux section and download the .xz file. Choose the 64-bit or 32-bit version depending on your system architecture.
2: Extract the Downloaded .xz File
Once the download is complete, navigate to the directory where the file is saved. By default, it’s usually in the Downloads
folder. Follow these steps to extract the file:
Option 1: Using the Terminal
- Open the terminal usingÂ
Ctrl + Alt + T
. - Use theÂ
cd
 command to navigate to the Downloads folder:
cd ~/Downloads
3. Extract the .xz file using the following command:
tar -xvf arduino-ide-*.tar.xz
This will extract the contents of the .xz file into a new folder.
Option 2: Manual Extraction (GUI Method)
- Open the file manager and navigate to theÂ
Downloads
 folder. - Locate the downloadedÂ
.tar.xz
 file (e.g.,Âarduino-ide-2.x.x-linux64.tar.xz
). - Right-click on the file and select Extract Here or Extract to arduino-ide-2.x.x-linux64/.
- Wait for the extraction process to complete. A new folder with the same name as the file will be created.
3: Rename the Extracted Folder
To make things easier, rename the extracted folder to arduino
. Here’s how:
Option 1: Using the Terminal
- In the terminal, use theÂ
mv
 command to rename the folder:
mv arduino-ide-* arduino
Option 2: Manual Renaming (GUI Method)
- Open the file manager and navigate to theÂ
Downloads
 folder. - Locate the extracted folder (it will have a name likeÂ
arduino-ide-2.x.x
). - Right-click on the folder and select Rename.
- Change the folder name toÂ
arduino
.
Now, you’ll have a folder named arduino
in your Downloads directory.
4: Navigate to the Arduino Folder
Next, navigate to the arduino
folder using the terminal:
- Use theÂ
cd
 command to enter the folder:
cd arduino
2. List the contents of the folder using the ls
 command:
ls
Look for a file named install.sh
. This is the installation script we’ll use to install Arduino IDE on Linux/Ubuntu.
5: Run the Installation Script
If you find the install.sh
file, you’re ready to install Arduino IDE on Linux/Ubuntu. Follow these steps:
- Run the installation script with superuser privileges:
sudo ./install.sh
- Enter your password when prompted.
The script will install the Arduino IDE and create a desktop shortcut for easy access.
6: Launch the Arduino IDE
After the installation is complete, you can launch the Arduino IDE in two ways:
- From the Terminal:Â Simply typeÂ
arduino
 in the terminal and press Enter. - From the Desktop: Look for the Arduino IDE icon in your applications menu and click on it.
7: Verify the Installation
To ensure that the Arduino IDE is installed correctly, connect your Arduino board to your computer via USB. Open the Arduino IDE, select the correct board and port from the Tools
menu, and upload a simple sketch like the Blink
example. If the sketch uploads successfully, congratulations! You’ve successfully installed Arduino IDE on Linux/Ubuntu.
Troubleshooting Common Issues
While installing Arduino IDE on Linux/Ubuntu is usually smooth, you might encounter some issues. Here are a few common problems and their solutions:
- Permission Denied:Â If you get a permission error while runningÂ
install.sh
, ensure you’re usingÂsudo
. - Missing Dependencies:Â Some systems may require additional libraries. Install them using:
sudo apt-get install libncurses5-dev
USB Port Issues: If your Arduino board isn’t detected, check if your user is added to the dialout
 group:
sudo usermod -a -G dialout $USER
Why Choose Linux Ubuntu for Arduino Development?
Installing Arduino IDE on Linux/Ubuntu offers several advantages:
- Open-Source Environment:Â Linux/Ubuntu is open-source, just like Arduino, making them a perfect match.
- Stability and Performance:Â Ubuntu is known for its stability, ensuring a smooth development experience.
- Community Support:Â Both Arduino and Ubuntu have large, active communities ready to help.
Commonly Asked Questions & Answers
Q1: Can I install Arduino IDE on Ubuntu using the Snap package?
A:Â Yes, you can install Arduino IDE on Ubuntu using the Snap package. Simply run the following command in your terminal:
sudo snap install arduino
This method is quicker and handles dependencies automatically. However, some users prefer the manual installation method for more control over the setup.
Q2: Why is my Arduino board not detected in the Arduino IDE on Ubuntu?
A: If your Arduino board is not detected, it’s likely a permission issue. Ensure your user is added to the dialout
group by running:
sudo usermod -a -G dialout $USER
After running this command, log out and log back in for the changes to take effect. Also, verify that the correct board and port are selected in the Tools menu of the Arduino IDE.
Q3: How do I update Arduino IDE on Linux/Ubuntu?
A: To update Arduino IDE, download the latest version from the official Arduino website. Extract the new version, replace the old arduino
folder, and run the install.sh
script again. Alternatively, if you installed it via Snap, update it using:
sudo snap refresh arduino
By addressing these common questions, you’ll be better equipped to handle any issues that arise during or after the installation process. Happy coding with Arduino IDE on Linux/Ubuntu!
Final Thoughts
Install Arduino IDE on Linux/Ubuntu : Installing Arduino IDE on Linux/Ubuntu is a simple process that unlocks a world of possibilities for your projects. By following this guide, you’ve learned how to download, extract, and install the Arduino IDE on your system. Now, you’re ready to start coding and bringing your ideas to life.
Remember, the key to mastering Arduino programming is practice. So, fire up your Arduino IDE on Linux/Ubuntu and start experimenting today!
Download BlueBot Controller App and start your journey today!