/!\ Attention attention, je vous préviens c'est du brute de décoffrage celle là ^^ c'est un fichier texte que j'avais fait à l'époque où j'utilisais Gentoo Linux. Il faut donc le mettre en forme :)

## T0MuX Gentoo Install # 28/04/16 08:40 ##

Boot USB

Partitionnement

mount /dev/sda1 /mnt/gentoo/mnt cd /mnt/gentoo

links https://www.gentoo.org/downloads/mirrors/ → download stage3

tar xvjpf stage3-* –xattrs

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

MAKEOPTS="-j5"

mirrorselect -i -o » /mnt/gentoo/etc/portage/make.conf OU BIEN recopier ancien make.conf

mkdir /mnt/gentoo/etc/portage/repos.conf

cp /mnt/gentoo/usr/share/portage/config/repos.conf /mnt/gentoo/etc/portage/repos.conf/gentoo.conf

nano -w /mnt/gentoo/etc/portage/repos.conf/gentoo.conf SHOULD BE [gentoo]

      location = /usr/portage
        sync-type = rsync
        sync-uri = rsync://rsync.gentoo.org/gentoo-portage
        auto-sync = yes

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

#CHROOT mount -t 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

chroot /mnt/gentoo /bin/bash source /etc/profile export PS1=“(chroot) $PS1”

emerge-webrsync facultatif : emerge –sync (rajouter –quiet sur vieux pc)

eselect profile list eselect profile set NUMERO

emerge –ask –update –deep –newuse @world (et boom grosse compilation)

# si besoin info /usr/portage/profiles/use.desc

ls /usr/share/zoneinfo echo “Europe/Paris” > /etc/timezone

emerge –config sys-libs/timezone-data

nano -w /etc/locale.gen

fr_FR UTF-8
fr_FR@euro ISO-8859-15

locale-gen eselect locale list eselect locale set NUM env-update && source /etc/profile && export PS1=“(chroot) $PS1”

emerge –ask sys-kernel/gentoo-sources ls -l /usr/src/linux # MANUAL WAY emerge –ask sys-apps/pciutils cd /usr/src/linux && make menuconfig activer : Device Drivers / Generic Driver Options / Maintain a devtmpfs file system to mount at /dev activer : File systems / ext3 ext4 + ceux necessaires activer : Pseudo File systems / /proc & Virtual memory file system support activer : Processor type and features / Symmetric multi-procesing support (pour multicore) activer : Device Drivers / HID Devices / USB Human…. activer : Processor types / EFI runtime service support & EFI stub support

  Firmware Driver / EFI variable support via sysfs

make && make modules_install make install

#SI EFI mkdir -p /boot/efi/boot cp /boot/vmlinuz-* /boot/efi/boot/bootx64.efi

emerge –ask sys-kernel/genkernel genkernel –install initramfs

#AUTO WAY emerge –ask sys-kernel/genkernel genkernel all

emerge –ask sys-kernel/linux-firmware SI BESOIN par certain materiel

#fstab nano -w /etc/fstab

nano -w /etc/conf.d/hostname

hostname="host"

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"

OU BIEN config_eth0=“dhcp”

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

passwd nano -w /etc/rc.conf (verifier) nano -w /etc/conf.d/keymaps nano -w /etc/conf.d/hwclock

emerge –ask app-admin/sysklogd rc-update add sysklogd default

OPTION emerge –ask sys-apps/mlocate (indexation) OPTION SSH rc-update add sshd default

emerge –ask net-misc/dhcpcd

#GRUB emerge –ask sys-boot/grub:2 (bios+efi) echo GRUB_PLATFORMS=“efi-64” » /etc/portage/make.conf BIOS grub2-install /dev/sda EFI grub2-install –target=x86_64-efi –efi-directory=/boot grub2-mkconfig -o /boot/grub/grub.cfg

OPTION emerge –ask sys-boot/efibootmgr

efibootmgr --create --disk /dev/sda --part 2 --label "Gentoo" --loader "\efi\boot\bootx64.efi"
efibootmgr -c -d /dev/sda -p 2 -L "Gentoo" -l "\efi\boot\bootx64.efi" initrd='\initramfs-genkernel-amd64-3.16.5-gentoo'

REBOOT

exit cd umount -l /mnt/gentoo/dev{/shm,/pts,} umount /mnt/gentoo{/boot,/sys,/proc,} reboot

useradd -m -G users,wheel,audio,video,portage,cdrom,usb -s /bin/bash t0mux passwd t0mux

rm /stage3*

## TMP GENTOO 1) créer /etc/portage/env/notmpfs.conf

PORTAGE_TMPDIR="/var/tmp/notmpfs"

2) créer /etc/portage/package.env

app-office/libreoffice notmpfs.conf
www-client/firefox

## DEPOT LOCAL 1) mkdir /usr/local/portage 2) Ajouter ces lignes à /etc/portage/repos.conf/gentoo.conf [local] location = /usr/local/portage priority = 10 masters = gentoo auto-sync = yes 3) sudo mkdir -p /usr/local/portage/metadata 4) sudo nano /usr/local/portage/metadata/layout.conf → ajouter la ligne suivante masters = gentoo

## AJOUT PAQUET AU DEPOT LOCAL - deps : repoman 1) télécharger le paquet et l'extraire, par exemple, ici /usr/local/portage/x11-misc/oblogout 2) cd /usr/local/portage/x11-misc/oblogout 3) sudo repoman manifest SI 404 : - mettre archive ici /usr/portage/distfiles + chown portage:portage

  1. ou bien modifier le .ebuild avec la bonne URL

/!\ faire attention de bien mettre tous les fichiers

## Overlay Layman manuel → ajouter ces lignes à /etc/portage/repos.conf/gentoo.conf [cyberfox-overlay] location = /usr/local/cyberfox sync-type = git sync-uri = https://github.com/logicoftekk/Cyberfox-Overlay.git clone-depth = 0 auto-sync = yes priority = 60 # higher than layman

## Suite maj GGC / pb compilation revdep-rebuild –library 'libstdc++\.so\.5'