Here is a great intro tutorial on serial port programming for both WIN and LINUX