Only to notify the new ArduinoLinuxSerial class, with a simple protocol, for Arduino-Web (php) link in Linux O.S.
The master is PHP. The master message max length is 60 char (serial Arduino rx buffer limit), the response (from Arduino) as no limits. The '\n' char is used internally as terminator. The protocol uses CRC8 to insure correctness. In case of error the message is resended 3 times before exit in error state.
On Linux you need a USB serial driver (it uses devices like /dev/ACMx or /dev/USBx). A Bash script (serialArduino.sh) is used to setup the USB device on Linux, after startup or USB connection. The serial communication is open for any message: in the Bash script the DTR pin is disabled to avoid the Arduino auto-reset. (see: Arduino Playground - DisablingAutoResetOnSerialConnection)
I hope this can help, see GitHub - msillano/ArduinoLinuxSerial: This is an helper class for php-Arduino communications on Linux
Best reagards