LoginSignup
0
0

More than 3 years have passed since last update.

Gentoo Linux構築の手順 パート4

Last updated at Posted at 2021-03-17

目的

Gentoo Linuxのハンドブックをもとにgentoo linuxを開発しました
ハンドブックでは分かりづらいため、他の方が作る際に少しでも助けになればいいと思い記事にしました
今回は、ハンドブックの25章から41章になります
任意設定のところについては割愛しております

Gentoo Linux構築の手順 パート1
Gentoo Linux構築の手順 パート2
Gentoo Linux構築の手順 パート3
Gentoo Linux構築の手順 パート4
Gentoo Linuxを構築する上での用語集

ネットワーク接続のための情報

ネットワークを設定する

emerge --ask --noreplace net-misc/netifrc
nano -w /etc/conf.d/net

起動時に自動でネットワーク接続する

cd /etc/init.d
root #ln -s net.lo net.eth0
root #rc-update add net.eth0 default

システム情報

rootパスワード

passwd

initとboot設定

passwd

デフォルト: GRUB2

Emerge

emerge --ask --verbose sys-boot/grub:2
echo 'GRUB_PLATFORMS="efi-64"' >> /etc/portage/make.conf
emerge --ask sys-boot/grub:2
emerge --ask --update --newuse --verbose sys-boot/grub:2

インストール

・BIOS を利用する場合:

grub-install /dev/sda

・UEFI を利用する場合:

grub-install --target=x86_64-efi --efi-directory=/boot
grub-install --target=x86_64-efi --efi-directory=/boot --removable

設定

grub-mkconfig -o /boot/grub/grub.cfg

システムのリブート

exit
cd
umount -l /mnt/gentoo/dev{/shm,/pts,} 
umount -R /mnt/gentoo 
reboot

ユーザー管理

Login:root
Password: (rootのパスワードを入力してください)
root #useradd -m -G users,wheel,audio -s /bin/bash larry 
root #passwd larry
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0