I am using Navio2. I need to use Arduino also. I connected raspberry pi and Arduino via USB. Also, download Arduino.
$ sudo apt-get update
$ sudo apt-get install Arduino
As you know Navio2 hasn’t interface. How can program Arduino on Linux terminal?
Just connect the arduino to your PC and write/upload your sketch there. Then connect the arduino to the Rpi again.