# NetBSD cheat sheet ## Upgrade the system with binaries # cp /netbsd /netbsd.old # tar zxvfp kern-MONOLITHIC.tgz -C / # sync; sync # shutdown -r now # for i in base comp games man misc modules tests text xbase xcomp xetc xfont xserver; do tar zxvfp $i.tgz -C /;done # mkdir /tmp/temproot # tar zxvfp etc.tgz -C /tmp/temproot # postinstall -s /tmp/tmproot check # # copy postinstall's requirements # etcupdate -s /tmp/tmproot # shutdown -r now ## Upgrade the system with sources * Build the userland # cd /usr/src # ./build.sh -O ../obj -T ../tools -j -U distribution * Build the kernel # cd /usr/src # ./build.sh -O ../obj -T ../tools -j kernel= * Install the new kernel # cd /usr/src # cp /netbsd /netbsd.old # cp /usr/obj/sys/arch//compile//netbsd / # shutdown -r now # cd /usr/src # ./build.sh -O ../obj -T ../tools -U install=/ # /usr/sbin/etcupdate -s /usr/src ## Adobe Flash # echo "procfs /emul/linux/proc procfs ro,linux" >> /etc/fstab # mount /emul/linux/proc # cd /usr/pkgsrc/www/nspluginwrapper # make install # cd /usr/pkgsrc/multimedia/ns-flash # make install $ nspluginwrapper -i /usr/pkg/lib/netscape/plugins/libflashplayer.so