Skip to content

Commit f2d2c20

Browse files
authored
Merge pull request #436 from arduino/karlsoderby/idev2-linux-serial
Linux Serial Issue Instructions for IDE 2
2 parents 41536b8 + 3afd3da commit f2d2c20

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed
13.2 KB
Loading

content/software/ide-v2/tutorials/getting-started/02.ide-v2-uploading-a-sketch/ide-v2-uploading-a-sketch.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,3 +52,32 @@ Uploading a sketch is quick and easy, but let's take a look at what we need to d
5252

5353
Congratulations, you have now uploaded a sketch to your Arduino board!
5454

55+
### Please Read (Only Linux Users)
56+
57+
It might happen that when you upload a sketch - after you have selected your board and the serial port -, you get an error such as **"... Permission denied"**. If you get this error, you need to set serial port permission.
58+
59+
To do this, open your Terminal and type:
60+
61+
```
62+
ls -l /dev/ttyACM*
63+
```
64+
65+
you will get something like:
66+
67+
```
68+
crw-rw---- 1 root dialout 188, 0 5 apr 23.01 ttyACM0
69+
```
70+
71+
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).
72+
73+
Now we just need to add our user to the group:
74+
75+
```
76+
sudo usermod -a -G dialout <username>
77+
```
78+
79+
where `<username>` is your Linux user name. **You will need to log out and log in again for this change to take effect.**
80+
81+
![Adding user to the group.](assets/Ubuntu_Serial.jpeg)
82+
83+
After this procedure, you should be able to proceed normally and upload the sketch to your board or use the Serial Monitor.

0 commit comments

Comments
 (0)