Movatterモバイル変換


[0]ホーム

URL:


How-To Geek logo

Setting up a Raspberry Pi from scratch just got easier

Person holding a Raspberry Pi ZeroCredit: Corbin Davenport / How-To Geek
4
By Corbin Davenport
Corbin Davenport is the News Editor atHow-To Geek and an independent software developer. He also runs Tech Tales, a technology history podcast. Send him an email atcorbin@howtogeek.com!

Corbin previously worked atAndroid Police,PC Gamer, andXDA before joiningHow-To Geek. He has over a decade of experience writing about tech, and has workedon several web apps and browser extensions.
Sign in to yourHow-To Geek account
Summary
follow
Follow
followed
Followed
Thread
Here is a fact-based summary of the story contents:
Try something different:

Raspberry Pi OS has a new way to set the Wi-Fi network name and password, SSH access, and other options while you install it. The latest update switched to cloud-init, so setting up a Pi from scratch is more like other Linux systems.

When you install Raspberry Pi OS to an SD card or other storage media, you can configure some system settings that will apply on the first boot. For example, you can save your Wi-Fi's network name and password and enable remote access, so your Pi will be ready for remote access as soon as the install is complete. It has been a great feature over the years, especially as theRaspberry Pi Imager gained the ability to write those configuration files.

Raspberry Pi OS switched to a new Debian 13 'Trixie' foundationback in October, and as part of that upgrade, cloud-init is now used for initial boot configuration. If you're not familiar with it,cloud-init is a cross-platform tool created by Canonical (the company behind Ubuntu Linux) for setting up networking, SSH keys, packages, and other features in new installations. It's primarily intended for virtual machines and cloud servers—hence the name—but now Raspberry Pi uses it as well.

The Raspberry Pi team just published a blog post with more technical details. New installations of Raspberry Pi OS have three new files on the FAT32 boot partition: meta-data, network-config, and user-data. The user-data file is where you can set up SSH access, user accounts, the hostname, the active time zone, USB gadget mode, and other options. The network-config file is where your Wi-Fi network details are stored, and the meta-data file is not intended for manual editing.

The main benefit to this update is portability and standardization. If you already know how to use cloud-init, now you know how to set up a Raspberry Pi, minus the handful of Pi-specific options like enabling the SPI interface or USB gadget mode. You also now have the option to use Netplan configuration files, which is another common standard in the Linux ecosystem.

Raspberry Pi logo above a photo of Raspberry Pi boards.
Raspberry Pi Imager just got a big update

The Raspberry Pi Foundation has long offered an official flashing tool in the form of the Raspberry Pi Imager, which lets you install an operating system onto an SD card for use on your tiny Raspberry Pi board. Now, with version 2.0, it has been completely overhauled.

The blog post explained, "With cloud-init and Netplan now integrated into Raspberry Pi OS, first-boot provisioning becomes far more powerful, repeatable, and portable across different setups. Whether you’re configuring a single device or preparing dozens of Raspberry Pis for a classroom, a lab, or an IoT deployment, these new tools make it easy to define everything up front — users, networking, interfaces, and more — before the system even powers on."

Finally, this change shouldn't break any existing tools for setting up a Raspberry Pi, like old versions of Raspberry Pi Imager. The old script format still works, at least for now. The new Raspberry Pi Imager 2.0 update generates cloud-init files by default, and you can write them yourself with simple YAML-format text files.

You can learn more about the cloud-init configuration options fromthe project's official documentation, which hasa section for Raspberry Pi-specific options.

Source:Raspberry Pi

Follow
Followed
Share
FacebookXWhatsAppThreadsBlueskyLinkedInRedditFlipboardCopy linkEmail
Readers like you help support How-To Geek. When you make a purchase using links on our site, we may earn an affiliate commission.Read More.
Safing Portmaster logo surrounded by red 'blocked' icons, shield symbols with checkmarks, and floating apps with internet access being blocked.
How I block specific apps from internet access with this free, open-source tool
A man sitting comfortably on an armchair using a laptop, with the Linux mascot Tux standing beside him and floating icons representing media, gaming, and music.
Yes, Linux can do 'real work'—here are 5 things I do on my Linux PC
Illustration of a blue calculator with the letters D-U-M-B on its buttons, framed on both sides by large curly brackets.
Why I keep starting weird projects I don’t actually need
See More
The back of the OnePlus 15 sitting in grass and leaves.
The OnePlus 15 can finally be sold in the U.S.
A replacement battery for a Kindle third generation eReader.
It’s time to admit you can swap out internal rechargeable batteries yourself
Several smartphones arranged diagonally on a blue geometric background, each displaying a simple home screen with a solid black wallpaper
Black is the new best wallpaper for your phone
See More

[8]ページ先頭

©2009-2025 Movatter.jp