Skip to content

Debian

  • https://repology.org/
  • https://snapshot.debian.org/
  • https://buildd.debian.org/stats/
  • https://www.debian.org/releases/index.en.html
  • https://help.mirrorz.org/debian-elts/
  • https://debusine.debian.net/
  • https://wiki.debian.org/DebusineDebianNet

Conf.

sudo apt update && sudo apt upgrade         # 更新软件源并更新软件
sudo dpkg-reconfigure locales               # 设置系统语言
sudo timedatectl set-timezone Asia/Shanghai # 设置系统时间
startx /usr/bin/startxfce4                  # 启动默认桌面环境
sudo dpkg --add-architecture i386           # 添加32位支持
sudo apt install libgtk2.0-0:i386           # https://peazip.github.io/peazip-linux.html
sudo apt install linux-cpupower             # cpu电源选项
sudo cpupower frequency-info
sudo cpupower frequency-set -g performance
sudo apt install task-xfce-desktop
sudo apt install xfce4-screensaver          # xfce屏保设置
sudo apt install labwc                      # xfce实验性wayland支持
sudo apt install git
sudo apt install mc
sudo apt install blueman                    # 补全蓝牙
sudo apt install gdebi                      # 补全安装程序
sudo apt install ibus ibus-rime             # 补全输入法
sudo apt install fcitx fcitx-rime           # 在Wayland中使用
sudo apt install fastfetch                  # 查看系统信息
sudo apt install hardinfo                   # 详细系统信息
sudo apt install nvtop                      # 显卡监测
sudo apt install intel-gpu-tools            # i915 intel显卡监测
sudo apt install glances                    # 进程监测
sudo apt install htop                       # 进程监测
sudo apt install btop                       # 进程监测
sudo apt install vlc                        # 视频
sudo apt install firefox-esr firefox-esr-l10n-zh-cn
sudo apt install chromium chromium-l10n     # 用于PDF发票打印
sudo apt install libreoffice libreoffice-texmaths libreoffice-l10n-zh-cn libreoffice-help-zh-cn
sudo apt install qemu-system libvirt-daemon-system virt-manager
sudo apt install qemu-efi-loongarch64       # Loong64 EFI
sudo apt install kicad kicad-doc-zh kicad-packages3d
sudo apt install default-jre default-jdk    # 系统java
sudo apt install webp-pixbuf-loader         # webp图像依赖
sudo apt install libfuse2                   # QQ Appimage 依赖
LANGUAGE=en_US bash                         # 在终端中临时使用英文
LANGUAGE=zh_CN.UTF-8 bash

source

# https://mirrors.tuna.tsinghua.edu.cn/help/debian/
sudo nano /etc/apt/sources.list
# deb https://mirrors.tuna.tsinghua.edu.cn/debian/ trixie main contrib non-free non-free-firmware
# deb https://mirrors.tuna.tsinghua.edu.cn/debian/ trixie-updates main contrib non-free non-free-firmware
# deb https://mirrors.tuna.tsinghua.edu.cn/debian/ trixie-backports main contrib non-free non-free-firmware
# deb https://mirrors.tuna.tsinghua.edu.cn/debian-security trixie-security main contrib non-free non-free-firmware
sudo apt update && sudo apt upgrade

gpu

sudo nano /etc/default/grub
# GRUB_CMDLINE_LINUX_DEFAULT="quiet amdgpu.dcdebugmask=0x10 amdgpu.ppfeaturemask=0xfff73fff"
sudo update-grub && sudo reboot
# https://www.nvidia.com/en-us/drivers/unix/
# https://download.nvidia.com/XFree86/
sudo apt install dkms linux-headers-$(uname -r)
# /usr/lib/udev/rules.d/61-gdm.rules
sudo apt install intel-media-va-driver-non-free
sudo apt install intel-gpu-tools
sudo intel_gpu_top

appimage

  • https://github.com/ferion11/PeaZip_Appimage
  • https://github.com/audacity/audacity
  • https://www.xnview.com/en/xnview-mp/
  • https://github.com/sinelaw/fresh - TUI Editor

fontconfig

  • https://github.com/lxgw/LxgwWenKai
  • https://hyperos.mi.com/font/download
# https://www.freedesktop.org/wiki/Software/fontconfig/
# https://sspai.com/post/92955
sudo apt install fonts-noto-cjk fonts-noto-cjk-extra
sudo apt install unifont
# cd ~/.local/share/fonts/
mkdir ~/.config/fontconfig/
nano ~/.config/fontconfig/fonts.conf
# <?xml version="1.0"?>
# <!DOCTYPE fontconfig SYSTEM "urn:fontconfig:fonts.dtd">
# <fontconfig>
#     <alias>
#         <family>Unifont</family>
#         <prefer>
#             <family>Unifont</family>
#             <family>Noto Sans CJK SC</family>
#         </prefer>
#     </alias>
# </fontconfig>
fc-cache -v

