1. System Installment

Steps:

  1. Write Raspberrypi system file into SD card by BalenaEtcher.
  2. Install bonjour service and internet adapter(USB Ethernet/RNIDS Gadget) in Windows platform.
  3. Configure Raspberrypi system files.
    • Add dtoverlay=dwc2 in config.txt
    • Add modules-load=dwc2,g_ether behind rootwait in cmdline.txt
    • Add new empty file ssh
  4. Link Raspberrypi to pc and wait.

2. Basic Configuration

Steps:

  1. Switch timezone

    sudo tzselect
    

    or

    sudo dpkg-reconfigure tzdata
    

    Internet time sync:

    sudo timedatectl set-ntp true
    
  2. Refresh source list
    Software update:

    deb http://mirrors.ustc.edu.cn/raspbian/raspbian/ stretch main contrib non-free rpi
    deb-src http://mirrors.ustc.edu.cn/raspbian/raspbian/ stretch main contrib non-free
    deb http://mirrors.aliyun.com/raspbian/raspbian/ stretch main contrib non-free rpi
    deb-src http://mirrors.aliyun.com/raspbian/raspbian/ stretch main contrib non-free rpi
    deb http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/ stretch main contrib non-free rpi
    deb-src http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/ stretch main contrib non-free rpi
    #deb http://mirrors.hustunique.com/raspbian/raspbian/ stretch main contrib non-free rpi
    #deb-src http://mirrors.hustunique.com/raspbian/raspbian/ stretch main contrib non-free rpi
    #deb http://mirrors.cqu.edu.cn/Raspbian/raspbian/ stretch main contrib non-free rpi
    #deb-src http://mirrors.cqu.edu.cn/Raspbian/raspbian/ stretch main contrib non-free rpi
    deb http://mirrors.zju.edu.cn/raspbian/raspbian/  stretch main contrib non-free rpi
    deb-src http://mirrors.zju.edu.cn/raspbian/raspbian/  stretch main contrib non-free rpi
    

    System update:

    deb http://mirrors.ustc.edu.cn/archive.raspberrypi.org/debian/ stretch main ui
    
    sudo apt-get update ; sudo apt-get upgrade ; sudo apt-get dist-upgrade ; sudo rpi-update