How to Set Up Git from the Command Line

How to Set Up Git from the Command LineHow to Set Up Git from the Command Line
Total time: 5 minutes 
Updated: July 22nd, 2020

Git is an open-source version control system (VCS). In order to use Git to track changes in your code from the command line, you’ll need to download, install and configure it on your computer.

Posted in these interests:

git
PRIMARY
15 guides
code
68 guides
programming
8 guides

You can download the program from the Git website for your operating system (Windows, MacOSX, or Linux/Unix).

To install Git directly from the command line, type the following into the terminal (if using Debian-based distributions like Ubuntu):

sudo apt-get install git-all

For MacOS, type:

git --version

and if Git is not already installed, the terminal will prompt you to install it.

Alternatively, if you have HomeBrew installed, you can install Git by typing:

brew install git

Create a Git username by entering the following into the terminal:

git config --global user.name "Jane Doe"

Your name goes in the quotation marks. The –global option means that this will configure your Git username for every repo on your computer. You can also only do this for a single repo.

You can confirm that you have entered your username correctly by typing:

git config --global user.name

which should return your name:

Jane Doe

You can set your email address in Git as well, which is necessary if you plan on committing code to GitHub. Type the following into the terminal:

git config --global user.email "email@example.com"

Once again to confirm you have entered your email correctly:

git config --global user.email email@example.com

To create a new Git repository or reinitialize an existing Git repository type git init into the terminal.

For more about Git and documentation, check the Git website. For information on GitHub, such as how to set up a remote, check the GitHub documentation.

We’re hiring!
Are you a passionate writer? We want to hear from you!

Want to support Howchoo? When you buy a tool or material through one of our Amazon links, we earn a small commission as an Amazon Associate.

Total time: 30 minutes 
Updated: July 22nd, 2020
Calling all writers!

We’re hiring. Write for Howchoo

diy
PRIMARY
37 guides
mixology
9 guides
wine
3 guides
Bottle Cutting 101: Turning Empty Beer Bottles into Awesome Drinking Glasses Bottle Cutting 101: Turning Empty Beer Bottles into Awesome Drinking GlassesMake glasses from your favorite beer or wine bottles.
Note

It can be very sharp where the bottle separated, so it’s important that you sand the edges well.

Calling all writers!

We’re hiring. Write for Howchoo

Tyler's profile pictureTyler
Joined in 2015
Software Engineer and creator of howchoo.
A smart thermostat can save you a lot of money, and.. it’s fun to play with. The Nest is one of the most popular smart thermostats on the market, and in this guide you’ll learn how to install it.
Tyler's profile picture TylerView
In these interests: diy
What is a Raspberry Pi without a motion sensor? Kids can now sound the alarm if their parents are coming down the hall.
Tyler's profile picture TylerView
In these interests: pidiy
There’s a room in my old bungalow with high ceilings and extremely inadequate lighting. I use this room as an office, and it has a small loft, so the current lighting doesn’t cut it.
Zach's profile picture ZachView
In these interests: homelightingdiy
I set out to make some inexpensive cornhole boards for a party. I had a few tools already – a miter saw, jig saw, and a drill.
If you’re wanting to recycle used wine bottles, removing the label can be a pain. Fortunately, there are a few tips using household items to help you remove the label and clean off the adhesive.
If you’re a music enthusiast (or know somebody who is and expects a gift from you), nothing beats a vinyl record clock. I’m a huge fan of simplicity and this clock takes the cake.
We’ve put together a guide to help you find the best soldering iron for your next project.
A lightweight, breathable face mask to use when running in crowded areas.
The simplest guide to making an armband you’re likely to find!
No basketball jerseys were hurt in the making of this guide! Okay, maybe one was.
If your family is like mine, then you absolutely love your dog! Still, there are those times when you wish your pet had something to occupy their time for an hour or two without needing your attention.
How to keep your uk’ playing like new.
A flat or leaking tire can be a huge pain, but fortunately, it’s often an easy fix. When we’ve got a flat tire, it’s often because a nail or some other debris from the road has been lodged in the tire.
diy
PRIMARY
“It takes half your life before you discover life is a do-it-yourself project.” – Napoleon Hill
Interested in mixing fancy cocktails or brewing beer? This interest is for you.
“Either give me more wine or leave me alone.” – Rumi
Total time: 5 minutes 
Updated: July 22nd, 2020
python
PRIMARY
67 guides
Calling all writers!

We’re hiring. Write for Howchoo

python
PRIMARY
67 guides
Calling all writers!

We’re hiring. Write for Howchoo

Tyler's profile pictureTyler
Joined in 2015
Software Engineer and creator of howchoo.
Get the latest edition of Python in just minutes.
Ash's profile picture AshView
In these interests: codewindowspython
Run Python scripts in command prompt without typing the whole path.
Ash's profile picture AshView
In these interests: windowscodepython
You can run any Python script in a command-line interface.
Ash's profile picture AshView
In these interests: python
Got a Python question? We’ve probably answered it here.
Not sure what version of Python you’re running? Time to find out!
Python is a very popular programming language for data visualization.
In Python, comprehensions are a useful construct that allows us to create new sequences in a very concise way.
Slack has become one of the most important tools for communication in many companies, mine included.
If you’re familiar with Python’s keyword-only arguments, then you’ve probably wondered why the same constraint doesn’t exist for positional arguments. This changes with Python 3.
Specify a parallel filesystem cache for compiled bytecode
Learn how to use formatted string literals in Python
While this requirement may seem rare, learning how to nest defaultdicts properly in Python can be extremely powerful and save you from bloated and confusing initialization code.
python
PRIMARY
Python is howchoo’s favorite programming language. We believe python promotes the most organized and performant codebase possible. We also love Django so, naturally, we love Python.
Calling all writers!

We’re hiring. Write for Howchoo

