Install the Arduino Software (IDE) on Linux

Nov 06, 2012  Find the Port Number that Arduino is Plugged Into. Created on: 6 November 2012. In this article, the serial port name / number is determined programmatically using the Processing language.This means that an application written in Processing is used to find and display the computer port name that Arduino or other USB serial device is plugged into. Run the install script. Open the arduino-1.6.x folder just created by the extraction process and spot the install.sh file. Right click on it and choose Run in Terminal from the contextual menu. The installation process will quickly end and you should find a new icon on your desktop. Jul 25, 2010  arch linux updated at last version (it's a rolling release) without sudo power = Tools - Serial Port greyed out, arduino in the home directory. But if i upload code will try with COM1, the serial port of my pc(i think). Installed via pacman only gcc-avr, no FTDI driver.

This document explains how to install the Arduino Software (IDE) on Linux machines.

On this page.. (hide)

  • Quick Start

Quick Start

The Linux build of the Arduino Software (IDE) is now a package that doesn't require any specific procedure for the various distributions availabe of Linux. The only relevant information is the 32 or 64 bit version of the OS.

Download the Arduino Software (IDE)

Get the latest version from the download page. You can choose between the 32, 64 and ARM versions. It is very important that you choose the right version for your Linux distro. Clicking on the chosen version brings you to the donation page and then you can either open or save the file. Please save it on your computer.


Mozilla firefox download xp. English,. Italian,.

Extract the package

The file is compressed and you have to extract it in a suitable folder, remembering that it will be executed from there.


Run the install script

Open the arduino-1.6.x folder just created by the extraction process and spot the install.sh file. Right click on it and choose Run in Terminal from the contextual menu. The installation process will quickly end and you should find a new icon on your desktop.

If you don’t find the option to run the script from the contextual menu, you have to open a Terminal window and move into the arduino-1.6.x folder. Type the command ./install.sh and wait for the process to finish. You should find a new icon on your desktop.


Proceed with board-specific instructions

When the Arduino Software (IDE) is properly installed you can go back to the Getting Started Home and choose your board from the list on the right of the page.

Please Read..

It might happen that when you upload a sketch - after you have selected your board and the serial port -, you get an error Error opening serial port .. If you get this error, you need to set serial port permission.

Open Terminal and type:

ls -l /dev/ttyACM*

you will get something like:

crw-rw---- 1 root dialout 188, 0 5 apr 23.01 ttyACM0

The '0' at the end of ACM might be a different number, or multiple entries might be returned. The data we need is 'dialout' (is the group owner of the file).

Now we just need to add our user to the group:

sudo usermod -a -G dialout <username>

where <username> is your Linux user name. You will need to log out and log in again for this change to take effect.

This is the procedure to access the serial port from the Arduino Software (IDE) if you get an error

After this procedure, you should be able to proceed normally and upload the sketch to your board or use the Serial Monitor.


Last revision 2016/08/10 by SM



The text of the Arduino getting started guide is licensed under aCreative Commons Attribution-ShareAlike 3.0 License. Code samples in the guide are released into the public domain.

Active4 months ago

I am running Debian 7 (Linux Crunchbang) and wanted to use The Arduino IDE to program my Arduino UNO. To do that I installed the package arduino. When I started the Arduino I was asked to add my user to the dialout group. So I did with sudo usermod -a -G dialout <my-username>.

However when I start the Arduino IDE using arduino in the commandline the IDE opens but I am not able to load my program to the Arduino. The error message is 'Serial port COM1 not found. Did you select the right one from the Tools > Serial Port menu?' And when I went to select the Serial Port, the option 'Tools > Serial Port' is greyed out.

I thought it is because I did not grant read and write permissions on my usb port (ttyACM0). So I did sudo chmod a+rw /dev/ttyACM0 but the option is still greyed out.

Braiam
3,6559 gold badges36 silver badges66 bronze badges
MoonlitMoonlit
2,10410 gold badges43 silver badges78 bronze badges

16 Answers

chdmod works for my under debian (proxmox):

Download jmeter for windows 10. Free download page for Project Jmeter Enhancements's apache-jmeter-3.0-src.zip.The present JMeter application has some features that are missing as compared to other available load testing tools. The main purpose of this application development is to provide the users of t. Nov 25, 2011  Now finally we will learn from where we should download JMeter and how to install it on your local Windows Machine. Downloading & Installing JMeter on Windows. Now finally we will learn from where we should download JMeter and how to install it. Download Apache JMeter. We recommend you use a mirror to download our release builds, but you must verify the integrity of the downloaded files using signatures downloaded from our main distribution directories. Recent releases (48 hours) may not yet be available from all the mirrors. Step by step process to show How to Download and Installation JMeter on windows machine. Step by step process to show How to Download and Installation JMeter on windows machine. Skip to content. Go to your JMeter bin folder to launch JMeter, in our case it would be C:UserslsharmDownloadsapache-jmeter-3.0bin and locate appropriate file. Apr 15, 2017  Download Apache JMeter 3.2 – What’s there in the box? Today Apache released its newer version of JMeter. This minor release brings up several enhancements, bug fixes, UI changes, performance improvements and much more.

For installing arduino IDE:

Add the user to dialout group:

Restart Linux.

Try with the File > Examples > 01.Basic > Blink, change the 2 delays to delay(60) and click the upload button for testing on arduino, led must blink faster. ;)

