Changes between Version 59 and Version 60 of FreeBSD10_Guide


Ignore:
Timestamp:
Aug 29, 2014, 8:39:08 AM (10 years ago)
Author:
huub
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • FreeBSD10_Guide

    v59 v60  
    177177 Note: you can skip this step if you are satisfied with the default password set in step A.3 above.
    178178
    179  {{{
    180  $ setenv CFG_ROOT_PASSWORD `dd if=/dev/random bs=10k count=10 |\
     179build# setenv CFG_ROOT_PASSWORD `dd if=/dev/random bs=10k count=10 |\
    181180   tr -cd '[a-zA-Z0-9]' | cut -c -15`
    182  $ echo $CFG_ROOT_PASSWORD
    183  }}}
    184  If you like a simple password, substitute the {{{ `dd if=/dev/random bs=10k count=10 | tr -cd '[a-zA-Z0-9]' | cut -c -15` }}} with your password.
     181build# echo $CFG_ROOT_PASSWORD
     182
     183If you like a simple password, substitute the {{{ `dd if=/dev/random bs=10k count=10 | tr -cd '[a-zA-Z0-9]' | cut -c -15` }}} with your password.
    185184
    186185=== B.4  Build nanobsd (make sure to prepare some coffee;-) ; use screen) ===
    187  {{{
    188  $ sh /usr/src/tools/tools/nanobsd/nanobsd.sh -c $R/cfg/nanobsd.wleiden
    189  }}}
     186
     187build# sh /usr/src/tools/tools/nanobsd/nanobsd.sh -c $R/cfg/nanobsd.wleiden
     188
    190189 Note 1: Take a coffee of go for a hike, this normally takes 2 - 8 hours depending on the machine configuration. If you like to save some power use the script provided by Rick ([http://rickvanderzwet.nl/svn/personal/misc/power-saver]). This script is mainly used on a home server for building FreeBSD world and kernels. As soon it is done it can shutdown if not being used anymore. The system has Wake-On-Lan support and can thus be activated again from remote.
    191190
     
    208207
    209208=== C.1. Fetch configuration ===
    210 
    211  {{{
     209 
    212210 build# $R/tools/image config for <HybridNodename>
    213  }}}
    214211
    215212The script is connecting to the [http://svn.wirelessleiden.nl/svn/node-config/genesis/nodes/ Wireless Leiden 'genesis' database]. First make sure that the configuration file is up to date by clicking the 'update' button on [http://sunfire.wirelessleiden.nl/wleiden/config/ http://sunfire.wirelessleiden.nl/wleiden/config/] Pick your situation! Note: proxy configurations are [http://sunfire.wirelessleiden.nl/wleiden/config/ here].
    216213
    217214You can inspect the image bij mounting as memory disk:
    218 {{{
     215
    219216build# mdconfig -a -t vnode -f /usr/obj/nanobsd.wleiden-hybrid/_.disk.full
    220217build# mount /dev/md0s1a /mnt
     
    225222build# umount /mnt
    226223build# mdconfig -d -u 0
    227 }}}
    228224
    229225Editing can also be done using the image script:
    230 {{{
     226
    231227build# $R/tools/image edit
    232 }}}
     228
    233229
    234230=== C.2. Write the correct image to CF (media based on SLC and not MLC flash seem to perform much better)===
     
    240236    a. '''New image''': Put full image on compact flash disk (attach a card reader/writer with a CF disk of minimum 1 GB)
    241237    Use the script
    242     {{{
     238   
    243239    build# $R/tools/write-image.sh
    244     }}}
     240   
    245241or the command line:
    246     {{{
     242   
    247243    build# dd bs=64k if=/usr/obj/nanobsd.wleiden-hybrid/_.disk.full of=/dev/da0
    248     }}}
     244   
    249245    (assuming {{{/dev/da0}}} is your compact flash entry; this takes about 15 minutes, check progress by typing Ctrl-T; you may wish to check afterwards with fdisk whether there
    250246    are three partitions on the disk, you can also mount /dev/da0s1a and /dev/da0s3 and check the configuration)
    251247
    252248    a. '''Existing image''': Put partial image on slice (slice 2) (attach a card reader/writer with the CF disk containing the existing image)
    253     {{{
     249   
    254250    build# dd bs=64k if=/usr/obj/nanobsd.wleiden-hybrid/_.disk.image of=/dev/da0s2
    255     }}}
     251   
    256252
    257253    a. '''Existing image remote update''' (slice 2) (network connection to machine 172.x.y.z required)
     
    259255    For remotely updating an existing configuration use:
    260256    the image script
    261     {{{
     257   
    262258    build# $R/tools/image deploy on <node> [and reboot]
    263     }}}
     259   
    264260    or manually:
    265     {{{
     261   
    266262    build# dd if=/usr/obj/nanobsd.wleiden-hybrid/_.disk.image bs=10k | ssh root@172.x.y.z /tools/updatep2
    267     }}}
     263   
    268264 
    269265   You may adjust the block size to make the transfer more efficient (additionally ssh -C is possible) and you can use Ctrl-T to check progress.
     
    276272
    277273While the cf card is still in your flash card reader you can check whether the image has been written correctly. Check whether you can mount the partitions, e.g.
    278 {{{
     274
    279275build# mount /dev/da0s1a /mnt
    280276build# ls /mnt
    281277build# umount /mnt
    282 }}}
     278
    283279and the configuration partition:
    284 {{{
     280
    285281build# mount /dev/da0s3 /mnt
    286282build# ls /mnt
    287 }}}
     283
    288284
    289285If you cannot mount the partitions, take a fresh cf card and start again with writing the image.