[solved] Ubuntu C++ <--> Mega2560 Serial Communication

I couldn't find a working code in the web.

Unbelievable.

Does anybody know, how to solve my problem?

Google again. Perhaps with a less narrow search. C++ on Ubuntu, windoze, etc. is the same.