樹莓派Pi2 使用入門

 

1. 材料和環境ubuntu

  樹莓派Pi2, microSD卡(大於等於4G), 網線網絡

  官網下載: 系統鏡像 Raspbian Jessie (https://downloads.raspberrypi.org/raspbian_latest 網速較慢的話, 建議用uget軟件下載)ssh

  這裏使用的本地PC系統: ubuntu 14oop

2. 系統鏡像安裝spa

      插入SD卡, 在ubuntu系統中, 右鍵鏡像, 使用磁盤映像掛載器打開. 選擇SD--->選擇raspbian系統映像文件--->選擇從映像中恢復.blog

3. 系統配置get

  SD卡系統寫入完畢後, 從新拔插SD卡.class

  使用vi或者nano 修改/etc/network/interfaces中的內容爲:  (目的在於給有線以太網口配置靜態的IP地址).test

auto lo
iface lo inet loopback

auto eth0
allow-hotplug eth0
#iface eth0 inet manual
iface eth0 inet static
address 10.10.1.111 # 設定的靜態IP地址
netmask 255.255.255.0 # 網絡掩碼
gateway 10.10.1.1 auto wlan0 allow-hotplug wlan0 iface wlan0 inet manual wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf auto wlan1 allow-hotplug wlan1 iface wlan1 inet manual wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf

配置PC機的IP地址爲同一個網段的其餘地址.  軟件

插好SD卡, 網線接PC和Pi, 鏈接電源線.

經過 ssh pi@10.10.1.111  密碼:raspberry 鏈接進入pi.

sudo raspi-config 配置擴張磁盤. 

 修改國內源:

deb http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/ wheezy main contrib non-free rpi 
deb-src http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/ wheezy main contrib non-free rpi
deb http://mirrors.neusoft.edu.cn/raspbian/raspbian/ wheezy main contrib non-free rpi
deb-src http://mirrors.neusoft.edu.cn/raspbian/raspbian/ wheezy main contrib non-free rpi
deb http://mirrors.ustc.edu.cn/raspbian/raspbian/ wheezy main contrib non-free rpi
deb-src http://mirrors.ustc.edu.cn/raspbian/raspbian/ wheezy main contrib non-free rpi

其餘源參考:http://wangleisd.cn/raspbian-ruan-jian-yuan/

相關文章
相關標籤/搜索