开机自启
-
创建/etc/rc.local
#!/bin/bash # 1. disable Turbo echo "1" | sudo see /sys/devices/system/cpu/intel_pstate/no_turbo
-
给予/etc/rc.local权限
sudo chmod +x /etc/rc.local
-
修改/lib/systemd/system/rc-local.service
[Unit] Description=/etc/rc.local Compatibility Documentation=man:systemd-rc-local-generator(8) ConditionFileIsExecutable=/etc/rc.local After=network.target [Service] Type=forking ExecStart=/etc/rc.local start TimeoutSec=0 RemainAfterExit=yes GuessMainPID=no [Install] WantedBy=multi-user.target
-
添加自启动服务
systemctl enable rc-local.service
修改全局微软雅黑字体
获取ttf字体文件
-
放入字体文件夹并重建缓存
#!/bin/bash sudo mkdir /usr/share/fonts/truetype/win sudo chmod 644 msyh.ttf sudo cp msyh.ttf /usr/share/fonts/truetype/win sudo mkfontscale sudo mkfontdir sudo fc-cache -fv
修改鼠标滚动速度
-
安装imwheel
sudo apt-get install imwheel
-
修改配置文件(可能不存在,直接新建)
".*" None, Up, Button4, 4 None, Down, Button5, 4 Control_L, Up, Control_L|Button4 Control_L, Down, Control_L|Button5 Shift_L, Up, Shift_L|Button4 Shift_L, Down, Shift_L|Button5 # 第一行是对所有程序启用 # 第二行和第三行设置速度
-
启动imwheel
imwheel --kill --buttons "4 5"
添加到开机自启文件里