tar -xvpf stage3-amd64-hardened-openrc-20220220T170542Z.tar.xz --xattrs-include='*.*' --numeric-owner -C /mnt
nano -w /mnt/etc/portage/make.conf
COMMON_FLAGS="-march=native -O2 -pipe"
MAKEOPTS="-j2"
mkdir --parents /mnt/etc/portage/repos.conf
cp /mnt/usr/share/portage/config/repos.conf /mnt/etc/portage/repos.conf/gentoo.conf
cat /mnt/etc/portage/repos.conf/gentoo.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-keyserver = hkps://keys.gentoo.org
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
cat chr.sh
mount --rbind /sys /mnt/sys && mount --make-rslave /mnt/sys
mount --rbind /dev /mnt/dev && mount --make-rslave /mnt/dev
mount --rbind /proc /mnt/proc && mount --make-rslave /mnt/proc
mount --bind /run /mnt/run && mount --make-slave /mnt/run
cp /etc/resolv.conf /mnt/etc/
PS1='(chroot) # ' chroot /mnt/ /bin/sh
export TERM=xterm-256color
emerge-webrsync
eselect news list
eselect news read
eselect profile list
eselect profile set 2
emerge --ask --verbose --update --deep --newuse @world
emerge --info | grep ^USE
less /var/db/repos/gentoo/profiles/use.desc
nano -w /etc/portage/make.conf
portageq envvar ACCEPT_LICENSE
ACCEPT_LICENSE="-* @FREE"
/etc/portage/package.license/kernel
app-arch/unrar unRAR
sys-kernel/linux-firmware @BINARY-REDISTRIBUTABLE
sys-firmware/intel-microcode intel-ucode
ls /usr/share/zoneinfo
echo "Asia/Kathmandu" > /etc/timezone
nano -w /etc/locale.gen
C.UTF8 UTF-8
locale-gen
nano /etc/portage/make.conf
CPU_FLAGS_X86="aes avx avx2 avx512f avx512dq avx512cd avx512bw avx512vl avx512vbmi f16c fma3 mmx mmxext pclmul popcnt rdrand sha sse sse2 sse3 sse4_1 sse4_2 ssse3"
eselect locale list
eselect locale set 9
emerge --update --deep --newuse @world
cat /mnt/etc/portage/package.license
sys-kernel/linux-firmware @BINARY-REDISTRIBUTABLE
emerge --ask sys-kernel/linux-firmware
* Your configuration for sys-kernel/linux-firmware-20220209 has been saved in
* "/etc/portage/savedconfig/sys-kernel/linux-firmware-20220209" for your editing pleasure.
* You can edit these files by hand and remerge this package with
* USE=savedconfig to customise the configuration.
* You can rename this file/directory to one of the following for
* its configuration to apply to multiple versions:
* ${PORTAGE_CONFIGROOT}/etc/portage/savedconfig/
* [${CTARGET}|${CHOST}|""]/${CATEGORY}/[${PF}|${P}|${PN}]
* If you are only interested in particular firmware files, edit the saved
* configfile and remove those that you do not want.
emerge --ask sys-kernel/gentoo-sources
emerge --ask sys-apps/pciutils
cd /usr/src/linux
make menuconfig
General setup ---> │ │
│ │ [*] 64-bit kernel (NEW) │ │
│ │ Processor type and features ---> │ │
│ │ Power management and ACPI options ---> │ │
│ │ Bus options (PCI etc.) ---> │ │
│ │ Binary Emulations ---> │ │
│ │ [*] Virtualization (NEW) ---> │ │
│ │ General architecture-dependent options ---> │ │
│ │ [*] Enable loadable module support ---> │ │
│ │ -*- Enable the block layer ---> │ │
│ │ IO Schedulers ---> │ │
│ │ Executable file formats ---> │ │
│ │ Memory Management options ---> │ │
│ │ [*] Networking support ---> │ │
│ │ Device Drivers ---> │ │
│ │ File systems ---> │ │
│ │ Security options ---> │ │
│ │ -*- Cryptographic API ---> │ │
│ │ Library routines ---> │ │
│ │ Kernel hacking ---> │ │
│ │ Gentoo Linux ---> │ │
│ │ │ │
│ │
Gentoo Linux ---> Generic Driver Options ---> [*] Gentoo Linux support [*] Linux dynamic and persistent device naming (userspace devfs) support [*] Select options required by Portage features Support for init systems, system and service managers ---> [*] OpenRC, runit and other script based systems and managers [*] systemd
app-admin/mcelog for some logs
emerge --ask sys-apps/usbutils
Device Drivers ---> [*] PCI support ---> [*] PCI Express Port Bus support [*] PCI Express Hotplug driver [*] Support for PCI Hotplug ---> [*] ACPI PCI Hotplug driver
Device Drivers --> Sound card support --> Advanced Linux Sound Architecture --> USB sound devices --> <*> USB Audio/MIDI driver
make && make modules_install
make install
nano -w /etc/fstab
nano -w /etc/conf.d/hostname
nano -w /etc/conf.d/net
dns_domain_lo="homenetwork"
emerge --ask --noreplace net-misc/netifrc
nano -w /etc/conf.d/net
config_eth0="192.168.0.2 netmask 255.255.255.0 brd 192.168.0.255" routes_eth0="default via 192.168.0.1"
config_eth0="dhcp"
cd /etc/init.d
ln -s net.lo net.eth0
rc-update add net.eth0 default
nano -w /etc/hosts
127.0.0.1 tux.homenetwork tux localhost
passwd
nano -w /etc/rc.conf
nano -w /etc/conf.d/keymaps
nano -w /etc/conf.d/hwclock
emerge --ask net-wireless/iw net-wireless/wpa_supplicant
emerge --ask net-misc/dhcpcd
emerge --ask app-admin/sysklogd
rc-update add sysklogd default
mount efi to /boot/efi
cp /boot/vmlinuz-5.15.23-gentoo /boot/efi/EFI/BOOT/gentoo.efi
efibootmgr --create --disk /dev/nvme0n1 --part 1 --label "Gentoo " --loader "/boot/efi/EFI/BOOT/gentoo.efi"
for initrd
efibootmgr -c -d /dev/sda -p 2 -L "Gentoo" -l "\efi\boot\bootx64.efi" initrd='\initramfs-genkernel-amd64-4.9.16-gentoo'
Comments
Post a Comment