更换树莓派源
vim /etc/apt/sources.list
注释官方源之后,加入下面这些
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.aliyun.com/raspbian/raspbian/ wheezy main non-free contrib
deb-src http://mirrors.aliyun.com/raspbian/raspbian/ wheezy main non-free contrib
安装ZSH
apt-get install zsh
sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
启用root
sudo passwd root
vim /etc/ssh/sshd_config
把这行修改为“PermitRootLogin yes
ssh 无密码登录
ssh-keygen -t rsa
vim .ssh/authorized_keys
chmod 600 .ssh/authorized_keys
chmod 700 -R .ssh