树莓派玩转树莓派树莓派/香橙派.Space

树莓派 开启ssh 设置静态IP

2017-10-07  本文已影响184人  moodi

最新的 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

上一篇 下一篇

猜你喜欢

热点阅读