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 (9 years, 11 months ago) by imil
Branches: MAIN
CVS tags: HEAD
programlisting template doesn't like less than

    1: # NetBSD cheat sheet
    2: 
    3: ## Upgrade the system with binaries
    4: 
    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: """]]
   18: 
   19: ## Upgrade the system with sources
   20: 
   21: * Build the userland
   22: 
   23: [[!template  id=programlisting text="""
   24:  # cd /usr/src
   25:  # ./build.sh -O ../obj -T ../tools -j#jobs -U distribution
   26: """]]
   27: 
   28: * Build the kernel
   29: 
   30: [[!template  id=programlisting text="""
   31:  # cd /usr/src
   32:  # ./build.sh -O ../obj -T ../tools -j#jobs kernel=YOUR_KERNEL
   33: """]]
   34: 
   35: * Install the new kernel
   36: 
   37: [[!template  id=programlisting text="""
   38:  # cd /usr/src
   39:  # cp /netbsd /netbsd.old
   40:  # cp /usr/obj/sys/arch/YOUR_ARCH/compile/YOUR_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: """]]
   46: 
   47: ## Adobe Flash
   48: 
   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