<div dir="ltr"><div><div><div>> 
     - sudo apt-get update && sudo apt-get -us dist-upgrade 
&& sudo apt-get -u dist-upgrade && sudo apt-get 
autoremove<br><br></div>I find <br></div>  apt-get --purge autoremove<br><br></div>better, as it removes any config files as well, reducing surprises when you next re-install a package.<br><br></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature">-- <br>Sanjeev Gupta<br>+65 98551208     <a href="http://www.linkedin.com/in/ghane" target="_blank">http://www.linkedin.com/in/ghane</a></div></div>
<br><div class="gmail_quote">On Sun, Jan 7, 2018 at 9:38 PM, Achim Gratz via devel <span dir="ltr"><<a href="mailto:devel@ntpsec.org" target="_blank">devel@ntpsec.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
I've been postponing the upgrade of the rasPi 1B+ to Stretch for a<br>
while… well, the three year old SD card gave up the ghost while I was<br>
away over the holidays, so that has been forced on me to do yesterday.<br>
After a few days of trying I could actually dump an image of the card so<br>
I have salvaged the logs up until the filesystem went read-only and I<br>
only lost about a week of data (the ntpd itself was still operational).<br>
<br>
Here are the notes from my install in the hope it may help somebody on<br>
their next installation:<br>
<br>
--8<---------------cut here---------------start------<wbr>------->8---<br>
*** Raspbian Stretch Lite install<br>
**** Modify SD card image<br>
     - cd /mnt/root # root partion<br>
       + vi etc/shadow   # change password hash (copy from other machine or use passwd -R /mnt/root pi)<br>
       + vi etc/hostname # change hostname<br>
       + vi etc/hosts    # change hostname<br>
     - cd /mnt/boot<br>
       + touch ssh       # enable ssh<br>
       + vi cmdline.txt  # remove serial console<br>
       + vi config.txt   # add gpio-pps overlay<br>
**** Post Initial Boot<br>
     - uname -a # Linux raspberrypi1 4.9.59+ #1047 Sun Oct 29 11:47:10 GMT 2017 armv6l GNU/Linux<br>
     - sudo apt-get update && sudo apt-get -us dist-upgrade && sudo apt-get -u dist-upgrade && sudo apt-get autoremove<br>
     - sudo dpkg-reconfigure tzdata locales # set up TZ and locale information, ensure availability of at least one UTF-8 locale<br>
     - echo LC_MESSAGES=POSIX | sudo tee -a /etc/default/locale<br>
     - sudo apt-get install ntp emacs cpufrequtils pps-tools setserial miniterm picocom python-serial rsync git<br>
     - systemctl stop systemd-timesyncd && systemctl disable systemd-timesyncd # stop and disable timesyncd (SNTP client)<br>
     - sudo apt-mark hold ntp # install ntpsec over existing scaffolding<br>
     - sudo reboot<br>
**** NTPsec development<br>
     - git clone <a href="https://gitlab.com/NTPsec/ntpsec.git" rel="noreferrer" target="_blank">https://gitlab.com/NTPsec/<wbr>ntpsec.git</a><br>
     - sudo ./buildprep --doc --ntpviz # this pulls in way too many packages…<br>
     - ./waf configure --refclock=nmea,pps,local,<wbr>generic,shm --prefix=/usr --enable-early-droproot<br>
     - sudo vi /etc/udev/rules.d/{77-dcf77,<wbr>66-ublox6,88-ublox8,99-<wbr>navspark}.rules<br>
     - sudo udevadm trigger<br>
     - sudo vi /etc/cron.daily/ntp # increase retention period<br>
     - sudo vi /etc/ntp.conf<br>
     - echo "1 SHA1" $(base64 /dev/urandom | tr -d '+/=' | head -c 20) | sudo tee /etc/ntp.keys && sudo chmod 600 /etc/ntp.keys<br>
     - sudo rm /var/run/ntp.conf.dhcp /etc/dhcp/dhclient-exit-hooks.<wbr>d/ntp<br>
     - sudo mkdir -p /var/log/ntpstat && sudo chown ntp.ntp /var/log/ntpstat<br>
     - rm wafhelpers/.autorevision-cache ; ./waf build && sudo ./waf install && sudo systemctl restart ntp && watch -n 5 'ntpq -W92 -c rv -c peers -c "cv &1" -c "cv &2"'<br>
--8<---------------cut here---------------end--------<wbr>------->8---<br>
<br>
<br>
Regards,<br>
Achim.<br>
<span class="HOEnZb"><font color="#888888">--<br>
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+<br>
<br>
SD adaptation for Waldorf microQ V2.22R2:<br>
<a href="http://Synth.Stromeko.net/Downloads.html#WaldorfSDada" rel="noreferrer" target="_blank">http://Synth.Stromeko.net/<wbr>Downloads.html#WaldorfSDada</a><br>
<br>
______________________________<wbr>_________________<br>
devel mailing list<br>
<a href="mailto:devel@ntpsec.org">devel@ntpsec.org</a><br>
<a href="http://lists.ntpsec.org/mailman/listinfo/devel" rel="noreferrer" target="_blank">http://lists.ntpsec.org/<wbr>mailman/listinfo/devel</a></font></span></blockquote></div><br></div>