Log in

No account? Create an account

Date: 2017-11-07 23:52
Subject: Updating Raspberry Pi to Raspbian Stretch
Security: Public
...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
Post A Comment | | Flag | Link

my journal
November 2017