Typo correction, resend it again, sorry. * Gua Chung Lim (gua.chung...@gmail.com) wrote:
/***** FOR THE FIRST TIME *****/ * Get the source code (netbsd-8 branch tag a.k.a. 8_STABLE) # setenv CVS_RSH ssh # setenv CVSROOT anon...@anoncvs.netbsd.org:/cvsroot # mkdir /usr/src # cd /usr # cvs checkout -r netbsd-8 -P src * Get the pkgsrc, which is updated every quarter. (the latest is 2018Q4) # cd /usr && cvs -q -z3 -d anon...@anoncvs.netbsd.org:/cvsroot checkout -r pkgsrc-2018Q4 -P pkgsrc * Install root certificates (to avoid certificate errors during access duckduckgo)) # cd /usr/pkgsrc/security/mozilla-rootcerts # make install clean clean-depends # cd /etc/openssl/certs # mozilla-rootcerts extract # mozilla-rootcerts rehash # mkdir -p /etc/ssl/certs # cd /etc/ssl/certs # cat ../../openssl/certs/*.pem > ca-certificates.crt /***** DAILY UPDATE *****/ (and this is what I do everyday.) # cd /usr/src # cvs update -Pd # ./build.sh -O ../obj -T ../tools -U -u distribution # ./build.sh -O ../obj -T ../tools -U -u kernel=YOURKERNEL # mv /netbsd /netbsd.old # mv /usr/obj/sys/arch/amd64/compile/YOURKERNEL/netbsd / # shutdown -r now After reboot... # cd /usr/src # ./build.sh -O ../obj -T ../tools -U install=/ # /usr/sbin/etcupdate (this process is a little tedious) If you are asked to run # sh /usr/sbin/postinstall, do it. # shutdown -r now Reboot again and all done... Check the system version, you will see something like mine. :-) # uname -a NetBSD sirius 8.0_STABLE NetBSD 8.0_STABLE (GENERIC) #10: Sat Jan 12 20:01:18 +07 2019 root@sirius:/usr/obj/sys/arch/amd64/compile/GENERIC amd64 For the first time everything is slow, fetching, building and installing the whole system and the whole world. Mine takes total 5-6 hours on i5. Next time everything will be very fast as you fetch, build or install only the daily patches. Last but not least, check you clock. If it runs out of the battery, replace it. Cheers, -- Gua Chung Lim "UNIX is basically a simple operating system, but you have to be a genius to understand the simplicity." -- Dennis M. Ritchie