Linux Mint/LMDE インストール後に実施する自分用の設定変更内容の備忘です。
/tmp の tmpfs 化
/etc/fstab を編集して /tmp を tmpfs に変更する。
アップデートマネージャのミラーサーバーを変更
本家サーバー(Mint、Ubuntu、Debian)への負荷集中を避けるため、距離の近い日本国内のサーバーへ変更する。
apt の帯域制限
アップデートマネージャがダウンロード中に自宅のインターネット回線を専有しないように帯域制限をかける。
https://lowlatencymade2.blogspot.com/2022/12/linux-mint.html
NTP サーバーを変更
本家サーバー(Ubuntu)への負荷集中を避けるため、距離の近い日本国内のサーバーへ変更する。
https://lowlatencymade2.blogspot.com/2022/04/linux-mint-ntp.html
日本語入力に必要なパッケージをインストール
apt install fcitx5-mozc
GRUB のメニューを調整
https://lowlatencymade2.blogspot.com/2023/06/lmdegrub2.html
IP アドレスの固定化
DHCP ではなく固定 IP アドレスに変更する。
MTU も 9000 に変更する。
Timeshift の除外フィルター
/var/lib/flatpak/ をバックアップの対象から除外する。(Flatpak でインストールしたアプリは戻らなくて良いし、容量も多くて戻す時に時間がかかるので)
仮想メモリーの調整
/etc/sysctl.conf に以下を追加する。
vm.swappiness=10
vm.vfs_cache_pressure=200
vm.dirty_background_ratio = 5
vm.dirty_ratio = 10
(参考)
https://wiki.archlinux.jp/index.php/%E3%82%B9%E3%83%AF%E3%83%83%E3%83%97
sudo sysctl -p
journald の調整
/etc/systemd/journald.conf を修正する。
SystemMaxUse=1G
SystemMaxFileSize=8M
MaxRetentionSec=3month
https://lowlatencymade2.blogspot.com/2020/05/linux-mintjournalctl-list-boots.html
sudo systemctl restart systemd-journald
NIC ドライバーの調整
firmware の最新化
【LMDE】firmware-amd-graphics を backports から最新化してみた
カーネル起動オプションの調整
nohz_full=all
LibreOffice の最新化
LMDE の LibreOffice を backports から最新化してみた
systemd-resolved の有効化
LMDE で systemd-resolved を有効化してみた(新)
TCP/IP の調整
【LMDE】TCP/IP 通信のパフォーマンスをチューニングしてみた
cpupower のインストール
Linux Mint では apt install linux-tools-generic-hwe-22.04-edge をインストールする。
LMDE では linux-cpupower をインストールする。
LibreOffice のアンインストール
apt remove ure
(Flatpak 版の LibreOffice を使用するため)
アプレットに必要なパッケージをインストール
apt install sox libsox-fmt-pulse
kexec をインストール
apt install kexec-tools
reboot可能にするか?と聞かれるので「はい」と応答
check-restart をインストール
apt install debian-goodies
AMD P-State Driver の有効化
apt install linux-tools-common
apt install linux-tools-generic-hwe-22.04-edge
/etc/default/grub を編集して kernel 起動オプションに amd_pstate=passive を追加する。
sudo update-grub
GRUB のタイムアウト値調整
/etc/default/grub を編集して GRUB_TIMEOUT=5 を指定する。
sudo update-grub
SWAP の zram 化
https://lowlatencymade2.blogspot.com/2022/05/linux-mint-zram.html