Is there a simulation of arduino under Linux ?

Take a look at the simavr project. Maybe it will do what you want.

https://gitorious.org/simavr