樹莓派上手

啓動前設置

  1. 下載raspbian(Release date:2017-04-10)
  2. 使用Win32DiskImager寫入到tf卡
  3. 在tf卡根目錄創建文件名爲ssh的空文件(默認關閉ssh,創建文件表示容許ssh)
  4. 更改tf卡讀取限制,在tf卡根目錄config.txt,添加dtparam=sd_overclock=100
  5. 插入電源、網線(或者不用網線,若是有wifi的話,在tf卡根目錄創建文件wpa_supplicant.conf,內容以下),在路由器中查看raspberry pi的ip地址,而後使用xshell登錄,用戶名pi,密碼raspberry
  6. ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
    update_config=1
    network={ ssid=
    "testing" psk="testingPassword" }
  7. 其餘設置能夠參照https://www.gitbook.com/book/yangxuan8282/rpi_cache/details,是《樹莓派3進食指南(Raspbian)》,也能夠在這裏下載

啓動後配置

  1. 設置時區,使用tzselect命令,選擇時區,而後根據提示,將TZ='Asia/Shanghai'; export TZ寫入到本身用戶目錄的.profile文件中,斷開ssh重連(默認編輯器爲nano)
  2. 語言、時區也能夠用sudo raspi-config這個工具來設置。
  3. 配置apt軟件源爲阿里雲,sudo nano /etc/apt/sources.list,註釋掉已有的,加入以下內容,而後sudo apt-get update更新軟件列表,sudo apt-get upgrade更新已有軟件
    deb http://mirrors.aliyun.com/raspbian/raspbian/ jessie main non-free contrib
    deb-src http://mirrors.aliyun.com/raspbian/raspbian/ jessie main non-free contrib
相關文章
相關標籤/搜索