You are not logged in.
Pages: 1
Hi Arduino users !
I have recently installed q4os, and is now trying to reestablish what I did on w10, one thing being Arduino.
Please give me a hand with two main obstacles; first a practical route to access Arduino itself, all I've managed is a link in Dolphin which
then opens Arduino itself. Should be an icon on the desktop, right ? An installation error ?
The other thing is connection; I can define a board (Avr boards Nano) and a Port, /dev/ttyUSB0 comes up.
Then, when I try to upload, it compiles, but says "avrdude: ser_open(): can't open device "/dev/ttyUSB0": Permission denied
For example a usb memory is connected immediately, so is this a case of missing drivers ?
Peter
Offline
I've always used Arduino legacy(i don't like the latest version..) on my laptop, never actually in win10 but only in Q4OS
Installation went like
Download arduino-1.8.19-linux64.tar.xz
Extract, and enter folder
Open terminal
Run
sudo ./install.shReboot
Next up, it's as easy as starting the ide, settings port and board and clicking the upload button ![]()
It's been well over 6 months since I last used Arduino ide so.. i don't really remember doing anything else to get it working
If you're using the latest/new Arduino ide then try adding your user to required groups and removing modemmanager by running,
sudo apt-get remove modemmanager -y
sudo groupadd plugdev
sudo groupadd dialout
sudo usermod -a -G tty $USER
sudo usermod -a -G dialout $USER
sudo usermod -a -G uucp $USER
sudo usermod -a -G plugdev $USERFollowed up by a reboot, you should be now able to upload your code to your avrboards, if the issue persists, try using Arduino legacy
coding & robotics enthusiast | Q4OS 6.4 TDE/XFCE + Win10 1903 on ASUS-E202SA (N3060 | 2GB RAM | 500GB HDD)
Offline
Hello, and thanks for responding!
Will try this out asap.
(Not sure about time difference, but here in Sweden it's early morning now)
Would probably feel familiar using that earlier version too...
I guess you haven't had any issues with USB ports when connecting the arduino boards then ?
Regards
Peter
Offline
Hello, and thanks for responding!
Will try this out asap.
(Not sure about time difference, but here in Sweden it's early morning now)
oh i replied at 3 in the morning so definitely some time difference
Would probably feel familiar using that earlier version too...
I guess you haven't had any issues with USB ports when connecting the arduino boards then ?
Not with connecting to Arduino, only issue I've had is i damaged one of the two usb a ports.. sucks ![]()
coding & robotics enthusiast | Q4OS 6.4 TDE/XFCE + Win10 1903 on ASUS-E202SA (N3060 | 2GB RAM | 500GB HDD)
Offline
first a practical route to access Arduino itself, all I've managed is a link in Dolphin which
then opens Arduino itself. Should be an icon on the desktop, right ? An installation error ?
Why and how did you create your link in Dolphin? What is its target? What do you expect to happen with it?
You'll have access to your Arduino board only using Arduino IDE. With my Uno it uses /dev/ttyACM0, which is created automatically when I connect it, and deleted automatically when I disconnect it.
Don't expect an installer to create an icon on the desktop; instead it may create an entry in the applications launcher. But this does not happen when unzipping a zip archive or an AppImage.
So the question is: how exactly did you install your Arduino IDE? Could be useful to know which version.
The other thing is connection; I can define a board (Avr boards Nano) and a Port, /dev/ttyUSB0 comes up.
Then, when I try to upload, it compiles, but says "avrdude: ser_open(): can't open device "/dev/ttyUSB0": Permission denied
For example a usb memory is connected immediately, so is this a case of missing drivers ?
Like an USB printer, an Arduino board is not an USB memory, don't expect they behave the same way.
You must consider the possibility of a hardware issue (USB connector, USB cable, Arduino board). Change one of them at a time and see what happens.
Try also to open a Terminal and to launch `ls /dev/ttyUSB*` to see if such devices even exist; what is the output?
Note that this is the 5th thread where you post nearly the same questions about Arduino, with answers spread around (I'm not sure you have seen all of them).
Q4OS machine: Samsung R519 - Pentium T4200 2.0 GHz - 4 GB RAM - 500 GB SSD
Offline
Why ? (Lots of them)
The short answer is because I can not pinpoint the error here, or even if it's my mistake, the instructions, or some version problem maybe.
The bottom line is simply that I can't install Arduino on my system, and would very much like to find a solution.
Have tried the instructions in this post, for legacy and modern, but the system simply doesn't follow protocol. That goes for Arduino's own
download instructions too. This should point to a typing error or something like that, but several attempts have failed.
On the other hand, there are obviously members here that do run Arduino, so it should be possible.
Strange anyway....
Peter
Offline
Please realize that I don't know anything more about your system than what you say, and this is really very nebulous, not to say contradictory (on one side you say you couldn't install Arduino IDE, on the other side you say that "/dev/ttyUSB0 comes up" --- in Arduino IDE, I presume, where else?)
I asked two specific questions and you didn't answer them.
Regarding the installation, do you mean you don't know how to install or do you mean the installation failed and, in this case, "how exactly did you try to install your Arduino IDE, and what error message did you get, if any?
Please give detailed, precise and extensive answers (as if you directed me to do exactly the same things you did).
Q4OS machine: Samsung R519 - Pentium T4200 2.0 GHz - 4 GB RAM - 500 GB SSD
Offline
Maybe try asking on Arduino forum..
I found a post with similar issue and they fixed it by using snap's Arduino.. maybe try that?
coding & robotics enthusiast | Q4OS 6.4 TDE/XFCE + Win10 1903 on ASUS-E202SA (N3060 | 2GB RAM | 500GB HDD)
Offline
hchiper,
sorry for my outburst, guess I was frustraded over being so close but not getting there.
(on top of that I just wrote a fairly long answer only to discover I wasn't logged in anymore so my answer was gone....)
My first installation attempt was downloading "arduino-ide_2.3.6_Lknux_64bit.AppImage". Clicking on that, and confirming "run", starts Arduino, and I can enter a sketch, for now an example sketch. I can then choose Arduino AVR Boards, Nano here. With a board connected the Port shows up as /dev/:ttyUSB0.
Then the problem: it compiles, but says "avrdude:ser_open(): can't open device "/dev/ttyUSB0": Permission denied
So, that's what really needs a solution. My other Carlsson for help was about "real" installations, which never worked for me.
Another thing of course is some kind of desktop icon.
Appreciate thoughts on this, I am slowly learning.....
Peter
Offline
"My other Carlsson" ?? Should be "call" if I remember right.
Offline
OK, thanks.
I downloaded version 2.3.6 too. Instead of the .appimage I choose the .zip which I decompressed. I launched the executable (double click on the file `arduino-ide` shown in Dolphin). It started some automatic downloads and I got this window.

Then I connected my Arduino Uno and to have it recognized, I did NOT use the Tools menu, but I selected it directly in the drop-down menu in the toolbar at the right of the tree circular buttons.

As you can see on this screenshot, it is connected on the port /dev/ttyACM0 (instead of /dev/ttyUSB0 that you have mentioned). I can compile and upload without any error message.
What could make the difference with your setup is that I had previously installed the Arduino IDE from the repositories, which is version 1.8.13 for Q4OS 4.
My suggestion is that you forget the appimage and try to install Arduino IDE from the repositories too:
open a terminal or Konsole (open application launcher and type "terminal" or "Konsole" in the search bar)
it should look like a command line
at the "$" prompt, type "sudo apt install arduino"
type your password when requested (type carefully: it is not displayed) and hit enter
once installed, the "$" prompt will be visible again
then either type "arduino" and hit enter, or look in the application launcher for the Arduino app
check it is NOT version 2.3.6, but an older one (the one available in the repositories)
connect your Arduino Nano and look under the Tools menu what board and port are recognized: still /dev/ttyUSB0 or /dev/ttyACM0?)
try to upload a sketch and see if the error happens again
Following the case:
if everything goes well, close the Arduino app, run version 2.3.6 (appimage) again, and see what happens
if the error persists, try what theasmitkid advised in post #2
theasmitkid also suggested a link in post #8
if the error persists anyway, we must consider a hardware failure -> see the 2nd part of my post #5 (try even another computer with another OS)
Last edited by hchiper (2025-08-14 07:37)
Q4OS machine: Samsung R519 - Pentium T4200 2.0 GHz - 4 GB RAM - 500 GB SSD
Offline
Ok, will check this out. Very thorough, thanks.
Peter
Offline
@hchiper
+1
Offline
In addition, having theasmitkid's post in mind, I'm also curious to know the output of a number of commands.
If possible, once before installation of arduino and once after.
First, connect your Nano with the USB cable (mandatory for the first command).
Then open a Terminal / Konsole, type these commands (respect the lower- and upper-case) and give their output
$ ls -l /dev/tty[AU]*
$ cat /etc/passwd | grep home
$ cat /etc/group | grep dialout
$ whoami
$ groupsLast edited by hchiper (2025-08-14 11:07)
Q4OS machine: Samsung R519 - Pentium T4200 2.0 GHz - 4 GB RAM - 500 GB SSD
Offline
hchiper
ls -1 /dev/tty[AU* results in /dev/ttyUSBO
whoami returns peter
groups return peter adm dialout cdrom floppa sidor audio dip video plugget users netdev
bluetooth lpadmin scanner systemd-journal
The other two, with "cat" I couldn't test, my keyboard lacks the " | " character.(but not my tablet as you can see)
After installing 1.8.19:
ls etc. returns can't reach it, file or catalogue doesn't exist
whoami same as before
groups same as before
Hope this tell you something
Peter
Offline
Please run the first 3 commands (for the first one you typed the digit 1 instead of the lower case L and you forgot the right square bracket ; to be sure you can also copy/paste these commands, also a workaround to the missing vertical bar).
Check also if /dev/ttyUSB0 is still present when your Nano board is disconnected.
And you say nothing of what happens now with Arduino IDE (installed from repositories and appimage)... yet this is the main concern.
Edit:
One more thing (from what I read on various forums): are you using a real USB data cable (not a simple power cable) and is it fully plugged in at both ends? Do you use the USB cable you received with your Nano (provided you received one)?
Last edited by hchiper (2025-08-14 19:01)
Q4OS machine: Samsung R519 - Pentium T4200 2.0 GHz - 4 GB RAM - 500 GB SSD
Offline
actually I tested also after login; "after installing 1.8.19" But yes, I misread the font, will redo that. And possibly find that missing character to copy.
The cable, and my two nano boards, were working fine on W10, using the same computer. I have also tried different usb ports.
The "permission denied" statement sounds like it's not like missing hardware ? Just a thought.
Peter
Offline
The cable, and my two nano boards, were working fine on W10, using the same computer. I have also tried different usb ports.
Can you boot W10 again and test if you're able to upload a sketch successfully?
This would exclude a hardware issue.
Try also to boot from a live image, then install arduino (sudo apt install arduino) [this will install it only in memory, not on your SSD or your USB stick] and test again to upload a sketch. Doing so would bypass any possible configuration issue on your real Q4OS installation.
Last edited by hchiper (2025-08-15 07:47)
Q4OS machine: Samsung R519 - Pentium T4200 2.0 GHz - 4 GB RAM - 500 GB SSD
Offline
Sorry about delay, I ran into login problems too.
Opening W10 would require changing my ssd:s, I am running q4os on it's own ssd, but do have w10 on another ssd, that should have
Arduino up and usable. Could probably just swap connections.
Really qurious about all this, and will test that too, but have to say I am going away for a few dags, so unsure about available time.
Will come back with progress when possible.
Peter
Offline
Hello hchiper,
Coming back with progress,
I finally got around to buying a new cable, and guess what, it works !
So far just example sketches, with some changes, but no error messages, and the little
load LED blinks away as it should.
Now I just need to find and transfer my old sketches from W10.
Really appreciate your efforts trying to solve this problem, should have tried a new cable earlier I guess.
Regards
Peter
Offline
I finally got around to buying a new cable, and guess what, it works !
I've spent questionable amount of time trying to troubleshoot arduinos in school, then the fix was as easy as replacing the cable from the pile of 100s..
must be broken d+ or d- traces, but then the cable should not work in win10 too
Well, glad it's working for you now,
Happy tinkering ![]()
coding & robotics enthusiast | Q4OS 6.4 TDE/XFCE + Win10 1903 on ASUS-E202SA (N3060 | 2GB RAM | 500GB HDD)
Offline
Thanks, great to get going again. Now copying sketches from my earlier w10 environment.
Really helpful forum this !
Peter
Offline
Glad the problem is solved.
Q4OS machine: Samsung R519 - Pentium T4200 2.0 GHz - 4 GB RAM - 500 GB SSD
Offline
Pages: 1