qi: NEWS: update year of the stable version to be released
[dragora.git] / CHEATSHEET.md
blobc51b62b43d356f293a7e761dd34ec3080e26f8f1
1 # Dragora's Cheat Sheet
3 ## Bootstrapping
5 Prerequisities:
7 - Clone or sync the git repository.
9 - Obtain or sync the sources (tarballs).  See the *sources/README.md* file.
11 Bootstrapping from Debian systems:
13 `apt update`
15 `apt upgrade`
17 `apt install build-essential flex git lzip genisoimage texinfo unzip zlib1g zlib1g-dev`
19 ### Instructions:
21 Creates a cross compiler for your native architecture:
23 `./bootstrap -s0 2>&1 | tee stage0-log.txt`
25 Prepare a temporary system using the recent cross compiler:
27 `./bootstrap -s1 2>&1 | tee stage1-log.txt`
29 Enter the temporary system:
31 `./enter-chroot`
33 Start replacing the temporary system with the final system:
35 `qi -o /usr/src/qi/recipes/*.order | qi -b -S -p -i - 2>&1 | tee build-log.txt`
37 Set custom modifications, like a password for the superuser:
39 `passwd root`
41 Exit from change root:
43 `exit`
45 Produce an ISO image from the Stage 2:
47 `./bootstrap -s2 2>&1 | tee stage2-log.txt`
49 Burn or emulate the (hybrid) ISO image at
50 *OUTPUT.bootstrap/stage2/cdrom/dragora-live.iso*.
52 Hints:
54 To speed up the build procedure multiple jobs can be passed to the compiler.<br/>
55 Just give the -j option to the *bootstrap* script and pass the same one to the<br/>
56 connected *qi* in the pipe.  Consider the value for -j taking into account the<br/>
57 number of processors + 1, for example `-j3`
60 ---
62 Under the terms of the GNU Free Documentation License,
63 http://www.gnu.org/licenses/fdl.html
65 Updated: 2019-01-07