Skip to content

Debian

  • https://repology.org/
  • https://github.com/ferion11/PeaZip_Appimage
  • https://github.com/audacity/audacity

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

Conf.

sudo dpkg-reconfigure locales               # 设置系统语言
sudo timedatectl set-timezone Asia/Shanghai # 设置系统时间
sudo apt install task-xfce-desktop
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 glances                    # 进程监测
sudo apt install firefox-esr firefox-esr-l10n-zh-cn
sudo apt install chromium chromium-l10n     # 用于PDF发票打印
sudo apt install qemu-system libvirt-daemon-system virt-manager
sudo apt install kicad kicad-doc-zh kicad-packages3d
# https://peazip.github.io/peazip-linux.html
sudo dpkg --add-architecture i386
sudo apt install libgtk2.0-0:i386
sudo nano /etc/default/grub
# GRUB_CMDLINE_LINUX_DEFAULT="quiet amdgpu.dcdebugmask=0x10 amdgpu.ppfeaturemask=0xfff73fff"
sudo update-grub && sudo reboot
sudo apt install linux-cpupower
sudo cpupower frequency-info
sudo cpupower frequency-set -g performance
# https://uupdump.net/
sudo apt install cabextract wimtools chntpw genisoimage aria2 mc

fontconfig

# 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

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

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 com.microsoft.Edge
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 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
sudo dpkg --add-architecture i386 && sudo apt update
sudo apt install wine wine32 wine64 libwine libwine:i386 fonts-wine
sudo apt install winetricks zenity

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        # 提交

Loong64 Conf.

# https://mirrors.ustc.edu.cn/repogen/
sudo nano /etc/apt/sources.list
# 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