File: install.html

package info (click to toggle)
dfsbuild 1.0.2.0
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 1,312 kB
  • ctags: 6
  • sloc: haskell: 831; sh: 200; makefile: 99
file content (331 lines) | stat: -rw-r--r-- 5,064 bytes parent folder | download
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
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN""http://www.w3.org/TR/html4/loose.dtd">
<HTML
><HEAD
><TITLE
>Installation</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.79"><LINK
REL="HOME"
TITLE="Using Debian From Scratch"
HREF="dfs.html"><LINK
REL="PREVIOUS"
TITLE="Dialup with PPP"
HREF="dfsboot.ppp.html"><LINK
REL="NEXT"
TITLE="Command Reference"
HREF="dfsbuild.reference.html"><STYLE
TYPE="text/css"
>.synopsis, .classsynopsis {
    background: #eeeeee;
    border: solid 1px #aaaaaa;
    padding: 0.5em;
}
.programlisting {
    background: #eeeeff;
    border: solid 1px #aaaaff;
    padding: 0.5em;
}
.variablelist {
    padding: 4px;
    margin-left: 3em;
}
.navigation {
    background: #ffeeee;
    border: solid 1px #ffaaaa;
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}
.navigation a {
    color: #770000;
}
.navigation a:visited {
    color: #550000;
}
.navigation .title {
    font-size: 200%;
}</STYLE
></HEAD
><BODY
CLASS="CHAPTER"
BGCOLOR="#FFFFFF"
TEXT="#000000"
LINK="#0000FF"
VLINK="#840084"
ALINK="#0000FF"
><TABLE
WIDTH="100%"
CLASS="navigation"
SUMMARY="Navigation header"
CELLPADDING="2"
CELLSPACING="2"
><TR
VALIGN="middle"
><TD
><A
ACCESSKEY="p"
HREF="dfsboot.ppp.html"
><IMG
SRC="left.png"
WIDTH="24"
HEIGHT="24"
BORDER="0"
ALT="Prev"></A
></TD
><TD
><A
ACCESSKEY="h"
HREF="dfs.html"
><IMG
SRC="home.png"
WIDTH="24"
HEIGHT="24"
BORDER="0"
ALT="Home"></A
></TD
><TH
WIDTH="100%"
align="center"
>Using Debian From Scratch</TH
><TD
><A
ACCESSKEY="n"
HREF="dfsbuild.reference.html"
><IMG
SRC="right.png"
WIDTH="24"
HEIGHT="24"
BORDER="0"
ALT="Next"></A
></TD
></TR
></TABLE
><DIV
CLASS="CHAPTER"
><H1
><A
NAME="INSTALL"
></A
>Installation</H1
><P
>      Installation from DFS involves the following general steps:
    </P
><P
></P
><OL
TYPE="1"
><LI
><P
>Partitioning</P
></LI
><LI
><P
>Initialize and mount swap</P
></LI
><LI
><P
>Formatting and Mounting Filesystems</P
></LI
><LI
><P
>Installing Base System</P
><P
>You can do this (assuming you have mounted your new
          partitions at /mnt) with: <B
CLASS="COMMAND"
>cdebootstrap sid /mnt
	    file:///opt/packages</B
>.  (amd64: add <B
CLASS="COMMAND"
>-a
	    amd64</B
> before "sid".  Also, I recommend using the
	amd64 mirror directly, since things change frequently and the
	  data available when the CD was made may or may not be usable for
	  you.
	</P
></LI
><LI
><P
>Configuring Base System</P
><P
>You should copy your
	  <TT
CLASS="FILENAME"
>/etc/resolv.conf</TT
> to the new system.
	  Then, configure its
	  <TT
CLASS="FILENAME"
>/etc/apt/sources.list</TT
>,
          <TT
CLASS="FILENAME"
>/etc/fstab</TT
>, and
	  <TT
CLASS="FILENAME"
>/etc/network/interfaces</TT
>.  Then,
	  <TT
CLASS="FILENAME"
>chroot /mnt</TT
> and:
	</P
><P
></P
><OL
TYPE="a"
><LI
><P
><B
CLASS="COMMAND"
>apt-get update</B
></P
></LI
><LI
><P
>i386: <B
CLASS="COMMAND"
>apt-get install module-init-tools
		grub ppp</B
></P
><P
>alpha: <B
CLASS="COMMAND"
>apt-get install module-init-tools
                aboot ppp</B
></P
><P
>powerpc: <B
CLASS="COMMAND"
>apt-get install module-init-tools
                yaboot ppp</B
></P
></LI
><LI
><P
><B
CLASS="COMMAND"
>apt-get install</B
>
	      appropriate filesystem tools for your chosen filesystem</P
></LI
><LI
><P
>i386: <B
CLASS="COMMAND"
>mkdir /boot/grub; cp
                /lib/grub/i386-pc/* /boot/grub</B
></P
><P
>If your /boot is its own partition, also run
                 <B
CLASS="COMMAND"
>cd /boot; ln -s . boot</B
>.</P
><DIV
CLASS="NOTE"
><BLOCKQUOTE
CLASS="NOTE"
><P
><B
>Note: </B
>	      amd64 did not have a grub package as of the last check.
	      However, you can simulate it; just 
		<B
CLASS="COMMAND"
>mkdir /mnt/boot/grub</B
>
	      and copy the files from
		<TT
CLASS="FILENAME"
>/lib/grub/i386-pc</TT
> on the
	      live CD image to <TT
CLASS="FILENAME"
>/boot/grub</TT
>
		on your new system.</P
></BLOCKQUOTE
></DIV
><P
>alpha: see aboot docs</P
><P
>powerpc: see yaboot docs</P
></LI
></OL
></LI
><LI
><P
>Installing Kernel</P
><P
>If you like the kernel on the DFS CD, you can do this:
	  <B
CLASS="COMMAND"
>cd /mnt/root; dpkg-repack
	    linunx-image-2.6.16.4</B
>.  Then, <B
CLASS="COMMAND"
>chroot
	    /mnt</B
> and <B
CLASS="COMMAND"
>dpkg -i
	    /root/linux-image-*</B
>.
	</P
></LI
><LI
><P
>Installing Grub</P
><PRE
CLASS="SCREEN"
># grub
grub&#62; root (hd0,0)
grub&#62; setup (hd0)
grub&#62; quit
# update-grub
	    </PRE
><P
>amd64 users: if this doesn't work, try rebooting the DFS
	  cd.  Press "c" when you see the blue Grub menu to get a
	  command line.  Then run the above.</P
></LI
><LI
><P
>Rebooting into new system</P
></LI
></OL
></DIV
><TABLE
CLASS="navigation"
WIDTH="100%"
SUMMARY="Navigation footer"
CELLPADDING="2"
CELLSPACING="2"
><TR
VALIGN="middle"
><TD
ALIGN="left"
><A
ACCESSKEY="p"
HREF="dfsboot.ppp.html"
><B
>&lt;&lt;&lt;&nbsp;Dialup with PPP</B
></A
></TD
><TD
ALIGN="right"
><A
ACCESSKEY="n"
HREF="dfsbuild.reference.html"
><B
>Command Reference&nbsp;&gt;&gt;&gt;</B
></A
></TD
></TR
></TABLE
></BODY
></HTML
>