I have an ArchLinux box and I tried to run distccd. However, it was found out that Arch's distccd could not handle request from Gentoo box. Virtual machines worked but they were an overkill for this job. Currently I'm using chrooted environment to run Gentoo's GCC tool chain. These instructions should work on Ubuntu boxes as well. The trick is to download gentoo stage 3 tarball and portage snaps..