rasPi Stretch Lite install notes

Sanjeev Gupta ghane0 at gmail.com
Sun Jan 7 14:50:59 UTC 2018


>      - sudo apt-get update && sudo apt-get -us dist-upgrade && sudo
apt-get -u dist-upgrade && sudo apt-get autoremove

I find
  apt-get --purge autoremove

better, as it removes any config files as well, reducing surprises when you
next re-install a package.


-- 
Sanjeev Gupta
+65 98551208     http://www.linkedin.com/in/ghane

On Sun, Jan 7, 2018 at 9:38 PM, Achim Gratz via devel <devel at ntpsec.org>
wrote:

>
> I've been postponing the upgrade of the rasPi 1B+ to Stretch for a
> while… well, the three year old SD card gave up the ghost while I was
> away over the holidays, so that has been forced on me to do yesterday.
> After a few days of trying I could actually dump an image of the card so
> I have salvaged the logs up until the filesystem went read-only and I
> only lost about a week of data (the ntpd itself was still operational).
>
> Here are the notes from my install in the hope it may help somebody on
> their next installation:
>
> --8<---------------cut here---------------start------------->8---
> *** Raspbian Stretch Lite install
> **** Modify SD card image
>      - cd /mnt/root # root partion
>        + vi etc/shadow   # change password hash (copy from other machine
> or use passwd -R /mnt/root pi)
>        + vi etc/hostname # change hostname
>        + vi etc/hosts    # change hostname
>      - cd /mnt/boot
>        + touch ssh       # enable ssh
>        + vi cmdline.txt  # remove serial console
>        + vi config.txt   # add gpio-pps overlay
> **** Post Initial Boot
>      - uname -a # Linux raspberrypi1 4.9.59+ #1047 Sun Oct 29 11:47:10 GMT
> 2017 armv6l GNU/Linux
>      - sudo apt-get update && sudo apt-get -us dist-upgrade && sudo
> apt-get -u dist-upgrade && sudo apt-get autoremove
>      - sudo dpkg-reconfigure tzdata locales # set up TZ and locale
> information, ensure availability of at least one UTF-8 locale
>      - echo LC_MESSAGES=POSIX | sudo tee -a /etc/default/locale
>      - sudo apt-get install ntp emacs cpufrequtils pps-tools setserial
> miniterm picocom python-serial rsync git
>      - systemctl stop systemd-timesyncd && systemctl disable
> systemd-timesyncd # stop and disable timesyncd (SNTP client)
>      - sudo apt-mark hold ntp # install ntpsec over existing scaffolding
>      - sudo reboot
> **** NTPsec development
>      - git clone https://gitlab.com/NTPsec/ntpsec.git
>      - sudo ./buildprep --doc --ntpviz # this pulls in way too many
> packages…
>      - ./waf configure --refclock=nmea,pps,local,generic,shm
> --prefix=/usr --enable-early-droproot
>      - sudo vi /etc/udev/rules.d/{77-dcf77,66-ublox6,88-ublox8,99-
> navspark}.rules
>      - sudo udevadm trigger
>      - sudo vi /etc/cron.daily/ntp # increase retention period
>      - sudo vi /etc/ntp.conf
>      - echo "1 SHA1" $(base64 /dev/urandom | tr -d '+/=' | head -c 20) |
> sudo tee /etc/ntp.keys && sudo chmod 600 /etc/ntp.keys
>      - sudo rm /var/run/ntp.conf.dhcp /etc/dhcp/dhclient-exit-hooks.d/ntp
>      - sudo mkdir -p /var/log/ntpstat && sudo chown ntp.ntp
> /var/log/ntpstat
>      - 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"'
> --8<---------------cut here---------------end--------------->8---
>
>
> Regards,
> Achim.
> --
> +<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+
>
> SD adaptation for Waldorf microQ V2.22R2:
> http://Synth.Stromeko.net/Downloads.html#WaldorfSDada
>
> _______________________________________________
> devel mailing list
> devel at ntpsec.org
> http://lists.ntpsec.org/mailman/listinfo/devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/devel/attachments/20180107/2f9c4573/attachment.html>


More information about the devel mailing list