HOW TO FIND PORT IN LINUX USE AT COMMAND

  1. Unplug your Arduino/shield.
  2. Type "dmesg" (as root).
  3. Plug in your Arduino/shield.
  4. Type "dmesg" again and look at the new messages.

It should say that your device attached as, for example, "ttyUSB0". Then use "/dev/ttyUSB0" as your port.

Typically your application will need root privileges in order to attach to the port. You can also "chmod a+rw /dev/ttyUSB0" so that any (non-root) user can attach to the port. Be aware that you will need to execute that chmod command each time you attach/unattach the Arduino (it is not permanent).

1 Like