Cobra MK III
Můj nový počítač
2022.12.18 - Cobra-Mk3 - SkypeSR
2022.12.18 05:11:25 Cobra-Mk3 gentoo Gilhad

1   Partitions + FS

  • 15 - 107GB NVM-SkypeSR
  • 16 - 53.7GB NVM-SkypeSR-SWAP
fdisk /dev/nvme0n1
n
(Enter=part.no 15)
(Enter=first sec. 1396944896)
+100M
n
(Enter=part.no 16)
(Enter=first sec. 1606660096)
+50M
t
(Enter=part.no 16)
19 ('Linux swap')
w
parted  /dev/nvme0n1 name 15 NVM-SkypeSR
parted  /dev/nvme0n1 name 16 NVM-SkypeSR-SWAP
mkfs.ext4 -L NVM-SkypeSR /dev/nvme0n1p15
mkswap /dev/nvme0n1p16
swapon /dev/nvme0n1p16

Kontrola:

parted  /dev/nvme0n1 print

Model: Unknown (unknown)
Disk /dev/nvme0n1: 1000GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:

Number  Start   End     Size    File system     Name                          Flags
 1      1049kB  106MB   105MB   fat32           EFIboot                       boot, esp
 2      106MB   53.8GB  53.7GB  linux-swap(v1)  SWAP
 3      53.8GB  107GB   53.7GB  ext4            SYSTEM
 4      107GB   161GB   53.7GB  ext4            SYSTEM-BCK
 5      161GB   215GB   53.7GB  ntfs            w10                           msftdata
 6      215GB   215GB   4096B                   MS-picovina
 7      215GB   215GB   16.8MB                  Microsoft reserved partition  msftres
 8      215GB   223GB   8590MB  ntfs            MS-picovina                   msftdata
 9      223GB   232GB   8590MB                  MS-picovina                   msftdata
10      232GB   286GB   53.7GB  ext4            NVM-TeachMePCB
11      286GB   393GB   107GB   ext4            NVM-SHARED
12      393GB   500GB   107GB   ext4            NVM-devAVR
13      500GB   608GB   107GB   ext4            NVM-devOolite
14      608GB   715GB   107GB   ext4            NVM-devRHM
15      715GB   823GB   107GB                   NVM-SkypeSR
16      823GB   876GB   53.7GB                  NVM-SkypeSR-SWAP

fdisk -l /dev/nvme0n1
Disk /dev/nvme0n1: 931.53 GiB, 1000204886016 bytes, 1953525168 sectors
Disk model: Viper M.2 VP4100
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 37A33C18-76C9-8C46-9708-385EE791F953

Device               Start        End   Sectors  Size Type
/dev/nvme0n1p1        2048     206847    204800  100M EFI System
/dev/nvme0n1p2      206848  105064447 104857600   50G Linux swap
/dev/nvme0n1p3   105064448  209922047 104857600   50G Linux filesystem
/dev/nvme0n1p4   209922048  314779647 104857600   50G Linux filesystem
/dev/nvme0n1p5   314779648  419637247 104857600   50G Microsoft basic data
/dev/nvme0n1p6   419637248  419637255         8    4K Linux filesystem
/dev/nvme0n1p7   419639296  419672063     32768   16M Microsoft reserved
/dev/nvme0n1p8   419672064  436449279  16777216    8G Microsoft basic data
/dev/nvme0n1p9   436449280  453226495  16777216    8G Microsoft basic data
/dev/nvme0n1p10  453226496  558084095 104857600   50G Linux filesystem
/dev/nvme0n1p11  558084096  767799295 209715200  100G Linux filesystem
/dev/nvme0n1p12  767799296  977514495 209715200  100G Linux filesystem
/dev/nvme0n1p13  977514496 1187229695 209715200  100G Linux filesystem
/dev/nvme0n1p14 1187229696 1396944895 209715200  100G Linux filesystem
/dev/nvme0n1p15 1396944896 1606660095 209715200  100G Linux filesystem
/dev/nvme0n1p16 1606660096 1711517695 104857600   50G Linux swap

2   Mounting the root partition

