Error opening serial port '/dev/ttyUSBx' on Ubuntu

Try editing your Arduino preferences file (~/.arduino/preferences.txt I think) and setting the serial.debug_rate to, say, 9600. (serial.download_rate should be 19200).