distcc must be removed from startup /etc/distcc/hosts must be cleared /usr/portage/distfiles/ must be cleared /var/tmp/portage must be cleared rm /etc/ssh/ssh_host* comment out distcc and makeopts in make.conf (sed?) rc-update del distccd default rm /etc/distcc/hosts touch /etc/distcc/hosts rm -rf /usr/portage/distfiles/* rm -rf /var/tmp/portage/* rm /etc/ssh/ssh_host* Notes; ntp, vixie-cron, syslog-ng, dhcpcd, vim, and various gentoo utilities are all installed, as well as distcc. The system is up to date with portage and current build flags, which were inserted for a minimal headless system. visudo, vipw, vigr....vim is now the preferred system editor. /etc/profile will have to be edited if nano is preferred If you want to see what I installed: cat /var/lib/portage/world pi user is in wheel, wheel can sudo without password There is no root password. pi:raspberry (same as Raspbian) so.... take filesystem out remove extra lines from sshd_config tar up build new card with 3Gb space cp stage 4 over create image test mkfs.vfat -F 16 /dev/sdb1 mkswap /dev/sdb2 mkfs.ext4 /dev/sdb3 tar -cvjf ~gundo/raspberry_pi/gentoo/stage4-gentoo-pi-02-02-2016.tar.bz2 Device Boot Start End Sectors Size Id Type /dev/sdb1 2048 133119 131072 64M c W95 FAT32 (LBA) /dev/sdb2 133120 657407 524288 256M 82 Linux swap / Solaris /dev/sdb3 657408 6948863 6291456 4G 83 Linux # tar -xvjpf stage4.tar.bz2 mount /dev/sdb3 /mnt/gentoo mkdir /mnt/gentoo/boot mount /dev/sdb1 /mnt/gentoo/boot dd if=/dev/sdb bs=1M of=gentoo.img daddario mnt # !df df -i Filesystem Inodes IUsed IFree IUse% Mounted on /dev/sda4 2170880 785886 1384994 37% / udev 220369 453 219916 1% /dev tmpfs 221415 457 220958 1% /run shm 221415 1 221414 1% /dev/shm cgroup_root 221415 4 221411 1% /sys/fs/cgroup /dev/sda2 32768 362 32406 2% /boot 192.168.1.20:/mnt/home 3104097958 10779201 3093318757 1% /home /dev/sdb3 465120 264036 201084 57% /mnt/gentoo /dev/sdb3 262144 262144 0 100% /mnt/gentoo dd if=/dev/sdb bs=1M count=3600 | gzip -c > gentoo-pi-02-02-2016.img.gz # BUILD NOTES 46 tar xfpj stage3-armv6j_hardfp-20160128.tar.bz2 -C /mnt/gentoo/ 47 wget http://distfiles.gentoo.org/snapshots/portage-latest.tar.bz2 48 tar xjf portage-latest.tar.bz2 -C /mnt/gentoo/usr 49 git clone --depth 1 git://github.com/raspberrypi/firmware/ 50 cd firmware/boot 51 cp * /mnt/gentoo/boot/ 52 ls 53 ls overlays/ 54 cp -r ../modules /mnt/gentoo/lib/ 55 vi /mnt/gentoo/etc/fstab 56 vi /mnt/gentoo/boot/cmdline.txt 57 ls /mnt/gentoo/usr/share/zoneinfo 58 cp /mnt/gentoo//usr/share/zoneinfo/CST6CDT /mnt/gentoo/etc/localtime 59 echo CST6CDT > /mnt/gentoo/etc/timezone 60 cd /mnt/gentoo/etc emerge -agKuDN world PORTAGE_BINHOST="http://gentoo.gundo.com/packages" # accept all licenses ACCEPT_LICENSE="*" https://github.com/TheChymera/mkstage4 http://www.tutorials.chymera.eu/blog/2014/05/18/mkstage4-stage4-tarballs-made-easy/ How to make swap on the fly fallocate -l 1g moreswap mkswap moreswap chmod 600 moreswap swapon moreswap