1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<!-- Copyright (C) 2020 Cem Keylan
Licensed under Gnu Free Documentation License. -->
<!-- Created by GNU Texinfo 6.7, http://www.gnu.org/software/texinfo/ -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Preparing Environment (Carbs Linux User Manual)</title>
<meta name="description" content="Preparing Environment (Carbs Linux User Manual)">
<meta name="keywords" content="Preparing Environment (Carbs Linux User Manual)">
<meta name="resource-type" content="document">
<meta name="distribution" content="global">
<meta name="Generator" content="makeinfo">
<link href="index.html" rel="start" title="Top">
<link href="Installation.html" rel="up" title="Installation">
<link href="Chroot.html" rel="next" title="Chroot">
<link href="Installation.html" rel="prev" title="Installation">
<style type="text/css">
<!--
a.summary-letter {text-decoration: none}
blockquote.indentedblock {margin-right: 0em}
div.display {margin-left: 3.2em}
div.example {margin-left: 3.2em}
div.lisp {margin-left: 3.2em}
kbd {font-style: oblique}
pre.display {font-family: inherit}
pre.format {font-family: inherit}
pre.menu-comment {font-family: serif}
pre.menu-preformatted {font-family: serif}
span.nolinebreak {white-space: nowrap}
span.roman {font-family: initial; font-weight: normal}
span.sansserif {font-family: sans-serif; font-weight: normal}
ul.no-bullet {list-style: none}
-->
</style>
</head>
<body lang="en">
<span id="Preparing-Environment"></span><div class="header">
<p>
Next: <a href="Chroot.html" accesskey="n" rel="next">Chroot</a>, Up: <a href="Installation.html" accesskey="u" rel="up">Installation</a> </p>
</div>
<hr>
<span id="Preparing-Environment-1"></span><h3 class="section">1.1 Preparing Environment</h3>
<p>To install Carbs Linux, you will need a Live Linux ISO. For that purpose, you
can obtain a Gentoo or Void Linux live image. You can follow their instructions
to boot and setup your network.
</p>
<p>You will need the following programs in order to install Carbs Linux:
</p><ul>
<li> tar
</li><li> wget
</li><li> xz
</li><li> some form of base utilities (coreutils, sbase, busybox, etc.)
</li></ul>
<p>Rest of these instructions will assume that you have set all of these up, and
will continue on that point.
</p>
<span id="Download"></span><h4 class="subsection">1.1.1 Download</h4>
<p>First, we need to download the rootfs tarball. You can do the following in order
to obtain the rootfs. If you are using an i686 machine, replace the <code>x86_64</code>
with <code>i686</code>.
</p>
<div class="example">
<pre class="example">$ wget https://dl.carbslinux.org/releases/x86_64/carbs-rootfs.tar.xz
</pre></div>
<p>We can then check the integrity of the tarball and do a signature verification.
Even thought these are optional, they are highly recommended.
</p>
<span id="Check-the-integrity-of-the-tarball-_0028Recommended_0029"></span><h4 class="subsection">1.1.2 Check the integrity of the tarball (Recommended)</h4>
<p>All of the releases are saved in a single file named <samp>sha256sums.txt</samp>, but the
latest release is saved on <samp>carbs-rootfs.tar.xz.sha256</samp>. You can acquire and
verify the tarball.
</p>
<div class="example">
<pre class="example">$ wget https://dl.carbslinux.org/releases/x86_64/carbs-rootfs.tar.xz.sha256
$ sha256sum -c carbs-rootfs.tar.xz.sha256
</pre></div>
<span id="Verify-the-signature"></span><h4 class="subsection">1.1.3 Verify the signature</h4>
<p>It is highly recommended to verify the signature of the tarball. You will need
GPG for this.
</p>
<div class="example">
<pre class="example">$ wget https://dl.carbslinux.org/releases/carbs-rootfs.tar.xz.sig
$ gpg --recv-keys FF484BDFEFCEF8FF
$ gpg --verify carbs-rootfs.tar.xz.sig
</pre></div>
<span id="Extracting-the-tarball"></span><h4 class="subsection">1.1.4 Extracting the tarball</h4>
<p>You will need to extract the tarball to your desired location. For partitioning,
you can follow <a href="https://wiki.archlinux.org/index.php/Partitioning">this guide</a>.
This will assume that you will be mounting your root partition to <samp>/mnt</samp>.
</p>
<div class="example">
<pre class="example">$ mount /dev/sdx1 /mnt
$ tar xf carbs-rootfs.tar.xz -C /mnt
</pre></div>
<span id="Obtain-the-chroot-helper"></span><h4 class="subsection">1.1.5 Obtain the chroot helper</h4>
<p>You can obtain the <code>cpt-chroot</code> script in order to do a simple chroot into
your new root filesystem.
</p>
<div class="example">
<pre class="example">$ wget https://dl.carbslinux.org/distfiles/cpt-chroot
$ chmod a+x cpt-chroot
</pre></div>
<hr>
<div class="header">
<p>
Next: <a href="Chroot.html" accesskey="n" rel="next">Chroot</a>, Up: <a href="Installation.html" accesskey="u" rel="up">Installation</a> </p>
</div>
</body>
</html>
|