Difference between revisions of "Install/Chroot/es"

From Funtoo
Jump to navigation Jump to search
(Created page with "<includeonly> == Chroot hacia Funtoo == </includeonly><noinclude><languages/> = Guia de instalación: Cambiando el directorio root a Funtoo =")
 
(Updating to match new version of source page)
(23 intermediate revisions by 4 users not shown)
Line 2: Line 2:
== Chroot hacia Funtoo ==
== Chroot hacia Funtoo ==
</includeonly><noinclude><languages/>
</includeonly><noinclude><languages/>
= Guia de instalación: Cambiando el directorio root a Funtoo =  
= Guía de instalación: Cambiar el directorio de root hacia Funtoo =  


{{InstallNavigation|num=9|prev=Download and Extract Stage3|next=Download Portage Tree}}</noinclude>
{{InstallNavigation|num=9|prev=Download and Extract Stage3|next=Download Portage Tree}}</noinclude>


To install Funtoo Linux, the {{c|chroot}} command is first used. The chroot command will "switch into" the new Funtoo Linux system, so the commands you execute after running "chroot" will run within your newly-extracted Funtoo Linux system.
<div class="mw-translate-fuzzy">
=== Cambiar el directorio de root hacia Funtoo ===
Para instalar Funtoo Linux, primero se usa el comando {{c|chroot}}. El comando chroot "se cambiará dentro" del nuevo sistema Funtoo Linux. De esta forma, los comandos que ejecute después de ejecutar "chroot" se ejecutarán dentro del sistema Funtoo Linux recién extraído .
</div>


Before chrooting, there are a few things that need to be done to set up the chroot environment. You will need to mount {{f|/proc}}, {{f|/sys}} and {{f|/dev}} inside your new system. Use the following commands to do so:
<div lang="en" dir="ltr" class="mw-content-ltr">
{{console|body=
# ##i##fchroot /mnt/funtoo /bin/bash --login
%fchroot%
}}
</div>
 
<div lang="en" dir="ltr" class="mw-content-ltr">
The {{c|fchroot}} command will take care of all necessary steps to enter into your new Funtoo Linux system, as well as clean up things when you exit the fchroot by typing
{{c|exit}} or {{c|ctrl-D}}.
</div>
 
<div lang="en" dir="ltr" class="mw-content-ltr">
If you are using another LiveCD or USB media to install Funtoo, you can manually chroot by using the following set of commands:
</div>
 
<div class="mw-translate-fuzzy">
Antes de hacer chroot, debe completar unos pasos importantes para configurar el entorno chroot. Deberá montar {{f |/proc}}, {{f |/sys}} y {{f |/dev}} dentro de su nuevo sistema. Use los siguientes comandos para hacerlo:
{{console|body=
{{console|body=
# ##i##cd /mnt/funtoo
# ##i##cd /mnt/funtoo
Line 15: Line 35:
# ##i##mount --rbind /dev dev
# ##i##mount --rbind /dev dev
}}
}}
</div>


You'll also want to copy over {{f|resolv.conf}} in order to have proper resolution of Internet hostnames from inside the chroot:
<div class="mw-translate-fuzzy">
{{console|body=
{{Note|Para los usuarios de live CDs con núcleo kernel de 64 bits instalando sistemas de 32 bits: pueden usar {{c|uname -r}} para verificar si su sistema es de 32 o 64 bits. Es posible que desee agregar linux32 al comando del chroot como una solución alternativa, pero generalmente no es necesario.}}
# ##i##cp /etc/resolv.conf /mnt/funtoo/etc/
{{Important|Si recibe el error "{{c|chroot:failed to run command /bin/bash': Exec format error}}", lo más probable es que esté ejecutando un núcleo kernel de 32 bits y esté tratando de ejecutar código de 64 bits. Asegúrese de haber seleccionado el tipo apropiado de kernel cuando arranque desde SystemRescueCD.}}
}}
</div>
Now you can chroot into your new system. Use <code>env</code> before <code>chroot</code> to ensure that no environment settings from the installation media are pulled in to your new system:
 
