ref: https://www.linuxbabe.com/ubuntu/set-up-local-dns-resolver-ubuntu-20-04-bind9
這篇說明的還滿好的,簡單、明瞭,直接實作、除錯、檢測。
sudo journalctl -eu named
這個指令,抓到我的設定檔的問題。
玩電腦的,其實是被電腦玩的,所以,有人在機櫃上面放乖乖,而且不能放到過期,過期的話它就不乖了,你看,這是不是被電腦玩弄?所以,被電腦玩的都希望能諸事大吉!
sudo apt update
sudo apt upgrade
sudo apt install apache2 mariadb-server php8.3-fpm php8.3 libapache2-mod-php8.3 php8.3-common php8.3-mysql php8.3-xml php8.3-xmlrpc php8.3-curl php8.3-gd php8.3-imagick php8.3-cli php8.3-imap php8.3-mbstring php8.3-opcache php8.3-soap php8.3-zip php8.3-intl php8.3-bcmath unzip phpmyadmin python3-certbot-apache
sudo systemctl enable apache2
apache2 -v
sudo systemctl enable mariadb
sudo mysql_secure_installation
mariadb --version
sudo mysql -uroot -p
grant all on *.* to root@localhost identified by '123456';
sudo gedit /etc/php/8.1/apache2/php.ini
upload_max_filesize = 2000M
max_file_uploads = 2000
post_max_size = 2000M
max_execution_time = 600
max_input_time = 1000
max_input_vars = 3000
memory_limit = 1024M
session.gc_maxlifetime = 86400
# 清除現有規則
sudo iptables -F
# 設置預設策略為拒絕
sudo iptables -P INPUT DROP
sudo iptables -P FORWARD DROP
sudo iptables -P OUTPUT ACCEPT
# 允許回環接口
sudo iptables -A INPUT -i lo -j ACCEPT
# 允許已建立的連接
sudo iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
# 允許HTTP和HTTPS流量
sudo iptables -A INPUT -p tcp -m multiport --dports 80,443 -j ACCEPT
# 保存以上的設定
service iptables save
ref: https://www.buildwindows.com/change-windows-font/
ref: https://askubuntu.com/questions/1432996/adjust-trackpoint-speed-on-lenovo-p70-ubuntu-22-04
Here's what worked for me; your mileage may vary. First, find your device:
$ xinput list
⎡ Virtual core pointer id=2 [master pointer (3)]
⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)]
⎜ ↳ TPPS/2 IBM TrackPoint id=12 [slave pointer (2)]
⎜ ↳ Synaptics TM3053-004 id=11 [slave pointer (2)]
⎜ ↳ ELAN Touchscreen id=9 [slave pointer (2)]
...
On my system, I see it as TPPS/2 IBM TrackPoint
. Next, find the acceleration property:
$ xinput list-props 'TPPS/2 IBM TrackPoint' | grep Accel
libinput Accel Speed (342): 0.000000
libinput Accel Speed Default (343): 0.000000
libinput Accel Profiles Available (344): 1, 1
libinput Accel Profile Enabled (345): 1, 0
libinput Accel Profile Enabled Default (346): 1, 0
Here, I see it as Accel Speed (342)
, and the 342
is what I need. After some experimentation, I was able to determine that the value, by default 0.000000
is expected to be in the range [-1, 1]
. For me, -0.2
ended up being a good speed:
$ xinput set-prop 'TPPS/2 IBM TrackPoint' 342 -0.2
ref: https://gist.github.com/bumbummen99/fcab50dad5638399375693a70a8c17f4
先執行
xinput --list
確認 TrackPoint 的 id 是多少,假設是 15,就執行以下指令:
xinput set-button-map 15 1 0 3 4 5 6 7
就可以關掉中鍵貼上的動作了。