Braiam
3,6559 gold badges36 silver badges66 bronze badges
user3104260user3104260

sudo arduino is the only way I get the Arduino IDE working (serial port and upload) on ubuntu 12.04 (64)Indeed the serial port to use is /dev/ttyACM0 in my case too.The other two (ttyS4 and ttyS0) gave an error when trying to upload to Uno.Have fun

user3878345user3878345

Close all instances of the arduino IDEopen ~/.arduino/preferences.txt and look for the line:

and change it to your port:

you may have to log out for it to take effect

chaggychaggy

Try Disconnecting the usb and plugging it back in. Its only grayed out because the ide cannot find any com ports that the uno has been plugged into.

another solution is to try all the com ports and see which one works.

finally if all fails try restarting your computer.

user2375589user2375589

open $arduinoHome/arduino in text editor and modify last string:

to

(set property gnu.io.rxtx.SerialPorts to /dev/ttyACMN,where ttyACMN is name of serial port which you use)

it may temporary fix bug in rxtx library. helped me to upload sketch with arduino1.0.5 IDE.

Maybe would helpful for someone.

SildSild
8532 gold badges10 silver badges19 bronze badges

In my case I solved this issue by uninstalling the version of Arduino that I installed via apt-get and instead installed via the official website.

With the latest version of Arduino I didn't have the problem described on Ubuntu 18.04.

Philip KirkbridePhilip Kirkbride
9,03127 gold badges90 silver badges159 bronze badges

In my case this turned out to be a bad USB hub.

The 'lsusb' command can be used to display all recognized devices. If the unit is not plugged in the option to set the speed will be disabled.

The lsusb command should output something like the string 'Future Technology Devices International, Ltd Bridge(I2C/SPI/UART/FIFO)' if your device is recognized. Mine was an RFDuino

JayJay
11.2k3 gold badges32 silver badges60 bronze badges

install rx-tx lib for java run this command in terminal

output port

help regconize usb device

Rakibul HasanRakibul Hasan

So I did with sudo usermod -a -G dialout <my-username>.

You need to log out after you add yourself to a group so those changes are applied. Just log out and log in again and the menu should be available.

BraiamBraiam
3,6559 gold badges36 silver badges66 bronze badges

Same comment as Philip Kirkbride. It wasn't a permission issue, but using the Arduino IDE downloaded from their website solved my problem.Thanks!Michael

Michael OpdenackerMichael Opdenacker

The following steps install the IDE and remove the error java.lang.NullPointerException thrown while loading gnu.io.RXTXCommDriver which usually comes with arduino installed with apt-get command in Ubuntu.

Install the IDE

for removing java error in IDE

This also shows the Serial Port which was grayed out due to the error.

Zoe
16.1k12 gold badges67 silver badges98 bronze badges
Sheetal guptaSheetal gupta
Ubuntu arduino serial port greyed out

For a Windows solution I've found that disabling and re-enabling the Arduino in Device Manager, then restarting the Arduino IDE does the trick without fail (no unplugging necessary). Why this error occurs in the first place is beyond me. Perhaps the corresponding method for Linux will fix your problem.

Slightly related (not really), I had an issue with an AVR board a while back which was fixed by setting the device to a new COM port in the driver settings. Again, however you linux bunnies do it, I'm sure it'll be cookies and cream.

Cheers brother,

Eddie SpaghettiEddie Spaghetti

I encountered the same issue. My solution was to install and use java7:

Select the number referring to the java-7 path.

Tones29Tones29

You probably don't have the correct permissions. Try adding yourself to these groups.

Then restart your system and check if you got added to the groups.

Good Luck!

Numbers SanNumbers San

Try to run as an administrator..Run terminal, type sudo arduino, type your root password, and.. :)

JunsaJunsa

I found this question while trying to troubleshoot the same 'grayed out' port menu problem, except on a windows machine.

For anyone who finds this question in the same situation, I fixed it by right clicking and choosing 'Run as Administrator'.

Ubuntu Arduino Uno Serial Port

funrollfunroll
26.4k7 gold badges45 silver badges54 bronze badges

protected by CommunityMay 5 '15 at 8:57

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).
Would you like to answer one of these unanswered questions instead?

Arduino Ubuntu Cannot Select Serial Port

Not the answer you're looking for? Browse other questions tagged arduinoarduino-ide or ask your own question.