This repository was archived by the owner on Jan 12, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.html
249 lines (191 loc) · 8.33 KB
/
build.html
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
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
<!DOCTYPE html>
<html prefix="og: http://ogp.me/ns# article: http://ogp.me/ns/article# " lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Extending Netkit-NG Kernel and Filesystem | Netkit-NG</title>
<link href="//netdna.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css" rel="stylesheet">
<link href="//netdna.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap-theme.min.css" rel="stylesheet">
<link href="assets/css/rst.css" rel="stylesheet" type="text/css">
<link href="assets/css/code.css" rel="stylesheet" type="text/css">
<link href="assets/css/colorbox.css" rel="stylesheet" type="text/css">
<link href="assets/css/theme.css" rel="stylesheet" type="text/css">
<link href="assets/css/custom.css" rel="stylesheet" type="text/css">
<link rel="canonical" href="https://netkit-ng.github.io/build.html">
<!--[if lt IE 9]><script src="//html5shim.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
<meta name="author" content="Julien 'Kartoch' Iguchi-Cartigny">
<meta property="og:site_name" content="Netkit-NG">
<meta property="og:title" content="Extending Netkit-NG Kernel and Filesystem">
<meta property="og:url" content="https://netkit-ng.github.io/build.html">
<meta property="og:description" content="Get the sources
On Github: netkit-ng-build (latest version is 0.1.3)
Master branch contains the latest stable release. Develop branch is to push
new features or fixing bugs.
Build netkit-ng-core fro">
<meta property="og:type" content="article">
<meta property="article:published_time" content="2014-10-29T10:26:17+01:00">
</head>
<body>
<a href="#content" class="sr-only sr-only-focusable">Skip to main content</a>
<!-- Menubar -->
<nav class="navbar navbar-inverse navbar-fixed-top" role="navigation">
<div class="container">
<!-- This keeps the margins nice -->
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-ex1-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="https://netkit-ng.github.io/">
<span id="blog-title">Netkit-NG</span>
</a>
</div>
<!-- /.navbar-header -->
<div class="collapse navbar-collapse navbar-ex1-collapse">
<ul class="nav navbar-nav">
<li>
<a href="index.html">Home</a>
</li>
<li>
<a href="core.html">Extending core</a>
</li>
<li class="active">
<a href="#">Extending fs and kernel build</a>
</li>
<li>
<a href="umldump.html">uml_dump</a>
</li>
</ul>
<ul class="nav navbar-nav navbar-right">
</ul>
</div>
<!-- /.navbar-collapse -->
</div>
<!-- /.container -->
</nav>
<!-- End of Menubar -->
<div class="container" id="content">
<div class="body-content">
<!--Body content-->
<div class="row">
<article class="storypage" itemscope="itemscope" itemtype="http://schema.org/Article">
<header>
<h1 class="p-name entry-title" itemprop="headline name"><a href="#" class="u-url">Extending Netkit-NG Kernel and Filesystem</a></h1>
</header>
<div class="e-content entry-content" itemprop="articleBody text">
<div>
<div class="section" id="get-the-sources">
<h2>Get the sources</h2>
<p>On Github: <a class="reference external" href="https://github.com/netkit-ng/netkit-ng-build/">netkit-ng-build</a> (latest version is 0.1.3)</p>
<p>Master branch contains the latest stable release. Develop branch is to push
new features or fixing bugs.</p>
</div>
<div class="section" id="build-netkit-ng-core-from-sources">
<h2>Build netkit-ng-core from sources</h2>
<p>It is recommended to build the kernal and fs on a non-critical VM running a
fresh install of Debian wheezy, as the install requires root rights.</p>
<p>To build the fs and kernel, you need to configure NAT as rootstrap builds the
filesystem inside an UML VM:</p>
<pre class="code sh literal-block">
<span class="nv">$ </span>iptables -j MASQUERADE -t nat -o eth0 -A POSTROUTING
</pre>
<p>Then:</p>
<pre class="code sh literal-block">
<span class="nv">$ </span>git clone [email protected]:netkit-ng/netkit-ng-build.git
<span class="nv">$ </span><span class="nb">cd </span>netkit-ng-build
<span class="nv">$ </span>git checkout master
<span class="nv">$ </span>make
</pre>
</div>
<div class="section" id="add-a-debian-package-in-the-filesystem">
<h2>Add a debian package in the filesystem</h2>
<p>The list of installed packages (beside base packages) are listed int the
<a class="reference external" href="https://github.com/netkit-ng/netkit-ng-build/blob/master/fs/packages-list">packages-list</a> file:</p>
<ul class="simple">
<li>Add your new applications into the file <cite>package-list</cite> of the <cite>fs</cite> directory</li>
<li>Add the daemon name into the file <cite>disabled-services</cite> of the <cite>fs</cite> directory
(to disable it at boot)</li>
<li>Build the fs with <cite>make fs</cite>
</li>
</ul>
</div>
<div class="section" id="add-a-new-file-or-modify-a-file-in-the-filesystem">
<h2>Add a new file or modify a file in the filesystem</h2>
<ul class="simple">
<li>Add the file in the ‘fs/filesystem-tweaks’</li>
<li>Build the fs with <cite>make fs</cite>
</li>
</ul>
</div>
<div class="section" id="bugs-help">
<h2>Bugs, help…</h2>
<ul class="simple">
<li>Search for help in channel #netkit on freenode.</li>
<li>If you want to contribute, please fork the ‘develop’ branch and request pulls.</li>
<li>Report bug on the <a class="reference external" href="https://github.com/netkit-ng/netkit-ng-build/issues">netkit-ng-build bug tracker</a>
</li>
</ul>
</div>
<div class="section" id="history">
<h2>History</h2>
<!-- Begin post-list post_list_2aadaed96bbd4541b222190c78cc9b3e -->
<div id="post_list_2aadaed96bbd4541b222190c78cc9b3e" class="post-list">
<ul class="post-list">
<li class="post-list-item">
2014-11-15
<a href="build-013.html">netkit-ng-build 0.1.3</a>
</li>
<li class="post-list-item">
2014-07-09
<a href="build-012.html">netkit-ng-build 0.1.2</a>
</li>
<li class="post-list-item">
2014-05-23
<a href="build-011.html">netkit-ng-build 0.1.1</a>
</li>
<li class="post-list-item">
2014-05-21
<a href="build-010.html">netkit-ng-build 0.1.0</a>
</li>
</ul>
</div>
<!-- End post-list post_list_2aadaed96bbd4541b222190c78cc9b3e -->
</div>
</div>
</div>
</article>
</div>
<!--End of body content-->
<footer>
Contents © 2014 <a href="mailto:[email protected]">Julien ‘Kartoch’ Iguchi-Cartigny</a> - Powered by <a href="http://getnikola.com" rel="nofollow">Nikola</a>
</footer>
</div>
</div>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="//netdna.bootstrapcdn.com/bootstrap/3.3.0/js/bootstrap.min.js"></script>
<script src="assets/js/jquery.colorbox-min.js"></script>
<script>jQuery("a.image-reference").colorbox({rel:"gal",maxWidth:"100%",maxHeight:"100%",scalePhotos:true});</script>
<!-- fancy dates -->
<script>
moment.locale("");
fancydates(0, "YYYY-MM-DD HH:mm");
</script>
<!-- end fancy dates -->
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-45124358-3', 'auto');
ga('require', 'linkid', 'linkid.js');
ga('require', 'displayfeatures');
ga('send', 'pageview');
</script>
</body>
</html>