Ashley's profile pictureAshley
Joined in 2015
Related to this guide:
How to Pretty Print JSON in Chrome Developer ConsoleHow to Pretty Print JSON in Chrome Developer Console
In these interests: codejavascriptwebdev
Remove Elements From an Array in JavaScriptRemove Elements From an Array in JavaScript
When working with arrays in JavaScript, we often need to remove elements.
Tyler's profile picture TylerView
In these interests: codejavascript
Enumerable Properties in JavaScriptEnumerable Properties in JavaScript
Enumerable properties are properties whose internal enumerable flag set to true.
Tyler's profile picture TylerView
In these interests: codejavascript
People also read:
This guide demonstrates multiple ways to iterate over a JavaScript object’s properties and values.
There are two very similar statements in JavaScript: for…in and for…of. And while they can be easily confused, they’re actually quite different.
My journey trying to find the one loop operator to rule them all
As a JavaScript developer, you’ll often need to construct URLs and query string parameters. One sensible way to construct query string parameters is to use a one layer object with key value pairs.
Making a deep copy of an object in JavaScript is fairly challenging. Fortunately, there are a few ways to accomplish this without much code.
At some point you’ll want to read, set, and remove cookies using JavaScript.
Learn how to split a string into an array.
This guide will teach you how to concatenate, or join, all elements of an array into a single string.
Learn how to merge two arrays together in JavaScript.
Tabbed browsing has become the standard so modern browsers have provided a way for developers to determine if a tab has focus. This uses the HTML 5 Page Visibility API.
Posted in these interests:
javascriptjavascript
javascript
PRIMARY
Array(16).join(“wat” – 1) + ” Batman!”;
webdevwebdev
All things web development.
Discuss this guide:
We’re hiring!
Are you a passionate writer? We want to hear from you!
We’re hiring!
Are you a passionate writer? We want to hear from you!

Want to support Howchoo? When you buy a tool or material through one of our Amazon links, we earn a small commission as an Amazon Associate.

Want to support Howchoo? When you buy a tool or material through one of our Amazon links, we earn a small commission as an Amazon Associate.

The Fastest Way to Lock your Screen on Your Non-Touch Bar Mac

The Fastest Way to Lock your Screen on Your Non-Touch Bar MacThe Fastest Way to Lock your Screen on Your Non-Touch Bar Mac
Tyler Tyler (285)
Total time: 1 minute 
Updated: July 22nd, 2020

The obvious way to lock your computer is to log out, but logging in and out is excessive and time consuming.

The easiest way protect your work is to lock your screen with a password whenever the screen saver starts. Then configure a shortcut to start the screen saver. This guide will walk you through this process step by step.

Posted in these interests:

macos
PRIMARY
40 guides
mac
81 guides
security
23 guides
We’re hiring!
Are you a passionate writer? We want to hear from you!

Want to support Howchoo? When you buy a tool or material through one of our Amazon links, we earn a small commission as an Amazon Associate.

How to Boot Your Raspberry Pi 4 From a USB Drive

How to Boot Your Raspberry Pi 4 From a USB DriveHow to Boot Your Raspberry Pi 4 From a USB Drive
Tyler Tyler (285)
Total time: 15 minutes 
Updated: July 22nd, 2020

The Raspberry Pi was designed to boot from an SD card, but in some cases, it’s convenient to boot from a USB drive. With previous Raspberry Pi models, USB mass storage boot was either enabled out of the box (3B+, CM3+) or by modifying /boot/config.txt (2B v1.2, 3A+, 3B, CM3). But the Raspberry Pi 4 stores the bootloader on an EEPROM (non-volatile memory attached to the board) rather than the SD card, like previous models. Because of changes in the boot sequence, USB boot was not possible on the Raspberry Pi 4 initially.

But a beta version of the EEPROM firmware was just released that includes support for USB mass storage boot. Currently, enabling USB boot requires a few steps, but I expect USB boot to be enabled by default soon! This guide will show you how to load the beta firmware and boot your Raspberry Pi 4 from a USB drive.

Here’s everything you’ll need to complete this guide:

Raspberry Pi 4 Model BRaspberry Pi 4 Model B×1
Raspberry Pi 4 power supplyRaspberry Pi 4 power supply×1
USB driveUSB drive×1

In order to boot from USB, we need to install a beta version of the bootloader. This is done using the rpi-eeprom-update command from a shell. To get started, you’ll need to boot your Raspberry from an SD card. If you need help with this step, follow our guide on installing Raspbian (now Raspberry Pi OS) on your Raspberry Pi.

Also, if you’re using a headless setup, you’ll need to enable ssh and configure Wi-Fi before moving on.

With Raspberry Pi OS installed and the SD card mounted, plug in the Raspberry Pi and boot.

Next, we need to make sure the operating system is up to date. Begin by connecting to your Pi via SSH. Then run the following commands:

sudo apt update
sudo apt full-upgrade

Open the file /etc/default/rpi-eeprom-update to edit. This can be done using vi or nano like this:

sudo nano /etc/default/rpi-eeprom-update

Change “critical” to “beta”. The file should look like this:

FIRMWARE_RELEASE_STATUS="beta"

To install the bootloader use:

sudo rpi-eeprom-update -d -f /lib/firmware/raspberrypi/bootloader/beta/pieeprom-2020-05-27.bin

Note: You may want to use a newer version of the pieeprom file if its available. To find a newer version you can use the following:

ls -lha /lib/firmware/raspberrypi/bootloader/beta/ | grep pieeprom

After running the rpi-eeprom-update command, run:

sudo reboot
Verify the raspberry pi bootloader versionVerify the raspberry pi bootloader version

After the Pi reboots, connect again using SSH so you can confirm your changes took effect. After connecting run:

vcgencmd bootloader_version

You should expect to see the following:

May 27 2020 18:47:29
version d648db3968cd31d4948341e09cb8a925c49d2ea1 (release)
timestamp 1590601649

Confirm the date matches the date in the beta pieeprom file.

