File:  [NetBSD Developer Wiki] / wikisrc / users / imil / cheatsheet.mdwn
Revision 1.5: download - view: text, annotated - select for diffs
Wed Jul 25 20:09:58 2012 UTC (20 months, 3 weeks ago) by imil
Branches: MAIN
CVS tags: HEAD
programlisting template doesn't like less than

# 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#jobs -U distribution
"""]]

* Build the kernel

[[!template  id=programlisting text="""
 # cd /usr/src
 # ./build.sh -O ../obj -T ../tools -j#jobs kernel=YOUR_KERNEL
"""]]

* Install the new kernel

[[!template  id=programlisting text="""
 # cd /usr/src
 # cp /netbsd /netbsd.old
 # cp /usr/obj/sys/arch/YOUR_ARCH/compile/YOUR_KERNEL/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
"""]]


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