美文网首页
树莓派的总结

树莓派的总结

作者: smallcui | 来源:发表于2017-12-29 15:41 被阅读0次

更换树莓派源

   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 

相关文章

网友评论

      本文标题:树莓派的总结

      本文链接:https://www.haomeiwen.com/subject/ucoigxtx.html