From 2ecbb50ca8c09a37ccacc9bf083fba88fdcd6cef Mon Sep 17 00:00:00 2001 From: Xiao Pan Date: Tue, 5 Mar 2024 01:08:48 -0800 Subject: init ia use ka config /etc/.cfgl/config chagne to ia branch /etc/hostname change to xyzia hostname /etc/myconf/cfgl_meta change changed file meta /etc/systemd/network/default.network use ia network config instead /etc/systemd/system/paccache.service.d/10-remove-all.conf use pp config to save space on SSD root partition /home/xyz/.bashrc use another color for bash PS1 /home/xyz/.config/myconf/pacman_Qqne less package to install, to save space --- etc/systemd/network/10-cloud-init-eth0.network | 15 --------------- etc/systemd/network/default.network | 6 ++++++ etc/systemd/system/paccache.service.d/10-remove-all.conf | 8 ++++++++ .../paccache.service.d/20-remove-all-uninstalled.conf | 9 --------- 4 files changed, 14 insertions(+), 24 deletions(-) delete mode 100644 etc/systemd/network/10-cloud-init-eth0.network create mode 100644 etc/systemd/network/default.network create mode 100644 etc/systemd/system/paccache.service.d/10-remove-all.conf delete mode 100644 etc/systemd/system/paccache.service.d/20-remove-all-uninstalled.conf (limited to 'etc/systemd') diff --git a/etc/systemd/network/10-cloud-init-eth0.network b/etc/systemd/network/10-cloud-init-eth0.network deleted file mode 100644 index 5c04b591..00000000 --- a/etc/systemd/network/10-cloud-init-eth0.network +++ /dev/null @@ -1,15 +0,0 @@ -[Address] -Address=82.153.138.108/24 - -[Match] -MACAddress=f6:f5:d6:c3:5e:4f -Name=eth0 - -[Network] -DHCP=no -DNS=9.9.9.9 1.1.1.1 -Domains=kyun.host - -[Route] -Gateway=82.153.138.1 - diff --git a/etc/systemd/network/default.network b/etc/systemd/network/default.network new file mode 100644 index 00000000..cb28d02e --- /dev/null +++ b/etc/systemd/network/default.network @@ -0,0 +1,6 @@ +[Match] +Name=eth0 + +[Network] +Gateway=89.213.174.1 +Address=89.213.174.95/24 diff --git a/etc/systemd/system/paccache.service.d/10-remove-all.conf b/etc/systemd/system/paccache.service.d/10-remove-all.conf new file mode 100644 index 00000000..a33a36a2 --- /dev/null +++ b/etc/systemd/system/paccache.service.d/10-remove-all.conf @@ -0,0 +1,8 @@ +[Service] +# may need `sudo systemctl daemon-reload` afterward +# need a line of `ExecStart=` to clear the list first, +# more about drop-in dir see `man systemd.unit`, more about ExecStart see `man systemd.service` +# https://wiki.archlinux.org/title/Systemd#Drop-in_files +# https://wiki.archlinux.org/title/Systemd#Examples +ExecStart= +ExecStart=/usr/bin/paccache -rk0 diff --git a/etc/systemd/system/paccache.service.d/20-remove-all-uninstalled.conf b/etc/systemd/system/paccache.service.d/20-remove-all-uninstalled.conf deleted file mode 100644 index 38d3c2d0..00000000 --- a/etc/systemd/system/paccache.service.d/20-remove-all-uninstalled.conf +++ /dev/null @@ -1,9 +0,0 @@ -[Service] -# keep original `ExecStart=/usr/bin/paccache -r` while adding to the list -# because I want the default behavior and also remove all uninstalled pacman package cache -# may need `sudo systemctl daemon-reload` afterward -# if I want to clear the list first, I should do a line of `ExecStart=` first -# more about drop-in dir see `man systemd.unit`, more about ExecStart see `man systemd.service` -# https://wiki.archlinux.org/title/Systemd#Drop-in_files -# https://wiki.archlinux.org/title/Systemd#Examples -ExecStart=/usr/bin/paccache -ruk0 -- cgit v1.2.3-70-g09d2