Annotation of wikisrc/users/imil/cheatsheet.mdwn, revision 1.3
1.1 imil 1: # NetBSD cheat sheet
2:
3: ## Upgrade the system with binaries
4:
1.3 ! imil 5: [[!template id=programlisting text="""
! 6: # cp /netbsd /netbsd.old
! 7: # tar zxvfp kern-MONOLITHIC.tgz -C /
! 8: # sync; sync
! 9: # shutdown -r now
! 10: # for i in base comp games man misc modules tests text xbase xcomp xetc xfont xserver; do tar zxvfp $i.tgz -C /;done
! 11: # mkdir /tmp/temproot
! 12: # tar zxvfp etc.tgz -C /tmp/temproot
! 13: # postinstall -s /tmp/tmproot check
! 14: # # copy postinstall's requirements
! 15: # etcupdate -s /tmp/tmproot
! 16: # shutdown -r now
! 17: """]]
1.1 imil 18:
19: ## Upgrade the system with sources
20:
21: * Build the userland
22:
1.3 ! imil 23: [[!template id=programlisting text="""
! 24: # cd /usr/src
! 25: # ./build.sh -O ../obj -T ../tools -j<njobs> -U distribution
! 26: """]
1.1 imil 27:
28: * Build the kernel
29:
1.3 ! imil 30: [[!template id=programlisting text="""
! 31: # cd /usr/src
! 32: # ./build.sh -O ../obj -T ../tools -j<njobs> kernel=<KERNEL>
! 33: """]
1.1 imil 34:
35: * Install the new kernel
36:
1.3 ! imil 37: [[!template id=programlisting text="""
! 38: # cd /usr/src
! 39: # cp /netbsd /netbsd.old
! 40: # cp /usr/obj/sys/arch/<ARCH>/compile/<KERNEL>/netbsd /
! 41: # shutdown -r now
! 42: # cd /usr/src
! 43: # ./build.sh -O ../obj -T ../tools -U install=/
! 44: # /usr/sbin/etcupdate -s /usr/src
! 45: """]]]
1.1 imil 46:
47: ## Adobe Flash
48:
1.3 ! imil 49: [[!template id=programlisting text="""
! 50: # echo "procfs /emul/linux/proc procfs ro,linux" >> /etc/fstab
! 51: # mount /emul/linux/proc
! 52: # cd /usr/pkgsrc/www/nspluginwrapper
! 53: # make install
! 54: # cd /usr/pkgsrc/multimedia/ns-flash
! 55: # make install
! 56: $ nspluginwrapper -i /usr/pkg/lib/netscape/plugins/libflashplayer.so
! 57: """]
! 58:
CVSweb for NetBSD wikisrc <wikimaster@NetBSD.org> software: FreeBSD-CVSweb