Tonchik (tonchikk) wrote,
Tonchik
tonchikk

Updating Raspberry Pi to Raspbian Stretch

...yes this blog is alive, sometimes...

Got some headache with instructions from https://www.raspberrypi.org/blog/raspbian-stretch/ with my eth0 interface.

While you running Debian / Raspbian Jessie (8) you world is fine with only one line "iface eth0 inet manual" in "/etc/network/interfaces" and looking like
pi@raspberrypi:~ $ ps ax|grep dhcp
  426 ?        Ss     1:14 /sbin/dhcpcd -q -b


But before dist-upgrade and reboot to Stretch (9.1 for today) do not forget add "auto eth0" to your "/etc/network/interfaces", so it will be looking like this:
auto eth0
iface eth0 inet dhcp

this will help you avoid missing eth0. Actually it could be found using "ifconfig -a" and "ifup eth0" in new world living with new dhcp client behavior where it started per interface and for each interface explicitly:
root@...:/home/tonchik# ps ax|grep dhcp
  720 ?        Ss     0:00 /sbin/dhclient -4 -v -pf /run/dhclient.eth0.pid -lf /var/lib/dhcp/dhclient.eth0.leases -I -df /var/lib/dhcp/dhclient6.eth0.leases eth0

PS: Not starting mosquitto after this upgrade? Do not worry, maybe all you need is "chown":
root@...:~# /usr/sbin/mosquitto -c /etc/mosquitto/mosquitto.conf
1510085176: Error: Unable to open log file /var/log/mosquitto/mosquitto.log for writing.
root@...:~# ll /var/log/mosquitto/mosquitto.log
-rw-r--r-- 1 root root 85970 Nov  7 19:04 /var/log/mosquitto/mosquitto.log
root@...:~# chown -R mosquitto /var/log/mosquitto
Tags: it
Subscribe
  • Post a new comment

    Error

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

    When you submit the form an invisible reCAPTCHA check will be performed.
    You must follow the Privacy Policy and Google Terms of use.
  • 0 comments