sudo apt-get update
sudo apt-get install linux-image-ev3dev-ev3

Connecting to the internet over bluetooth: (to save battery)
link at ev3-dev