Flash Raspberry Pi OS onto your USB driveFlash Raspberry Pi OS onto your USB drive

At this point, you need to install Raspberry Pi OS on your USB drive. You can use Raspberry Pi Imager to do this as well. Just plug in your USB drive and select it under SD Card.

And just like your SD card install, now is the time to enable SSH and add your Wi-Fi credentials, if applicable.

Download the Raspberry Pi firmwareDownload the Raspberry Pi firmware

You’ll need to grab the .dat and .elf files from a May 22, 2020 commit on the raspberrypi/firmware GitHub repo. The latest firmware does not work.

Note to self: when the latest firmware works to update this guide. 🙂

The easiest way to do this is to download the repository at the specified commit. To do this click Clone or download then Download ZIP. Then unzip the firmware.

Now, with your USB drive still mounted on your computer, run the following:

cp /*.dat 
cp /*.elf 

For example, on macOS I’m running:

cp ~/Downloads/firmware-a6c9b6b48ce86ef2527586a50760d52f1b33f642/boot/*.dat /Volumes/boot/
cp ~/Downloads/firmware-a6c9b6b48ce86ef2527586a50760d52f1b33f642/boot/*.elf /Volumes/boot/

Now, you should be able to properly boot from your USB drive. Begin by shutting down your Pi and removing your SD card. Then unmount the USB drive from the computer and insert it into your Raspberry Pi. Then boot the Pi once again.

If you configured Wi-Fi and SSH, you should be able to find your Pi on the network and connect!

How to Boot Your Raspberry Pi 4 From a USB Drive

How to Boot Your Raspberry Pi 4 From a USB DriveHow to Boot Your Raspberry Pi 4 From a USB Drive
Tyler Tyler (285)
Total time: 15 minutes 
Updated: July 22nd, 2020

The Raspberry Pi was designed to boot from an SD card, but in some cases, it’s convenient to boot from a USB drive. With previous Raspberry Pi models, USB mass storage boot was either enabled out of the box (3B+, CM3+) or by modifying /boot/config.txt (2B v1.2, 3A+, 3B, CM3). But the Raspberry Pi 4 stores the bootloader on an EEPROM (non-volatile memory attached to the board) rather than the SD card, like previous models. Because of changes in the boot sequence, USB boot was not possible on the Raspberry Pi 4 initially.

But a beta version of the EEPROM firmware was just released that includes support for USB mass storage boot. Currently, enabling USB boot requires a few steps, but I expect USB boot to be enabled by default soon! This guide will show you how to load the beta firmware and boot your Raspberry Pi 4 from a USB drive.

Here’s everything you’ll need to complete this guide:

Raspberry Pi 4 Model BRaspberry Pi 4 Model B×1
Raspberry Pi 4 power supplyRaspberry Pi 4 power supply×1
USB driveUSB drive×1

In order to boot from USB, we need to install a beta version of the bootloader. This is done using the rpi-eeprom-update command from a shell. To get started, you’ll need to boot your Raspberry from an SD card. If you need help with this step, follow our guide on installing Raspbian (now Raspberry Pi OS) on your Raspberry Pi.

Also, if you’re using a headless setup, you’ll need to enable ssh and configure Wi-Fi before moving on.

With Raspberry Pi OS installed and the SD card mounted, plug in the Raspberry Pi and boot.

Next, we need to make sure the operating system is up to date. Begin by connecting to your Pi via SSH. Then run the following commands:

sudo apt update
sudo apt full-upgrade

Open the file /etc/default/rpi-eeprom-update to edit. This can be done using vi or nano like this:

sudo nano /etc/default/rpi-eeprom-update

Change “critical” to “beta”. The file should look like this:

FIRMWARE_RELEASE_STATUS="beta"

To install the bootloader use:

sudo rpi-eeprom-update -d -f /lib/firmware/raspberrypi/bootloader/beta/pieeprom-2020-05-27.bin

Note: You may want to use a newer version of the pieeprom file if its available. To find a newer version you can use the following:

ls -lha /lib/firmware/raspberrypi/bootloader/beta/ | grep pieeprom

After running the rpi-eeprom-update command, run:

sudo reboot
Verify the raspberry pi bootloader versionVerify the raspberry pi bootloader version

After the Pi reboots, connect again using SSH so you can confirm your changes took effect. After connecting run:

vcgencmd bootloader_version

You should expect to see the following:

May 27 2020 18:47:29
version d648db3968cd31d4948341e09cb8a925c49d2ea1 (release)
timestamp 1590601649

Confirm the date matches the date in the beta pieeprom file.

Flash Raspberry Pi OS onto your USB driveFlash Raspberry Pi OS onto your USB drive

At this point, you need to install Raspberry Pi OS on your USB drive. You can use Raspberry Pi Imager to do this as well. Just plug in your USB drive and select it under SD Card.

And just like your SD card install, now is the time to enable SSH and add your Wi-Fi credentials, if applicable.

Download the Raspberry Pi firmwareDownload the Raspberry Pi firmware

You’ll need to grab the .dat and .elf files from a May 22, 2020 commit on the raspberrypi/firmware GitHub repo. The latest firmware does not work.

Note to self: when the latest firmware works to update this guide. 🙂

The easiest way to do this is to download the repository at the specified commit. To do this click Clone or download then Download ZIP. Then unzip the firmware.

Now, with your USB drive still mounted on your computer, run the following:

cp /*.dat 
cp /*.elf 

For example, on macOS I’m running:

cp ~/Downloads/firmware-a6c9b6b48ce86ef2527586a50760d52f1b33f642/boot/*.dat /Volumes/boot/
cp ~/Downloads/firmware-a6c9b6b48ce86ef2527586a50760d52f1b33f642/boot/*.elf /Volumes/boot/

Now, you should be able to properly boot from your USB drive. Begin by shutting down your Pi and removing your SD card. Then unmount the USB drive from the computer and insert it into your Raspberry Pi. Then boot the Pi once again.

If you configured Wi-Fi and SSH, you should be able to find your Pi on the network and connect!

Jump to step

How to Boot Your Raspberry Pi 4 From a USB Drive

How to Boot Your Raspberry Pi 4 From a USB DriveHow to Boot Your Raspberry Pi 4 From a USB Drive
Tyler Tyler (285)
Total time: 15 minutes 
Updated: July 22nd, 2020

The Raspberry Pi was designed to boot from an SD card, but in some cases, it’s convenient to boot from a USB drive. With previous Raspberry Pi models, USB mass storage boot was either enabled out of the box (3B+, CM3+) or by modifying /boot/config.txt (2B v1.2, 3A+, 3B, CM3). But the Raspberry Pi 4 stores the bootloader on an EEPROM (non-volatile memory attached to the board) rather than the SD card, like previous models. Because of changes in the boot sequence, USB boot was not possible on the Raspberry Pi 4 initially.

But a beta version of the EEPROM firmware was just released that includes support for USB mass storage boot. Currently, enabling USB boot requires a few steps, but I expect USB boot to be enabled by default soon! This guide will show you how to load the beta firmware and boot your Raspberry Pi 4 from a USB drive.

Here’s everything you’ll need to complete this guide:

Raspberry Pi 4 Model BRaspberry Pi 4 Model B×1
Raspberry Pi 4 power supplyRaspberry Pi 4 power supply×1
USB driveUSB drive×1

In order to boot from USB, we need to install a beta version of the bootloader. This is done using the rpi-eeprom-update command from a shell. To get started, you’ll need to boot your Raspberry from an SD card. If you need help with this step, follow our guide on installing Raspbian (now Raspberry Pi OS) on your Raspberry Pi.

Also, if you’re using a headless setup, you’ll need to enable ssh and configure Wi-Fi before moving on.

With Raspberry Pi OS installed and the SD card mounted, plug in the Raspberry Pi and boot.

Next, we need to make sure the operating system is up to date. Begin by connecting to your Pi via SSH. Then run the following commands:

sudo apt update
sudo apt full-upgrade

Open the file /etc/default/rpi-eeprom-update to edit. This can be done using vi or nano like this:

sudo nano /etc/default/rpi-eeprom-update

Change “critical” to “beta”. The file should look like this:

FIRMWARE_RELEASE_STATUS="beta"

To install the bootloader use:

sudo rpi-eeprom-update -d -f /lib/firmware/raspberrypi/bootloader/beta/pieeprom-2020-05-27.bin

Note: You may want to use a newer version of the pieeprom file if its available. To find a newer version you can use the following:

ls -lha /lib/firmware/raspberrypi/bootloader/beta/ | grep pieeprom

After running the rpi-eeprom-update command, run:

sudo reboot
Verify the raspberry pi bootloader versionVerify the raspberry pi bootloader version

After the Pi reboots, connect again using SSH so you can confirm your changes took effect. After connecting run:

vcgencmd bootloader_version

You should expect to see the following:

May 27 2020 18:47:29
version d648db3968cd31d4948341e09cb8a925c49d2ea1 (release)
timestamp 1590601649

Confirm the date matches the date in the beta pieeprom file.

Flash Raspberry Pi OS onto your USB driveFlash Raspberry Pi OS onto your USB drive

At this point, you need to install Raspberry Pi OS on your USB drive. You can use Raspberry Pi Imager to do this as well. Just plug in your USB drive and select it under SD Card.

And just like your SD card install, now is the time to enable SSH and add your Wi-Fi credentials, if applicable.

Download the Raspberry Pi firmwareDownload the Raspberry Pi firmware

You’ll need to grab the .dat and .elf files from a May 22, 2020 commit on the raspberrypi/firmware GitHub repo. The latest firmware does not work.

Note to self: when the latest firmware works to update this guide. 🙂

The easiest way to do this is to download the repository at the specified commit. To do this click Clone or download then Download ZIP. Then unzip the firmware.

Now, with your USB drive still mounted on your computer, run the following:

cp /*.dat 
cp /*.elf 

For example, on macOS I’m running:

cp ~/Downloads/firmware-a6c9b6b48ce86ef2527586a50760d52f1b33f642/boot/*.dat /Volumes/boot/
cp ~/Downloads/firmware-a6c9b6b48ce86ef2527586a50760d52f1b33f642/boot/*.elf /Volumes/boot/

Now, you should be able to properly boot from your USB drive. Begin by shutting down your Pi and removing your SD card. Then unmount the USB drive from the computer and insert it into your Raspberry Pi. Then boot the Pi once again.

If you configured Wi-Fi and SSH, you should be able to find your Pi on the network and connect!

How to Boot Your Raspberry Pi 4 From a USB Drive

How to Boot Your Raspberry Pi 4 From a USB DriveHow to Boot Your Raspberry Pi 4 From a USB Drive
Tyler Tyler (285)
Total time: 15 minutes 
Updated: July 22nd, 2020

The Raspberry Pi was designed to boot from an SD card, but in some cases, it’s convenient to boot from a USB drive. With previous Raspberry Pi models, USB mass storage boot was either enabled out of the box (3B+, CM3+) or by modifying /boot/config.txt (2B v1.2, 3A+, 3B, CM3). But the Raspberry Pi 4 stores the bootloader on an EEPROM (non-volatile memory attached to the board) rather than the SD card, like previous models. Because of changes in the boot sequence, USB boot was not possible on the Raspberry Pi 4 initially.

But a beta version of the EEPROM firmware was just released that includes support for USB mass storage boot. Currently, enabling USB boot requires a few steps, but I expect USB boot to be enabled by default soon! This guide will show you how to load the beta firmware and boot your Raspberry Pi 4 from a USB drive.

Here’s everything you’ll need to complete this guide:

Raspberry Pi 4 Model BRaspberry Pi 4 Model B×1
Raspberry Pi 4 power supplyRaspberry Pi 4 power supply×1
USB driveUSB drive×1

How to Boot Your Raspberry Pi 4 From a USB Drive

pi
Tyler Tyler (285)
Total time: 15 minutes 
Updated: July 22nd, 2020
Tyler
 
3
Mentioned here
Raspberry Pi Models and Specs: A Comprehensive Guide

Here’s everything you’ll need to complete this guide:

Raspberry Pi 4 Model BRaspberry Pi 4 Model B×1
Raspberry Pi 4 power supplyRaspberry Pi 4 power supply×1
USB driveUSB drive×1
Raspberry Pi 4 Model BRaspberry Pi 4 Model B×1
Raspberry Pi 4 power supplyRaspberry Pi 4 power supply×1
USB driveUSB drive×1
Raspberry Pi 4 Model BRaspberry Pi 4 power supplyUSB drive
Jump to step
Calling all writers!

We’re hiring. Write for Howchoo

 
3
In these interests
pi
PRIMARY
213 guides
pi
PRIMARY
213 guides
PRIMARY
Jump to step

In order to boot from USB, we need to install a beta version of the bootloader. This is done using the rpi-eeprom-update command from a shell. To get started, you’ll need to boot your Raspberry from an SD card. If you need help with this step, follow our guide on installing Raspbian (now Raspberry Pi OS) on your Raspberry Pi.

Also, if you’re using a headless setup, you’ll need to enable ssh and configure Wi-Fi before moving on.

With Raspberry Pi OS installed and the SD card mounted, plug in the Raspberry Pi and boot.

Next, we need to make sure the operating system is up to date. Begin by connecting to your Pi via SSH. Then run the following commands:

sudo apt update
sudo apt full-upgrade

Open the file /etc/default/rpi-eeprom-update to edit. This can be done using vi or nano like this:

sudo nano /etc/default/rpi-eeprom-update

Change “critical” to “beta”. The file should look like this:

FIRMWARE_RELEASE_STATUS="beta"

To install the bootloader use:

sudo rpi-eeprom-update -d -f /lib/firmware/raspberrypi/bootloader/beta/pieeprom-2020-05-27.bin

Note: You may want to use a newer version of the pieeprom file if its available. To find a newer version you can use the following:

ls -lha /lib/firmware/raspberrypi/bootloader/beta/ | grep pieeprom

After running the rpi-eeprom-update command, run:

sudo reboot
Verify the raspberry pi bootloader versionVerify the raspberry pi bootloader version

After the Pi reboots, connect again using SSH so you can confirm your changes took effect. After connecting run:

vcgencmd bootloader_version

You should expect to see the following:

May 27 2020 18:47:29
version d648db3968cd31d4948341e09cb8a925c49d2ea1 (release)
timestamp 1590601649

Confirm the date matches the date in the beta pieeprom file.

Flash Raspberry Pi OS onto your USB driveFlash Raspberry Pi OS onto your USB drive

At this point, you need to install Raspberry Pi OS on your USB drive. You can use Raspberry Pi Imager to do this as well. Just plug in your USB drive and select it under SD Card.

And just like your SD card install, now is the time to enable SSH and add your Wi-Fi credentials, if applicable.

Download the Raspberry Pi firmwareDownload the Raspberry Pi firmware

You’ll need to grab the .dat and .elf files from a May 22, 2020 commit on the raspberrypi/firmware GitHub repo. The latest firmware does not work.

Note to self: when the latest firmware works to update this guide. 🙂

The easiest way to do this is to download the repository at the specified commit. To do this click Clone or download then Download ZIP. Then unzip the firmware.

Now, with your USB drive still mounted on your computer, run the following:

cp /*.dat 
cp /*.elf 

For example, on macOS I’m running:

cp ~/Downloads/firmware-a6c9b6b48ce86ef2527586a50760d52f1b33f642/boot/*.dat /Volumes/boot/
cp ~/Downloads/firmware-a6c9b6b48ce86ef2527586a50760d52f1b33f642/boot/*.elf /Volumes/boot/

Now, you should be able to properly boot from your USB drive. Begin by shutting down your Pi and removing your SD card. Then unmount the USB drive from the computer and insert it into your Raspberry Pi. Then boot the Pi once again.

If you configured Wi-Fi and SSH, you should be able to find your Pi on the network and connect!

In order to boot from USB, we need to install a beta version of the bootloader. This is done using the rpi-eeprom-update command from a shell. To get started, you’ll need to boot your Raspberry from an SD card. If you need help with this step, follow our guide on installing Raspbian (now Raspberry Pi OS) on your Raspberry Pi.

Also, if you’re using a headless setup, you’ll need to enable ssh and configure Wi-Fi before moving on.

With Raspberry Pi OS installed and the SD card mounted, plug in the Raspberry Pi and boot.

In order to boot from USB, we need to install a beta version of the bootloader. This is done using the rpi-eeprom-update command from a shell. To get started, you’ll need to boot your Raspberry from an SD card. If you need help with this step, follow our guide on installing Raspbian (now Raspberry Pi OS) on your Raspberry Pi.

Also, if you’re using a headless setup, you’ll need to enable ssh and configure Wi-Fi before moving on.

With Raspberry Pi OS installed and the SD card mounted, plug in the Raspberry Pi and boot.

Boot your Raspberry Pi from an SD card

Mentioned here
How to Install or Upgrade to Raspbian Buster
Mentioned here
How to Enable SSH on Raspberry Pi Without a ScreenHow to Set up WiFi on Your Raspberry Pi Without a Monitor

Next, we need to make sure the operating system is up to date. Begin by connecting to your Pi via SSH. Then run the following commands:

sudo apt update
sudo apt full-upgrade

Next, we need to make sure the operating system is up to date. Begin by connecting to your Pi via SSH. Then run the following commands:

sudo apt update
sudo apt full-upgrade

Update the operating system

Mentioned here
How to Connect to a Raspberry Pi Remotely via SSH How to Connect to a Raspberry Pi Remotely via SSHThe preferred (and most common) method of connecting to your Pi to run commands.
How to Connect to a Raspberry Pi Remotely via SSH

Open the file /etc/default/rpi-eeprom-update to edit. This can be done using vi or nano like this:

sudo nano /etc/default/rpi-eeprom-update

Change “critical” to “beta”. The file should look like this:

FIRMWARE_RELEASE_STATUS="beta"

Open the file /etc/default/rpi-eeprom-update to edit. This can be done using vi or nano like this:

sudo nano /etc/default/rpi-eeprom-update

Change “critical” to “beta”. The file should look like this:

FIRMWARE_RELEASE_STATUS="beta"

Update the eeprom configuration

To install the bootloader use:

sudo rpi-eeprom-update -d -f /lib/firmware/raspberrypi/bootloader/beta/pieeprom-2020-05-27.bin

Note: You may want to use a newer version of the pieeprom file if its available. To find a newer version you can use the following:

ls -lha /lib/firmware/raspberrypi/bootloader/beta/ | grep pieeprom

After running the rpi-eeprom-update command, run:

sudo reboot

To install the bootloader use:

sudo rpi-eeprom-update -d -f /lib/firmware/raspberrypi/bootloader/beta/pieeprom-2020-05-27.bin

Note: You may want to use a newer version of the pieeprom file if its available. To find a newer version you can use the following:

ls -lha /lib/firmware/raspberrypi/bootloader/beta/ | grep pieeprom

After running the rpi-eeprom-update command, run:

sudo reboot

Install the beta bootloader and reboot

Verify the raspberry pi bootloader versionVerify the raspberry pi bootloader version

After the Pi reboots, connect again using SSH so you can confirm your changes took effect. After connecting run:

vcgencmd bootloader_version

You should expect to see the following:

May 27 2020 18:47:29
version d648db3968cd31d4948341e09cb8a925c49d2ea1 (release)
timestamp 1590601649

Confirm the date matches the date in the beta pieeprom file.

Verify the raspberry pi bootloader versionVerify the raspberry pi bootloader version

After the Pi reboots, connect again using SSH so you can confirm your changes took effect. After connecting run:

vcgencmd bootloader_version

You should expect to see the following:

May 27 2020 18:47:29
version d648db3968cd31d4948341e09cb8a925c49d2ea1 (release)
timestamp 1590601649

Confirm the date matches the date in the beta pieeprom file.

Confirm your changes

Flash Raspberry Pi OS onto your USB driveFlash Raspberry Pi OS onto your USB drive

At this point, you need to install Raspberry Pi OS on your USB drive. You can use Raspberry Pi Imager to do this as well. Just plug in your USB drive and select it under SD Card.

And just like your SD card install, now is the time to enable SSH and add your Wi-Fi credentials, if applicable.

Flash Raspberry Pi OS onto your USB driveFlash Raspberry Pi OS onto your USB drive

At this point, you need to install Raspberry Pi OS on your USB drive. You can use Raspberry Pi Imager to do this as well. Just plug in your USB drive and select it under SD Card.

And just like your SD card install, now is the time to enable SSH and add your Wi-Fi credentials, if applicable.

Flash (or copy) a Raspberry Pi OS image onto your USB drive

Mentioned here
How to Use Raspberry Pi Imager How to Use Raspberry Pi ImagerNew official Raspberry Pi imaging software.
How to Use Raspberry Pi Imager
Download the Raspberry Pi firmwareDownload the Raspberry Pi firmware

You’ll need to grab the .dat and .elf files from a May 22, 2020 commit on the raspberrypi/firmware GitHub repo. The latest firmware does not work.

Note to self: when the latest firmware works to update this guide. 🙂

The easiest way to do this is to download the repository at the specified commit. To do this click Clone or download then Download ZIP. Then unzip the firmware.

Now, with your USB drive still mounted on your computer, run the following:

cp /*.dat 
cp /*.elf 

For example, on macOS I’m running:

cp ~/Downloads/firmware-a6c9b6b48ce86ef2527586a50760d52f1b33f642/boot/*.dat /Volumes/boot/
cp ~/Downloads/firmware-a6c9b6b48ce86ef2527586a50760d52f1b33f642/boot/*.elf /Volumes/boot/
Download the Raspberry Pi firmwareDownload the Raspberry Pi firmware

You’ll need to grab the .dat and .elf files from a May 22, 2020 commit on the raspberrypi/firmware GitHub repo. The latest firmware does not work.

Note to self: when the latest firmware works to update this guide. 🙂

The easiest way to do this is to download the repository at the specified commit. To do this click Clone or download then Download ZIP. Then unzip the firmware.

Now, with your USB drive still mounted on your computer, run the following:

cp /*.dat 
cp /*.elf 

For example, on macOS I’m running:

cp ~/Downloads/firmware-a6c9b6b48ce86ef2527586a50760d52f1b33f642/boot/*.dat /Volumes/boot/
cp ~/Downloads/firmware-a6c9b6b48ce86ef2527586a50760d52f1b33f642/boot/*.elf /Volumes/boot/

Overwrite the .dat and .elf files in /boot

Now, you should be able to properly boot from your USB drive. Begin by shutting down your Pi and removing your SD card. Then unmount the USB drive from the computer and insert it into your Raspberry Pi. Then boot the Pi once again.

If you configured Wi-Fi and SSH, you should be able to find your Pi on the network and connect!

Now, you should be able to properly boot from your USB drive. Begin by shutting down your Pi and removing your SD card. Then unmount the USB drive from the computer and insert it into your Raspberry Pi. Then boot the Pi once again.

If you configured Wi-Fi and SSH, you should be able to find your Pi on the network and connect!

Shut down your Pi and boot from USB

Calling all writers!

We’re hiring. Write for Howchoo

Tyler's profile pictureTyler
Joined in 2015
Software Engineer and creator of howchoo.
Tyler's profile picture
Share this guide!
RedditEmailTextPinterest
Related to this guide:
Two Kids Learning to Code with Digital Making at HomeTwo Kids Learning to Code with Digital Making at Home
Raspberry Pi livestreams each Thursday with new things for kids to code!
Michael's profile picture MichaelView
In these interests: kidsnewspi
Best Raspberry Pi Beginngers BooksBest Raspberry Pi Beginngers Books
For Raspberry Pi beginners who still love to follow along in a book.
Michael's profile picture MichaelView
In these interests: booksretropiepi
Astro Pi on the ISSAstro Pi on the ISS
What’s better than an experiment? An experiment in space!
Michael's profile picture MichaelView
In these interests: kidspinews
Two Kids Learning to Code with Digital Making at HomeTwo Kids Learning to Code with Digital Making at Home
Raspberry Pi livestreams each Thursday with new things for kids to code!
Michael's profile picture MichaelView
In these interests: kidsnewspi
Michael's profile pictureViewkidsnewspi
Best Raspberry Pi Beginngers BooksBest Raspberry Pi Beginngers Books
For Raspberry Pi beginners who still love to follow along in a book.
Michael's profile picture MichaelView
In these interests: booksretropiepi
Michael's profile pictureViewbooksretropiepi
Astro Pi on the ISSAstro Pi on the ISS
What’s better than an experiment? An experiment in space!
Michael's profile picture MichaelView
In these interests: kidspinews
Michael's profile pictureViewkidspinews
People also read:
The Kali Linux and Raspberry Pi logos, side by side
Kali Linux is a great distribution for Raspberry Pi users who want to get to grips with security testing.
Raspberry Pi Web Server LAMP Stack
The Raspberry Pi micro-computer grows in power with each new model release, with more resources that make it a more capable, low-cost content server for your media and resources.
NEMS and Raspberry Pi Logos
Laptops, smartphones, tablets, even lightbulbs—an endless number of devices now have the ability to connect to your local network and the wider internet.
Raspberry Pi OS
Get the new official Raspberry Pi OS on your Pi.
Raspberry Pi FAQ
New to the Raspberry Pi? Start here.
The Pi-hole logo
Blocking ads just got easier with Pi-hole, a network-wide ad blocker for the Raspberry Pi
Raspberry Pi 4 Cases 2020
Don’t skip out on a proper case for your Pi 4.
Setting up Bluetooth on a Raspberry Pi
The only Raspberry Pi Bluetooth guide you’ll ever need.
Raspberry Pi Windows
Your favorite MS OS on the Pi.
The Kali Linux and Raspberry Pi logos, side by side
Kali Linux is a great distribution for Raspberry Pi users who want to get to grips with security testing.
Raspberry Pi Web Server LAMP Stack
The Raspberry Pi micro-computer grows in power with each new model release, with more resources that make it a more capable, low-cost content server for your media and resources.
NEMS and Raspberry Pi Logos
Laptops, smartphones, tablets, even lightbulbs—an endless number of devices now have the ability to connect to your local network and the wider internet.
Raspberry Pi OS
Get the new official Raspberry Pi OS on your Pi.
PiCar-V V2.0 Kit
PiCar-V V2.0 KitDIY Raspberry Pi RC Car: SunFounder’s PiCar-V V2.0 Kit
The Kali Linux and Raspberry Pi logos, side by side
The Kali Linux and Raspberry Pi logos, side by sideHow to Install Kali Linux on a Raspberry Pi
Raspberry Pi Web Server LAMP Stack
Raspberry Pi Web Server LAMP StackHow to Set Up a Raspberry Pi Web Server
NEMS and Raspberry Pi Logos
NEMS and Raspberry Pi LogosHow to Set Up a Raspberry Pi Network Monitor
Raspberry Pi OS
Raspberry Pi OSHow to Install Raspberry Pi OS on Your Raspberry Pi
Raspberry Pi FAQ
New to the Raspberry Pi? Start here.
The Pi-hole logo
Blocking ads just got easier with Pi-hole, a network-wide ad blocker for the Raspberry Pi
Raspberry Pi 4 Cases 2020
Don’t skip out on a proper case for your Pi 4.
Setting up Bluetooth on a Raspberry Pi
The only Raspberry Pi Bluetooth guide you’ll ever need.
Raspberry Pi Windows
Your favorite MS OS on the Pi.
Raspberry Pi FAQ
Raspberry Pi FAQRaspberry Pi FAQ – Everything You Need To Know
The Pi-hole logo
The Pi-hole logoPi-hole: How to Set Up and Configure Pi-hole on Raspberry Pi
Raspberry Pi 4 Cases 2020
Raspberry Pi 4 Cases 2020Best Raspberry Pi 4 Cases of 2020
Setting up Bluetooth on a Raspberry Pi
Setting up Bluetooth on a Raspberry PiHow to Set Up Bluetooth on a Raspberry Pi
Raspberry Pi Windows
Raspberry Pi WindowsHow to run Windows on the Raspberry Pi
Posted in these interests:
pipi
pi
PRIMARY
The Raspberry Pi is a small, inexpensive computer developed by the Raspberry Pi Foundation in the United Kingdom.
pipi
pi
PRIMARY
The Raspberry Pi is a small, inexpensive computer developed by the Raspberry Pi Foundation in the United Kingdom.
PRIMARY
Explore
Discuss this guide:
We’re hiring!
Are you a passionate writer? We want to hear from you!
We’re hiring!
Are you a passionate writer? We want to hear from you!
View openings

Want to support Howchoo? When you buy a tool or material through one of our Amazon links, we earn a small commission as an Amazon Associate.

Donate
Ash's profile pictureAsh
Joined in 2018
Ash is an experienced tech writer with an endless passion for technology. She enjoys retro gaming, 3D printing, and making awesome projects on the Raspberry Pi.
Related to this guide:
Windows 10 Bootable USBWindows 10 Bootable USB
Recover your PC with a Windows 10 flash drive.
Ash's profile picture AshView
In these interests: windows
Stop Updates on Windows 10Stop Updates on Windows 10
Postpone or halt your Windows 10 updates.
Ash's profile picture AshView
In these interests: windows
People also read:
Windows 10 Remote Desktop
Make the most of your Windows 10 Remote Desktop session.
Reset Network Settings Windows 10
Forget your Wi-Fi networks and other network settings.
Enable Remote Access Windows 10
Work from home when you’re not at home.
VPN from Windows 10
Learn how to connect to your work or private VPN on Windows.
Restore Windows 10
Like rewinding but for your operating system.
Which Version of Windows Do I Have
You’re running Windows what?
Map Network Drive Windows 10
Save your network shares for later.
Posted in these interests:
Discuss this guide:
We’re hiring!
Are you a passionate writer or editor? We want to hear from you!
We’re hiring!
Are you a passionate writer or editor? We want to hear from you!

Want to support Howchoo? When you buy a tool or material through one of our Amazon links, we earn a small commission as an Amazon Associate.

Want to support Howchoo? When you buy a tool or material through one of our Amazon links, we earn a small commission as an Amazon Associate.

How to Find Your Wi-Fi Password

How to Find WiFi PasswordHow to Find WiFi Password
Log in to your wireless network ASAP.
Ash Ash (252)
Total time: 5 minutes 
Updated: July 22nd, 2020

Many users choose to encrypt their Wi-Fi with a custom password. Not every wireless network uses a password, but the ones that do benefit from greater security.

If you aren’t sure what your WiFi password is, there are a few things you can do to gain access to your wireless network.

Posted in these interests:

router
PRIMARY
57 guides
networking
25 guides

If you never set a custom Wi-Fi password or this is your first time connecting to your wireless network, you need to use the default password.

If you received your router from an ISP, check the router for a sticker with W-iFi information. The password may be referred to as a key. If you can’t find any record of the default Wi-Fi password, contact the ISP for support.

If you purchased your own router, look through any documentation provided by the manufacturer. You may be able to find the password you need online. If you still can’t find the default login credentials, contact the manufacturer for assistance.

Look for any record of the Wi-Fi password. This includes password archives and documentation provided to you by your ISP.

If you set a custom Wi-Fi password, it’s up to you to keep track of it. In general, avoid storing sensitive passwords in easy to access locations. If you don’t want to store physical copies of passwords, consider using a password manager application. These programs help keep track of your passwords with an encrypted database.

Change Wi-Fi passwordChange Wi-Fi password

If you cannot identify the current password, you may have to set a new one. Log in to your router using a browser window. Use the router’s IP address in the address bar. If you don’t know what yours is, visit our guide on how to find your router’s IP address.

Once you’ve logged into the web interface, look for Wi-Fi settings. Your wireless password will likely be referred to as a key. After you save the new password, test it by trying to log into your network with a wireless device.

If you have trouble connecting, disconnect and restart your router to try resetting the password again from scratch. If you still aren’t able to locate or set a new password, you may need to contact your ISP or the manufacturer for support.

We’re hiring!
Are you a passionate writer or editor? We want to hear from you!

Want to support Howchoo? When you buy a tool or material through one of our Amazon links, we earn a small commission as an Amazon Associate.

Total time: 5 minutes 
Updated: July 22nd, 2020
router
PRIMARY
57 guides
networking
25 guides
Calling all writers!

We’re hiring. Write for Howchoo

router
PRIMARY
57 guides
networking
25 guides
How to Find Your Router's IP Address How to Find Your Router’s IP AddressFind the IP address you need to access your router.
Calling all writers!

We’re hiring. Write for Howchoo

Ash's profile pictureAsh
Joined in 2018
Ash is an experienced tech writer with an endless passion for technology. She enjoys retro gaming, 3D printing, and making awesome projects on the Raspberry Pi.
Do you know how fast your network was going, sir?
Ash's profile picture AshView
In these interests: networkingrouter
Manually configure the port settings on your router.
Ash's profile picture AshView
In these interests: networkingrouter
In these interests: networkingrouter
Understand what your wireless router is capable of and what you can do with it.
Find the IP address you need to access your router.
Changing your WiFi password is an easy way to add a little more security to your wireless network or change the random default password to something you can remember.
Change your password to something more memorable and secure!
Having trouble? Reset your modem!
There are many reasons you might need to log into your Charter Spectrum router; for example, you may need to perform initial setup or secure your wireless network.
Speed up your Internet connection in just a few minutes.
Laptops, smartphones, tablets, even lightbulbs—an endless number of devices now have the ability to connect to your local network and the wider internet.
router
PRIMARY
Total time: 5 minutes 
Updated: July 22nd, 2020
mac
PRIMARY
78 guides
apple
51 guides
networking
25 guides
Ash's profile pictureAsh
Joined in 2018
Ash is an experienced tech writer with an endless passion for technology. She enjoys retro gaming, 3D printing, and making awesome projects on the Raspberry Pi.
Force your Mac to use the Ethernet/wired connection when it’s connected.
Zach's profile picture ZachView
In these interests: networkingmacosmac
Strange Mac issue? One of these will probably fix it.
Zach's profile picture ZachView
In these interests: applemac
In this guide, we’re going to use AppleScript and a tool called osascript to display macOS notifications.
Tyler's profile picture TylerView
In these interests: macapple
If you’re used to CTRL being the bottom left key, this guide will help you.
“I wish my MacOS apps could tap me on the shoulder until I answer.” – No one ever
The Touch Bar is a neat addition to the MacBook Pro. For me, however, it’s kind of annoying and I just want my normal Control Strip back rather than application-specific options.
Tired of Zoom’s security issues? Get rid of it.
Connect your favorite Bluetooth device.
You clean up your desk, why not your desktop?
mac
PRIMARY
Apple Computers is an American computer and consumer electronics company founded by Steve Jobs and Steve Wozniak.