ยง2023-09-28

After you did what is said in 30-odroid-c2.md,

  1. get ip
# dhcp enP3p40s0
# passwd     <-- b2nnnnnnn
# useradd -u 1026 -m alexlai
# passwd alexlai  <-- axxxxxxx
# ping google.com
# mkdir /etc/portgage/repos.conf
[DEFAULT]
main-repo = gentoo
 
[gentoo]
location = /var/db/repos/gentoo
sync-type = rsync
sync-uri = rsync://rsync.gentoo.org/gentoo-portage
auto-sync = yes
sync-rsync-verify-jobs = 1
sync-rsync-verify-metamanifest = yes
sync-rsync-verify-max-age = 24
sync-openpgp-key-path = /usr/share/openpgp-keys/gentoo-release.asc
sync-openpgp-key-refresh-retry-count = 40
sync-openpgp-key-refresh-retry-overall-timeout = 1200
sync-openpgp-key-refresh-retry-delay-exp-base = 2
sync-openpgp-key-refresh-retry-delay-max = 60
sync-openpgp-key-refresh-retry-delay-mult = 4
sync-webrsync-verify-signature = yes
sync-git-verify-commit-signature = yes
  1. systemd first boot
# systemd-firstboot --prompt --setup-machine-id

Welcome to your new installation of Gentoo Linux!

Please configure your system!

-- Press any key to proceed --
. Please enter system keymap name or number (empty to skip, "list" to list options): 232
Select 'us'
/etc/console.conf written.

. Please enter hostname for new system (empty to skip):rpi4bGentoo
/etc/hostname written
/etc/machine-id written
# systemctl preset-all

Created symlink /etc/systemd/system/sysinit.target.wants/systemd-network-generator.service -> /lib/systemd/system/systemd-network-generator.service.
Created symlink /etc/systemd/system/sysinit.target.wants/systemd-pstore.service -> /lib/systemd/system/systemd-pstore.service
Created symlink /etc/systemd/system/dbus-org.freedesktop.network1.service -> /lib/systemd/system/systemd-networkd.service
Created symlink /etc/systemd/system/multi-user.target.wants/systemd-networkd.service -> /lib/systemd/system/systemd-networkd.service
Created symlink /etc/systemd/system/sockets.target.wants/systemd-networkd.socket -> /lib/systemd/system/systemd-networkd.socket
Created symlink /etc/systemd/system/network-online.target.wants/systemd-networkd-wait-online.service -> /lib/systemd/system/systemd-networkd-wait-online.service
Created symlink /etc/systemd/system/ctrl-alt-del.target -> /lib/systemd/system/reboot.target
Created symlink /etc/systemd/system/dbus-org.freedesktop.timesync1.service -> /lib/systemd/system/systemd-timesyncd.service
Created symlink /etc/systemd/system/sysinit.target.wants/systemd-timesyncd.service -> /usr/lib/systemd/system/systemd-timesyncd.service
Created symlink /etc/systemd/system/sockets.target.wants/systemd-journald-audit.socket -> /lib/systemd/system/systemd-journald-audit.socket
Created symlink /etc/systemd/system/systemd-journald.service.wants/systemd-journald-audit.socket -> /lib/systemd/system/systemd-journald-audit.socket
Created symlink /etc/systemd/system/dbus-org.freedesktop.resolv1 ??
Created symlink /etc/systemd/system/sysinit.target.wants/systemd-resolve.service ??
Created symlink /etc/systemd/system/multi-user.target.wants/machines.target -> /lib/systemd/system/machines.target
Created symlink /etc/systemd/system/sockets.target.wants/systemd-userdbd.socket -> /lib/systemd/system/systemd-userdbd.socket
  1. emerge net-misc/dhcpcd
# rm /usr/bin/dhcpcd    <-- I got it from archlinux
[Match]
Name=end0

[Network]
DHCP=yes
4.  reboot

5. `emerge app-admin/sudo` and `visudo` and `usermod -G wheel alexlai`

6. set time-zone

hc4Gentoo /home/alexlai # cp -v /usr/share/zoneinfo/Asia/Taipei /etc/localtime '/usr/share/zoneinfo/Asia/Taipei' -> '/etc/localtime' hc4Gentoo /home/alexlai # echo "/Asia/Taipei" > /etc/timezone hc4Gentoo /home/alexlai # date Thu Sep 28 14:24:10 CST 2023


7. gen locale

hc4Gentoo /home/alexlai # nano /etc/locale.gen hc4Gentoo /home/alexlai # locale-gen


8. Your first time to sync the @world

$ sudo emerge --ask --update --deep --newuse @world