Was this page helpful?

基本安裝

要安裝一個 Raspberry Pi 的基本系統,只需要有兩個步驟。

  1. 下載 pre-installed 的映像檔
  2. 將映像檔寫入 MicroSD 卡

下載官網的映像檔

下載連結:http://www.raspberrypi.org/downloads/

寫入映像檔至 MicroSD 卡

Windows:使用 Win32DiskImager 這個免費軟體。

Linux:

dd bs=4M if=2015-02-16-raspbian-wheezy.img of=/dev/sdd

NOTE: 確定 /dev/sdd 路徑是 MicroSD 卡。

開始使用

更新於 2018/9/1

從 2016 Novemer Release 之後版本,預設關閉 SSH 服務,若要啟動有兩種方式:

方式一:適用有連接螢幕/鍵盤時

  1. Launch Raspberry Pi Configuration from the Preferences menu
  2. Navigate to the Interfaces tab
  3. Select Enabled next to SSH
  4. Click OK

方式二:適用 headless Raspberry Pi

使用另一部 Linux 電腦將 Micro SD 卡掛載,在其中一個 boot 磁區的根目錄裡,新增一個檔案,檔名為 ssh,內容可為空白或任何文字。Raspbian 開機時如果檢測到這檔案的存在,系統會自動開啟 SSH 服務。

SSH 連線帳號:pi / raspberry

第一次登入後,執行第一個指令後,會強制執行 raspi-config。

系統設定

指令 raspi-config 可以做大部份的系統設定,例如重設密碼、時區、語言等。

sudo raspi-config

                        Raspberry Pi Software Configuration Tool (raspi-config)

Setup Options

    1 Expand Filesystem              Ensures that all of the SD card storage is available to the OS
    2 Change User Password           Change password for the default user (pi)
    3 Enable Boot to Desktop/Scratch Choose whether to boot into a desktop environment, Scratch, or the command line
    4 Internationalisation Options   Set up language and regional settings to match your location
    5 Enable Camera                  Enable this Pi to work with the Raspberry Pi Camera
    6 Add to Rastrack                Add this Pi to the online Raspberry Pi Map (Rastrack)
    7 Overclock                      Configure overclocking for your Pi
    8 Advanced Options               Configure advanced settings
    9 About `raspi-config`           Information about this configuration tool

                                   <Select>                                  <Finish>

擴充檔案系統

安裝後的系統,根目錄只有 3GB 容量,要擴充更多空間,執行

$> sudo raspi-config
 
選擇 1. Expend Filesystem

必須要重新開機
Was this page helpful?
標籤 (Edit tags)
  • No tags
您必須 登入 才能發佈評論。
Powered by MindTouch Core