### Install Node.js Package Source: https://speedsheet.io/s/raspberry_pi?q=packages-only Installs the Node.js runtime environment. ```bash sudo apt install nodejs ``` -------------------------------- ### Install Git Package Source: https://speedsheet.io/s/raspberry_pi?q=packages-only Installs the Git version control system. ```bash sudo apt install git-core ``` -------------------------------- ### Install Multiple Packages Source: https://speedsheet.io/s/raspberry_pi Installs multiple packages simultaneously. List the package names separated by spaces. ```bash sudo apt install package_1 package_2 ... ``` -------------------------------- ### Install Python IDE (IDLE) Source: https://speedsheet.io/s/raspberry_pi?q=packages-only Installs IDLE, the integrated development environment for Python. ```bash sudo apt install idle3 ``` -------------------------------- ### Install Visual Studio Code Package Source: https://speedsheet.io/s/raspberry_pi?q=packages-only Installs the Visual Studio Code editor. ```bash sudo apt install code ``` -------------------------------- ### Install Python Pip Package Source: https://speedsheet.io/s/raspberry_pi?q=packages-only Installs pip, the package installer for Python. ```bash sudo apt install python ``` -------------------------------- ### Install a Single Package Source: https://speedsheet.io/s/raspberry_pi Use this command to install a specific software package. Replace 'package_name' with the desired package. ```bash sudo apt install package_name ``` -------------------------------- ### Install Rust Programming Language Source: https://speedsheet.io/s/raspberry_pi Use this command to download and install the Rust programming language toolchain. ```bash curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh ``` -------------------------------- ### Start X GUI on Raspberry Pi OS Source: https://speedsheet.io/s/raspberry_pi Use this command to start the graphical user interface (GUI) from the terminal. ```bash startx ``` -------------------------------- ### Install iPython3 Package Source: https://speedsheet.io/s/raspberry_pi?q=packages-only Installs iPython3, an enhanced interactive Python shell. ```bash sudo apt install ipython3 ``` -------------------------------- ### Install Eclipse Package Source: https://speedsheet.io/s/raspberry_pi?q=packages-only Use this command to install the Eclipse IDE on your Raspberry Pi. ```bash sudo apt install eclipse ``` -------------------------------- ### Install Python 3 Package Source: https://speedsheet.io/s/raspberry_pi?q=packages-only Installs the Python 3 interpreter. This is likely already installed on your system. ```bash sudo apt install python3 ``` -------------------------------- ### Add Startup Command (Root) Source: https://speedsheet.io/s/raspberry_pi?q=how-to Example of adding a command to rc.local to run as root on startup. Ensure the command is placed before 'exit 0'. ```bash ... app_start_command exit 0 ``` -------------------------------- ### Control LED with RPi.GPIO Source: https://speedsheet.io/s/raspberry_pi Example of enabling and turning on an LED using the RPi.GPIO library. Ensure the LED pin is set as an output. ```python import RPi.GPIO as GPIO LED_PIN = 18 GPIO.setmode(GPIO.BCM) GPIO.setup(LED_PIN, GPIO.OUT) # Turn On the LED GPIO.output(LED_PIN, GPIO.HIGH) ``` -------------------------------- ### Install Samba Package Source: https://speedsheet.io/s/raspberry_pi?q=packages-only Installs Samba, a software suite that provides seamless file and print services to SMB/CIFS clients. ```bash sudo apt install samba samba-common-bin ``` -------------------------------- ### Install Solaar Package Source: https://speedsheet.io/s/raspberry_pi?q=packages-only Installs Solaar, a utility for managing Logitech Unifying Receiver devices like mice and keyboards. ```bash sudo apt install solaar ``` -------------------------------- ### Get CPU Details Source: https://speedsheet.io/s/raspberry_pi?q=how-to Shows detailed information about the CPU. Run this command in the terminal. ```bash lscpu ``` -------------------------------- ### Install Python Essential Build Tools Source: https://speedsheet.io/s/raspberry_pi?q=packages-only Installs essential build tools and Python development headers required for compiling Python modules. ```bash sudo apt install build-essential python-dev ``` -------------------------------- ### Add Startup Command (Specific User) Source: https://speedsheet.io/s/raspberry_pi?q=how-to Example of adding a command to rc.local to run as a specific user ID on startup. This is recommended for security. ```bash ... sudo -u user_id app_start_command exit 0 ``` -------------------------------- ### Get System Specifications Source: https://speedsheet.io/s/raspberry_pi?q=how-to Shows comprehensive system specifications including CPU details, hardware revision, and serial number. ```bash cat /proc/cpuinfo ``` -------------------------------- ### Make Rust Environment Executable Source: https://speedsheet.io/s/raspberry_pi After installing Rust, make the environment executable by running this command. ```bash chmod +x .cargo/env .cargo/env ``` -------------------------------- ### Install Firefox ESR Package Source: https://speedsheet.io/s/raspberry_pi?q=packages-only Installs the Extended Support Release (ESR) version of Firefox. ```bash sudo apt install firefox-esr ``` -------------------------------- ### Update Package List Source: https://speedsheet.io/s/raspberry_pi Run this command before installing or upgrading packages to ensure you have the latest information about available packages. ```bash sudo apt update ``` -------------------------------- ### Upgrade All Installed Packages Source: https://speedsheet.io/s/raspberry_pi Upgrades all packages that have newer versions available. It's recommended to run 'sudo apt update' first. ```bash sudo apt upgrade ``` -------------------------------- ### Get CPU Voltage Source: https://speedsheet.io/s/raspberry_pi?q=how-to Shows the CPU voltage. This is particularly useful for monitoring overclocked CPUs. ```bash vcgencmd measure_volts ``` -------------------------------- ### Update Raspberry Pi Firmware Source: https://speedsheet.io/s/raspberry_pi?q=how-to Installs the latest firmware for your Raspberry Pi. Requires root privileges. ```bash sudo rpi-update ``` -------------------------------- ### Get Pi Model Name Source: https://speedsheet.io/s/raspberry_pi?q=how-to Retrieves and displays the model name of the Raspberry Pi CPU. ```bash cat /proc/cpuinfo | grep Model ``` -------------------------------- ### Get CPU Temperature Source: https://speedsheet.io/s/raspberry_pi?q=how-to Displays the current temperature of the CPU. Useful for monitoring, especially with overclocked systems. ```bash vcgencmd measure_temp ``` -------------------------------- ### Get System CPU Architecture Source: https://speedsheet.io/s/raspberry_pi?q=how-to Lists the ARM CPU architecture of the Raspberry Pi (e.g., armv6l, armv7l, armv8l). ```bash uname -m ``` -------------------------------- ### Check Raspberry Pi EEPROM Firmware Version Source: https://speedsheet.io/s/raspberry_pi?q=packages-only Displays the currently installed and latest available versions of the Raspberry Pi's bootloader (EEPROM) firmware. ```bash rpi-eeprom-update ``` -------------------------------- ### Get System Memory Usage Source: https://speedsheet.io/s/raspberry_pi?q=how-to Displays the total, used, and free memory on the Raspberry Pi in a human-readable format. ```bash free -h ``` -------------------------------- ### Get Raspberry Pi OS Network IP Address Source: https://speedsheet.io/s/raspberry_pi Retrieves and displays the IP addresses assigned to the network interfaces. ```bash hostname -I ``` -------------------------------- ### Remove Unused Packages Source: https://speedsheet.io/s/raspberry_pi Frees up disk space by removing packages that were automatically installed to satisfy dependencies for other packages and are now no longer needed. ```bash sudo apt autoremove ``` -------------------------------- ### Open rc.local for Startup Commands Source: https://speedsheet.io/s/raspberry_pi?q=how-to Opens the rc.local file in the nano editor to add commands that run on startup. Requires root privileges. ```bash sudo nano /etc/rc.local ``` -------------------------------- ### Configure Samba Share Source: https://speedsheet.io/s/raspberry_pi?q=packages-only This snippet shows how to set up a shared folder using Samba, including creating the directory, configuring the smb.conf file, setting user permissions, and restarting the Samba service. ```bash mkdir /home/pi/shared sudo nano /etc/samba/smb.conf [share_name] path = /home/pi/shared writeable = yes create mask = 0777 directory mask = 0777 public = no sudo smbpasswd -a user sudo systemctl restart smbd ``` -------------------------------- ### Enable LED with GPIO Zero Source: https://speedsheet.io/s/raspberry_pi Initializes an LED component using GPIO Zero. The library automatically configures the specified IO pin correctly upon reference. ```python from gpiozero import LED led_1 = LED(io_pin) ``` -------------------------------- ### List Video Devices Source: https://speedsheet.io/s/raspberry_pi?q=how-to Lists all connected video devices recognized by the system. ```bash v4l2-ctl --list-devices ``` -------------------------------- ### Samba Configuration File Settings Source: https://speedsheet.io/s/raspberry_pi?q=packages-only Explains key settings within the Samba configuration file (/etc/samba/smb.conf) for defining share properties. ```text path| Defines Share Path writeable| 'yes' Allows Users to Write To Directory create mask| 0777 = User Read, Write, Execute Defines File Permissions directory mask| 0777 = User Read, Write, Execute Defines Directory Permissions public| 'no' Requires Valid User ``` -------------------------------- ### Configure Samba Share Source: https://speedsheet.io/s/raspberry_pi Sets up a directory to be shared and configures its permissions and access in the Samba configuration file. ```bash mkdir /home/pi/shared sudo nano /etc/samba/smb.conf [share_name] path = /home/pi/shared writeable = yes create mask = 0777 directory mask = 0777 public = no ``` -------------------------------- ### Display Mounted Drives and File System Types Source: https://speedsheet.io/s/raspberry_pi Shows all mounted drives along with their respective file system types. ```bash df -Th ``` -------------------------------- ### Enable I2C Interface Source: https://speedsheet.io/s/raspberry_pi?q=how-to Enables the I2C interface using the Raspberry Pi configuration tool. Navigate to interfaces and select I2C. ```bash sudo raspi-config ``` -------------------------------- ### Monitor CPU, Memory, and Processes on Raspberry Pi OS Source: https://speedsheet.io/s/raspberry_pi Launches htop, a full-screen terminal application that displays real-time information about CPU, memory, swap usage, and running processes. ```bash htop ``` -------------------------------- ### Clone WiringPi Repository Source: https://speedsheet.io/s/raspberry_pi Clone the WiringPi library from its Git repository to your local machine. ```git git://git.drogon.net/wiringPi ``` -------------------------------- ### Enable Button with GPIO Zero Source: https://speedsheet.io/s/raspberry_pi Initializes a Button component using GPIO Zero. The library automatically configures the specified IO pin correctly upon reference. ```python from gpiozero import Button button_1 = Button(io_pin) ``` -------------------------------- ### Configure Pin as Input Source: https://speedsheet.io/s/raspberry_pi Configures a specified pin number as an input. Optionally, enable a pull-up resistor. ```python import RPi.GPIO as GPIO # Configure pin as input GPIO.setup(pin_number, GPIO.IN) # Enable Pull Up Resistor GPIO.setup(pin_number, GPIO.IN, pull_up_down=GPIO.PUD_UP) ``` -------------------------------- ### List Block Devices on Raspberry Pi OS Source: https://speedsheet.io/s/raspberry_pi Lists all available block devices, such as hard drives and SD cards, on the system. ```bash lsblk ``` -------------------------------- ### Display Raspberry Pi OS Version Source: https://speedsheet.io/s/raspberry_pi Retrieves and displays the operating system version information. ```bash cat /etc/os-release ``` -------------------------------- ### Enable Buzzer with GPIO Zero Source: https://speedsheet.io/s/raspberry_pi Initializes a Buzzer component using GPIO Zero. The library automatically configures the specified IO pin correctly upon reference. ```python from gpiozero import Buzzer buzzer_1 = Buzzer(io_pin) ``` -------------------------------- ### Samba Share Name Format Source: https://speedsheet.io/s/raspberry_pi?q=packages-only Illustrates the network path format for accessing a Samba share. ```text smb://server_name/share_name ``` -------------------------------- ### View Computer Uptime Source: https://speedsheet.io/s/raspberry_pi?q=how-to Displays how long the computer has been running. Execute this command in the terminal. ```bash uptime ``` -------------------------------- ### GPIO Zero Header Pin Addressing Source: https://speedsheet.io/s/raspberry_pi Demonstrates various ways to address the same physical pin using GPIO Zero. This includes physical, logical (Broadcom), and other numbering schemes. ```python from gpiozero import LED # Examples addressing the same pin (Physical Pin 11 / Logical Pin 17) led_17 = LED(17) led_17 = LED("GPIO17") led_17 = LED("BCM17") led_17 = LED("BOARD11") led_17 = LED("WPI0") led_17 = LED("J8:11") ``` -------------------------------- ### Control LED with GPIO Zero Source: https://speedsheet.io/s/raspberry_pi Turns the LED on or off. The `on()` method activates the LED, and `off()` deactivates it. ```python led_1.on() led_1.off() ``` -------------------------------- ### List Connected I2C Devices Source: https://speedsheet.io/s/raspberry_pi?q=how-to Detects and lists I2C devices connected to the bus. Requires root privileges. ```bash sudo i2cdetect -y 1 ``` -------------------------------- ### View Host Name Source: https://speedsheet.io/s/raspberry_pi?q=how-to Displays the current host name of the Raspberry Pi using hostnamectl or by reading the hostname file. ```bash hostnamectl ``` ```bash sudo cat /etc/hostname ``` -------------------------------- ### Restart Samba Service Source: https://speedsheet.io/s/raspberry_pi?q=packages-only Command to restart the Samba smbd service to apply configuration changes. ```bash sudo systemctl restart smbd ``` -------------------------------- ### Designate Pin as Output Source: https://speedsheet.io/s/raspberry_pi Designates a specified pin number as an output pin, preparing it for sending signals. ```python import RPi.GPIO as GPIO GPIO.setup(pin_number, GPIO.OUT) ``` -------------------------------- ### Shutdown Raspberry Pi Source: https://speedsheet.io/s/raspberry_pi?q=how-to Initiates a shutdown of the Raspberry Pi. The system will shut down in 60 seconds by default. Requires root privileges. ```bash sudo shutdown ``` -------------------------------- ### Set Output Pin State Source: https://speedsheet.io/s/raspberry_pi Sets the state of an output pin to ON (HIGH) or OFF (LOW). The on_state parameter should be a boolean (True | False). ```python import RPi.GPIO as GPIO # Set pin to HIGH (On) GPIO.output(pin_number, GPIO.HIGH) # Set pin to LOW (Off) GPIO.output(pin_number, GPIO.LOW) ``` -------------------------------- ### Reboot Raspberry Pi Source: https://speedsheet.io/s/raspberry_pi?q=how-to Restarts the Raspberry Pi. Requires root privileges. ```bash sudo reboot ``` -------------------------------- ### Set Pin Address Mode to Broadcom Source: https://speedsheet.io/s/raspberry_pi Sets the pin address mode to Broadcom (BCM) or logical numbering. This is an alternative to using physical board numbering. ```python import RPi.GPIO as GPIO GPIO.setmode(GPIO.BCM) ``` -------------------------------- ### Set Pin Address Mode to Board Source: https://speedsheet.io/s/raspberry_pi Sets the pin address mode to board or physical numbering. This is an alternative to using logical Broadcom numbering. ```python import RPi.GPIO as GPIO GPIO.setmode(GPIO.BOARD) ``` -------------------------------- ### Cleanly Exit GPIO Source: https://speedsheet.io/s/raspberry_pi Call GPIO.cleanup() at shutdown to safely clear current from any pins in use. This helps protect circuits during shutdown. ```python import RPi.GPIO as GPIO GPIO.cleanup() ``` -------------------------------- ### Update Raspberry Pi OS Source: https://speedsheet.io/s/raspberry_pi Updates the current OS version with the latest available packages. Ensure you have a stable internet connection before running. ```bash sudo apt update && sudo apt full-upgrade -y ``` -------------------------------- ### Control Buzzer with GPIO Zero Source: https://speedsheet.io/s/raspberry_pi Turns the buzzer on or off. The `on()` method activates the buzzer, and `off()` deactivates it. ```python buzzer_1.on() buzzer_1.off() ``` -------------------------------- ### Set Samba User Password Source: https://speedsheet.io/s/raspberry_pi?q=packages-only Sets or changes the Samba password for a specific user. It will prompt for the new password. ```bash sudo smbpasswd -a user ``` -------------------------------- ### Update Raspberry Pi EEPROM Firmware Source: https://speedsheet.io/s/raspberry_pi?q=packages-only Updates the Raspberry Pi's bootloader (EEPROM) firmware to the latest available version. ```bash sudo rpi-eeprom-update -a ``` -------------------------------- ### Set Button Press Callback Source: https://speedsheet.io/s/raspberry_pi Assigns a function to be called automatically when the button is pressed. The function will be executed asynchronously. ```python button_1.when_pressed = callback_function ``` -------------------------------- ### Wait for Button Press Source: https://speedsheet.io/s/raspberry_pi Blocks execution until the button is pressed. Useful for simple event handling. ```python button_1.wait_for_press() ``` -------------------------------- ### Change Host Name Source: https://speedsheet.io/s/raspberry_pi?q=how-to Edits the hostname file to change the Raspberry Pi's network name. Requires root privileges. ```bash sudo nano /etc/hostname ``` -------------------------------- ### Set Button Release Callback Source: https://speedsheet.io/s/raspberry_pi Assigns a function to be called automatically when the button is released. The function will be executed asynchronously. ```python button_1.when_released = callback_function ``` -------------------------------- ### Check Button Press State Source: https://speedsheet.io/s/raspberry_pi Checks if a button is currently being pressed. Returns a boolean value. ```python is_pressed = button_1.is_pressed ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.