Arduino IDE error - avrdude: ser_open(): can't open device "/dev/ttyACM0": Permission denied
avrdude: ser_open(): can't open device "/dev/ttyACM0": Permission denied
ioctl("TIOCMGET"): Inappropriate ioctl for device
Solution:
$ sudo usermod -a -G dialout
$ sudo chmod a+rw /dev/ttyACM0