Diff for /wikisrc/users/imil/cheatsheet.mdwn between versions 1.8 and 1.13

version 1.8, 2012/07/25 21:32:43 version 1.13, 2012/12/29 16:10:34
Line 10  up Line 10  up
 inet 192.168.0.1 netmask 0xffffff00  inet 192.168.0.1 netmask 0xffffff00
 """]]  """]]
   
   ## Specify a gateway
   
   [[!template  id=programlisting text="""
   $ cat /etc/mygate
   192.168.0.254
   """]]
   
 ## Add an IP alias on a NIC  ## Add an IP alias on a NIC
   
 [[!template  id=programlisting text="""  [[!template  id=programlisting text="""
Line 23  inet 172.16.0.1 netmask 0xffffffff alias Line 30  inet 172.16.0.1 netmask 0xffffffff alias
   
 [[!template  id=programlisting text="""  [[!template  id=programlisting text="""
 $ cat /etc/ifconfig.re0  $ cat /etc/ifconfig.re0
   up
 !dhcpcd $int  !dhcpcd $int
 """]]  """]]
   
Line 67  pass out on $ext_if Line 75  pass out on $ext_if
 block in log on $ext_if  block in log on $ext_if
 """]]  """]]
   
   ## Setup WPA WiFi client
   
   [[!template  id=programlisting text="""
   # wpa_passphrase WPA-WiFi-SSID my-strong-passphrase >> /etc/wpa_supplicant.conf
   $ grep wpa /etc/rc.conf
   wpa_supplicant=YES
   wpa_supplicant_flags="-B -iath0 -c/etc/wpa_supplicant.conf"
   # /etc/rc.d/wpa_supplicant start
   """]]
   
 ## Upgrade the system with binaries  ## Upgrade the system with binaries
   
 [[!template  id=programlisting text="""  [[!template  id=programlisting text="""
Line 77  block in log on $ext_if Line 95  block in log on $ext_if
 # for i in base comp games man misc modules tests text xbase xcomp xetc xfont xserver; do tar zxvfp $i.tgz -C /;done  # 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  # mkdir /tmp/temproot
 # tar zxvfp etc.tgz -C /tmp/temproot  # tar zxvfp etc.tgz -C /tmp/temproot
 # postinstall -s /tmp/tmproot check  # postinstall -s /tmp/temproot check
 # # copy postinstall's requirements  # # copy postinstall's requirements
 # etcupdate -s /tmp/tmproot  # etcupdate -s /tmp/temproot
 # shutdown -r now  # shutdown -r now
 """]]  """]]
   
Line 123  block in log on $ext_if Line 141  block in log on $ext_if
 $ nspluginwrapper -i /usr/pkg/lib/netscape/plugins/libflashplayer.so  $ nspluginwrapper -i /usr/pkg/lib/netscape/plugins/libflashplayer.so
 """]]  """]]
   
   ## Mount / umount an iso image
   
   [[!template  id=programlisting text="""
   # vnconfig -v -c /dev/vnd0d output.iso
   # mount -t cd9660 /dev/vnd0a /mnt
   # [...]
   # umount /mnt
   # vnconfig -u vnd0d
   """]]
   

Removed from v.1.8  
changed lines
  Added in v.1.13


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