§2023-10-27

  1. Set ip, sshd
# dhcpcd
# systemctl start sshd
  1. edit /etc/profile, take out $PS1

In Gentoo Linux, the /etc/profile file is a system-wide shell profile script that is typically executed once for each user, both normal users and root, when they log in. The purpose of this script is to set up global environment variables and settings that are common to all users on the system.'

  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):h2Gentoo
/etc/hostname written
/etc/machine-id written
  1. systemd Preset services

Most services are disabled when systemd is first installed. A "preset" file is provided, and may be used to enable a reasonable set of default services.

# systemctl preset-all

h2Gentoo /home/alexlai # systemctl preset-all
Created symlink /etc/systemd/system/sysinit.target.wants/systemd-pstore.service → /lib/systemd/system/systemd-pstore.service.
Created symlink /etc/systemd/system/ctrl-alt-del.target → /lib/systemd/system/reboot.target.
Created symlink /etc/systemd/system/sockets.target.wants/systemd-userdbd.socket → /lib/systemd/system/systemd-userdbd.socket.
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 → /lib/systemd/system/systemd-timesyncd.service.
Created symlink /etc/systemd/system/multi-user.target.wants/machines.target → /lib/systemd/system/machines.target.
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-boot-update.service → /lib/systemd/system/systemd-boot-update.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/dbus-org.freedesktop.resolve1.service → /lib/systemd/system/systemd-resolved.service.
Created symlink /etc/systemd/system/sysinit.target.wants/systemd-resolved.service → /lib/systemd/system/systemd-resolved.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.
  1. nano /etc/systemd/network/50-dhcp.network
[Match]
Name=enp2s0

[Network]
DHCP=yes
- reboot

6) `emerge app-admin/sudo` and `visudo` and


7) set time-zone

h2Gentoo /home/alexlai # cp -v /usr/share/zoneinfo/Asia/Taipei /etc/localtime '/usr/share/zoneinfo/Asia/Taipei' -> '/etc/localtime' h2Gentoo /home/alexlai # date Fri Oct 27 05:13:51 PM CST 2023


8) Your first time to sync the @world

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