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.

108 lines
4.1 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 the
  7. configuration you are going to choose and your hardware, 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.
  20. 3. Configure the build
  21. ======================
  22. Type './scripts/Config' and a configuration menu comes up. Choose
  23. your configuration (or simply leave the default values untouched). You need to
  24. start the Config tool - even if you don't want to change anything.
  25. It's also possible to have multiple configurations. Use the command
  26. './scripts/Config -cfg config-name' (where config-name can be any text not
  27. containing whitespaces or any special characters). If you have choosen a name
  28. for your configuration, you need to pass the '-cfg config-name' option as
  29. first parameter to all the other scripts too - so they know which
  30. configuration to read.
  31. The default configuration name (when no -cfg option is passed) is 'default'.
  32. The configuration is stored in the 'config/config-name' directory.
  33. 4. Downloading the package sources
  34. ==================================
  35. Now you need to download the sources for the packages which are build in the
  36. configuration you have choosen. Simply type:
  37. './scripts/Download -cfg config-name -required'
  38. If you want to download the sources for all packages (regardless if they are
  39. required for your configuration), type './scripts/Download -all'.
  40. 5. Building the distribution
  41. ============================
  42. Type './scripts/Build-Target -cfg config-name'. As mentioned already, it may
  43. take multiple days for the build to complete.
  44. The resulting distribution is stored in the build/ directory.
  45. 6. Creating CD Images
  46. =====================
  47. To create a CD-Image to install from you can use './scripts/Create-ISO'.
  48. Create-ISO takes at least two arguments: a name used as prefix for the
  49. filename of the ISO images and the name of the configuration you
  50. just built (usually 'default' or whatever you choose after -cfg).
  51. Optionally you can use -size <MB> to specify the size of your CD-Rs.
  52. Another optional parameter is -mkdebug which will create a VMWare-Config
  53. to be used with your newly created iso.
  54. The iso will, however, not be bootable, unless you configured and built
  55. a 'bootdisk'-Target. This configuraton has to be the first configuration to
  56. be passed to './scripts/Create-ISO'.
  57. So, a complete call might look like this:
  58. # ./scripts/Create-ISO -size 700 -mkdebug rock-cd bootdisk athlon pentium4 generic
  59. This would create a CD-Set of iso images which are at most 700 MB big, the
  60. first CD would be bootable and the set would contain the builds 'athlon',
  61. 'pentium4' and 'generic'.
  62. You see, it's perfectly possible to have several optimised or just different
  63. builds on one CD-Set. So you would only need one set to install different
  64. machines.
  65. If you have a DVD-Writer, you could also pass '-size 4300' and write that iso
  66. on a DVD. That would make approx. 5 to 6 builds on one DVD.
  67. 7. Cleaning up the source tree
  68. ==============================
  69. Simply type './scripts/Cleanup' to remove the src* directories. DO NOT REMOVE
  70. THEM BY HAND! These directories may contain bind mounts to the rest of the
  71. source tree and it is possible that you are going to remove everything in the
  72. ROCK Linux base directory if you execute a simple 'rm -rf' to remove them ..
  73. If you also want to remove the build/ directory type './scripts/Cleanup -full'.