|-转 Debian system 白点问题 原因梳理 & 解决步骤一览
(给以后自己或同样用 i5-3470 / HD 2500 的人留一份速查表)
sudo nano /etc/default/grub
or
sudo subl /etc/default/grub
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash resume=/dev/disk/by-uuid/50e9ba9a-68ef-474a-8779-9c68c91e21f9"
改成
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash i915.enable_psr=0 i915.enable_dc=0 resume=/dev/disk/by-uuid/50e9ba9a-68ef-474a-8779-9c68c91e21f9"
保存后,在终端执行:
sudo update-grub
reboot
# 白点问题 原因梳理 & 解决步骤一览
(给以后自己或同样用 i5-3470 / HD 2500 的人留一份速查表)
---
## 一、现象定位
- **只在全新安装 Elive(内核 6.11)后出现**
- **静止画面(打字、看网页)也会随机闪白点**
- **换其他发行版或旧内核无此问题**
→ 排除硬件/线材,锁定 **内核新特性 vs 老显示器** 兼容 bug
---
## 二、技术根因
| 内核版本 | 默认行为 | 对老显示器影响 |
| --- | --- | --- |
| ≥ 6.8 | `i915.enable_psr=1`(自动) | 面板自刷新唤醒时信号跳变 → 白点/横线 |
| ≤ 6.1 | 默认关闭或保守探测 | 基本不触发 |
**PSR(Panel Self Refresh)**
= 屏幕静止时 GPU 停发像素流,显示器靠自带缓存刷新;
**IVB 世代显示器 EDID 汇报支持,但实际电路老化**,唤醒瞬间电压不稳 → 肉眼看到“白点”。
---
## 三、解决路线(按侵入性排序)
1. **临时验证**(内存级,立即生效,重启即回)
```bash...
|-转 windsurf Download instructions for deb-based Linux distributions (e.g. Ubuntu 20.04+, Debian 10+)
Download instructions for deb-based Linux distributions (e.g. Ubuntu 20.04+, Debian 10+)
1. Add the repository to sources.list.d
sudo apt-get install wget gpg wget -qO- "https://windsurf-stable.codeiumdata.com/wVxQEIWkwPUEAGf3/windsurf.gpg" | gpg --dearmor > windsurf-stable.gpg sudo install -D -o root -g root -m 644 windsurf-stable.gpg /etc/apt/keyrings/windsurf-stable.gpg echo "deb [arch=amd64 signed-by=/etc/apt/keyrings/windsurf-stable.gpg] https://windsurf-stable.codeiumdata.com/wVxQEIWkwPUEAGf3/apt stable main" | sudo tee /etc/apt/sources.list.d/windsurf.list > /dev/null rm -f windsurf-stable.gpg
2. Update ...
|-转 怎么在Debian12上安装CUDA12.6,我的显卡是支持的
怎么在Debian12上安装CUDA12.6,我的显卡是支持的
20250923 0502
Copilot said: 在Debian 12上安装CUDA 12.6,推荐采用 NVIDIA 官方的安装包。以下是详细步骤: ## 1. 检查显卡驱动兼容性 -
在Debian 12上安装CUDA 12.6,推荐采用 NVIDIA 官方的安装包。以下是详细步骤:
1. 检查显卡驱动兼容性
- 确认你的显卡支持 CUDA 12.6,可在NVIDIA 官方 CUDA 支持列表查询。
- 建议安装 NVIDIA 官方驱动(不要用 Debian 源自带的 nvidia-driver,版本可能较旧)。
2. 卸载旧驱动(如有)
sudo apt-get --purge remove "*nvidia*" sudo apt-get autoremove
3. 安装依赖
sudo apt update sudo apt install build-essential dkms sudo apt install linux-headers-$(uname -r)
4. 下载 CUDA 12.6 安装包
- 访问NVIDIA CUDA Toolkit Download
- 选择 Version CUDA 12.6 → Linux → x86_64 → Debian → 12 → Installer Type: deb (local)
- 获取下载链接,例如:
5. 安装 CUDA 12.6
sudo dpkg -i cuda-repo-debian12-12-6-local_12.6.0-1_amd64.deb sudo cp /var/cuda-repo-debian12-12-6-local/cuda-*-keyring.gpg /usr/share/keyrings/ sudo apt-get update sudo apt-get install cuda
6. 添加环境变量
在~/.bashrc或/etc/profile末尾添加:...
|-转 解决add-apt-repository: command not found
解决add-apt-repository: command not found
add-apt-repository 命令是software-properties-common包的一部分,因此安装这个包就OK了 ...
|-转 install OBS-STUDIO
sudo add-apt-repository ppa:obsproject/obs-studio sudo apt install obs-studio
20250923
解决add-apt-repository: command not found
add-apt-repository 命令是software-properties-common包的一部分,因此安装这个包就OK了
sudo apt-get install software-properties-common sudo apt-get update
20250923
if add-apt-repository: command not found
sudo apt-get install software-properties-common sudo apt-get update
sudo add-apt-repository ppa:obsproject/obs-studio sudo apt install obs-studio
20250923 1029
ERROR
sudo add-apt-repository ppa:obsproject/obs-studio sudo add-apt-repository ppa:obsproject/obs-studio Traceback (most recent call last): File "/usr/bin/add-apt-repository", line 362, in sys.exit(0 if addaptrepo.main() else 1) ^^^^^^^^^^^^^^^^^ File "/usr/bin/add-apt-repository", line 345, in main shortcut = handler(source, **shortcut_params) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/softwareproperties/shortcuts.py", line 40, in shortcut_handler return handler(shortcut, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 86, in __init__ if self.lpppa.publish_debug_symbols: ^^^^^^^^^^ File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 126, in lpppa self._lpppa = self.lpteam.getPPAByName(name=self.ppaname) ^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 113, in lpteam self._lpteam = self.lp.people(self.teamname) ^^^^^^^^^^^^^^ AttributeError: 'NoneType' object has no attribute 'people' /m/v/l/shell ❯❯❯
202050923 ...
|-转 Debian Install Flatpak
Install Flatpak
A flatpak package is available in Debian 10 (Buster) and newer. To install it, run the following as root:
sudo apt install flatpak Install the Software Flatpak plugin
If you are running GNOME, it is also a good idea to install the Flatpak plugin for GNOME Software. To do this, run:
sudo apt install gnome-software-plugin-flatpak
If you are running KDE, you should instead install the Plasma Discover Flatpak backend: ...
|-转 debain12 用户桌面的图标那些文件和配置都是存在哪?
cat ~/.config/user-dirs.dirs
# This file is written by xdg-user-dirs-update
# If you want to change or add directories, just edit the line you're
# interested in. All local changes will be retained on the next run.
# Format is XDG_xxx_DIR="$HOME/yyy", where yyy is a shell-escaped
# homedir-relative path, or XDG_xxx_DIR="/yyy", where /yyy is an
# absolute path. No other format is supported.
#
XDG_DESKTOP_DIR="$HOME/Downloads/Desktop"
XDG_DOWNLOAD_DIR="$HOME/Downloads"
XDG_TEMPLATES_DIR="$HOME/Documents/Templates"
XDG_PUBLICSHARE_DIR="$HOME/Public"
XDG_DOCUMENTS_DIR="$HOME/Documents"
XDG_MUSIC_DIR="$HOME/Music"
XDG_PICTURES_DIR="$HOME/Pictures"
XDG_VIDEOS_DIR="$HOME/Videos"
~ ❯❯❯
Kimi:
在 Debian 12(默认 GNOME)里,**“用户桌面上的图标”**其实只有两类实体:
1. 真正躺在 `~/Desktop` 里的 `.desktop` 文件
这些文件就是你在桌面上看到的“快捷方式”,双击后由文件管理器(nautilus-desktop)负责启动。
例子:
```
~/Desktop/firefox.desktop
~/Desktop/我的项目.desktop
```
2. 图标**图片**本身
- 系统级:
`/usr/share/icons/` ← 主题图标(按分辨率分子目录)
`/usr/share/pixmaps/` ← 杂项单图标
- 用户级:
`~/.local/share/icons/` ← 只对当前用户生效
`~/.icons/` ← 旧兼容路径,部分桌面仍识别
在 `.desktop` 里可以用
```
Icon=application-name ← 去上面目录里按主题查找
Icon=/home/alex/Pictures/xx.png ← 直接写绝对路径也行
```
3. “桌面目录”到底在哪
由 XDG 规范决定,记录在
`~/.config/user-dirs.dirs`
默认内容:
```
XDG_DESKTOP_DIR="$HOME/Desktop"
```
所以 99% 用户就是 `~/Desktop`;如果曾经手动改过路径,以这个文件为准。
4. 图标**是否显示**、**排列坐标**等元数据
GNOME 默认用 `gnome-shell-extension-desktop-icons-ng`(包名 `gnome-shell-extension-desktop-icons-ng`)来画桌面图标,配置全部写在 dconf 数据库:
```
~/.config/dconf/user
```
可用 `dconf-editor` 或 `gsettings` 查看/修改,例如
```
org.gnome.shell.extensions.ding show-home ...
|-转 在Debian 12上安装Kazam的步骤
Kazam是一个功能强大的屏幕录制工具,支持录制全屏幕或指定区域。它提供了以下特性:
- 录制全屏幕或指定区域
- 支持音频录制
- 支持时间戳和水印
- 支持将录制结果直接上传到云存储
- 支持将录制结果保存到本地
- 支持多个输出格式,包括MP4、Ogg Theora、WebM、MPEG-4等
使用Kazam录制屏幕的步骤如下:
1. 打开Kazam,点击屏幕上的录制按钮或者按下快捷键(默认为Ctrl+Shift+Alt+R)。
2. 选择要录制的区域或全屏幕。
3. 点击录制按钮开始录制。
4. 在录制过程中,您可以添加时间戳和水印,调整音量等。
5. 当您完成录制后,点击停止按钮停止录制。
6. 选择要保存录制的位置,并选择输出格式。
7. 点击保存按钮保存录制。
Kazam是一个易于使用的工具,适合用于录制屏幕演示、教程视频、游戏录制等。您可以在Ubuntu软件中心或其他软件源中找到Kazam,并进行安装。...
|-转 talk with Windsurf Base Model
Windsurf Base Model :请注意,Debian 12目前还没有正式发布,因此您可能需要使用Debian 11或其他版本来安装Kazam。20250923 1124
Kimi:
Debian 12(代号 “Bookworm”)的初始版本于 2023 年 6 月 10 日 正式发布。
Debian 13(代号 Trixie)的正式版于 2025 年 8 月 9 日发布
Windsurf Base Model:
Debian 12和Debian 13尚未发布。截至2022年12月,Debian的最新稳定版本是Debian 11 "Bullseye",发布于2021年8月。Debian的发布周期通常为两年一次,因此Debian 12的发布日期可能在2023年左右。Debian 13的发布日期尚未确定,但通常在发布两年后的时间段内发布。...
|-转 CUDA Toolkit 12.6 Downloads
https://developer.nvidia.com/cuda-12-6-0-download-archive?target_os=Linux&target_arch=x86_64&Distribution=Debian&target_version=12&target_type=deb_localDownload Installer for Linux Debian 12 x86_64The base installer is available for download below.Base InstallerInstallation Instructions:wget https://developer.download.nvidia.com/compute/cuda...sudo dpkg -i cuda-repo-debian12-12-6-local_12.6.0-560.28.03-1_amd64.debsudo cp /var/cuda-repo-debian12-12-6-local/cuda-*-keyring.gpg /usr/share/keyrings/sudo add-apt-repository contribsudo apt-get updatesudo apt-get -y install cuda-toolkiCUDA Toolkit 12.6 Downloads