# NetBSD cheat sheet ## Upgrade the system with binaries [[!template id=programlisting text=""" # 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 [[!template id=programlisting text=""" # cd /usr/src # ./build.sh -O ../obj -T ../tools -j -U distribution """] * Build the kernel [[!template id=programlisting text=""" # cd /usr/src # ./build.sh -O ../obj -T ../tools -j kernel= """] * Install the new kernel [[!template id=programlisting text=""" # 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 [[!template id=programlisting text=""" # 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 """]