Uploading to arduino boards in Linux

Not sure if I am in the correct posting area.
I migrated from Windows to Linux Mint on my laptop and my program compiles fine but when I try and upload it to a board there are no ports listed. How do I get a port to be listed using Linux?
Thanks.

Linux Mint works well. Do you hear the "USB insert" tone? Does dmesg show your Arduino (or the comm chip on the Arduino)?

Try:

  • IDE >> TOOLS >> PORT >> your port
  • IDE >> TOOLS >> BOARD >> your board
  • IDE >> TOOLS >> PROCESSOR >> your processor (if needed)

Not sure what you mean by "USB insert" tone. I don't hear any tone!
After dmesg there is no message of Arduino.

If I upload the sketch with no port shown, then unplug the board and plug it in again followed by a further upload it then shows the board as Port: "/dev/ttyUSB0"
However I get a very large error message beginning with
avrdude: ser_open(): Can't open device "/dev/ttyUSB0" permission denied.

This board compiles and uploads without problems using Windows 11

I did try sudo usermod -a -G don and no change was observed
Thanks

After that, you have to logout and next login again. Did you?

I suspect that you're uploading to a board with native USB (e.g. Leonardo). If that is the case.

Start an upload of an innocent sketch (e.g. blink). When the IDE reports the memory usage, double-tap the reset button.

Try it a few times with the innocent sketch to make sure it now works as expected. After that you can upload your real sketch.

If the problem shows it's face again, your real sketch is buggy.

I did as you said and after the command, logged out and logged in.
I am using a uno. I used one of the example sketches "Digital>Button and no port was shown so I uploaded, of course it showed no port. I then removed my board, uploaded again and it uploaded correctly. It showed the port /dev/tty/USB0 so all was good.
I then went back to my sketch and everything worked without a hitch so it appears that the problem is solved.
Thanks for all your help and hopefully I won't run into more problems for a while anyway and I will get to love Linux even more.

Please mark the topic as solved to help new users to found the solution