Which forum is best for Linux? I am using Ubuntu 16.04 LTS and Arduino IDE 1.8.5. I worked with Arduino on Windows, previously. Less than one year experience with anything Linux. Many differences to get used to.
Arduino: 1.8.5 (Linux), Board: "Arduino/Genuino Mega or Mega 2560, ATmega2560 (Mega 2560)"Sketch uses 1462 bytes (0%) of program storage space. Maximum is 253952 bytes.Global variables use 9 bytes (0%) of dynamic memory, leaving 8183 bytes for local variables. Maximum is 8192 bytes.avrdude: ser_open(): can't open device "/dev/ttyACM0": Permission deniedioctl("TIOCMGET"): Inappropriate ioctl for deviceioctl("TIOCMGET"): Inappropriate ioctl for deviceavrdude: ser_send(): write error: Bad file descriptoravrdude: stk500_send(): failed to send command to serial portavrdude: stk500v2_ReceiveMessage(): timeout(cut)avrdude: stk500v2_getsync(): timeout communicating with programmerthe selected serial port avrdude: stk500v2_getsync(): timeout communicating with programmer does not exist or your board is not connectedThis report would have more information with"Show verbose output during compilation"option enabled in File -> Preferences.
avrdude: ser_open(): can't open device "/dev/ttyACM0": Permission denied
First add your user (you're called fred, right?) to the dialout group:$ sudo usermod -a -G dialout fredThe "-a" is of vital importance. That says "Add the user to these groups". Without it you have "Set the user's groups to be this list". If you omit the "-a" by accident you will remove your user from any other groups before setting them to be in the dialout group. That means you will never be able to run sudo again. So be sure not to miss that one out, eh?
Is there a concise step-by-step tutorial for adding yourself to the dialout group? I am a little concerned about this hazard:https://hackingmajenkoblog.wordpress.com/2016/08/24/diagnosing-arduino-problems-in-linux/
Is there a concise step-by-step tutorial for adding yourself to the dialout group? I am a little concerned about this hazard: