| 131 | === B.3. Set your favorite root password to be used in the image === |
| 132 | |
| 133 | Note: you can skip this step if you are satisfied with the default password set in step A.3 above. |
| 134 | |
| 135 | {{{ |
| 136 | $ setenv CFG_ROOT_PASSWORD `dd if=/dev/random bs=10k count=10 |\ |
| 137 | tr -cd '[a-zA-Z0-9]' | cut -c -15` |
| 138 | $ echo $CFG_ROOT_PASSWORD |
| 139 | }}} |
| 140 | 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. |
| 141 | |
| 142 | === B.4 Build nanobsd (make sure to prepare some coffee;-) ) === |
| 143 | {{{ |
| 144 | $ sh /usr/src/tools/tools/nanobsd/nanobsd.sh -c $R/cfg/nanobsd.wleiden |
| 145 | }}} |
| 146 | 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. |
| 147 | |
| 148 | Note 2: even this little script got flags, check the output of {{{sh /usr/src/tools/tools/nanobsd/nanobsd.sh -h}}} |
| 149 | {{{ |
| 150 | -b suppress builds (both kernel and world) |
| 151 | -k suppress buildkernel |
| 152 | -w suppress buildworld |
| 153 | -c specify config file |
| 154 | ... |
| 155 | }}} |
| 156 | |
| 157 | Note 3: The geometry of the cf card is defined in the nanobsd configuration file $R/cfg/nanobsd.wleiden |
| 158 | The 'default' values are for a Peak 1 GB card. They also work on an Alix2D3 board with a 1 GB PCEngines 'blanc' cf card and 1 or 2 GB Transcend cf cards although those geometries are different. There are issues with Soekris boards, depending on BIOS version. |
| 159 | |