aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xcompile/tmux.sh31
-rwxr-xr-xdistro/el912
2 files changed, 42 insertions, 1 deletions
diff --git a/compile/tmux.sh b/compile/tmux.sh
new file mode 100755
index 0000000..cfe2830
--- /dev/null
+++ b/compile/tmux.sh
@@ -0,0 +1,31 @@
+#!/bin/sh
+# on rhel 9: yum install libevent-devel ncurses-devel
+if [ "$(id -u)" -eq 0 ] ; then
+ echo "Run as a regular user"
+ exit 1
+fi
+nproc=1
+case "$(uname)" in
+Darwin|OpenBSD) nproc="$(sysctl -n hw.ncpu)" ;;
+Linux) nproc="$(nproc)" ;;
+esac
+set -ex
+codedir="${CODEDIR:-$HOME/.local/src}"
+src=https://github.com/tmux/tmux
+pkgdir="${codedir}/tmux"
+
+if ! [ -d "$pkgdir" ] ; then
+ git clone "$src" "$pkgdir"
+fi
+
+cd "$pkgdir"
+git checkout cc117b5048f77a4842820f8ebbe3a86e5c077224
+git reset --hard HEAD
+git clean -fdx .
+sh autogen.sh
+./configure --prefix="$HOME/.local/opt/tmux"
+make -j"$nproc"
+make install
+cd -
+
+echo 'add ~/.local/opt/tmux/bin to your $PATH'
diff --git a/distro/el9 b/distro/el9
index 51036d7..ad9d1d1 100755
--- a/distro/el9
+++ b/distro/el9
@@ -1,6 +1,7 @@
#!/bin/sh
ROCM_ENALBE=NO
NVIDIA_ENABLE=NO
+THUNDERBOLT=NO
if [ "$(id -u)" -eq 0 ] ; then
echo "Run as a normal user"
exit 1
@@ -32,6 +33,7 @@ sudo yum -y install \
buildah \
chromium \
cifs-utils \
+ ddcutil \
evince \
evolution \
evolution-ews \
@@ -63,6 +65,7 @@ sudo yum -y install \
pass \
pass-otp \
pavucontrol \
+ pcsc-lite-devel \
podman \
pv \
pwgen \
@@ -81,7 +84,6 @@ sudo yum -y install \
xkill \
xsetroot \
zstd \
- pcsc-lite-devel \
# https://rpmfusion.org/Configuration
@@ -112,6 +114,14 @@ sudo sh -c 'echo "options v4l2loopback devices=3 video_nr=10,11,12 card_label=\"
flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo
flatpak install -y flathub com.obsproject.Studio
+if [ "$THUNDERBOLT" = "YES" ] ; then
+sudo sh -c 'cat > /etc/udev/rules.d/99-removable.rules <<EOF
+# /etc/udev/rules.d/99-removable.rules
+ACTION=="add", SUBSYSTEM=="thunderbolt", ATTR{authorized}=="0", ATTR{authorized}="1"
+EOF'
+fi
+
+
if lspci | grep -qi 'vga.*amd.*navi' && [ $ROCM_ENALBE = YES ] ; then
# https://rocm.docs.amd.com/projects/install-on-linux/en/latest/tutorial/quick-start.html
sudo crb enable