![]() ![]() | ![]() |
To put a code block within a list item, the code block needs to be indented twice
1: # NetBSD cheat sheet 2: 3: ## Upgrade the system with binaries 4: 5: # cp /netbsd /netbsd.old 6: # tar zxvfp kern-MONOLITHIC.tgz -C / 7: # sync; sync 8: # shutdown -r now 9: # for i in base comp games man misc modules tests text xbase xcomp xetc xfont xserver; do tar zxvfp $i.tgz -C /;done 10: # mkdir /tmp/temproot 11: # tar zxvfp etc.tgz -C /tmp/temproot 12: # postinstall -s /tmp/tmproot check 13: # # copy postinstall's requirements 14: # etcupdate -s /tmp/tmproot 15: # shutdown -r now 16: 17: ## Upgrade the system with sources 18: 19: * Build the userland 20: 21: # cd /usr/src 22: # ./build.sh -O ../obj -T ../tools -j<njobs> -U distribution 23: 24: * Build the kernel 25: 26: # cd /usr/src 27: # ./build.sh -O ../obj -T ../tools -j<njobs> kernel=<KERNEL> 28: 29: * Install the new kernel 30: 31: # cd /usr/src 32: # cp /netbsd /netbsd.old 33: # cp /usr/obj/sys/arch/<ARCH>/compile/<KERNEL>/netbsd / 34: # shutdown -r now 35: # cd /usr/src 36: # ./build.sh -O ../obj -T ../tools -U install=/ 37: # /usr/sbin/etcupdate -s /usr/src 38: 39: ## Adobe Flash 40: 41: # echo "procfs /emul/linux/proc procfs ro,linux" >> /etc/fstab 42: # mount /emul/linux/proc 43: # cd /usr/pkgsrc/www/nspluginwrapper 44: # make install 45: # cd /usr/pkgsrc/multimedia/ns-flash 46: # make install 47: $ nspluginwrapper -i /usr/pkg/lib/netscape/plugins/libflashplayer.so