Catalog / Banana Pi Cheat Sheet
Banana Pi Cheat Sheet
A comprehensive cheat sheet covering Banana Pi single-board computers, including setup, configuration, common commands, and troubleshooting tips.
Getting Started with Banana Pi
Initial Setup
1. Hardware Requirements:
|
2. Download Operating System Image:
|
3. Flash the OS Image to the MicroSD Card:
|
4. Booting the Banana Pi:
|
5. Initial Configuration:
|
Basic Commands
|
Update the package list. |
|
Upgrade installed packages. |
|
Install a new package. |
|
Remove a package. |
|
Remove automatically all unused packages. |
|
Display network interfaces and IP addresses. |
Networking and SSH
Configuring Network Interfaces
Edit the Example:
|
Restart the networking service:
|
Alternatively, use Edit
|
Enabling SSH
SSH (Secure Shell) allows remote access to the Banana Pi.
|
Access the Banana Pi from another computer using an SSH client (e.g., PuTTY, Terminal):
|
To disable password authentication and use SSH keys (recommended for security):
|
Firewall Configuration (UFW)
UFW (Uncomplicated Firewall) is an easy-to-use firewall management tool.
|
Allow SSH connections: |
Check UFW status: |
GPIO and Hardware
Accessing GPIO Pins
Accessing GPIO pins requires proper libraries and permissions.
|
Using libgpiod:
|
|
|
|
Interacting with Hardware
I2C |
|
SPI |
|
Serial (UART) |
|
Example Python Script (libgpiod)
|
Troubleshooting and Advanced Configuration
Common Issues and Solutions
1. Banana Pi Not Booting:
|
2. No Network Connection:
|
3. SSH Connection Refused:
|
4. GPIO Issues:
|
Advanced Configuration
Overclocking |
|
Kernel Updates |
|
Bootloader Configuration |
|
Device Tree Overlays |
|
Monitoring System Resources
|
|
|