rime

# https://github.com/iDvel/rime-ice
sudo apt install git ibus ibus-rime
git clone https://github.com/rime/plum.git plum && cd ~/plum
bash rime-install iDvel/rime-ice:others/recipes/full
# rime_frontend=fcitx5-rime bash rime-install iDvel/rime-ice:others/recipes/full

r

  • https://cran.r-project.org/bin/linux/debian/
  • https://www.r-project.org/nosvn/conferences/useR-2004/abstracts/Eddelbuettel+Bates+Gebhardt.pdf
sudo apt install r-base
sudo apt install libcurl4-openssl-dev libfontconfig1-dev libxml2-dev libharfbuzz-dev libfribidi-dev libfreetype6-dev libpng-dev libtiff5-dev libjpeg-dev libwebp-dev # tidyverse依赖项
sudo apt install libcairo2-dev # ggtree依赖项
nano ~/.Rprofile
# options("repos" = c(CRAN="https://mirrors.tuna.tsinghua.edu.cn/CRAN/"))
# options(BioC_mirror="https://mirrors.tuna.tsinghua.edu.cn/bioconductor")
install.packages("reticulate")
install.packages("tidyverse")
install.packages("BiocManager")
install.packages("ape")
install.packages("adegenet")
install.packages("phangorn")
BiocManager::install("ggtree")
BiocManager::install("msa")
BiocManager::install("bios2mds")
BiocManager::install("Biostrings")

flatpak

  • Unable to access the /media directory. Use Flatseal to modify the file system access permissions, then restart the application.
sudo apt install flatpak
flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo
sudo flatpak remote-modify flathub --url=https://mirror.sjtu.edu.cn/flathub
sudo apt install libfuse2t64                                # AppImage文件系统依赖
flatpak install flathub it.mijorus.gearlever                # AppImage管理器
flatpak install flathub com.jgraph.drawio.desktop
flatpak install flathub org.chromium.Chromium
flatpak install flathub com.microsoft.Edge
flatpak install flathub org.telegram.desktop
flatpak install flathub com.discordapp.Discord
flatpak install flathub com.vscodium.codium
flatpak install flathub com.baidu.NetDisk
flatpak install flathub com.github.tchx84.Flatseal          # 配置flatpak
flatpak install flathub io.github.flattool.Warehouse        # 配置flatpak
flatpak install flathub io.missioncenter.MissionCenter      # 任务管理器
flatpak install flathub com.mattjakeman.ExtensionManager    # Gnome Shell Extensions Manager
flatpak install flathub io.github.Qalculate
flatpak run it.mijorus.gearlever                            # 无图标打开flatpak

pipx

# conda deactivate
sudo apt install pipx python3-pip
pip config set global.index-url https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple
pipx install nsz[gui]
pipx ensurepath

linuxbrew

sudo apt install git curl
# https://mirrors.tuna.tsinghua.edu.cn/help/homebrew/
# https://docs.brew.sh/Homebrew-on-Linux
export HOMEBREW_BREW_GIT_REMOTE="https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/brew.git"
export HOMEBREW_CORE_GIT_REMOTE="https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-core.git"
export HOMEBREW_INSTALL_FROM_API=1
git clone --depth=1 https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/install.git brew-install
/bin/bash brew-install/install.sh
test -d ~/.linuxbrew && eval "$(~/.linuxbrew/bin/brew shellenv)"
test -d /home/linuxbrew/.linuxbrew && eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
echo "eval \"\$($(brew --prefix)/bin/brew shellenv)\"" >> ~/.bashrc

wine

# https://wiki.debian.org/Wine
# https://github.com/Winetricks/winetricks
sudo dpkg --add-architecture i386 && sudo apt update
sudo apt install wine wine32 wine64 libwine libwine:i386 fonts-wine
sudo apt install winetricks zenity
  • https://github.com/ValveSoftware/Proton

    • https://github.com/GloriousEggroll/proton-ge-custom
    • https://dawn.wine/dawn-winery/dwproton

qgis