mount /dev/nvme0n1p15 /mnt/gentoo/
cd /mnt/gentoo
>~NVM-SkypeSR
echo "NVM-SkypeSR - system pro Skype a Shadowrun a DuoLingo" >README

3   Downloading the stage tarball

cd /mnt/gentoo
links https://www.gentoo.org/downloads/mirrors/
### or
wget https://mirror.bytemark.co.uk/gentoo/releases/amd64/autobuilds/current-stage3-amd64-openrc/stage3-amd64-openrc-20221211T170150Z.tar.xz{.DIGESTS,.CONTENTS.gz,.asc,.sha256,}
### anyway:
sha512sum stage3-amd64-*.tar.xz
1b0d4d14ac76bfe17f8a99c4b4d05fa38a5ac4290a2914580ec162e65cb63746cad3d941c6c7f12f697fef9d183fed5af4e2c5e04fce08b50d6dc2f5019ebb8d  stage3-amd64-openrc-20221211T170150Z.tar.xz
grep 1b0d4d14ac76bfe17f8a99c4b4d05fa38a5ac4290a2914580ec162e65cb63746cad3d941c6c7f12f697fef9d183fed5af4e2c5e04fce08b50d6dc2f5019ebb8d stage3-amd64*.DIGESTS
1b0d4d14ac76bfe17f8a99c4b4d05fa38a5ac4290a2914580ec162e65cb63746cad3d941c6c7f12f697fef9d183fed5af4e2c5e04fce08b50d6dc2f5019ebb8d  stage3-amd64-openrc-20221211T170150Z.tar.xz

# or newer
for ext in .tar.xz .tar.xz.DIGESTS .tar.xz.CONTENTS.gz .tar.xz.asc .tar.xz.sha256; do
        wget https://mirror.bytemark.co.uk/gentoo/releases/amd64/autobuilds/current-stage3-amd64-openrc/stage3-amd64-openrc-20230307T201702Z$ext;
done

### or openssl dgst -r -whirlpool stage3-amd64-*.tar.xz
### dtto stage3-amd64-*.tar.xz.CONTENTS
### gpg --verify stage3-amd64-*.xz{.DIGESTS,.asc,}
tar xpf stage3-*.tar.xz --xattrs-include='*.*' --numeric-owner

4   Configuring compile options

Předně využiju možnosti podadresářů v /etcp/portage a to i pro make.conf, následně budu dávat konfigurace jednotlivých "hlavních programů" do souborů s odpovídajícími jmény. Konfigurace si dám sem už předem, aby se různé USE a podobně neměnily průběžně a pak nebyly různé verze programů a knihoven a nemuselo se toho kompilovat pořád dokola - stejně to nakonec projedu s --empty-tree pro jistotu, ale i tak si nastavím spoustu věcí "do foroty"

mv etc/portage/make.conf etc/portage/00-make.conf
mkdir etc/portage/make.conf
mv etc/portage/00-make.conf etc/portage/make.conf

cat >>etc/portage/make.conf/00-make.conf
PORTDIR="/var/db/repos/gentoo"
DISTDIR="/var/cache/distfiles"
PKGDIR="/var/cache/binpkgs"


L10N="en"
#PYTHON_TARGETS="python2_7 python3_6 python3_7"
#PYTHON_TARGETS="python2_7 python3_6 python3_7"
#PYTHON_SINGLE_TARGET="python3_6"
# 2023 - ??? python3_8 ???

#MAKEOPTS="-j26 "
#MAKEOPTS="-j36 -l80"
#FEATURES="${FEATURES} parallel-fetch"

##### Alt++ settings
PORTAGE_RSYNC_EXTRA_OPTS="--info=stats0"
MAKEOPTS="-j24 -l"
EMERGE_DEFAULT_OPTS="--jobs  --load-average "
PORTAGE_NICENESS=19
#PORTAGE_IONICE_COMMAND="ionice -c 3 -p \${PID}"
FEATURES="${FEATURES} -merge-sync parallel-fetch -parallel-install -ebuild-locks"
## FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs config-protect-if-modified distlocks fixlafiles ipc-sandbox multilib-strict network-sandbox news parallel-fetch parallel-install pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"

