Create an account


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Fedora - install Fedora on a Raspberry Pi 3

#1
install Fedora on a Raspberry Pi 3

<div><p>Fire up a Raspberry Pi with Fedora. </p>
<p>The <a href="https://www.raspberrypi.org/about/">Raspberry Pi Foundation</a> has produced quite a few models over the years. This procedure was tested on third generation Pis – a <a href="https://www.raspberrypi.org/products/raspberry-pi-3-model-b/">Model B v1.2</a>, and a <a href="https://www.raspberrypi.org/products/raspberry-pi-3-model-b-plus/">Model B+ </a>(the older <a href="https://www.raspberrypi.org/products/raspberry-pi-2-model-b/">2</a> and the new <a href="https://www.raspberrypi.org/products/raspberry-pi-4-model-b/">4</a> weren’t tested). These are the credit-card size Pis that have been around a few years.</p>
<h3>get hardware</h3>
<p>You do need a few hardware items, including the Pi. You don’t need any <a href="https://www.raspberrypi.org/blog/introducing-raspberry-pi-hats/">HaT (Hardware Attached on Top)</a> boards or USB antennas. If you have used your Pi in the past, you probably have all these items.</p>
<ul>
<li><strong>current network</strong>. Perhaps this is your home lab.</li>
<li><strong>ethernet cable</strong>. This connects the current network to the Raspberry Pi</li>
<li><strong>Raspberry Pi 3</strong>, model B or B+.</li>
<li><strong>power supply</strong></li>
<li><strong>micro-SD card</strong>, 8GB or larger. </li>
<li><strong>keyboard</strong> and <strong>video monitor</strong>.</li>
</ul>
<p>The keyboard and video monitor together make up the local console. It’s possible – though complicated – to get by without a console, such as setting up an automated install then connecting over the network. A local console makes it easy to answer the configuration questions during Fedora’s first boot. Also, a mistake during AP configuration may break the network, locking out remote users.</p>
<h3>download Fedora Minimal</h3>
<ul>
<li>Find Fedora’s <a href="https://alt.fedoraproject.org/alt/">alternate architecture images</a>. </li>
<li>Download the <a href="https://download.fedoraproject.org/pub/fedora-secondary/releases/32/Spins/aarch64/images/Fedora-Minimal-32-1.6.aarch64.raw.xz">ARMĀ® aarch64 Architecture image</a>.</li>
</ul>
<p>The <em>Fedora Minimal</em> image, one of <a href="https://alt.fedoraproject.org/">Fedora’s alt downloads</a>, has all the core packages and network packages required (well, nearly – check out <em>dnsmasq</em> below). The image contains a ready-made file system, with over 400 packages already installed. This minimal image does not include popular packages like a development environment, Internet service or desktop. These types of software aren’t required for this work, and may well use too much memory if you install them.</p>
<p>The <em>Fedora Minimal</em> raw image fits on a small SD card and runs in less than 1 GB of memory (these old Pis have 1GB RAM).</p>
<p>The name of the downloaded file is something like <em>Fedora-Minimal-32-1.6.aarch64.raw.xz</em>. The file is compressed and is about 700MB in size. When the file is uncompressed, it’s 5GB. It’s an ext4 file system that’s mostly empty – about 1GB is used and 4GB is empty. All that empty space is the reason the compressed download is so much smaller than the uncompressed raw image.</p>
<h3>copy to the micro-SD card</h3>
<ul>
<li>Copy the image to a micro-SD card.</li>
</ul>
<p>This can be a more complex than it sounds, and a painful experience. Finding a <a href="https://www.jeffgeerling.com/blog/2019/raspberry-pi-microsd-card-performance-comparison-2019">good micro-SD card</a> takes work. Then there’s the challenge of physically attaching the card to your computer.Perhaps your laptop has a full SD card slot and you need a card adapter, or perhaps you need a USB adapter. Then, when it comes to copying, the OS may either help or get in your way. You may have luck with <a href="https://fedoramagazine.org/make-fedora-usb-stick/">Fedora Media Writer</a>, or with these Linux commands.</p>
<pre class="wp-block-preformatted">unxz ./Fedora-Minimal-32-1.6.aarch64.raw.xz
dd if=./Fedora-Minimal-32-1.6.aarch64.raw of=/dev/mmcblk0 bs=8M status=progress oflag=direct</pre>
<h3>set up Fedora</h3>
<ul>
<li>Connect the Pi, power cable, network cable and micro-SD card. </li>
<li>Hit the power. </li>
<li>See the colored box as the graphics chip powers up. </li>
<li>Wait for the <a href="https://fedoraproject.org/wiki/Anaconda">anaconda installer</a> to start.</li>
<li>Answer anaconda’s setup questions.</li>
</ul>
<p>Initial configuration of the OS takes a few minutes – a couple minutes waiting for boot-up, and a couple to fill out the spokes of anaconda’s text-based installer. In the examples below, the user is named <strong>nick</strong> and is an administrator (a member of the <em>wheel</em> group).</p>
<p>Congratulations! Your Fedora Pi is up and operational.</p>
<h3>update software</h3>
<ul>
<li>Update packages with `dnf update`.</li>
<li>Reboot the machine with `systemctl reboot`.</li>
</ul>
<p>Over the years, a lot of people have put a lot of work into making the Raspberry Pi devices work. Use the latest software to make sure you get the benefit of their hard work. If you skip this step, you may find some things just don’t work.</p>
<p>The update downloads and installs about a hundred packages. Since the storage is a micro-SD card, writing new software is a slow process. This is what using computing storage felt like in the 1990s.</p>
<h3>things to play with</h3>
<p>There are a few other things that can be set up at this point, if you want to play around. It’s all optional. Try things like this.</p>
<ul>
<li>Replace the <em>localhost</em> hostname with the command `sudo hostnamectl set-hostname raspi`. </li>
<li>Find the IP address with `ip addr`. </li>
<li>Try an SSH login, or even set up key-based login with `ssh-copy-id`.</li>
<li>Power down with `systemctl poweroff`.</li>
</ul>
</div>


https://www.sickgaming.net/blog/2020/08/...erry-pi-3/
Reply



Forum Jump:


Users browsing this thread:
3 Guest(s)

Forum software by © MyBB Theme © iAndrew 2016