mirror of the now-defunct rocklinux.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

121 lines
4.6 KiB

  1. Building ROCK Linux
  2. ~~~~~~~~~~~~~~~~~~~
  3. 1. Requirements
  4. ===============
  5. For building ROCK Linux you need a good internet connection for downloading the
  6. sources, a lot of disk space, a fast computer and some time. Depending on your
  7. hardware and the configuration you are going to choose, a build of ROCK Linux
  8. can take some days to complete. You also need root permissions to build ROCK
  9. Linux.
  10. The distribution you are building ROCK Linux on should also be ROCK Linux.
  11. It is also possible to build ROCK Linux on other distributions, but don't expect
  12. it to work without some hacking ...
  13. If you are building on older ROCK Linux versions (1.4/1.6) you should at least
  14. make sure to upgrade/install the packages "curl", "mktemp" and "coreutils".
  15. 2. Extracting the sources
  16. =========================
  17. Download the ROCK Linux sources (a tar.bz2 file of a few MB) from
  18. www.rocklinux.org and extract it somewhere as root. The resulting directory
  19. is the ROCK Linux 'base' directory. Change to this directory for the following
  20. steps.
  21. 3. Configure the build
  22. ======================
  23. Type './scripts/Config' and a configuration menu comes up. Choose
  24. your configuration (or simply leave the default values untouched). You need to
  25. start the Config tool - even if you don't want to change anything.
  26. It's also possible to have multiple configurations. Use the command
  27. './scripts/Config -cfg <config-name>' (where <config-name> can be any text not
  28. containing whitespaces or any special characters). If you have choosen a name
  29. for your configuration, you need to pass the '-cfg <config-name>' option as
  30. first parameter to all the other scripts too - so they know which
  31. configuration to read.
  32. The default configuration name (when no -cfg option is passed) is 'default'.
  33. The configuration is stored in the 'config/<config-name>' directory.
  34. 4. Downloading the package sources
  35. ==================================
  36. Now you need to download the sources for the packages which are build in the
  37. configuration you have choosen. Simply type:
  38. './scripts/Download -cfg <config-name> -required'
  39. If you want to download the sources for all packages (regardless if they are
  40. required for your configuration), type './scripts/Download -all'.
  41. 5. Building the distribution
  42. ============================
  43. Type './scripts/Build-Target -cfg <config-name>'. As mentioned already, it may
  44. take multiple days for the build to complete.
  45. The resulting distribution is stored in the build/ directory.
  46. 6. Creating bootable floppy images
  47. ==================================
  48. Bootable floppy images are created along with each 'bootdisk' target, and are
  49. stored in build/<config-id>/ROCK/bootdisk/, where <config-id> corresponds to
  50. the configuration you choose.
  51. The images are named floppy1.img, etc. and can be copied to floppy disks e.g.
  52. with 'dd'. Simply type: 'dd if=floppy1.img of=/dev/floppy/0 bs=512' for every
  53. image.
  54. 7. Creating CD/DVD images
  55. =========================
  56. To create CD images to install from you can use './scripts/Create-ISO'.
  57. Create-ISO takes at least two arguments: a name used as prefix for the
  58. filename of the ISO images and the name of the configuration you
  59. just built (usually 'default' or whatever you choose after -cfg).
  60. Optionally you can use -size <MB> to specify the size of your CD-Rs.
  61. Another optional parameter is -mkdebug which will create a VMWare-Config
  62. to be used with your newly created iso.
  63. The iso will, however, not be bootable, unless you configured and built
  64. a 'bootdisk' target. This configuraton has to be the first configuration to
  65. be passed to './scripts/Create-ISO'.
  66. So, a complete call might look like this:
  67. # ./scripts/Create-ISO -size 700 -mkdebug rock-cd bootdisk athlon pentium4 generic
  68. This would create a CD-Set of iso images which are at most 700 MB big, the
  69. first CD would be bootable and the set would contain the builds 'athlon',
  70. 'pentium4' and 'generic'.
  71. You see, it's perfectly possible to have several optimised or just different
  72. builds on one CD-Set. So you would only need one set to install different
  73. machines.
  74. If you have a DVD-Writer, you could also pass '-size 4300' and write that iso
  75. on a DVD. That would make approx. 5 to 6 builds on one DVD.
  76. 8. Cleaning up the source tree
  77. ==============================
  78. Simply type './scripts/Cleanup' to remove the src* directories. DO NOT REMOVE
  79. THEM BY HAND! These directories may contain bind mounts to the rest of the
  80. source tree and it is possible that you are going to remove everything in the
  81. ROCK Linux base directory if you execute a simple 'rm -rf' to remove them ..
  82. If you also want to remove the build/ directory type './scripts/Cleanup -full'.