5   Selecting mirrors

mirrorselect -i -o >> /mnt/gentoo/etc/portage/make.conf/01-mirrors
### or
echo 'GENTOO_MIRRORS="http://ftp.fi.muni.cz/pub/linux/gentoo/ http://gentoo.ussg.indiana.edu/ http://gentoo.cs.utah.edu/"' >> /mnt/gentoo/etc/portage/make.conf/01-mirrors

6   Oblibene USE

cat >>/mnt/gentoo/etc/portage/make.conf/02-USE <<EOF
USE="\$USE -xdg"        # je to zrudnost
USE="\$USE -zeroconf"   # je to zrudnost
USE="\$USE -subversion" # nechci ani v gitu
USE="\$USE -ipv6"       # nepouzivame
USE="\$USE mysql"       # nase hlavni db
USE="\$USE -berkleydb"  # nepouzivame
USE="\$USE webp"        # protoze se to siri jak mor
USE="\$USE X"   # Xka asi chceme
USE="\$USE -libglvnd"   # asi nechceme
USE="\$USE -pulseaudio" # nechci pulseaudio
USE="\$USE mp3 vorbis"
USE="\$USE lm-sensors"
USE="\$USE -filecaps"   # asi nechci
USE="\$USE -nullok -passwdqc"   # novy check na komplexitu hesel
EOF

cat >>/mnt/gentoo/etc/portage/make.conf/debianutils <<EOF
USE="\$USE -installkernel"      # nechci instalivate kernel prez "make install", kopiruju bzImage rucne bez magie
USE="\$USE logrotate -anacron"  # rotuju prez logrotate, anacron nepouzivam
EOF

7   Gentoo ebuild repository

mkdir --parents /mnt/gentoo/var/db/repos/gentoo
mkdir --parents /mnt/gentoo/etc/portage/repos.conf
cp /mnt/gentoo/usr/share/portage/config/repos.conf /mnt/gentoo/etc/portage/repos.conf/gentoo.conf

bomb Bacha, pokud by se měnilo PORTDIR, je potřeba to změnit i tady

8   Giltoo ebuild repository

cat >>/mnt/gentoo/etc/portage/repos.conf/GilToo-gilhad-repo <<EOF
[GilToo-gilhad-repo]
location = /var/db/repos/GilToo-gilhad-repo
sync-type = rsync
sync-uri = rsync://giltoo.gilhad.cz/GilToo-gilhad-repo/portage
auto-sync = yes
EOF

9   Copy DNS info

cp --dereference /etc/resolv.conf /mnt/gentoo/etc/

10   Mounting the necessary filesystems

mount --types proc /proc /mnt/gentoo/proc
mount --rbind /sys /mnt/gentoo/sys
mount --rbind /dev /mnt/gentoo/dev

chroot /mnt/gentoo /bin/bash

### TED JSME CHROOTNUTI

source /etc/profile
export PS1="(chroot) ${PS1}"


df -h  /
# Filesystem      Size  Used Avail Use% Mounted on
# /dev/nvme0n1p3   49G  1.6G   45G   4% /

11   Updating the Gentoo ebuild repository

(chroot) livecd / # emerge --sync --quiet

 * IMPORTANT: 12 news items need reading for repository 'gentoo'.
 * Use eselect news read to view new items.

(chroot) livecd / # eselect news list
News items:
  [1]   N  2018.08.07  Migration required for OpenSSH with LDAP
  [2]   N  2019.05.23  Change of ACCEPT_LICENSE default
  [3]   N  2020.06.23  sys-libs/pam-1.4.0 upgrade
  [4]   N  2021.01.30  New OpenRC Display Manager Initializer Scripts
  [5]   N  2021.07.20  Perl 5.34 upgrade now stable
  [6]   N  2021.09.29  Possible failure to preserve libraries
  [7]   N  2021.10.08  OpenSSH RSA SHA-1 signatures
  [8]   N  2021.10.18  migrating from glibc[crypt] to libxcrypt in stable
  [9]   N  2021.10.24  netifrc DHCP client
  [10]  N  2022.04.19  Migration to sys-apps/systemd-utils
  [11]  N  2022.11.21  systemd-tmpfiles --clean enabled by default
  [12]  N  2022.12.27  Introduction of app-alternatives ebuilds
