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
| 📘 Manual: Managing Python with Update-Alternatives | |
| The update-alternatives tool creates, removes, maintains, and displays information about the symbolic links comprising the Debian alternatives system. | |
| 1. Register Python Versions (Setup) | |
| Before you can switch between versions, you must register them as "alternatives" for the python3 command. The number at the end represents the priority (higher numbers have higher priority in "auto" mode). | |
| Bash | |
| # Register Python 3.10 (Standard Ubuntu 22.04) | |
| sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.10 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
| Latency Tuning Summary: ethtool & Beyond | |
| You have successfully moved both machines from "Efficiency Mode" (High Latency) to "Formula 1 Mode" (Lowest Jitter). Here is the breakdown of the transformation. | |
| 1. Performance at Defaults | |
| By default, Ubuntu and your hardware use Interrupt Coalescing and ASPM Power Management. This is designed to save electricity and reduce CPU heat, but it is the enemy of low-latency networking. | |
| Behavior: The NIC waits to "bundle" packets before telling the CPU. This creates the "batching" effect you saw. | |
| Latency Result: Your "Loaded High" latency was spiking between 250ms and 999ms under load. |
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
| ou have successfully purged the actual cuDNN 8 runtime, freeing up a massive 1.1 GB of space. Your dpkg list shows that your system is now correctly populated with cuDNN 9.17 components. | |
| To finish the cleanup, you just need to remove the "ghost" configuration package for the old repository that is still showing as ii (installed). | |
| 1. Final cuDNN Cleanup | |
| Run this to remove the metadata package for the 8.x repository: | |
| Bash | |
| sudo apt-get purge cudnn-local-repo-ubuntu2204-8.9.7.29 |
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
| Get the cuda 12.8 runfile and install and get cudnn cuDNN , for CUDA 12.x | |
| And any newer geforce driver or use the cuda driver. Also get the video codec sdk. | |
| Links: | |
| https://developer.nvidia.com/cudnn-archive | |
| https://developer.nvidia.com/cuda-12-8-1-download-archive | |
| https://developer.nvidia.com/rdp/cudnn-archive | |
| https://developer.nvidia.com/downloads/designworks/video-codec-sdk/secure/13.0.19/video_codec_sdk_13.0.19.zip |
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
| #!/bin/sh | |
| echo "Linux Info:" ;\ | |
| echo "" ;\ | |
| echo "kernel info:" ;\ | |
| uname -a ;\ | |
| echo "" ;\ | |
| echo "Distro info:" ;\ | |
| lsb_release -a ;\ | |
| echo "" ;\ | |
| echo "Gnome version:" ;\ |
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
| 0. sudo apt-get install ./docker-desktop-amd64.deb | |
| 1. gpg --generate-key | |
| 2. Enter your dev name and dev email | |
| 3. pass init [16-number-alphanumber-string]-[40-number-string] | |
| 4. If this does not work restart and try this step again | |
| systemctl --user stop docker-desktop |
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
| #!/bin/bash | |
| # This script converts a Dockerfile into a local build script for Ubuntu 24.04. | |
| # It installs necessary dependencies, clones repositories, builds VMAF and FFmpeg | |
| # with CUDA support, and performs a test conversion and VMAF analysis. | |
| # IMPORTANT PREREQUISITES: | |
| # 1. NVIDIA GPU: Ensure you have a compatible NVIDIA GPU. | |
| # 2. NVIDIA Drivers: Ensure NVIDIA proprietary drivers are correctly installed on your system. | |
| # You can typically install them using `sudo ubuntu-drivers autoinstall`. |
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
| #!/bin/bash | |
| #---------------------- | |
| export LD_LIBRARY_PATH="/usr/local/lib:$/usr/local/cuda-12.8/lib64:/usr/local/cuda-12.8/targets/x86_64-linux/lib:${LD_LIBRARY_PATH}" | |
| /lib64/ld-linux-x86-64.so.2 --help | |
| echo "You can do this:" | |
| echo "sudo nano /etc/ld.so.conf" |
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
| #!/bin/bash | |
| export PKG_CONFIG_PATH="/usr/lib/x86_64-linux-gnu/pkgconfig:/usr/lib/pkgconfig:/usr/share/pkgconfig" | |
| export LIBRARY_PATH="/etc/ld.so.conf.d:/usr/local/lib:/usr/local/cuda-12.8/lib64:/usr/local/cuda-12.8/targets/x86_64-linux/lib" | |
| export CUDA_PATH="/usr/local/cuda-12.8" | |
| export PATH="${CUDA_PATH}/bin:${PATH}" | |
| export LD_LIBRARY_PATH="/usr/local/lib:${CUDA_PATH}/lib64:${CUDA_PATH}/targets/x86_64-linux/lib:${LD_LIBRARY_PATH}" | |
| sudo bash -c "echo '${CUDA_PATH}/lib64/stubs/' > /etc/ld.so.conf.d/cuda-stubs.conf" | |
| sudo bash -c "echo '/usr/local/lib' > /etc/ld.so.conf.d/vmaf-local.conf" # Explicitly add /usr/local/lib |
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
| #ffmpeg_vmaf_cuda_build_script_hw.sh | |
| #!/bin/bash | |
| # This script converts a Dockerfile into a local build script for Ubuntu 24.04. | |
| # It installs necessary dependencies, clones repositories, builds VMAF and FFmpeg | |
| # with CUDA support, and performs a test conversion and VMAF analysis. | |
| # IMPORTANT PREREQUISITES: | |
| # 1. NVIDIA GPU: Ensure you have a compatible NVIDIA GPU. | |
| # 2. NVIDIA Drivers: Ensure NVIDIA proprietary drivers are correctly installed on your system. |
NewerOlder