How to install Raspbian on Raspberry Pi

Raspberry Pi single-board computer is ever popular. It can be used for various purposes, such as desktop PC, home media centers, smart WiFi router, automation systems and game servers. His application scenarios too much.

If your Raspberry Pi NOOBS no pre-loaded SD card, you will need to manually install the operating system on the SD card. You can run many different operating systems on the Raspberry Pi, including various Linux distributions, Windows 10 IoT and FreeBSD.

Raspberry Raspberry Pi Foundation is the recommended operating system. It is based on Debian, designed for Raspberry Pi plate constructed. Raspbian a large number of pre-installed for development, education and multimedia software, making it the best general-purpose operating systems Raspberry Pi users.

Raspbian installed as the operating system writes SD card image files as easy. In this tutorial, we'll show you how to format the SD card, refresh Raspbian mirror and start Raspberry Pi.

Download Raspbian OS

Access Raspbian download page , you'll find links in which:

  • Raspbian Stretch desktop and recommended software
  • Raspbian Stretch desktop
  • Raspbian Stretch Lite

If you want to Raspberry Pi as a desktop PC, download a Raspbian desktop image. Otherwise, if you plan to Raspberry Pi as a Media Center GUI or other unwanted content, download Raspbian Lite image.

Preparing SD card

Before the first mirror to flash micro SD card, it needs to be formatted for the FAT32 file system.

Raspberry Pi boot loader only supports reading from the FAT file system. If your SD card is 64GB or larger, make sure it is formatted as FAT32 rather than exFAT.

Please note that the format is a destructive process, it will erase all existing data. If there is data on the SD card, please backup.

Windows

Windows users can use standard disk management to format the card.

  1. Windows SD card into the SD card drive.
  2. In the Windows search box, type "disk" and then "Create and format hard disk partitions" Select result box.
  3. Right-click the unallocated space of the card, and then click "New Simple Volume" to start the wizard. Click Next. "
  4. Next, ask your volume size. Leave the default maximum disk space. Click Next. "
  5. You will be prompted to specify the path to load, just click "Next."
  6. In the next window, select a FAT32 file system. Click "Next" and then click "Finish" to complete the creation of the partition. If the card is 64GB or larger, the FAT32 option will not be available. Select exFAT and complete the process. To SD card formatted as FAT32, please visit FAT32 format page, you can click on the image to download the tool. guiformat.exe to download a single file named. Simply double-click the exe file, select the drive you want to format, then click "Start." The card will be within a few seconds formatted as FAT32.

Linux

In Linux, you can use a graphical tool as GParted or command-line tool (such as fdisk or parted) to create a partition and format the drive.

  1. Linux SD card into the SD card drive.
  2. Use the following command to find out the name lsblk SD card:

        lsblk
        NAME        MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
        ...
        sdb           8:16   1  59.6G  0 disk
        ...

    In this case, the name of the SD equipment is, / dev / sdb but this may vary depending on your system. The best way is to identify the name of the size of the inspection apparatus.

  3. The next step is parted card format:

        sudo parted /dev/sdb --script -- mklabel msdossudo parted /dev/sdb --script -- mkpart primary fat32 1MiB 100%
  4. Format the partition as FAT32:

        sudo mkfs.fat -F32 /dev/sdb1

Mac OS

macOS users can use standard "Disk Utility" or the command line format the SD card.

  1. MacOS SD card into the SD card drive.
  2. Type the following command in a terminal window to identify the SD card Name:

        sudo diskutil list
  3. Execute the following command, the SD card formatted as FAT32:

        sudo diskutil eraseDisk FAT32 RPI MBRFormat /dev/disk2

    Be sure to use the correct drive.

Write mirror

There are several different applications available for free use, they allow you to flash the ISO image to the SD card. In this tutorial, we will use Etcher.

Etcher is a free open source utility for the image to the SD card and USB flash drive, and supports Windows, macOS and Linux.

Go Etcher download page , download the latest Etcher your operating system and install the application.

  1. Insert the SD card into the SD card drive and start Etcher.
  2. Click the "Select image" button, find Raspbian zip file. If you use a Web browser to download a file, you should "download" files that are stored in the user account folder. If only one drive, Etcher will automatically select the SD card. Otherwise, if more than one SD card or USB memory stick is connected, be sure to select the correct image before flashing drive.

  3. Click the "Flash" button to start the brush into the process. Etcher progress bar is displayed while flashing image and ETA. This process may take several minutes, depending on the size and speed of the card ISO file.

On Raspbian, disabled by default SSH server. For headless Raspbian settings, you can file named by ssh without any extension into the boot partition to enable SSH. Just open the SD card in the file manager to create the file.

that's it! There bootable Raspbian OS on your SD card.

Set Raspbian

Raspberry Pi SD card into the plate, into the monitor, keyboard, and power to get started.

The default user name is the PI , the password is Raspberry .

If you enable SSH and want to Raspberry Pi as a headless server, use the cable network board connected to the router. Once started, you can find the IP address in the DHCP lease board table router, and log in to Raspbian through ssh:

To begin configuring Pi, please use the raspi-config tool:

sudo raspi-config

From here you can change the pi user password, set WiFi and expand the file system.

in conclusion

Raspbian installed on the Raspberry Pi is a very simple process. Basically, you need to do is to write to the SD card image and start the Raspberry Pi.

Guess you like

Origin www.linuxidc.com/Linux/2019-08/159880.htm