# Wipe the drive and create a fresh GPT table with a single EFI partition
# (Using sgdisk for non-interactive precision)
sudo sgdisk --zap-all /dev/sdg
sudo sgdisk --new=1:0:0 --typecode=1:ef00 /dev/sdg
# Format the partition as FAT32 (MS-DOS)
# Macs expect the EFI loader on a standard FAT32 filesystem.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| awk 'BEGIN { for(i=1; i<=7; i++) { n=2^i; print "PARAMETER num_ctx " n*1024 } }' |
Beware! The NVIDIA 590 Driver...
Replace nvidia-dkms with extra/nvidia-open-dkms?
# [~]
# daryl@nifflheim $ lspci | grep NVIDIA
01:00.0 VGA compatible controller: NVIDIA Corporation GM206 [GeForce GTX 960] (rev a1)You get the idea...
.bash_profileevaluated once at login, but sets up the non-interactive trapBASH_ENVforces non-interactive shells to source instead of skip sourcing upon init- You can source the watchguard again at the end of
~/.bashrcto catch interactive-shell
BONUS
Assuming you have the appropriate patches and had DKMS working...
0001-Fix-conftest-to-ignore-implicit-function-declaration.patch
0002-Fix-conftest-to-use-a-short-wchar_t.patch
0003-Fix-conftest-to-use-nv_drm_gem_vmap-which-has-the-se.patch
nvidia-470xx-fix-gcc-15.patch
kernel-6.10.patch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| squeeze -> gcc 4.6.1 (kernel linux-image-2.6.32-5) | |
| wheezy -> gcc 4.8.4 (kernel linux-image-3.2.78-1) | |
| jessie -> gcc 4.9.2 (kernel linux-image-3.16.56-1) | |
| stretch -> gcc 5.3 (kernel linux-image-4.9.228-1) | |
| buster -> gcc 5.5 (kernel linux-image-4.19.249-1) | |
| bullseye -> gcc 10 (kernel linux-image-5.10.223-1) | |
| bookworm -> gcc 11 (kernel linux-image-6.1.148-1) | |
| trixie -> gcc 12 (kernel linux-image-6.12.43-1) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Ensure tmux is storing history properly | |
| HISTFILE=~/.bash_history | |
| export HISTCONTROL=ignoredups:erasedups,ignoreboth | |
| if [ -n "$TMUX" ]; then | |
| HISTFILE=$(mktemp) | |
| history -r ~/.bash_history | |
| trap 'history -a ~/.bash_history; rm "$HISTFILE"' EXIT | |
| else | |
| trap 'history -a ~/.bash_history' EXIT | |
| fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function uvgit(){ | |
| repo=$(echo "${1}" | rev | cut -d'/' -f -1 | rev) | |
| echo "Installing $repo found at ${1}" | |
| uv tool install "git+${1}#egg=${repo}" | |
| } |
NewerOlder