sudo apt install gnupg software-properties-common
sudo mkdir -m755 -p /etc/apt/keyrings
sudo wget -O /etc/apt/keyrings/qgis-archive-keyring.gpg https://download.qgis.org/downloads/qgis-archive-keyring.gpg
sudo nano /etc/apt/sources.list.d/qgis.sources
# Types: deb deb-src
# URIs: https://qgis.org/debian-ltr
# Suites: trixie
# Architectures: amd64
# Components: main
# Signed-By: /etc/apt/keyrings/qgis-archive-keyring.gpg
sudo apt update
sudo apt install qgis qgis-plugin-grass saga fonts-open-sans
# https://github.com/intel/compute-runtime
cd neo
wget https://gh.llkk.cc/https://github.com/intel/intel-graphics-compiler/releases/download/v2.24.8/intel-igc-core-2_2.24.8+20344_amd64.deb
wget https://gh.llkk.cc/https://github.com/intel/intel-graphics-compiler/releases/download/v2.24.8/intel-igc-opencl-2_2.24.8+20344_amd64.deb
wget https://gh.llkk.cc/https://github.com/intel/compute-runtime/releases/download/25.48.36300.8/intel-ocloc-dbgsym_25.48.36300.8-0_amd64.ddeb
wget https://gh.llkk.cc/https://github.com/intel/compute-runtime/releases/download/25.48.36300.8/intel-ocloc_25.48.36300.8-0_amd64.deb
wget https://gh.llkk.cc/https://github.com/intel/compute-runtime/releases/download/25.48.36300.8/intel-opencl-icd-dbgsym_25.48.36300.8-0_amd64.ddeb
wget https://gh.llkk.cc/https://github.com/intel/compute-runtime/releases/download/25.48.36300.8/intel-opencl-icd_25.48.36300.8-0_amd64.deb
wget https://gh.llkk.cc/https://github.com/intel/compute-runtime/releases/download/25.48.36300.8/libigdgmm12_22.8.2_amd64.deb
wget https://gh.llkk.cc/https://github.com/intel/compute-runtime/releases/download/25.48.36300.8/libze-intel-gpu1-dbgsym_25.48.36300.8-0_amd64.ddeb
wget https://gh.llkk.cc/https://github.com/intel/compute-runtime/releases/download/25.48.36300.8/libze-intel-gpu1_25.48.36300.8-0_amd64.deb
wget https://gh.llkk.cc/https://github.com/intel/compute-runtime/releases/download/25.48.36300.8/ww48.sum
sha256sum -c ww48.sum
sudo apt install ocl-icd-libopencl1 intel-media-va-driver-non-free
sudo apt install opencl-headers ocl-icd-opencl-dev clinfo
sudo dpkg -i *.deb
sudo dpkg -i *.ddeb
clinfo

waydroid

curl -s https://repo.waydro.id | sudo bash
sudo apt install waydroid -y
# https://sourceforge.net/projects/waydroid/files/images/system/
# https://sourceforge.net/projects/waydroid/files/images/vendor/
sudo mkdir -p /etc/waydroid-extra/images
sudo unzip lineage-*-system.zip -d /etc/waydroid-extra/images
sudo unzip lineage-*-vendor.zip -d /etc/waydroid-extra/images
# rm lineage-*-system.zip lineage-*-vendor.zip
sudo waydroid init -f
waydroid session start
sudo apt install weston
weston --width=480 --height=800
waydroid show-full-ui
# https://docs.waydro.id/faq/google-play-certification
sudo mount --bind ~/Downloads ~/.local/share/waydroid/data/media/0/Download

printer

# HP Linux Imaging and Printing
# https://developers.hp.com/hp-linux-imaging-and-printing
sudo apt install hplip
# Epson Inkjet Printer Driver (ESC/P-R) for Linux
# Epson Printer Utility for Linux
# https://download.ebz.epson.net/dsc/search/01/search/
sudo apt install libcupsimage2 libqt5widgets5
# Pantum M6500 Series Linux Driver
# https://www.pantum.cn/support/download/driver/
sudo apt install libcupsimage2 libgtk2.0-0
# https://wiki.archlinux.org.cn/title/CUPS/Troubleshooting
sudo apt install libcupsimage2 foomatic-db

git

# 初次创建
mkdir beacon && cd beacon
touch README.md
git init
git switch -c main
git config user.email "duszka@noreply.codeberg.org"
git config user.name duszka
git config credential.helper store
git add README.md
git commit -m "first commit"
git remote add origin https://codeberg.org/duszka/beacon.git
git push -u origin main
# 恢复
git clone https://codeberg.org/duszka/beacon.git && cd beacon
git config user.email "duszka@noreply.codeberg.org"
git config user.name duszka
git config credential.helper store
# 合并提交记录
git rebase -i HEAD~4    # 合并4个提交,保留一个pick,其他改为fixup
git push --force        # 提交

gnome

  • https://github.com/ubuntu/gnome-shell-extension-appindicator
  • https://github.com/openSUSE/Customize-IBus
  • https://wiki.archlinux.org/title/GDM

qemu/kvm

  • https://www.spice-space.org/index.html
  • https://wiki.debian.org/QEMU
  • https://wiki.debian.org/KVM

cuda