(chroot) livecd / # eselect news read

Note:

The old 'xdm' init script is no longer supported and henceforth removed from x11-base/xorg-server-1.20.10-r1, so it is imperative that you switch from xdm to display-manager service in default runlevel:

# rc-update del xdm default # rc-update add display-manager default

[1] To make this change now, and proceed with this news item already, stable users would need to add the following entries to /etc/portage/package.accept_keywords [3] and update @world:

~sys-apps/sysvinit-2.98 ~x11-apps/xinit-1.4.1 ~x11-base/xorg-server-1.20.10 ~gui-libs/display-manager-init-1.0

[2] https://wiki.gentoo.org/wiki/Display_manager [3] https://wiki.gentoo.org/wiki//etc/portage/package.accept_keywords

12   Choosing the right profile

eselect profile list
#eselect profile set

13   Emerging git

echo "dev-vcs/git        -blksha1 -cgi -curl -gpg -safe-directory -subversion -webdav                 # iconv nls pcre perl" >>/etc/portage/package.use/git
emerge -avq --load-average=50 --jobs=30 dev-vcs/git
cd /etc/
git config --global user.email "gilhad@seznam.cz"
git config --global user.name "root"
git config --global init.defaultBranch master
git init
git add -A
git rm --cached  portage/package.use/git portage/make.conf/01-mirrors.giltoo portage/repos.conf/GilToo-gilhad-repo portage/make.conf/02-USE portage/make.conf/debianutils
git commit -am "uplny zacatek"
git add portage/package.use/git
git commit -am "+git"
cd /

14   Emerging gilhad-box/cobra-box-base

echo 'GENTOO_MIRRORS="http://gilhad-repo.giltoo.gilhad.cz $GENTOO_MIRRORS"' >> /etc/portage/make.conf/01-mirrors.giltoo
echo "gilhad-box" >> /etc/portage/categories
emerge --sync GilToo-gilhad-repo
emerge -avq gilhad-box/cobra-box-base
cd /etc
git add portage/make.conf/01-mirrors.giltoo portage/repos.conf/GilToo-gilhad-repo
git commit -am "+giltoo"
cd /

15   Aplikace cobra-box-base

bomb POZOR - tohle provedeme ze STARÉHO systému, pod rootem, v MC * věci z /mnt/gentoo/usr/share/cobra-box-base/copy nakopírujeme do /mnt/gentoo/ (a prostě tím přepíšeme všechno) * věci z /mnt/gentoo/usr/share/cobra-box-base/ cpeme do /mnt/gentoo/ pomocí vimdiff-u a upravujeme podle potřeby (fstab a tak) * passwd a group nekopírujeme vůbec, jsou jen pro inspiraci * fstab - upravit root a swap (a pojmenování partitions)

bomb POZOR - vrátíme se do chrootu

cd /etc
git diff
git add -A
git commit -am "+ cobra-box-base/copy"
cd /
emerge --config sys-libs/timezone-data
locale-gen
env-update && source /etc/profile && export PS1="(chroot) ${PS1}"

stěžuje si to, že !!! Section 'crossdev' in repos.conf has location attribute set to nonexistent directory: '/var/db/repos/portage-crossdev' to budu řešit až s případným crossdev

bash: warning: setlocale: LC_CTYPE: cannot change locale (cs_CZ.UTF8): No such file or directory to jsou imho nějaké knihovny (glibc-i18n glibc) a pomine za chvíli samo, až si je systém dotáhne

15.1   Rebuild @world

@world
je set obsahující world (/var/lib/portage/world), system a profile

Teď by se měl updatnout základní systém, ale protože už jsem nastavil např. X, tak se bude dotahovat těch věcí víc

cd /etc
git add portage/make.conf/02-USE portage/make.conf/debianutils
git commit -am "+world"
cd
git init
echo .lesshst >>.gitignore
echo .bash_history>>.gitignore
git add -A
git commit -am "+git"
cd /

