This repository contains scripts and instructions for setting up a Raspberry Pi for headless operation, allowing you to manage it remotely without the need for a monitor, keyboard, or mouse.
- Headless Configuration: Quickly configure your Raspberry Pi to run without a display or input devices.
- SSH Access: Enables SSH access out of the box for remote management.
- Wi-Fi Setup: Allows configuration of Wi-Fi settings during the initial setup.
- Customizable Settings: Easily customize configurations for various use cases.
- A Raspberry Pi (any model that supports headless operation).
- A microSD card (with Raspberry Pi OS installed).
- A computer to prepare the microSD card and modify configuration files.
- Basic knowledge of the command line.
- Download the latest version of Raspberry Pi OS from the official Raspberry Pi website.
- Use a tool like balenaEtcher to write the OS image to your microSD card.
- After writing the OS image, access the boot partition of the microSD card.
- Create an empty file named
ssh
(with no file extension) in the root directory of the boot partition. This enables SSH on boot.
-
Create a file named
wpa_supplicant.conf
in the boot partition with the following content:country=US ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev update_config=1 network={ ssid="Your_WiFi_Network_Name" psk="Your_WiFi_Password" key_mgmt=WPA-PSK }
Replace
Your_WiFi_Network_Name
andYour_WiFi_Password
with your actual Wi-Fi credentials.
- Insert the microSD card into the Raspberry Pi.
- Power on the Raspberry Pi. It should connect to the Wi-Fi network automatically and enable SSH.
-
Use an SSH client to connect to your Raspberry Pi:
ssh pi@<Your_Raspberry_Pi_IP_Address>
The default password is
raspberry
.
Once connected via SSH, you can begin using your Raspberry Pi for various projects. Update your system and install any necessary packages as needed:
sudo apt update
sudo apt upgrade
This repository may include custom scripts for further configurations or setups. Review the scripts in the repository to see their functionalities.
This project is licensed under the MIT License - see the LICENSE file for details.
Contributions are welcome! If you have improvements, suggestions, or bug fixes, feel free to submit an issue or open a pull request.
- Fork the repository.
- Create a new branch for your feature or fix:
git checkout -b feature-name
- Commit your changes:
git commit -m "Description of your feature or fix"
- Push your branch:
git push origin feature-name
- Open a pull request with a detailed explanation of your changes.
This project was created by OddRefrigerator.
For any inquiries or issues, feel free to open an issue on GitHub or contact the repository owner.