files/gentoo-install.txt

61 lines
2.0 KiB
Plaintext

# Josh's Gentoo Install Guide
# Last Updated 2017-05-03; last run May 2017
network: [modprobe], [/etc/init.d/net.eth0 start]
date MMDDhhmmYYYY
[/etc/init.d/sshd start; passwd; screen] # ssh in, screen -xr to remote setup
fdisk/parted, mkfs.ext4, mkswap, swapon
mount root [,boot] [,home]
cd /mnt/gentoo
links http://www.gentoo.org/main/en/mirrors.xml; #get stage3*bz2
tar -xvjpf stage3-*.tar.bz2 --xattrs --numeric-owner
vim /mnt/gentoo/etc/portage/make.conf
mkdir /mnt/gentoo/etc/portage/repos.conf
cp -L /etc/resolv.conf /mnt/gentoo/etc
mount -t proc proc /mnt/gentoo/proc
mount --rbind /sys /mnt/gentoo/sys # also for /dev
cd /; chroot /mnt/gentoo /bin/bash
source /etc/profile
emerge-webrsync
[emerge --sync]
eselect profile list; eselect profile set N
[emerge --ask --update --newuse @world]
echo "America/Detroit" > /etc/timezone
emerge --config sys-libs/timezone-data
vim /etc/locale.gen # uncomment en_US*
locale-gen
eselect locale list; eselect locale set N
env-update && source /etc/profile
emerge -av gentoo-sources [genkernel]
[genkernel all]
# cd /usr/src/linux
# make menuconfig
# make && make modules_install
# cp arch/x86_64/boot/bzImage .config /boot
vim /etc/fstab
vim /etc/conf.d/hostname
vim /etc/conf.d/net # config_eth0="dhcp"
cd /etc/init.d; ln -s net.lo net.eth0
vim /etc/hosts # add hostname after localhost
vim /etc/rc.conf
vim /etc/conf.d/hwclock
emerge -av syslog-ng cronie grub [mlocate] [dhcpcd] [vim]
vim /etc/etc-update.conf # remove those pesky -i's
[cd /etc/init.d; ln -s net.lo net.eth1] # if you have a second NIC
rc-update show -v
rc-update add net.eno1 default
rc-update add syslog-ng default
rc-update add cronie default
[rc-update add numlock default]
[rc-update add sshd default] # if you want remote access
grub-install /dev/sda
grub-mkconfig -o /boot/grub/grub.cfg
useradd john
passwd
passwd john
vim /etc/group
[emerge -auvDN world; etc-update] # or update later
exit
cd /; umount -R /mnt/gentoo
reboot