sudo apt install build-essential linux-headers-$(uname -r) dkms
wget https://download.nvidia.com/XFree86/Linux-x86_64/590.48.01/NVIDIA-Linux-x86_64-590.48.01.run
sudo sh NVIDIA-Linux-x86_64-590.48.01.run
wget https://developer.download.nvidia.com/compute/cuda/13.1.0/local_installers/cuda_13.1.0_590.44.01_linux.run
sudo sh cuda_13.1.0_590.44.01_linux.run

opencl

sudo apt install intel-mkl-full pocl-opencl-icd opencl-headers     # AMD CPU OpenCL
# https://github.com/ProjectPhysX/OpenCL-Benchmark
git clone https://github.com/ProjectPhysX/OpenCL-Benchmark.git
cd OpenCL-Benchmark
chmod +x make.sh
./make.sh

steam

sudo dpkg --add-architecture i386
sudo apt update && sudo apt upgrade
sudo apt install steam-installer
sudo apt install libxtst6:i386 libgtk2.0-0:i386 libpipewire-0.3-0:i386 libxcb-res0:i386
STEAM_RUNTIME=0 steam
  • https://github.com/benjamimgois/goverlay

arknights:endfield

flatpak install flathub net.lutris.Lutris
flatpak install flathub com.vysp3r.ProtonPlus   # dwproton

Loong64 Conf.

# https://mirrors.ustc.edu.cn/repogen/
sudo nano /etc/apt/sources.list
# deb https://mirrors.ustc.edu.cn/debian/ sid main contrib non-free non-free-firmware
# deb https://mirrors.aliyun.com/debian-ports unstable main contrib non-free non-free-firmware
# deb https://mirrors.aliyun.com/debian-ports unreleased main contrib non-free non-free-firmware
sudo apt update && sudo apt upgrade
sudo apt install task-xfce-desktop
sudo apt install firmware-realtek firmware-amd-graphics
sudo apt install gparted
sudo apt install gvfs gvfs-backends gvfs-fuse
sudo apt install webp-pixbuf-loader
sudo apt install qemu-system qemu-efi-loongarch64 libvirt-daemon-system virt-manager
  • https://gitlab.com/bztsrc/usbimager - 系统盘制作

liblol

# AOSC oma 包管理器
sudo oma mirror
sudo oma upgrade
# 在systemd中开启virt
sudo systemctl enable libvirtd --now
# https://liblol.aosc.io/
git clone https://github.com/AOSC-Dev/loong64-it.git
bash loong64-it.bash ./QQ_3.2.22_251203_loongarch64_01.deb
sudo apt install ./liblol-dkms_0.1.1_loong64.deb
sudo apt install ./liblol_0.1.10.pre1-1_loong64.deb
sudo rm -v /opt/QQ/resources/app/sharp-lib/libvips-cpp.so.42
sudo apt install libvips
qq --no-sandbox

zotero amd64 latx

# 安装latx https://lauosc.cn/d/604-debian-loong64-rocmblender
wget -qO - https://opensrc.qinyn.eu.org/d/onedrive/loongarch64/mirror/signing-key.gpg.asc | sudo gpg --dearmor -vo /usr/share/keyrings/elysia-loongarch-archive-keyring.gpg
sudo nano /etc/apt/sources.list
# deb [signed-by=/usr/share/keyrings/elysia-loongarch-archive-keyring.gpg] https://opensrc.qinyn.eu.org/d/onedrive/loongarch64/mirror sid main
sudo apt update && sudo apt upgrade
sudo apt install latx-amd64 latx-i386 latx-common
wget "https://www.zotero.org/download/client/dl?channel=release&platform=linux-x86_64"
# 使用AOSC提供的emukit
sudo dpkg --add-architecture loongarch64
wget "https://mirrors.hit.edu.cn/anthon/debs/pool/stable/main/e/emukit_20240730-0_loongarch64.deb"
sudo apt install ./emukit_20240730-0_loongarch64.deb
./zotero

opencl

sudo apt install mesa-opencl-icd
sudo apt install ocl-icd-opencl-dev

mkdocs-material

sudo apt install pipx
pipx install mkdocs-material --include-deps
pipx ensurepath
mkdocs -V
$ mkdocs, version 1.6.1 from /home/duszka/.local/share/pipx/venvs/mkdocs-material/lib/python3.13/site-packages/mkdocs (Python 3.13)
mkdocs serve

box64

git clone https://github.com/ptitSeb/box64
cd box64
mkdir build; cd build; cmake .. -D LARCH64=1 -D CMAKE_BUILD_TYPE=RelWithDebInfo
make -j16
sudo make install
sudo systemctl restart systemd-binfmt
# sudo rm /usr/local/bin/box64