Changes between Version 165 and Version 166 of NanoBSD


Ignore:
Timestamp:
Apr 10, 2012, 6:25:41 AM (12 years ago)
Author:
rick
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • NanoBSD

    v165 v166  
    3434==  A. Setup a FreeBSD 8.2 host ==
    3535----
    36 Warning: Make sure ''/usr'' is '''at least 5GB''' in size building as building images require quite some space [[BR]]
    37 Warning: Make sure you install the 32bit '''i386''' release of FreeBSD also when your system does support amd64, as cross compiling can give some nasty surprises [[BR]]
     36Warning: 1) Make sure ''/usr'' is '''at least 5GB''' in size building as building images require quite some space. 2) Make sure you install the 32bit '''i386''' release of FreeBSD also when your system does support amd64, as cross compiling can give some nasty surprises.
    3837Tip: use a separate hard disk, mount on /usr/obj to speed up compilation process.
    3938----
    4039Get yourself a fresh i386 freebsd host with ports and subversion installed as follows:
    4140
    42  A.1. Run the basic CD installer of 8.2.
     41=== A.1. Run the basic CD installer of 8.2. ===
    4342The procedure below has been tested with 8.2-RELEASE (standard developer install - no ports -, e.g. with default partitioning will fit our needs). Installing FreeBSD is outside the scope of this document, take a look into [http://www.freebsd.org/doc/en/books/handbook/install.html the FreeBSD handbook Chapter 2 Installing FreeBSD] if you do not know the details.
    4443
    45  Please do mind that all commands below need to be executed as root, because of the many mounts and unmounts done in various phases.
    46 
    47  Internet connection is required.
    48 
    49  Set correct date/time, e.g.
    50  {{{
    51  $ ntpdate -s pool.ntp.org
    52  }}}
    53 
    54  A.2. get latest sources
    55  {{{
    56  $ csup  -h cvsup.nl.freebsd.org /usr/share/examples/cvsup/standard-supfile
    57  }}}
    58 
    59  
    60  A.3 fetch ports
    61  {{{
    62  $ portsnap fetch extract
    63  }}}
    64 
    65  A.4 set some usefull variables
    66  
    67  Edit the shell configuration file .cshrc:
    68  {{{
     44Please do mind that all commands below need to be executed as root, because of the many mounts and unmounts done in various phases.
     45
     46Internet connection is required.
     47
     48Set correct date/time, e.g:
     49build# ntpdate -s pool.ntp.org
     50
     51=== A.2. get latest sources ===
     52build# csup -h cvsup.nl.freebsd.org /usr/share/examples/cvsup/standard-supfile
     53
     54=== A.3 fetch ports ===
     55build# portsnap fetch extract
     56
     57
     58=== A.4 set some useful variables ===
     59Alter the shell configuration file:/root/.cshrc:
     60{{{
     61#!sh
    6962# ensure ftp is set to passive mode, to avoid potential firewall issues:
    7063$ echo 'setenv FTP_PASSIVE_MODE YES' >> /root/.cshrc
     
    7669# NOTE: All commands at later stages will refer to this so you better get it right!
    7770$ echo 'setenv R /root/nanobsd' >> /root/.cshrc
    78 
    79 }}}
    80  Next load your file (or login again):
    81 
    82  $ source /root/.cshrc
    83 
    84 
    85  A.5. install subversion .
    86  NOTE: Install all packages via ports to prevent issues later on!
    87  {{{
    88  $ make -C /usr/ports/devel/subversion install clean BATCH=yes
    89  }}}
    90 
    91  A.6. OPTIONAL, every developer has his own preferences, these are mine ;-)
    92  {{{
    93  $ make -C /usr/ports/editors/vim-lite install clean BATCH=yes
    94  $ make -C /usr/ports/security/sudo install clean BATCH=yes
    95  $ make -C /usr/ports/sysutils/screen install clean BATCH=yes
    96  }}}
    97 
     71}}}
     72
     73Next load your file (or login again):
     74build# source /root/.cshrc
     75
     76=== A.5. install subversion ===
     77Note: Install all packages via ports to prevent issues later on.
     78
     79build# make -C /usr/ports/devel/subversion install clean BATCH=yes
     80
     81=== A.6. OPTIONAL, every developer has his own preferences, these are mine ===
     82build# make -C /usr/ports/editors/vim-lite install clean BATCH=yes
     83build# make -C /usr/ports/security/sudo install clean BATCH=yes
     84build# make -C /usr/ports/sysutils/screen install clean BATCH=yes
    9885== B. Build environment ==
    9986