Changes between Version 59 and Version 60 of FreeBSD10_Guide
- Timestamp:
- Aug 29, 2014, 8:39:08 AM (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
FreeBSD10_Guide
v59 v60 177 177 Note: you can skip this step if you are satisfied with the default password set in step A.3 above. 178 178 179 {{{ 180 $ setenv CFG_ROOT_PASSWORD `dd if=/dev/random bs=10k count=10 |\ 179 build# setenv CFG_ROOT_PASSWORD `dd if=/dev/random bs=10k count=10 |\ 181 180 tr -cd '[a-zA-Z0-9]' | cut -c -15` 182 $echo $CFG_ROOT_PASSWORD183 }}} 184 181 build# echo $CFG_ROOT_PASSWORD 182 183 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. 185 184 186 185 === 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.wleiden189 }}} 186 187 build# sh /usr/src/tools/tools/nanobsd/nanobsd.sh -c $R/cfg/nanobsd.wleiden 188 190 189 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. 191 190 … … 208 207 209 208 === C.1. Fetch configuration === 210 211 {{{ 209 212 210 build# $R/tools/image config for <HybridNodename> 213 }}}214 211 215 212 The 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]. 216 213 217 214 You can inspect the image bij mounting as memory disk: 218 {{{ 215 219 216 build# mdconfig -a -t vnode -f /usr/obj/nanobsd.wleiden-hybrid/_.disk.full 220 217 build# mount /dev/md0s1a /mnt … … 225 222 build# umount /mnt 226 223 build# mdconfig -d -u 0 227 }}}228 224 229 225 Editing can also be done using the image script: 230 {{{ 226 231 227 build# $R/tools/image edit 232 }}} 228 233 229 234 230 === C.2. Write the correct image to CF (media based on SLC and not MLC flash seem to perform much better)=== … … 240 236 a. '''New image''': Put full image on compact flash disk (attach a card reader/writer with a CF disk of minimum 1 GB) 241 237 Use the script 242 {{{238 243 239 build# $R/tools/write-image.sh 244 }}}240 245 241 or the command line: 246 {{{242 247 243 build# dd bs=64k if=/usr/obj/nanobsd.wleiden-hybrid/_.disk.full of=/dev/da0 248 }}}244 249 245 (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 250 246 are three partitions on the disk, you can also mount /dev/da0s1a and /dev/da0s3 and check the configuration) 251 247 252 248 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 254 250 build# dd bs=64k if=/usr/obj/nanobsd.wleiden-hybrid/_.disk.image of=/dev/da0s2 255 }}}251 256 252 257 253 a. '''Existing image remote update''' (slice 2) (network connection to machine 172.x.y.z required) … … 259 255 For remotely updating an existing configuration use: 260 256 the image script 261 {{{257 262 258 build# $R/tools/image deploy on <node> [and reboot] 263 }}}259 264 260 or manually: 265 {{{261 266 262 build# dd if=/usr/obj/nanobsd.wleiden-hybrid/_.disk.image bs=10k | ssh root@172.x.y.z /tools/updatep2 267 }}}263 268 264 269 265 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. … … 276 272 277 273 While 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 279 275 build# mount /dev/da0s1a /mnt 280 276 build# ls /mnt 281 277 build# umount /mnt 282 }}} 278 283 279 and the configuration partition: 284 {{{ 280 285 281 build# mount /dev/da0s3 /mnt 286 282 build# ls /mnt 287 }}} 283 288 284 289 285 If you cannot mount the partitions, take a fresh cf card and start again with writing the image.