#!/bin/sh #开通普通用户网卡权限 sudo chmod u+s /bin/ping #增加国内源 sudo echo "增加国内源" sudo echo "deb http://mirrors.ustc.edu.cn/raspbian/raspbian/ wheezy main contrib non-free rpi">/etc/apt/sources.list #更新软件源列表 sudo echo "更新软件源列表" sudo apt-get update #加入 apt-get keyring wget http://archive.raspbian.org/raspbian.public.key -O - | sudo apt-key add -