{{console|body=###i## env -i HOME=/root TERM=$TERM /bin/chroot . bash -l}}


{{Note|For users of live CDs with 64-bit kernels installing 32-bit systems: Some software may use {{c|uname -r}} to check whether the system is 32 or 64-bit. You may want to append linux32 to the chroot command as a workaround, but it's generally not needed.}}
<div class="mw-translate-fuzzy">
{{Important|If you receive the error "{{c|chroot: failed to run command `/bin/bash': Exec format error}}", it is most likely because you are running a 32-bit kernel and trying to execute 64-bit code. Make sure that you have selected the proper type of kernel when booting SystemRescueCD.}}
Es también una buena idea cambiar el símbolo del sistema predeterminado mientras está dentro del chroot. Esto evitará confusión si cambia de terminales. Use el siguiente comando:
{{console|body=%chroot% # ##i##export PS1="(chroot) $PS1"}}
Pruebe la resolución de nombres de dominio desde dentro del chroot:
{{console|body=%chroot% ###i## ping -c 5 google.com}}
</div>


It's also a good idea to change the default command prompt while inside the chroot. This will avoid confusion if you have to change terminals. Use this command:
Si no puede hacer ping, verifique que {{f|/etc/resolv.conf}} posea una dirección IP válida en la opción de {{c|nameserver}}.
{{console|body=# ##i##export PS1="(chroot) $PS1"}}
Test internet name resolution from within the chroot:
{{console|body=###i## ping -c 5 google.com}}
If you can't ping, make sure {{f|/etc/resolv.conf}} doesn't contain things like {{c|127.0.x.x}} addresses, if it does, change the {{c|127.0.x.x}} entry to {{c|8.8.8.8}} -- Google's public dns address.  Make sure to replace this with your dns of choice once the system is installed.


Congratulations! You are now chrooted inside a Funtoo Linux system. Now it's time to get Funtoo Linux properly configured so that Funtoo Linux will start successfully, without any manual assistance, when your system is restarted.
¡Felicitaciones! Usted acaba de hacer un chroot (cambiar el directorio root a) dentro del sistema Funtoo Linux. Los siguientes pasos permitirán configurar adecuadamente Funtoo Linux, para que inicie correctamente y sin ninguna asistencia manual cuando reinicie su sistema.
<noinclude>{{InstallNavigation|num=9|prev=Download and Extract Stage3|next=Download Portage Tree|align=right}}</noinclude>

Revision as of 04:57, June 23, 2022

Other languages:
English • ‎Türkçe • ‎español • ‎polski • ‎português do Brasil • ‎русский • ‎中文(中国大陆)‎

Guía de instalación: Cambiar el directorio de root hacia Funtoo

Install Guide, Chapter 9 < Prev Next >

Cambiar el directorio de root hacia Funtoo

Para instalar Funtoo Linux, primero se usa el comando chroot. El comando chroot "se cambiará dentro" del nuevo sistema Funtoo Linux. De esta forma, los comandos que ejecute después de ejecutar "chroot" se ejecutarán dentro del sistema Funtoo Linux recién extraído .

root # fchroot /mnt/funtoo /bin/bash --login
fchroot #

The fchroot command will take care of all necessary steps to enter into your new Funtoo Linux system, as well as clean up things when you exit the fchroot by typing exit or ctrl-D.

If you are using another LiveCD or USB media to install Funtoo, you can manually chroot by using the following set of commands:

Antes de hacer chroot, debe completar unos pasos importantes para configurar el entorno chroot. Deberá montar /proc, /sys y /dev dentro de su nuevo sistema. Use los siguientes comandos para hacerlo:

root # cd /mnt/funtoo
root # mount -t proc none proc
root # mount --rbind /sys sys
root # mount --rbind /dev dev
   Note

Para los usuarios de live CDs con núcleo kernel de 64 bits instalando sistemas de 32 bits: pueden usar uname -r para verificar si su sistema es de 32 o 64 bits. Es posible que desee agregar linux32 al comando del chroot como una solución alternativa, pero generalmente no es necesario.

   Important

Si recibe el error "chroot:failed to run command /bin/bash': Exec format error", lo más probable es que esté ejecutando un núcleo kernel de 32 bits y esté tratando de ejecutar código de 64 bits. Asegúrese de haber seleccionado el tipo apropiado de kernel cuando arranque desde SystemRescueCD.

Es también una buena idea cambiar el símbolo del sistema predeterminado mientras está dentro del chroot. Esto evitará confusión si cambia de terminales. Use el siguiente comando:

chroot # # export PS1="(chroot) $PS1"

Pruebe la resolución de nombres de dominio desde dentro del chroot:

chroot # # ping -c 5 google.com

Si no puede hacer ping, verifique que /etc/resolv.conf posea una dirección IP válida en la opción de nameserver.

¡Felicitaciones! Usted acaba de hacer un chroot (cambiar el directorio root a) dentro del sistema Funtoo Linux. Los siguientes pasos permitirán configurar adecuadamente Funtoo Linux, para que inicie correctamente y sin ninguna asistencia manual cuando reinicie su sistema.

Install Guide, Chapter 9 < Prev Next >