树莓派 开启ssh 设置静态IP

最新的 RASPBIAN 系统开启ssh和设置静态ip与之前版本有点差别.

1.系统版本:RASPBIAN STRETCH LITE

     基于debian的最小镜像
     Release date:2017-09-07
     Kernel version:4.9

2.更新日志

      2017-09-07:
   * Disable predictable network interface names for Ethernet devices
   * Bug fix for keyboard settings dialog in Raspberry Pi Configuration
   * Bug fix for crash on some videos and animations in Chromium
   * Bug fix for taskbar crash when running RealVNC server
   * Bug fix for reloading projects with extensions in Scratch 2
   * Bug fix for MAC address problem in Bluetooth
   * Simple mode and new icons in Thonny
   * New Japanese translations in Raspberry Pi Configuration
   * Install fonts-droid-fallback for international fonts

3.开启ssh

      sudo raspi-config
QQ截图20171007125101.png
QQ截图20171007125258.png

下一步 yes 启用ssh即可

4.设置静态IP

    以前系统是在 /ect/network/interfaces设置
   现在看看interfaces是什么鬼
QQ截图20171007130820.png

大概意识是 这个文件是与dhcpcd文件一起使用,设置静态ip,查看 /ect/dhcpcd.conf

打开 sudo nano /etc/dhcpcd.conf
去掉examplestatic IP configuration 下面四行# ,修改成自己需要的ip 即可


QQ截图20171007131537.png

5.重新启动 sudo reboot

推荐一个linux命令行网站:https://rootopen.com

最后编辑于 :
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

友情链接更多精彩内容