如何获得一个干净的 gnome 开发环境?
- 下载 stage3-amd64-systemd-xxxxxxxx.tar.bz2
eselect profile set default/linux/amd64/17.0/desktop/gnome/systemd (stable)
- /etc/portage/make.conf #0
- 台式机,有线网络
- OS:Gentoo
- CPU:Intel Haswell i7
CFLAGS="-march=haswell -O2 -pipe"
CXXFLAGS="${CFLAGS}"
MAKEOPTS="-j9"
CHOST="x86_64-pc-linux-gnu"
USE="systemd wayland gtk gtk3 truetype jpeg png branding -tracker -nautilus -emoji -networkmanager -http -ldap -nls -doc -cups -wifi -bluetooth -consolekit -kde -qt -qt4 -qt5"
CPU_FLAGS_X86="aes avx avx2 fma3 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3"
ACCEPT_LICENSE="-* @FREE"
ACCEPT_KEYWORDS="amd64"
VIDEO_CARDS="intel"
INPUT_DEVICES="evdev"
LINGUAS="en_US.UTF-8"
PORTAGE_TMPDIR='/tmp'
GENTOO_MIRRORS="https://mirrors.ustc.edu.cn/gentoo"
BUILD_PREFIX='/tmp/portage'
PORTDIR="/usr/portage"
DISTDIR="${PORTDIR}/distfiles"
PKGDIR="${PORTDIR}/packages"
PORTAGE_ELOG_CLASSES="info warn error log qa"
PORTAGE_ELOG_SYSTEM="save"
ABI_X86="64"
FEATURES="-xattr"
LLVM_TARGETS="X86"
GRUB_PLATFORMS="efi-64"
- /etc/portage/make.conf #1
- MacBook Pro,无线网络
- OS:Gentoo
- CPU:Intel Haswell i7
CFLAGS="-march=haswell -O2 -pipe"
CXXFLAGS="${CFLAGS}"
MAKEOPTS="-j8"
CHOST="x86_64-pc-linux-gnu"
USE="systemd -tracker -nautilus -emoji -http -ldap -nls -doc -cups -consolekit -kde -qt -qt4 -qt5"
# wayland gtk gtk3 truetype jpeg png branding
CPU_FLAGS_X86="aes avx avx2 fma3 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3"
ACCEPT_LICENSE="-* @FREE"
ACCEPT_KEYWORDS="amd64"
VIDEO_CARDS="intel"
INPUT_DEVICES="evdev synaptics"
LINGUAS="en_US.UTF-8"
PORTAGE_TMPDIR='/tmp'
GENTOO_MIRRORS="https://mirrors.ustc.edu.cn/gentoo"
BUILD_PREFIX='/tmp/portage'
PORTDIR="/usr/portage"
DISTDIR="${PORTDIR}/distfiles"
PKGDIR="${PORTDIR}/packages"
PORTAGE_ELOG_CLASSES="info warn error log qa"
PORTAGE_ELOG_SYSTEM="save"
ABI_X86="64"
FEATURES="-xattr"
LLVM_TARGETS="X86"
GRUB_PLATFORMS="efi-64"
- 安装 gnome-light
- systemctl enable gdm
- 卸载 tracker nautilus nautilus-tracker-tags gnome-online-accounts
- USE 添加 -tracker -nautilus -emoji -kde -qt -qt4 -qt5
- emerge -q -uDN --with-bdeps=y @world && emerge -c
- 安装桌面定制工具 gnome-tweak-tool
至此将得到一个最小化的 gnome 环境——极致简约、极限定制
[可选]tips: distcc
两端均需安装 distcc
之后服务端执行:
systemctl daemon-reload
systemctl start distccd
客户端执执行:
/usr/bin/distcc-config --set-hosts "192.168.1.7 192.168.1.8 192.168.1.9"
第一个主机地址,必须是客户端自身(如示例中的 192.168.1.7)
HADEX_ FROM HELL.