メインコンテンツへスキップ
見出し画像

RasPi 入門 (4) - VirtualBoxへのインストール

    「Raspbian」をMacの「VirtualBox」にインストールする手順をまとめました。

    1. Raspbian

    「Raspbian」は、Debianベースの「Raspberry Pi」用のOSです。

    2. Raspbianのバージョン

    Raspbianのバージョンは次のとおりです。

    ・Buster (2019/06/20~) : 2019/06からRaspberry Pi 4に対応
    ・Stretch (2017/08/16~) : 2018/03からRaspberry Pi 3B+に対応
    ・Jessie (2015~) : 2016/02からRaspberry Pi 3に対応

    3. Raspbianのイメージ

    Raspbianのイメージは次の3種類が提供されています。

    ・Raspbian Buster with desktop and recommended software
    Raspbian foundationの推奨ソフトウェア一式 + デスクトップ
    ・Raspbian Buster with desktop
    必要最小限のソフトウェア + デスクトップ。
    ・Raspbian Buster Lite
    コマンドラインのみ。

    デスクトップが必要な時は「Raspbian Buster with desktop」、コマンドラインのみ必要な場合は「Raspbian Buster Lite」を選択します。

    4. Raspberry Pi Desktopのイメージ

    上記イメージとは別に、PCやMacにインストールするためのRaspberry Pi Desktopのイメージがあります。

    ・Debian Buster with Raspberry Pi Desktop
    PCおよびMac用Raspberry PiデスクトップOS。

    5. Virtual Machineの作成

    「Raspbian」をインストールする「Virtual Machine」を作成します。

    (1) 「Debian Buster with Raspberry Pi Desktop」のイメージ(ISO)をダウンロード。

    (2) 「VirtualBox」をMacにインストール。

    (3)「VirtualBox」の起動し、メニュー「仮想マシン → 新規」を選択。

    (4) 名前とオペレーティングシステムの指定。
    ・名前 : 2019-09-25-rpd-x86-buster (わかりやすいものでOK)
    ・タイプ : Linux
    ・バージョン : Debian (64-bit)

    画像1

    (5) メモリーサイズの指定。

    画像2

    (6) ハードディスクの指定。

    画像3

    (7) ハードディスクのファイルタイプの指定。

    画像4

    (8) ストレージの可変サイズ・固定サイズの指定

    画像5

    (9) ファイルの場所とサイズの指定。

    画像6

    (10) 「設定 → システム → プロセッサー」でプロセッサー数を2つに変更。

    画像7

    (11)「設定 → ストレージ → コントローラー:IDE → 空」を選択し、右の「CDボタン」でダウンロードしたイメージ(2019-09-25-rpd-x86-buster.iso)を選択。

    画像8

    6. VirtualBoxへのRaspbianのインストール

    作成した「Virtual Machine」に「Raspbian」をインストールする手順は次のとおりです。

    (1)「Virtual Machine」の起動し、作成した「Virtual Machine」を選択し、起動ボタンを押す。

    画像9

    (2)「起動」を押す。

    画像10

    (3)「Graphical install」を選択。

    画像21

    (4) キーボードの選択。(日本語キーボードの場合は「Japanese」)

    画像12

    (5) ディスクパーティションの設定で「Guided - use entire disk」(ディスク全体を使用)を選択。

    画像13

    (6) ディスクの選択。

    画像14

    (7) パーティションの選択。

    画像15

    (8) 「Continue」を押す。

    画像16

    (9)「Yes」を選択して「Continue」を押す。

    画像19

    (10)「Yes」を選択して「Continue」を押す。

    画像18

    (11)「/dev/sda」を選択して「Continue」を押す。

    画像19

    (12)「Continue」を押す。

    画像20

    (12) インストール完了。

    画像21

    次回


     
     

    npaka

     
     
    プログラマー。iPhone / Android / Unity / ROS / AI / AR / VR / RasPi / ロボット / ガジェット。年2冊ペースで技術書を執筆。アニソン / カラオケ / ギター / 猫 twitter : @npaka123

    あなたへのおすすめ