emerge --sync --quiet
emerge --ask --verbose --update --deep --newuse @world -q --load-average=50 --jobs=20
### or without limits
emerge --ask --verbose --update --deep --newuse @world -q --load-average --jobs

16   Další detaily (timezone, locale, ...)

většinou ošetřené přez cobra-box-base

emerge --ask --verbose --update --deep --newuse -q --load-average --jobs -N sys-kernel/gentoo-sources sys-apps/pciutils sys-boot/efibootmgr

emerge -avq sys-kernel/linux-firmware

17   GPU

https://wiki.gentoo.org/wiki/AMDGPU a v /etc/portage/savedconfig/sys-kernel/linux-firmware-20200421 jde nastavit, co se má stahovat

mkdir /etc/portage/package.license
# echo -e "sys-kernel/linux-firmware\tlinux-fw-redistributable no-source-code" >>/etc/portage/package.license/GPU
emerge -avq sys-kernel/linux-firmware
 * Messages for package sys-kernel/linux-firmware-20200421:

 * Your configuration for sys-kernel/linux-firmware-20200421 has been saved in
 * "/etc/portage/savedconfig/sys-kernel/linux-firmware-20200421" 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.

# echo "x11-drivers/xf86-video-amdgpu udev" >> /etc/portage/package.use/GPU
# echo "x11-libs/libdrm video_cards_radeon" >> /etc/portage/package.use/GPU
# echo 'VIDEO_CARDS="amdgpu radeonsi"' >>/etc/portage/make.conf/GPU

18   UEFI

https://wiki.gentoo.org/wiki/Efibootmgr potřebuje NLS ISO 8859-1 a vypnutý EFI mixed-mode support

emerge -avq sys-boot/efibootmgr
mount | grep efivars # must be RW otherwise try somthing like
# mount -o remount,rw -t efivarfs efivarfs /sys/firmware/efi/efivars
efibootmgr -v # just list entries for fun :)

19   kernel

emerge --ask --verbose --update --deep --newuse  -q --load-average --jobs -N sys-kernel/gentoo-sources sys-apps/pciutils
lspci
ls -al /usr/src/
cd /usr/src/linux
make menuconfig
Nastavení kernelu

Sensor driver: X570 boards (no WMI interface - use nct6775 driver instead)

(root=/dev/nvme0n1p15) Built-in kernel command string - podle skutecne partisny root (resume=/dev/nvme0n1p16) Built-in kernel command string - podle skutecne partisny swap

Processor type and features  --->
  [*] Symmetric multi-processing support
  [ ] Support for extended (non-PC) x86 platforms
  [*] AMD ACPI2Platform devices support
  Processor family (Generic-x86-64)
  [*] Machine Check / overheating reporting
  [ ]   Intel MCE Features
  [*]   AMD MCE Features
  [*] CPU microcode loading support
    [ ]   Intel microcode loading support
    [*]   AMD microcode loading support
  Performance monitoring  --->
     < > Intel ***
     <*> AMD Processor Power Reporting Mechanism
  [*] Multi-core scheduler support
  [ ] Numa Memory Allocation and Scheduler Support
  -*- MTRR (Memory Type Range Register) support
  [*] EFI runtime service support
  [*]   EFI stub support
  [ ]     EFI mixed-mode support
  [*] Built-in kernel command line
  (root=/dev/nvme0n1p15 net.ifnames=0 vga=ask amdgpu.gpu_recovery=1 amdgpu.lockup_timeout=3000 resume=/dev/nvme0n1p16) Built-in kernel command string

Power management and ACPI options  --->
  CPU Frequency scaling  --->
    Default CPUFreq governor (ondemand)  --->
    <*>   ACPI Processor P-States driver
    <*>   AMD frequency sensitivity feedback powersave bias

Firmware Drivers  --->
  EFI (Extensible Firmware Interface) Support  --->
    <*> EFI Variable Support via sysfs

Binary Emulations  --->
   [*] IA32 Emulation

