Mac 系统下安装树莓派(Respberrypi)

准备

8GB SD卡一张 (*)
树莓派 (*)
HDMI连接线 / HDMI转接线
显示器
键盘

1、镜像及工具下载

1.1 镜像选择及下载

树莓派镜像下载地址:https://www.raspberrypi.org/downloads/。目前官方提供了 NOOBS 及基于 Debian 的Raspbian 两个发行版系统,相应的官方说明文档如下:

NOOBS

NOOBS is an easy operating system installer which contains Raspbian. It also provides a selection of alternative operating systems which are then downloaded from the internet and installed.

NOOBS Lite contains the same operating system installer without Raspbian pre-loaded. It provides the same operating system selection menu allowing Raspbian and other images to be downloaded and installed.

Raspbian

Raspbian is the Foundation’s official supported operating system. You can install it with NOOBS or download the image below and follow our installation guide.

Raspbian comes pre-installed with plenty of software for education, programming and general use. It has Python, Scratch, Sonic Pi, Java, Mathematica and more.

The Raspbian with Desktop image contained in the ZIP archive is over 4GB in size, which means that these archives use features which are not supported by older unzip tools on some platforms. If you find that the download appears to be corrupt or the file is not unzipping correctly, please try using 7Zip (Windows) or The Unarchiver (Macintosh). Both are free of charge and have been tested to unzip the image correctly.

除此之外,在 Download 页面,Raspberrypi 还提供了其他第三方系统镜像的下载地址:

第三方下载

大家可以根据自己的实际需要来选择镜像下载!下载完成后,记得进行校验。后续将以 RASPBIAN STRETCH LITE 为例进行安装。

1.2 刻录工具下载

Mac 下,使用了 Etcher 进行刻录,下载地址:https://etcher.io/

Etcher is a graphical SD card writing tool that works on Mac OS, Linux and Windows, and is the easiest option for most users. Etcher also supports writing images directly from the zip file, without any unzipping required. To write your image with Etcher:

下载后,直接拖动安装即可。

2、镜像刻录

将下载后的镜像解压,并将 SD 卡插入到电脑上,打开下载的 Etcher,按照下图所示,把系统镜像刻录到 SD 卡上

screenshot

刻录完成后,取出SD卡,插入到树莓派开发版,并连接网络、HDMI 显示器以及USB 键盘,上电启动树莓派。

3、其他

官方镜像,默认没有启用 sshd 服务,因此没有办法使用终端工具连接到开发板上,因此需要插入键盘及显示器,启动 SSH 服务。

sudo systemctl start sshd
sudo systemctl enable sshd

启动之后,开发板只需要连接电源及网线,就可以通过终端工具 + IP 进行远程访问与配置了

发表评论