Posts

  • debian 设置时区

    设置时区 echo "\nTZ='Asia/Shanghai'; export TZ" >> ~/.bash_aliases source ~/.bash_aliases
  • debian 安装拼音输入法

    安装拼音输入法 sudo apt-get install ibus-libpinyin
  • debian 安装 Nvidia 显卡驱动

    添加 non-free 源 vi /etc/apt/sources.list deb http://mirrors.163.com/debian/ bullseye main contrib non-free deb-src http://mirrors.163.com/debian/ bullseye main contrib non-free 安装Nvidia 驱动 sudo apt-get install firmware-misc-nonfree nvidia-dete...
  • debian 安装 Ax200 驱动

    安装 Ax200 驱动 sudo apt install firmware-iwlwifi bluez sudo reboot 如果蓝牙有问题参考下面的错误排查方法: bluetoothctl show # 如果显示 No default controller available 则表示没有驱动起来 # 查看蓝牙情况 dmesg | grep blue # 我这里显示 # bluetooth hci0: Direct firmware load for intel/ibt-20-1...
  • debian 安装 AMD 显卡驱动

    添加 non-free 源 vi /etc/apt/sources.list deb http://mirrors.163.com/debian/ bullseye main contrib non-free deb-src http://mirrors.163.com/debian/ bullseye main contrib non-free 安装 AMD 显卡驱动 sudo apt-get install firmware-amd-graphics libgl1-mesa...
  • debian 禁用挂起

    https://wiki.debian.org/Suspend /etc/systemd/sleep.conf.d/nosuspend.conf [Sleep] AllowSuspend=no AllowHibernation=no AllowSuspendThenHibernate=no AllowHybridSleep=no sudo systemctl status sleep.target suspend.target hibernate.target hybrid-sle...
  • MacOS编译安装Redis

    INSTALL make PREFIX=/usr/local/redis install
  • MacOS编译安装PHP

    INSTALL PHP7.4.33 brew install pkg-config autoconf libiconv oniguruma openssl libzip bzip2 gd libpng libjpeg webp export PKG_CONFIG_PATH="/usr/local/opt/openssl/lib/pkgconfig:/usr/local/opt/libxml2/lib/pkgconfig" ./configure \ --prefix=/usr/loc...
  • linux kvm

    https://wiki.debian.org/KVM https://wiki.debian.org/QEMU 安装 qemu sudo apt install qemu-kvm libvirt-clients libvirt-daemon-system bridge-utils virt-manager ovmf 镜像压缩 sudo qemu-img convert -c -O qcow2 old.qcow2 new.qcow2 windows client 配置共享文...
  • debian 更换国内源

    debian12 sed -i 's/deb.debian.org/mirrors.ustc.edu.cn/g' /etc/apt/sources.list.d/debian.sources \ && sed -i 's/security.debian.org/mirrors.ustc.edu.cn/g' /etc/apt/sources.list.d/debian.sources \ && cat /etc/apt/sources.list.d/debi...