1 |
nimiux 10/08/01 07:22:44 |
2 |
|
3 |
Modified: chroot.xml |
4 |
Log: |
5 |
Updated 32bit chroot guide and link to spanish trnaslation in amd64 faq |
6 |
guide. |
7 |
|
8 |
Revision Changes Path |
9 |
1.3 xml/htdocs/proj/es/base/amd64/howtos/chroot.xml |
10 |
|
11 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo/xml/htdocs/proj/es/base/amd64/howtos/chroot.xml?rev=1.3&view=markup |
12 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo/xml/htdocs/proj/es/base/amd64/howtos/chroot.xml?rev=1.3&content-type=text/plain |
13 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo/xml/htdocs/proj/es/base/amd64/howtos/chroot.xml?r1=1.2&r2=1.3 |
14 |
|
15 |
Index: chroot.xml |
16 |
=================================================================== |
17 |
RCS file: /var/cvsroot/gentoo/xml/htdocs/proj/es/base/amd64/howtos/chroot.xml,v |
18 |
retrieving revision 1.2 |
19 |
retrieving revision 1.3 |
20 |
diff -u -r1.2 -r1.3 |
21 |
--- chroot.xml 21 Mar 2007 11:48:55 -0000 1.2 |
22 |
+++ chroot.xml 1 Aug 2010 07:22:43 -0000 1.3 |
23 |
@@ -1,19 +1,31 @@ |
24 |
<?xml version="1.0" encoding="UTF-8"?> |
25 |
-<!DOCTYPE sections SYSTEM "/dtd/book.dtd"> |
26 |
-<!-- $Header: |
27 |
-/var/cvsroot/gentoo/xml/htdocs/proj/en/base/amd64/howtos/chroot.xml,v 1.11 |
28 |
-2006/10/04 11:46:44 blubb Exp $ --> |
29 |
+<!DOCTYPE guide SYSTEM "/dtd/guide.dtd"> |
30 |
+<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/proj/es/base/amd64/howtos/chroot.xml,v 1.3 2010/08/01 07:22:43 nimiux Exp $ --> |
31 |
+ |
32 |
<!-- The content of this document is licensed under the CC-BY-SA license --> |
33 |
<!-- See http://creativecommons.org/licenses/by-sa/2.5 --> |
34 |
+<guide link="/proj/es/base/amd64/howtos/chroot.xml" lang="es" > |
35 |
+<title>Cómo configurar un entorno chroot en sistemas de 32 bits</title> |
36 |
|
37 |
-<sections> |
38 |
+<author title="Author"> |
39 |
+ <mail link="metalgod@g.o">Luis Medinas</mail> |
40 |
+</author> |
41 |
+<author title="Traductor"> |
42 |
+ <mail link="nimiux"/> |
43 |
+</author> |
44 |
+ |
45 |
+<abstract> |
46 |
+Este CÓMO muestra la forma de crear un entorno chroot en sistemas de 32 bits. |
47 |
+</abstract> |
48 |
|
49 |
-<version>1.2</version> |
50 |
-<date>2006-09-16</date> |
51 |
+<license/> |
52 |
|
53 |
-<section> |
54 |
+<version>1.1</version> |
55 |
+<date>2008-12-26</date> |
56 |
+ |
57 |
+<chapter> |
58 |
<title>Introducción</title> |
59 |
-<subsection> |
60 |
+<section> |
61 |
<title>Introducción a los sitemas de 64 bits</title> |
62 |
<body> |
63 |
|
64 |
@@ -24,7 +36,7 @@ |
65 |
|
66 |
<p> |
67 |
Como ya sabe los sistemas de 64 bits todavía no ejecutan aplicaciones |
68 |
-de 32 bits nativamente (al menos no con portage) así que necesitará |
69 |
+de 32 bits nativas (al menos no con portage) así que necesitará |
70 |
usar bibliotecas de emulación para hacerlas funcionar o crear un |
71 |
verdadero sistema de 32 bits en un entorno chroot para instalar y |
72 |
ejecutar aplicaciones nativas de 32 bits. Sin embargo, si quiere usar |
73 |
@@ -34,23 +46,24 @@ |
74 |
instalar y ejecutar aplicaciones en este entorno. |
75 |
</p> |
76 |
</body> |
77 |
-</subsection> |
78 |
</section> |
79 |
+</chapter> |
80 |
|
81 |
-<section> |
82 |
+<chapter> |
83 |
<title>Instalación</title> |
84 |
-<subsection> |
85 |
-<title>Instalación de un entorno chroot de 32 bits</title> |
86 |
+<section> |
87 |
+<title>Instalación de su entorno chroot de 32 bits</title> |
88 |
<body> |
89 |
|
90 |
<p> |
91 |
Para instalar un entorno chroot de 32 bits deberá seguir muchos de los |
92 |
pasos que sigue al instalar Gentoo Linux en un ordenador x86. De |
93 |
momento, necesitará el último stage3 disponible en nuestros <uri |
94 |
-link="http://www.gentoo.org/main/en/mirrors.xml">mirrors</uri>. |
95 |
+link="http://www.gentoo.org/main/en/mirrors.xml">servidores |
96 |
+réplica</uri>. |
97 |
</p> |
98 |
|
99 |
-<pre caption="descargar stage3 de un mirror Gentoo"> |
100 |
+<pre caption="descargando stage3 de un servidor réplica de Gentoo"> |
101 |
$ cd /home/user/downloads |
102 |
$ wget -c ftp://distfiles.gentoo.org/releases/x86/2006.1/stages/stage3-i686-2006.1.tar.bz2 |
103 |
</pre> |
104 |
@@ -64,7 +77,7 @@ |
105 |
construir su entorno chroot. |
106 |
</p> |
107 |
|
108 |
-<pre caption="crear un directorio para el entorno chroot de 32 bits"> |
109 |
+<pre caption="creando un directorio para el entorno chroot de 32 bits"> |
110 |
$ su root <i>introduzca su contraseña de root</i> |
111 |
# cd /mnt |
112 |
# mkdir gentoo32 |
113 |
@@ -75,7 +88,7 @@ |
114 |
este ejemplo. |
115 |
</p> |
116 |
|
117 |
-<pre caption="instalar el stage3"> |
118 |
+<pre caption="instalando desde el stage3"> |
119 |
# cd /mnt/gentoo32 |
120 |
# tar -xvjpf /home/user/downloads/stage3-i686-2006.1.tar.bz2 |
121 |
# cp -L /etc/resolv.conf /mnt/gentoo32/etc/ |
122 |
@@ -87,14 +100,13 @@ |
123 |
siguiente apartado para aprender como hacerlo. |
124 |
</p> |
125 |
</body> |
126 |
-</subsection> |
127 |
</section> |
128 |
+</chapter> |
129 |
|
130 |
- |
131 |
-<section> |
132 |
+<chapter> |
133 |
<title>Configuración</title> |
134 |
-<subsection> |
135 |
-<title>Configurar el nuevo entorno chroot de 32 bits</title> |
136 |
+<section> |
137 |
+<title>Configurando el nuevo entorno chroot de 32 bits</title> |
138 |
<body> |
139 |
|
140 |
<p> |
141 |
@@ -107,7 +119,7 @@ |
142 |
<c>/mnt/gentoo32/etc/make.conf</c>. |
143 |
</p> |
144 |
|
145 |
-<pre caption="Configurar el nuevo make.conf"> |
146 |
+<pre caption="Configurando el nuevo make.conf"> |
147 |
CFLAGS="-O2 -march=athlon-xp -msse2 -pipe -fomit-frame-pointer" |
148 |
CHOST="i686-pc-linux-gnu" |
149 |
CXXFLAGS="${CFLAGS}" |
150 |
@@ -115,10 +127,10 @@ |
151 |
</pre> |
152 |
|
153 |
<p> |
154 |
-Ahora monte los sistemas de archivos: |
155 |
+Ahora monte los sistemas de archivos virtuales: |
156 |
</p> |
157 |
|
158 |
-<pre caption="Montar los sistemas de archivos virtuales"> |
159 |
+<pre caption="Montando los sistemas de archivos virtuales"> |
160 |
# mount -o bind /dev /mnt/gentoo32/dev |
161 |
# mount -o bind /dev/pts /mnt/gentoo32/dev/pts |
162 |
# mount -o bind /dev/shm /mnt/gentoo32/dev/shm |
163 |
@@ -135,7 +147,7 @@ |
164 |
en vez de duplicar un montón de datos. |
165 |
</p> |
166 |
|
167 |
-<pre caption="Enlazar portage a /usr/portage dentro del entorno chroot de 32 bits"> |
168 |
+<pre caption="Enlazando portage a /usr/portage dentro del entorno chroot de 32 bits"> |
169 |
# mkdir -p /mnt/gentoo32/usr/portage/ |
170 |
# mount -o bind /usr/portage /mnt/gentoo32/usr/portage/ |
171 |
</pre> |
172 |
@@ -146,11 +158,11 @@ |
173 |
</note> |
174 |
|
175 |
<p> |
176 |
-Si quiere usar aplicaciones de 32 bits que usen las X también deberá |
177 |
-montar /tmp. |
178 |
+Si quiere usar aplicaciones de 32 bits que usen X también deberá montar |
179 |
+/tmp. |
180 |
</p> |
181 |
|
182 |
-<pre caption="Montar /tmp para aplicaciones con GUI"> |
183 |
+<pre caption="Montando /tmp para aplicaciones con GUI"> |
184 |
# mount -o bind /tmp /mnt/gentoo32/tmp |
185 |
</pre> |
186 |
|
187 |
@@ -158,9 +170,9 @@ |
188 |
Ahora estamos preparados para entrar en el entorno chroot. |
189 |
</p> |
190 |
|
191 |
-<pre caption="Acceder al entorno chroot"> |
192 |
-<i>(Sólo haga esto si no tiene setarch instalado)</i> |
193 |
-# emerge setarch |
194 |
+<pre caption="Accediendo al entorno chroot"> |
195 |
+<i>(Sólo haga esto si no tiene util-linux ya instalado)</i> |
196 |
+# emerge util-linux |
197 |
# linux32 chroot /mnt/gentoo32 /bin/bash |
198 |
<i>(Asegúrese que está en un sistema i686)</i> |
199 |
# uname -m |
200 |
@@ -178,7 +190,7 @@ |
201 |
actualizado. Siga los siguientes pasos para actualizarlo. |
202 |
</p> |
203 |
|
204 |
-<pre caption="Actualizar el nuevo entorno chroot de 32 bits"> |
205 |
+<pre caption="Actualizando el nuevo entorno chroot de 32 bits"> |
206 |
# source /etc/profile |
207 |
# env-update |
208 |
# emerge -au world |
209 |
@@ -191,7 +203,7 @@ |
210 |
chroot de 32 bits al arrancar la máquina. |
211 |
</p> |
212 |
|
213 |
-<pre caption="Crear un nuevo archivo en /etc/init.d"> |
214 |
+<pre caption="Creando un nuevo archivo en /etc/init.d"> |
215 |
# nano -w /etc/init.d/gentoo32 |
216 |
#!/sbin/runscript |
217 |
|
218 |
@@ -201,38 +213,38 @@ |
219 |
} |
220 |
|
221 |
start() { |
222 |
- ebegin "Mounting 32bit chroot dirs" |
223 |
- mount -o bind /dev /mnt/gentoo32/dev >/dev/null |
224 |
- mount -o bind /dev/pts /mnt/gentoo32/dev/pts >/dev/null & |
225 |
- mount -o bind /dev/shm /mnt/gentoo32/dev/shm >/dev/null & |
226 |
- mount -o bind /proc /mnt/gentoo32/proc >/dev/null |
227 |
- mount -o bind /proc/bus/usb /mnt/gentoo32/proc/bus/usb >/dev/null & |
228 |
- mount -o bind /sys /mnt/gentoo32/sys >/dev/null & |
229 |
- mount -o bind /tmp /mnt/gentoo32/tmp >/dev/null & |
230 |
- mount -o bind /usr/portage /mnt/gentoo32/usr/portage/ >/dev/null & |
231 |
- eend $? "An error occured while attempting to mount 32bit chroot directories" |
232 |
- ebegin "Copying 32bit chroot files" |
233 |
- cp -pf /etc/resolv.conf /mnt/gentoo32/etc >/dev/null & |
234 |
- cp -pf /etc/passwd /mnt/gentoo32/etc >/dev/null & |
235 |
- cp -pf /etc/shadow /mnt/gentoo32/etc >/dev/null & |
236 |
- cp -pf /etc/group /mnt/gentoo32/etc >/dev/null & |
237 |
- cp -pf /etc/gshadow /mnt/gentoo32/etc >/dev/null & |
238 |
- cp -pf /etc/hosts /mnt/gentoo32/etc > /dev/null & |
239 |
- cp -Ppf /etc/localtime /mnt/gentoo32/etc >/dev/null & |
240 |
- eend $? "An error occured while attempting to copy 32 bits chroot files." |
241 |
+ ebegin "Mounting 32bit chroot dirs" |
242 |
+ mount -o bind /dev /mnt/gentoo32/dev >/dev/null |
243 |
+ mount -o bind /dev/pts /mnt/gentoo32/dev/pts >/dev/null & |
244 |
+ mount -o bind /dev/shm /mnt/gentoo32/dev/shm >/dev/null & |
245 |
+ mount -o bind /proc /mnt/gentoo32/proc >/dev/null |
246 |
+ mount -o bind /proc/bus/usb /mnt/gentoo32/proc/bus/usb >/dev/null & |
247 |
+ mount -o bind /sys /mnt/gentoo32/sys >/dev/null & |
248 |
+ mount -o bind /tmp /mnt/gentoo32/tmp >/dev/null & |
249 |
+ mount -o bind /usr/portage /mnt/gentoo32/usr/portage/ >/dev/null & |
250 |
+ eend $? "An error occured while attempting to mount 32bit chroot directories" |
251 |
+ ebegin "Copying 32bit chroot files" |
252 |
+ cp -pf /etc/resolv.conf /mnt/gentoo32/etc >/dev/null & |
253 |
+ cp -pf /etc/passwd /mnt/gentoo32/etc >/dev/null & |
254 |
+ cp -pf /etc/shadow /mnt/gentoo32/etc >/dev/null & |
255 |
+ cp -pf /etc/group /mnt/gentoo32/etc >/dev/null & |
256 |
+ cp -pf /etc/gshadow /mnt/gentoo32/etc >/dev/null & |
257 |
+ cp -pf /etc/hosts /mnt/gentoo32/etc > /dev/null & |
258 |
+ cp -Ppf /etc/localtime /mnt/gentoo32/etc >/dev/null & |
259 |
+ eend $? "An error occured while attempting to copy 32 bits chroot files." |
260 |
} |
261 |
|
262 |
stop() { |
263 |
- ebegin "Unmounting 32bit chroot dirs" |
264 |
- umount -f /mnt/gentoo32/dev/pts >/dev/null |
265 |
- umount -f /mnt/gentoo32/dev/shm >/dev/null |
266 |
- umount -f /mnt/gentoo32/dev >/dev/null & |
267 |
- umount -f /mnt/gentoo32/proc/bus/usb >/dev/null |
268 |
- umount -f /mnt/gentoo32/proc >/dev/null & |
269 |
- umount -f /mnt/gentoo32/sys >/dev/null & |
270 |
- umount -f /mnt/gentoo32/tmp >/dev/null & |
271 |
- umount -f /mnt/gentoo32/usr/portage/ >/dev/null & |
272 |
- eend $? "An error occured while attempting to unmount 32bit chroot directories" |
273 |
+ ebegin "Unmounting 32bit chroot dirs" |
274 |
+ umount -f /mnt/gentoo32/dev/pts >/dev/null |
275 |
+ umount -f /mnt/gentoo32/dev/shm >/dev/null |
276 |
+ umount -f /mnt/gentoo32/dev >/dev/null & |
277 |
+ umount -f /mnt/gentoo32/proc/bus/usb >/dev/null |
278 |
+ umount -f /mnt/gentoo32/proc >/dev/null & |
279 |
+ umount -f /mnt/gentoo32/sys >/dev/null & |
280 |
+ umount -f /mnt/gentoo32/tmp >/dev/null & |
281 |
+ umount -f /mnt/gentoo32/usr/portage/ >/dev/null & |
282 |
+ eend $? "An error occured while attempting to unmount 32bit chroot directories" |
283 |
} |
284 |
</pre> |
285 |
|
286 |
@@ -243,8 +255,8 @@ |
287 |
|
288 |
<p> |
289 |
Siempre que quiera cambiar a su sistema chroot, sólo necesitará |
290 |
-ejecutar la siguiente orden: <c>linux32 chroot /mnt/gentoo32 |
291 |
-/bin/bash</c>. |
292 |
+ejecutar la siguiente orden: |
293 |
+<c>linux32 chroot /mnt/gentoo32 /bin/bash</c>. |
294 |
</p> |
295 |
|
296 |
<p> |
297 |
@@ -252,13 +264,13 @@ |
298 |
aplicaciones. |
299 |
</p> |
300 |
</body> |
301 |
-</subsection> |
302 |
</section> |
303 |
+</chapter> |
304 |
|
305 |
-<section> |
306 |
+<chapter> |
307 |
<title>Aplicaciones</title> |
308 |
-<subsection> |
309 |
-<title>Instalando aplicaciones en su entorno chroot</title> |
310 |
+<section> |
311 |
+<title>Instalando nuevas aplicaciones en su entorno chroot</title> |
312 |
<body> |
313 |
|
314 |
<p> |
315 |
@@ -268,7 +280,7 @@ |
316 |
de 32 bits. |
317 |
</p> |
318 |
|
319 |
-<pre caption="Instalar foo en el entorno chroot"> |
320 |
+<pre caption="Instalando foo en el entorno chroot"> |
321 |
# linux32 chroot /mnt/gentoo32 /bin/bash |
322 |
# source /etc/profile |
323 |
# env-update |
324 |
@@ -298,12 +310,12 @@ |
325 |
chroot de 32 bits. |
326 |
</p> |
327 |
</body> |
328 |
-</subsection> |
329 |
</section> |
330 |
+</chapter> |
331 |
|
332 |
-<section> |
333 |
+<chapter> |
334 |
<title>Conclusión</title> |
335 |
-<subsection> |
336 |
+<section> |
337 |
<title>Conclusión de esta guía</title> |
338 |
<body> |
339 |
|
340 |
@@ -311,10 +323,11 @@ |
341 |
Con este entorno chroot podrá instalar muchos paquetes que sólo están |
342 |
disponibles para la arquitectura x86. Algunos paquetes como |
343 |
<c>OpenOffice</c> pueden ser instalados mediante el binario disponible |
344 |
-para Gentoo/AMD64. Para instalar el paquete <c>win32codecs</c> para |
345 |
-MPlayer necesita un entorno chroot de 32 bits como éste. |
346 |
+para Gentoo/AMD64. Algunos de los codificadores disponibles para |
347 |
+<c>MPlayer</c> necesitan este entorno chroot de 32 bits de forma que |
348 |
+pueda instalar el paquete <c>win32codecs</c>. |
349 |
</p> |
350 |
</body> |
351 |
-</subsection> |
352 |
</section> |
353 |
-</sections> |
354 |
+</chapter> |
355 |
+</guide> |