Device Drivers --->
  NVME Support  --->
    <*> NVM Express block device
  I2C support  --->
    <*>   I2C device interface
    I2C Hardware Bus support  --->
      <M> AMD ***
      < > Intel ***
  Graphics support  --->
    <*> Direct Rendering Manager (XFree86 4.1.0 and higher DRI support)  --->
      [*]   Enable legacy fbdev support for your modesetting driver
    < > ATI Radeon
    <*> AMD GPU
    [ ]   Enable amdgpu support for SI parts
    [ ]   Enable amdgpu support for CIK parts
    ACP (Audio CoProcessor) Configuration  --->
      [ ] Enable AMD Audio CoProcessor IP support
      Display Engine Configuration  --->
        [*] AMD DC - Enable new display engine
        [*] DCN 2.0 family
    < > Intel 8xx/9xx/G3x/G4x/HD Graphics
     Console display driver support  --->
       (160) Initial number of console screen columns (def 80)
       (64) Initial number of console screen rows (def 25)
  <*> Sound card support  --->
    <*>   Advanced Linux Sound Architecture  --->
      HD-Audio  --->
        <*> Build Realtek HD-audio codec support
      (2048) Pre-allocated buffer size for HD-audio driver (def 64)
      [ ]   USB sound devices  ----
      [ ]   PCMCIA sound devices  ----
      < >   ALSA for SoC audio support  ----
      [ ]   X86 sound devices  ----
  Generic Driver Options --->
    [*] Maintain a devtmpfs filesystem to mount at /dev
    [*]   Automount devtmpfs at /dev, after the kernel mounted the rootfs
    Firmware loader  --->
      Build named firmware blobs into the kernel binary
        amdgpu/navi10_asd.bin amdgpu/navi10_ce.bin amdgpu/navi10_gpu_info.bin amdgpu/navi10_me.bin amdgpu/navi10_mec2.bin amdgpu/navi10_mec.bin amdgpu/navi10_pfp.bin amdgpu/navi10_rlc.bin amdgpu/navi10_sdma1.bin amdgpu/navi10_sdma.bin amdgpu/navi10_smc.bin amdgpu/navi10_sos.bin amdgpu/navi10_vcn.bin
      (/lib/firmware) Firmware blobs root directory
  Hardware Monitoring support --->
     <*>   AMD Family 10h+ temperature sensor
     <*>   Nuvoton NCT6775F and compatibles
  Input device support  --->
    <*>   Mouse interface
    <*>   Joystick interface
  HID support  --->
    -*- HID bus support
    <*>   Generic HID driver
      USB HID support  --->
        <*> USB HID transport layer
  [*] USB support  --->
    <*>     xHCI HCD (USB 3.0) support
    <*>     EHCI HCD (USB 2.0) support
    <*>     OHCI HCD (USB 1.1) support
  [*] IOMMU Hardware Support  --->
    [*]   AMD IOMMU support
    <*>     AMD IOMMU Version 2 driver
  [ ] X86 Platform Specific Device Drivers  ----

-*- Enable the block layer --->
   Partition Types --->
      [*] Advanced partition selection
      [*] EFI GUID Partition support

File systems --->
  Pseudo Filesystems --->
      [*] /proc file system support
      [*] Tmpfs virtual memory file system support (former shm fs)
  Native Language support --->
      [*] NLS ISO 8859-1  (Latin 1; Western European Languages)

Otázka na tělo, které fs potřebujeme? (ext3/ext4 viz Formátování. ) Plus co navíc? VFAT pro USB (a jiné diskety), NTFS je potřeba dělat přez FUSE pomocí sys-fs/ntfs3g viz https://wiki.gentoo.org/wiki/NTFS

File systems --->
  < > Second extended fs support
  < > The Extended 3 (ext3) filesystem
  <*> The Extended 4 (ext4) filesystem
    [*]   Use ext4 for ext2 file systems
    [*]   Ext4 POSIX Access Control Lists
    [*]   Ext4 Security Labels
    [ ]   Ext4 debugging support
  < > Reiserfs support
  < > JFS filesystem support
  < > XFS filesystem support
  < > Btrfs filesystem support
  <*> FUSE (Filesystem in Userspace) support
  DOS/FAT/NT Filesystems  --->
    <*> MSDOS fs support
    <*> VFAT (Windows-95) fs support
    < > NTFS file system support
  CD-ROM/DVD Filesystems --->
    <*> UDF file system support

