Gentoo Installation Little Notes

Source: Internet
Author: User

# Disk Plan # Reference, actual only in existing partition installation Test/EFIEFI/BOOTVFAT/EXT2 # Detach boot, EFI partition for BIOS & UEFI shared boot partition/EXT4/HOMEEXT4/USREXT4 # detach U SR, used to migrate to a smaller SSD after verification #/varext4 # swapswap# Download stage3 && Verify by Sha512sumtar XVJPF stage3-*.tar.bz2- -xattrs # p 、--xattrs option to keep the original permissions #/etc/portage/make.conf#cflags= "-march=native-o2-pipe" #CXXFLAGS = "${cflags}"
#MAKEOPTS = "-j3" # Select Repo Mirrorsmirrorselect-i-o >>/mnt/gentoo/etc/portage/make.confmkdir/mnt/gentoo/etc /portage/repos.confcp/mnt/gentoo/usr/share/portage/config/repos.conf/mnt/gentoo/etc/portage/repos.conf/ gentoo.conf#/etc/resolv.confcp-l/etc/resolv.conf/mnt/gentoo/etc/# Mount all dir && chroot to New Envmount/dev /SDB4/MNT/GENTOOMOUNT/DEV/SDB3/MNT/GENTOO/BOOTMOUNT-T proc Proc/mnt/gentoo/procmount--rbind/sys/mnt/gentoo/ Sysmount--make-rslave/mnt/gentoo/sysmount--rbind/dev/mnt/gentoo/devmount--make-rslave/mnt/gentoo/devchroot/mnt /gentoo/bin/bash#source/etc/profile#ps1= "(chroot) $PS 1" # Config Portageemerge-webrsyncemerge--sync# Select Profileeselect profile List/set#emerge--ask--update--deep--newuse @world # Config use/etc/portage/make.conf# config Ti Me Areaecho "Asia/shanghai" >/etc/timezoneemerge--config sys-libs/timezone-data# config language support/etc/ Locale.gen &/etc/env.d/02localelocale-geneselect Locale list/set# CompLie kernel # OPENRC,VM, file system: Ext2, Ext4, VFAT, Ntfsemerge--ask sys-kernel/gentoo-sources#emerge--ask sys-apps/ Pciutilscd/usr/src/linuxmake menuconfigmake && make modules_installmake installmkdir-p/boot/efi/boot# official content CP /boot/vmlinuz-*/boot/efi/boot/bootx64.efi# Create Initramfsemerge--ask sys-kernel/genkernel# use to create Initramfs File or Auto compile kernelgenkernel--install initramfs# install grub2emerge--ask sys-boot/grub:2# Mbrgrub2-install/dev /sdaecho grub_platforms= "efi-64" >>/etc/portage/make.conf# uefiemerge--ask sys-boot/grub:2#emerge--ask-- Update--newuse--verbose--ask sys-boot/grub:2grub2-install--target=x86_64-efi--efi-directory=/bootgrub2-mkconfig -o/boot/grub/grub.cfg# Config init env/etc/fstab/etc/conf.d/hostname/etc/conf.d/net# Set config_eth0= && Routes_eth0=ln-s net.lo net.eth0rc-update Add Net.eth0 default#/etc/rc.conf#/etc/conf.d/keymaps#/etc/conf.d/hwclock # Sys Tools "*syslogd *dhcpcd cronie mlocate ..." #emerge--ask Sys-keRnel/linux-firmwareemerge--ask app-admin/sysklogd# syslogrc-update add sysklogd defaultemerge--ask net-misc/ Dhcpcdemerge--ask--noreplace net-misc/netifrc# net toolsemerge--ask sys-apps/pcmciautils# Exit && reboot to New Os#umount-l/mnt/gentoo/dev{/shm,/pts,} #umount/mnt/gentoo{/boot,/sys,/proc,} #reboot

# References:
Https://wiki.gentoo.org/wiki/Handbook:AMD64/Full/Installation
http://www.jinbuguo.com/kernel/longterm-3_10-options.html # Kernel Options

Gentoo Installation Little Notes

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.