Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Banana Pi Cookbook
  • Table Of Contents Toc
Banana Pi Cookbook

Banana Pi Cookbook

By : RYAD E DAJANI, Ryad El-Dajani
4.5 (2)
close
close
Banana Pi Cookbook

Banana Pi Cookbook

4.5 (2)
By: RYAD E DAJANI, Ryad El-Dajani

Overview of this book

This book is intended for anybody who wants to learn how they can utilize the capabilities of the Banana Pi to its full potential. It's full of step-by-step guides and detailed descriptions for the whole range of possibilities in a language that is appropriate for computer enthusiasts and experts alike. It would be helpful to have a basic knowledge of Unix-like operating systems or programming, but no prior experience is required as every concept is explained in the appropriate sections.
Table of Contents (8 chapters)
close
close

Booting up and shutting down the Banana Pi

This recipe will explain how to boot up and shut down the Banana Pi. As the Banana Pi is a real computer, these tasks are as equally important as tasks on your desktop computer. The booting process starts the Linux kernel and several important services. The shutting down stops them accordingly and does not power off the Banana Pi until all data is synchronized with the SD card or external components correctly.

Getting ready

To boot your device, you need the following ingredients:

  • A wired up Banana Pi
  • A prepared SD card with an operating system

How to do it…

We are going to boot up and shut down the Banana Pi.

Booting up

Do the following steps to boot up your Banana Pi:

  1. Attach the Ethernet cable to your local network.
  2. Connect your Banana Pi to a display.
  3. Plug in an USB keyboard and mouse.
  4. Insert the SD card to your device.
  5. Power your Banana Pi by plugging in the USB power cable.

The following screenshot shows a new Android installation on the Banana Pi after a successful boot:

Booting up

The next screenshot shows the desktop of Raspbian after a successful boot:

Booting up

Shutting down Android

To shut down Android, press and hold down the Power key of the Banana Pi.

Shutting down Linux

To shut down your Linux-based distribution, you either use the shutdown command or do it via the desktop environment (in case of Raspbian, it is called LXDE). For the latter method, these are the steps:

  1. Click on the LXDE icon in the lower-left corner.
  2. Click on Logout.
  3. Click on Shutdown in the upcoming window.

To shut down your operating system via the shell, type in the following command:

$ sudo shutdown -h now

How it works…

When you have prepared the SD card successfully, you can finally boot up your Banana Pi with your desired operating system.

The boot sequence should initiate immediately. You will see blinking LEDs. If only the red LED is lit, you probably made a mistake when writing the image to the SD card or the SD card is defective.

If you powered off the device previously, you may need to press and hold the Power key to restart the booting of your device. You will see the boot messages, if you connected your Banana Pi to a display. When the boot has finished, you are welcomed by your operating system for the first time.

Note

If you are using the wired Ethernet network interface on Android, make sure to enable Use Ethernet in the Android settings under Wireless & Networks | More.

On Linux, you can shut down the device via the shell. If you are on the desktop, you can access the shell via an application called Terminal (or LXTerminal in case of Raspbian).

The shutdown command expects a mode parameter (-h, that is, halt in this case) and a time (now). If you want to reboot your device, you can use the mode -r (reboot). As the shutdown command requires root privileges, we are executing the shutdown command with the prefix command sudo. This will issue the next command—shutdown—to be executed with root privileges. You will have to enter the password of the user. On most of the Banana Pi distributions, the default passwords for the default user is bananapi.

Alternatively, you can also power off or reboot your Banana Pi via the LXDE menu or the appropriate commands. The following are the commands for power off and reboot respectively:

$ sudo poweroff
$ sudo reboot

See also

CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Banana Pi Cookbook
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon