Advantages using Gentoo

After using several Linux distributions, it hard for me to find one suit me well, I have been using openSUSE TW for about two years, it is an excellent system, help me and take care of all the miscellaneous. But when I started getting involved with Linux Kernel, I would like to try some interesting features like the musl libc and no-multilib system, and it is easy to customize my own system from kernel to software. If a want a feature I can tell the system I need it and recompile the software, of course other system can do that too, but Gentoo offers the most convenient way to do such thing through it’s “USE flag”. ...

July 4, 2023 · 1 min · hengist

Gentoo Install

I. Prepare Disk #disk wipe sgdisk --zap-all /dev/sda #partition disk cfdisk -z /dev/sda mkfs.vfat -F 32 /dev/sda1 mkfs.btrfs/ext4/xfs/.... /dev/sda3 mkswap /dev/sda2 swapon /dev/sda2 #then mount them II. Installing stage3 Download the stage3 from Gentoo’s website and put it in the /mnt/gentoo # unpack it tar xpvf stage3-*.tar.xz --xattrs-include='*.*' --numeric-owner # get the portage config from my own git repo # and set fstab genfstab -U /mnt/gentoo >> /mnt/gentoo/etc/fstab # then config repos.conf: 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 # Copy DNS info cp --dereference /etc/resolv.conf /mnt/gentoo/etc/ # Mounting the necessary filesystems mount --types proc /proc /mnt/gentoo/proc mount --rbind /sys /mnt/gentoo/sys mount --make-rslave /mnt/gentoo/sys mount --rbind /dev /mnt/gentoo/dev mount --make-rslave /mnt/gentoo/dev mount --bind /run /mnt/gentoo/run mount --make-slave /mnt/gentoo/run # chroot chroot /mnt/gentoo /bin/bash source /etc/profile export PS1="(chroot) ${PS1}" # make sure all partition are mounted correct emerge --sync #set profle eselect profile list eselect profile set X # config ccache before this step emerge -auvDN --with-bdeps=y --autounmask-write @world add ccache ...

July 2, 2023 · 2 min · hengist