Difference between revisions of "Install/Chroot/tr"

From Funtoo
Jump to navigation Jump to search
(Updating to match new version of source page)
(Updating to match new version of source page)
Line 6: Line 6:
{{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>


<div class="mw-translate-fuzzy">
Funtoo GNU/Linux'u kurmak için, önce {{c|chroot}} komutu kullanılır. Chroot komutu yeni Funtoo GNU/Linux sistemine "geçecektir", böylece "chroot"u çalıştırdıktan sonra yürüttüğünüz komutlar yeni çıkarılan Funtoo GNU/Linux sisteminizde çalışacaktır.
Funtoo GNU/Linux'u kurmak için, önce {{c|chroot}} komutu kullanılır. Chroot komutu yeni Funtoo GNU/Linux sistemine "geçecektir", böylece "chroot"u çalıştırdıktan sonra yürüttüğünüz komutlar yeni çıkarılan Funtoo GNU/Linux sisteminizde çalışacaktır.
</div>


<div class="mw-translate-fuzzy">
<div lang="en" dir="ltr" class="mw-content-ltr">
chroot işleminden önce chroot ortamını ayarlamak için yapılması gereken birkaç şey var. Yeni sisteminizin içine {{f|/proc}}, {{f|/sys}} ve {{f|/dev}}'i bağlamanız gerekecek. Bunu yapmak için aşağıdaki komutları kullanın:
{{console|body=
{{console|body=
# ##i##cd /mnt/funtoo
# ##i##fchroot /mnt/funtoo /bin/bash --login
# ##i##mount -t proc none proc
%fchroot%
# ##i##mount --rbind /sys sys
# ##i##mount --rbind /dev dev
}}
}}
</div>
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
<div lang="en" dir="ltr" class="mw-content-ltr">
You'll also want to copy over {{f|resolv.conf}} in order to have proper resolution of Internet hostnames from inside the chroot:
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
{{console|body=
{{c|exit}} or {{c|ctrl-D}}.
# ##i##cp /etc/resolv.conf /mnt/funtoo/etc/
}}
Now you can chroot into your new system as follows:
</div>
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
<div lang="en" dir="ltr" class="mw-content-ltr">
{{console|body=###i## chroot . /bin/su --login
If you are using another LiveCD or USB media to install Funtoo, you can manually chroot by using the following set of commands:
%chroot% }}
</div>
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
<div class="mw-translate-fuzzy">
This special chroot command executes {{c|/bin/su --login}} inside the new environment. According to the {{c|su}} man page, {{c|su}} with the {{c|--login}} option provides "an environment similar to what the user would expect had the user logged in directly." That is what we want, as it will prevent any existing environment variables on the LiveCD from being set inside the chroot.
chroot işleminden önce chroot ortamını ayarlamak için yapılması gereken birkaç şey var. Yeni sisteminizin içine {{f|/proc}}, {{f|/sys}} ve {{f|/dev}}'i bağlamanız gerekecek. Bunu yapmak için aşağıdaki komutları kullanın:
{{console|body=
# ##i##cd /mnt/funtoo
# ##i##mount -t proc none proc
# ##i##mount --rbind /sys sys
# ##i##mount --rbind /dev dev
}}
</div>
</div>


Line 41: Line 42:


<div lang="en" dir="ltr" class="mw-content-ltr">
<div lang="en" dir="ltr" class="mw-content-ltr">
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:
{{console|body=%chroot% ##i##export PS1="(chroot) $PS1"}}
Test internet name resolution from within the chroot:
Test internet name resolution from within the chroot:
{{console|body=%chroot% ##i##ping -c 5 google.com}}
{{console|body=%chroot% ##i##ping -c 5 google.com}}

Revision as of 04:57, June 23, 2022

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

Kurulum Kılavuzu: Funtoo'da Chroot

Install Guide, Chapter 9 < Prev Next >

Funtoo GNU/Linux'u kurmak için, önce chroot komutu kullanılır. Chroot komutu yeni Funtoo GNU/Linux sistemine "geçecektir", böylece "chroot"u çalıştırdıktan sonra yürüttüğünüz komutlar yeni çıkarılan Funtoo GNU/Linux sisteminizde çalışacaktır.

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:

chroot işleminden önce chroot ortamını ayarlamak için yapılması gereken birkaç şey var. Yeni sisteminizin içine /proc, /sys ve /dev'i bağlamanız gerekecek. Bunu yapmak için aşağıdaki komutları kullanın:

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

For users of live CDs with 64-bit kernels installing 32-bit systems: Some software may use 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.

   Important

If you receive the error "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 your live CD.

Test internet name resolution from within the chroot:

chroot # ping -c 5 google.com

If you can't ping, make sure that /etc/resolv.conf specifies a valid IP address for a reachable nameserver in its nameserver setting.

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.

Install Guide, Chapter 9 < Prev Next >