<noinclude>
{{Header}}
</noinclude>'''{{free}}'''
{{mbox
| type = notice
| image = [[File:Ambox_warning_pn.svg.png|40px]]
| text = <u>Note</u>: By proceeding, you acknowledge that you have read, understood and agreed to our [[Terms of Service|<span style="color:#FF1493;">Terms of Service</span>]] and [[License Agreement|<span style="color:#FF1493;">License Agreement</span>]]. [[File:Ambox_warning_pn.svg.png|40px]]
}}
'''1.''' Install git.
{{CodeSelect|code=
sudo apt update && sudo apt install git
}}
'''2.''' Get the source code including git submodules. <ref>
Optional <code>git</code> parameters:
* <code>--depth=1</code>: Used to speed up the download.
* <code>--branch {{VersionNew}}-stable</code>: Usability. Used to speed up the download.
* <code>--jobs=4</code>: Used to speed up the download.
* <code>--recurse-submodules --shallow-submodules</code>: Usability.
Knowledgeable <code>git</code> users are free to drop any of these optional parameters.
</ref> <ref>
Alternatively, this can be achieved with the following commands in several steps. This is useful if network issues arise.
* Over HTTPS:
** {{CodeSelect|code=
git clone --depth=1 --branch {{VersionNew}}-stable {{Github_link|repo=derivative-maker.git|path=}}
}}
* Over SSH.
** Might work better over slow networks but requires a GitHub account and a configured SSH public key at GitHub. See footnote [A] below.
** {{CodeSelect|code=
git clone --depth=1 --branch {{VersionNew}}-stable
[email protected]:{{project_name_short}}/derivative-maker.git
}}
{{CodeSelect|code=
cd derivative-maker
}}
{{CodeSelect|code=
git submodule update --init --recursive --progress --jobs=4
}}
----
[A] GitHub SSH public key setup.
'''1.''' You need to create an SSH public key.
Undocumented.
'''2.''' You view your your SSH public key.
{{CodeSelect|code=
cat ~/.ssh/id_ed25519.pub
}}
'''3.''' Copy it.
'''4.''' And paste your the SSH public key on GitHub.
https://github.com/settings/keys
</ref>
<u>Note:</u> Replace <code>{{VersionNew}}-stable</code> with the actual tag you want to build.
{{CodeSelect|code=
git clone --depth=1 --branch {{VersionNew}}-stable --jobs=4 --recurse-submodules --shallow-submodules {{Github_link|repo=derivative-maker.git|path=}}
}}
'''3.''' Check if above command succeeded.
If there have been errors such as:
<pre>
fatal: unable to access '
https://github.com/.../': Could not resolve host: github.com
</pre>
Or.
<pre>
fatal: unable to access '
https://github.com/.../': gnutls_handshake() failed: The TLS connection was non-properly terminated.
</pre>
Then the download probably failed.
Checking if the download failed or succeeded can be done by checking the exit code.
Choose your shell.
{{Tab
|type=controller
|content=
{{Tab
|title= ==Zsh in Kicksecure or Derivatives==
|type=section
|addToClass=info-box
|active=true
|content=
If the last line contains something such as the following.
<pre>
zsh: exit 1
</pre>
Then do not proceed and see footnote. <ref name=git-clone-fail>
Delete the <code>derivative-maker</code> source code folder and retry.
<pre>
sudo rm -r derivative-maker
</pre>
</ref>
}}
{{Tab
|title= ==bash and other Shells==
|type=section
|addToClass=info-box
|active=false
|content=
Show the exit code.
{{CodeSelect|code=
echo $?
}}
Output should show.
<pre>
0
</pre>
If any other exit code is shown, do not proceed and see footnote. <ref name=git-clone-fail />
}}
}}
'''4.''' Done.
Git repository cloning has been completed. <noinclude>
= Footnotes =
<references />
{{Footer}}
[[Category:MultiWiki]]
</noinclude>