In order to upload code to the Arduino you don't need the full IDE. the only thing you need is avrdude, a command line application that can be easily compiled on most linux distributions. then you need to find the .hex file generated by arduino and copy it on the n900.