summaryrefslogtreecommitdiff
path: root/cs/Gentoo/index.md
diff options
context:
space:
mode:
authornic <ra@afu.re>2025-05-05 10:59:25 -0400
committernic <ra@afu.re>2025-05-05 10:59:25 -0400
commit21ae09ada9d367994b3a00c14bce5836a806b899 (patch)
tree7572094d84b9c185245c84d3dea90e39932e7dcc /cs/Gentoo/index.md
parent0567d6cd88c593b7d69df371a9804fa384c4b5d6 (diff)
Auto from nzxt - Mon 05 May 2025 10:59:25 AM EDT
Diffstat (limited to 'cs/Gentoo/index.md')
-rw-r--r--cs/Gentoo/index.md67
1 files changed, 67 insertions, 0 deletions
diff --git a/cs/Gentoo/index.md b/cs/Gentoo/index.md
new file mode 100644
index 0000000..fb50ed8
--- /dev/null
+++ b/cs/Gentoo/index.md
@@ -0,0 +1,67 @@
+
+[[Installation]]
+
+[[Userland]]
+
+[[Qemu]]
+
+[[Custom Ebuild Repo]]
+
+[[Kernel]]
+
+
+what is /var/cache/distfiles/...
+eclean-dist -dp
+
+
+all batteries info in /sys/class/power_supply
+
+
+# fix mpv from segfault
+- For information, I will repeat here the workaround, it may help for others :
+- emerge app-portage/cpuid2cpuflags
+- launch cpuid2cpuflags
+- create a var CPU_FLAGS_X86 containing the output of this command in your /etc/portage/make.conf
+- re emerge media-video/ffmpeg
+
+
+
+
+
+
+# bashrc portage - run post hook
+
+mkdir -p /etc/portage/postinst.d/
+chmod 755 /etc/portage/postinst.d/
+
+
+
+vim /etc/portage/bashrc
+#!/bin/bash
+
+POSTINST_BASE="/etc/portage/postinst.d/"
+
+post_pkg_postinst()
+{
+ local POSTINST_SCRIPT
+
+ if [[ "x${CATEGORY}" == "xvirtual" ]']
+ then
+ return 0
+ fi
+
+ for POSTINST_SCRIPT in ${POSTINST_BASE%/}/{all,${CATEGORY}/{${P}-${PR},${P},${PN}}{:$SLOT},}}
+ do
+ if [[ -x "${POSTINST_SCRIPT}" ]']
+ then
+ einfo "Running post-installation script ${POSTINST_SCRIPT} ..."
+ "${POSTINST_SCRIPT}"
+ fi
+ done
+}
+
+then put script in
+/etc/portage/postinst.d/sys-kernel/gentoo-kernel-bin
+(with a shebang and make it executable)
+chmod +x
+script will be run as root - set -eu on top script ???