LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Gentoo (https://www.linuxquestions.org/questions/gentoo-87/)
-   -   Wireless Networked Gentoo OS - Challenges to Create a Fully Functional System (https://www.linuxquestions.org/questions/gentoo-87/wireless-networked-gentoo-os-challenges-to-create-a-fully-functional-system-4175722177/)

haf1zoglu 02-18-2023 04:23 PM

Wireless Networked Gentoo OS - Challenges to Create a Fully Functional System
 
Hi all,

I wanted to share my recent success with you all. It has taken me almost three months of persistence and effort, but I have finally completed a fully functional Gentoo operating system on my laptop, complete with wireless networking.

I owe my success to the helpful and informative sources that I have found along the way. I would like to share these with you in case they can be of use to others who are embarking on a similar journey:

[Insert list of sources that you found helpful]

I hope that my experience can serve as encouragement for others who are struggling to set up their own Gentoo systems. :idea: Persistence and hard work do pay off in the end!




https://wiki.gentoo.org/wiki/Handboo...allation/About
https://forums.gentoo.org/index.php
https://wiki.archlinux.org/title/iwd


Here is the commands i have used maybe someone can take advantage of it.

Command history that i have used:

Code:


parted -a optimal /dev/sda

mklabel gpt

unit mib

mkpart primary 1 3

mkpart primary 3 131

mkpart primary 131 8100

mkpart primary 8100 -1

name 1 grub

name 2 boot

name 3 swap

name 4 rootfs

set 1 bios_grub on

set 2 boot on

quit

mkfs.vfat /dev/sda1
mkfs.vfat /dev/sda2
mkfs.ext4 /dev/sda4
mkswap /dev/sda3
swapon /dev/sda3

mount /dev/sda4 /mnt/gentoo
cd /mnt/gentoo
ls
links https://www.gentoo.org/downloads/

---http://gentoo.mirrors.tera-byte.com/releases/amd64/autobuilds/20230212T161657Z/

---stage3-amd64-openrc-20230212T161657Z.tar.xz 

tar xpvf stage3-amd64-openrc-20230212T161657Z.tar.xz --xattrs-include='*.*' --numeric-owner


nano -w /mnt/gentoo/etc/portage/make.conf

COMMON_FLAGS="-march=native -O2 -pipe"

mirrorselect -i -o >> /mnt/gentoo/etc/portage/make.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



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



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 /mnt/gentoo /bin/bash
source /etc/profile
export PS1="(chroot) ${PS1}"

emerge-webrsync

emerge --sync

emerge --sync --quiet

eselect profile list


eselect profile set 2

emerge --ask --verbose --update --deep --newuse @world



nano -w /etc/portage/make.conf

USE="-gtk -gnome qt5 kde dvd alsa cdr"

ACCEPT_LICENSE="*"



emerge --ask app-portage/cpuid2cpuflags

ls /usr/share/zoneinfo


echo "Europe/Brussels" > /etc/timezone

emerge --config sys-libs/timezone-data


nano -w /etc/locale.gen

locale-gen

eselect locale list

eselect locale set 9


env-update && source /etc/profile && export PS1="(chroot) ${PS1}"


emerge --ask sys-kernel/linux-firmware

emerge --ask sys-kernel/gentoo-sources

eselect kernel list

eselect kernel set 1

emerge --ask sys-kernel/genkernel

genkernel all


nano /etc/fstab

/dev/sda2  /boot        vfat    defaults    0 2
/dev/sda3  none        swap    sw                  0 0
/dev/sda4  /            ext4    noatime              0 1

echo gentoo1 > /etc/hostname

emerge --ask net-misc/dhcpcd


rc-update add dhcpcd default
rc-service dhcpcd start


emerge --ask --noreplace net-misc/netifrc


nano /etc/conf.d/net


config_eth0="wlo1"


cd /etc/init.d
ln -s net.lo net.wlo1
rc-update add net.wlo1 default


nano /etc/hosts


# This defines the current system and must be set
127.0.0.1    tux.homenetwork tux localhost
 
# Optional definition of extra systems on the network
192.168.0.5  jenny.homenetwork jenny
192.168.0.6  benny.homenetwork benny


passwd

emerge --ask e2fsprogs

emerge --ask dosfstools

emerge --ask app-admin/sysklogd

rc-update add sysklogd default


emerge --ask net-misc/dhcpcd

emerge --ask net-wireless/iw net-wireless/wpa_supplicant

echo 'GRUB_PLATFORMS="efi-64"' >> /etc/portage/make.conf

emerge --ask sys-boot/grub

emerge --ask --update --newuse --verbose sys-boot/grub:2

grub-install --target=x86_64-efi --efi-directory=/boot


grub-mkconfig -o /boot/grub/grub.cfg

exit
cd
umount -l /mnt/gentoo/dev{/shm,/pts,}
umount -R /mnt/gentoo
reboot

remaining Milesones,

install desktop environment.


All times are GMT -5. The time now is 03:04 PM.