标签:ctr window share http pac amp ase tips lsa
零、使用 Git 源
mkdir /etc/portage/repos.conf cd !$ vi gentoo.conf
[DEFAULT] main-repo = gentoo [gentoo] location = /usr/portage sync-type = git sync-uri = git://anongit.gentoo.org/repo/gentoo.git auto-sync = yes
rm -rf /usr/portage/*
eix-sync
一、Gentoo openRC风格随机启动脚本
二、SSD调优
# <fs> <mountpoint> <type> <opts> <dump/pass> /home/f/Downloads/portage /usr/portage none bind 0 0
tmpfs /tmp tmpfs defaults,noatime,mode=1777 0 0 tmpfs /var/tmp tmpfs defaults,noatime,mode=1777 0 0
#!/bin/bash export XDG_CACHE_HOME="/tmp/${USER}/.cache"
rc-update add psd default
OR:
systemctl enable psd
三、systemd关闭ctrl+alt+delete三键重启功能
四、Some Tips
五、emerge
六、/etc/portage/make.conf
# Please consult /usr/share/portage/config/make.conf.example for a more detailed example. CFLAGS="-march=haswell -O2 -pipe" #-march=native CXXFLAGS="${CFLAGS}" CHOST="x86_64-pc-linux-gnu" MAKEOPTS="-j9" USE="X gtk dbus truetype jpeg -systemd -consolekit -networkmanager -multilib -sound -alsa -oss -wifi -bluetooth -gnome -kde -qt4 -qt5 -cups -experimental" CPU_FLAGS_X86="avx2 ..." PORTDIR="/usr/portage" DISTDIR="${PORTDIR}/distfiles" PKGDIR="${PORTDIR}/packages" PORTAGE_TMPDIR="/tmp" ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="-* @FREE" GENTOO_MIRRORS="https://mirrors.tuna.tsinghua.edu.cn/gentoo/" GRUB_PLATFORMS="efi-64" LANGUAS="en_US.utf8" ABI_X86="64" VIDEO_CARDS="intel" QEMU_SOFTMMU_TARGETS="x86_64" QEMU_USER_TARGETS="x86_64"
七、内核配置文件
见:https://i.cnblogs.com/Files.aspx
八、可选的系统初始化
#开启 8GB 大頁内存(2MB × 4096) echo 4096 > /proc/sys/vm/nr_hugepages #指定磁盘的 I/O 調度器 #echo deadline > /sys/block/sdb/queue/scheduler
标签:ctr window share http pac amp ase tips lsa
原文地址:http://www.cnblogs.com/hadex/p/5808562.html