That does not cover getting rid of dhcpcd, unless I am missing something.. Disable yes, but not get rid of..
I've read that thread many times..
I can not get static IPv6 addresses to work properly when using it and it really messes with resolv.conf
I can't imagine why
Because /etc/networking/interfaces is simple and clean. A bare amount about the interfaces and everything is happy.
Code: Select all
iface eth0 inet static
dns-nameservers 192.168.1.2 192.168.1.3
iface eth0 inet6 static
dns-nameservers 2001:a:a:a::c:2 2001:a:a:a::c:3
If another networking tool such as Webmin changes the network configuration, it really breaks dhcpcd.
(Maybe I just don't understand it well enough yet... Perhaps that will go away with time and practice)
That being said, I still can not find a proper manual for dhcpcd and all the parameters, or even a guide for IPv6 setup.
just doesn't cut it.
If you are re-flashing your SD card while its in your pc why don't you just create the ssh blank file in the boot directory, that way on first boot ssh is enabled ready for you.
When I use my PC to re-image it, is usually when I remember to check if there is a new version, then usually shake my head that I didn't think to check for a new version some time ago..
I primarily use the curl piped into dd method, with an image modified only with the /boot/ssh file.
jojopi wrote:Yes, I did wonder whether you were overwriting your active root filesystem.
jojopi wrote:Unfortunately there are too many other potential problems to consider this procedure reliable, especially if you need to do it remotely over SSH, not on console. If anything at all goes wrong (such as a download error) the card will almost certainly be left in an unbootable state.
So far, and I have tried breaking it doing this..
Using a zip file is safer then the image file directly..
If curl exits for any error, it doesn't pipe into funzip, then doesn't pipe into dd
If using an image file, as long as curl finishes, it pipes into dd, a corrupt download will require going to get SD card and redoing it in the traditional way.
If using a zip file, curl can finish 'successfully' with corruption but funzip will catch the corruption, and then exit and not pipe it into dd.
If both curl and funzip 'pass' then yes, but at that point, you will have written this with the traditional way, using another computer anyways.
And yes, I do not have a console attached, (I did for the first couple weeks playing with the different NOOBS OS's).. It is sitting on top of a PoE switch (also powers the Pi3) in my rack. So when I need to physically power cycle it, I cycle the PoE port. The only time I touch it is when I have broken the network stack. Maybe will look into connecting my Ethernet-to-Serial adapter (when not in use) to it, and using it to hopefully access the console if needed.
Overall, I have yet to give any of my Pi3 boards a serious role (had 4 of them at one point) because I am still trying to set it up. In the end, I plan to have it running BIND, NUT, NAGIOS, and maybe if it can handle it, an OpenVPN server...
Really though, I wanted to see how many other people liked the idea of an official image with SSH enabled