11/15/2026

Mac OS: disable the play/pause button on the preview icon

 

defaults write com.apple.finder QLInlinePreviewMinimumSupportedSize -int 512
killall Finder

7/13/2026

Ubuntu password set a short one, disable length check

sudo apt-get purge libpam-pwquality

 Then: sudo passwd <user name>

Don't use the Settings UI to change it because the UI will check the length too. 

6/14/2026

修复Firefox Android 打开Google经常卡住

Settings: Privacy and Security: DNS over HTTPS: Max Protection

4/28/2026

On Ubuntu 22.04/24.04, SAML authentication from GlobalProtect doesn't open the default browser

 The problem was that ~/.config/mimeapps.list doesn't have the correct setting for type text/html=. It should be set to text/html=microsoft-edge.desktop or your chosen browser.

4/13/2026

Ubuntu 24.04 installation on Surface Pro 9 & Surface Pro 11

 Issues:

    bluetooth: The bluetooth doesn't work after hibernation. The following steps nneed to be added:

        1. sudo emacs /lib/systemd/system-sleep/bt-lunar-fix

        2. Paste the following script:

#!/bin/sh

case $1 in

  post)

    echo "Resetting Bluetooth for Lunar Lake..."

    systemctl stop bluetooth

    modprobe -r btintel_pcie btintel bluetooth 2>/dev/null || true

    sleep 1

    modprobe btintel_pcie

    systemctl start bluetooth

    ;;

esac

        3. sudo chmod +x /lib/systemd/system-sleep/bt-lunar-fix

    hibernation: surface pro 9 hibernate won't shutdown completely on ubuntu 24.04. Need to add Adding specific kernel flags can force the hardware to respect power-off commands.

    Open the configuration: sudo nano /etc/default/grub.

    Find the line GRUB_CMDLINE_LINUX_DEFAULT.

    Append pci=hpiosize=0 to the existing parameters (e.g., GRUB_CMDLINE_LINUX_DEFAULT="quiet splash pci=hpiosize=0").

    Update GRUB: sudo update-grub and reboot.


    sogou pinyin: Should not install fcitx5. sudo apt purge fcitx5. Need to install fcitx.


    Grub: Adding GRUB_DISABLE_MEMTEST=true to /etc/default/grub and re-running sudo update-grub to remove the memtest from the grub selection menu.

12/21/2025

How do I install the NVIDIA drivers for RTX A6000 GPUs on Ubuntu 22.04?

 


How do I install the NVIDIA drivers for RTX A6000 GPUs on Ubuntu 22.04?

Installing NVIDIA drivers for the RTX A6000 on Ubuntu 22.04 requires a few key steps to ensure optimal performance and compatibility. The RTX A6000 is a powerful data center and workstation GPU, and proper driver installation is essential for machine learning, AI, and high-performance computing workloads.

Prerequisites

  • Ubuntu 22.04 LTS installed and updated (sudo apt update && sudo apt upgrade -y)
  • RTX A6000 GPU properly installed in the system
  • Internet connection for downloading drivers
  • Administrative (sudo) privileges

Step-by-Step Installation Guide

1. Disable Nouveau Drivers (Open-Source Alternative)

Nouveau drivers can conflict with NVIDIA's proprietary drivers. Disable them by running:

  1. Open a terminal and create a new blacklist file: sudo nano /etc/modprobe.d/blacklist-nouveau.conf
  2. Add these lines:
    blacklist nouveau
    options nouveau modeset=0
  3. Save the file (Ctrl+O, then Ctrl+X).
  4. Update the initramfs: sudo update-initramfs -u
  5. Reboot the system: sudo reboot

2. Install NVIDIA Drivers via Ubuntu Repository

The simplest method is using Ubuntu's built-in repository:

  1. Open a terminal and update the package list: sudo apt update
  2. Install the recommended NVIDIA driver (usually the latest stable version): sudo ubuntu-drivers autoinstall
  3. Alternatively, manually select a driver version: sudo apt install nvidia-driver-535 (replace 535 with the latest version)
  4. Reboot the system: sudo reboot

3. Verify Installation

After rebooting, confirm the driver is working:

  • Run nvidia-smi to check GPU status and driver version.
  • Check the NVIDIA settings panel: nvidia-settings.
  • Verify CUDA compatibility if needed: nvcc --version (requires CUDA Toolkit).

Alternative: Install Drivers from NVIDIA Website

For the latest drivers directly from NVIDIA:

  1. Visit NVIDIA's official driver download page and select the RTX A6000 and Linux 64-bit option.
  2. Download the .run file.
  3. Make it executable: chmod +x NVIDIA-Linux-x86_64-*.run
  4. Run the installer: sudo ./NVIDIA-Linux-x86_64-*.run
  5. Follow on-screen prompts and reboot.

Troubleshooting Tips

  • If the system boots to a black screen, try switching to a virtual terminal (Ctrl+Alt+F2) and reinstalling drivers.
  • Use sudo apt purge nvidia* to remove existing drivers before reinstalling.
  • Check logs for errors: dmesg | grep -i nvidia.

Following these steps ensures your RTX A6000 operates at peak performance on Ubuntu 22.04, whether for AI training, 3D rendering, or high-performance computing tasks.



3/17/2025

Ubuntu 22.04 won't upgrade to 6.8 kernal even after sudo apt install linux-generic-hwe-22.04 ran

If the Ubuntu 22.04 is stuck at 5.15 kernal, make sure the following setting is correct.

 It turned out that the Software & Updates need to subscribe to All Updates.