20   AMD microcode

potřebuje sys-kernel/linux-firmware

emerge --ask sys-kernel/linux-firmware
grep -F -m 1 "cpu family" /proc/cpuinfo|uniq
### cpu family : 23 == 0x17 == 17h

        Processor type and features  --->
          [*] CPU microcode loading support
          [ ]   Intel microcode patch loading support
          [*]   AMD microcode patch loading support
        Device Drivers  --->
          Generic Driver Options
            (amd-ucode/microcode_amd_fam17h.bin) External firmware blobs to build into the kernel binary
              (/lib/firmware) Firmware blobs root directory

21   Mounting the boot partition (pro kernel)

(chroot) livecd / # mount /dev/nvme0n1p1 /boot/

(chroot) livecd / # df -h  /boot
Filesystem      Size  Used Avail Use% Mounted on
/dev/nvme0n1p1   99M   512   99M   1% /boot

22   Compiling kernel

make -j 26
make modules_install
efibootmgr      # zjistit, zda tam je NVM-Gentoo-NVM-SkypeSR a zda je na pozici Boot0000B, pokud ano, tak ho smazat
# efibootmgr -B -b 000B
mkdir -p /boot/EFI/'Gentoo-NVM-SkypeSR' # or any other name under /boot/EFI
cp /usr/src/linux/arch/x86/boot/bzImage /boot/EFI/'Gentoo-NVM-SkypeSR'/bzImage.efi
efibootmgr -b 000B -c -L "NVM-Gentoo-NVM-SkypeSR" -l '\EFI\Gentoo-NVM-SkypeSR\bzImage.efi' -d /dev/nvme0n1p1

23   Nějak mě to už nebaví a potřebuju s tím pohnout ....

passwd
exit
mount|grep /mnt/gentoo|sed "s/^[^ ]* on \([^ ]*\) type .*/umount \1/" | sort -r
efibootmgr -n 000B
reboot

reboot a uvidíme .....

useradd mkdir /SHARED

xauth: file /home/gilhad/.Xauthority does not exist

gemerge -avqn media-fonts/font-misc-misc media-fonts/encodings media-fonts/font-util media-fonts/urw-fonts media-fonts/font-alias media-fonts/liberation-fonts # pro urxvt

gemerge -avq \<sys-fs/fuse-3 # Krita
wget https://mirror.karneval.cz/pub/kde/stable/krita/5.1.5/krita-5.1.5-x86_64.appimage

24   Důležité fixy a změny

24.1   Čeština

  • XkbLayout nově neobsahuje XkbVariant, takže se musí uvádět zvlášť
  • XkbOptions grp:shift_toggle se nově píše jako grp:shiftS_toggle s s
diff --git a/X11/xorg.conf.d/10-evdev.conf b/X11/xorg.conf.d/10-evdev.conf
index 9a6941b..aabc975 100644
--- a/X11/xorg.conf.d/10-evdev.conf
+++ b/X11/xorg.conf.d/10-evdev.conf
@@ -15,8 +15,10 @@ Section "InputClass"
         Identifier "evdev keyboard catchall"
         MatchIsKeyboard "on"
         MatchDevicePath "/dev/input/event*"
-       Option          "XkbLayout"     "us,cz_qwerty"
-       Option          "XkbOptions"    "grp:shift_toggle,grp_led:scroll,keypad:pointerkeys,terminate:ctrl_alt_bksp"
+       Option          "XkbLayout"     "us,cz"
+       Option          "XkbVariant"    ",qwerty"
+       Option          "XkbOptions"    "grp:shifts_toggle,grp_led:scroll,keypad:pointerkeys,terminate:ctrl_alt_bksp"
        Driver "evdev"
 EndSection

24.2   evdev

  • aby si nestěžovala, tak musí být v INPUT_DEVICES
cat >>/mnt/gentoo/etc/portage/make.conf/evdev <<EOF
INPUT_DEVICES="\$INPUT_DEVICES evdev"
EOF