O'Reilly logo

Learning Banana Pi by Daniel Blair

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Writing code on the Pi

By now, you are either playing with the IDEs, or you are ready to move on because you already have preferences. Either way, we want to write some code. There are different purposes behind writing different kinds of code. We will focus on Bash, Python, Ruby, and Go. These languages will give you a good range of general-purpose tools for different tasks on your Pi.

Bash scripting

Bash scripting is the purest form of coding on Linux. Bash scripts are essentially command-line commands strung together in a single file that can be executed. You can write scripts that run at the startup to run updates and pull some data onto the Pi. Shell scripts have the file extension sh.

The first line of a script should start with a shebang, which ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required