File:  [NetBSD Developer Wiki] / wikisrc / users / imil / cheatsheet.mdwn
Revision 1.2: download - view: text, annotated - select for diffs
Wed Jul 25 20:00:28 2012 UTC (20 months, 3 weeks ago) by imil
Branches: MAIN
CVS tags: HEAD
To put a code block within a list item, the code block needs to be indented twice

# 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<njobs> -U distribution

* Build the kernel

		# cd /usr/src
		# ./build.sh -O ../obj -T ../tools -j<njobs> kernel=<KERNEL>

* Install the new kernel

		# cd /usr/src
		# cp /netbsd /netbsd.old
		# cp /usr/obj/sys/arch/<ARCH>/compile/<KERNEL>/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

CVSweb for NetBSD wikisrc <wikimaster@NetBSD.org> software: FreeBSD-CVSweb