Posts
-
Feb 24, 2023
查看磁盘分区
$ sudo fdisk -l
[sudo] password for debian:
Disk /dev/nvme0n1: 465.76 GiB, 500107862016 bytes, 976773168 sectors
Disk model: WDC WDS100G0000-000000
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 51...
-
Feb 24, 2023
方法1:为用户单独添加 sudo 权限
echo "debian ALL=(ALL:ALL) ALL" > /etc/sudoers.d/debian
方法2:将用加入 sudo 用户组
root@debian:~# id debian
uid=1000(debian) gid=1000(debian) groups=1000(debian),24(cdrom),25(floppy),29(audio),30(dip),44(video),46(plugdev)...
-
Feb 24, 2023
设置时区
echo "\nTZ='Asia/Shanghai'; export TZ" >> ~/.bash_aliases
source ~/.bash_aliases
-
Feb 24, 2023
安装拼音输入法
sudo apt-get install ibus-libpinyin
-
Feb 24, 2023
添加 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...
-
Feb 24, 2023
安装 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...
-
Feb 24, 2023
添加 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...
-
Feb 24, 2023
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...
-
Feb 2, 2023
INSTALL
make PREFIX=/usr/local/redis install
-
Feb 2, 2023
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...