From 142a5ed727d678ffcbe7d7f59c1e58f51a783095 Mon Sep 17 00:00:00 2001 From: blusewill Date: Sun, 7 Jul 2024 23:22:54 +0800 Subject: [PATCH 01/16] dev test --- dotconfig/dolphinrc | 2 ++ mirrortest | 65 +++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 67 insertions(+) create mode 100755 mirrortest diff --git a/dotconfig/dolphinrc b/dotconfig/dolphinrc index 7b2714c..b5c1556 100644 --- a/dotconfig/dolphinrc +++ b/dotconfig/dolphinrc @@ -1,6 +1,8 @@ [$Version] update_info=dolphin_detailsmodesettings.upd:rename-leading-padding + + [General] Version=202 ViewPropsTimestamp=2023,9,19,0,44,53.583 diff --git a/mirrortest b/mirrortest new file mode 100755 index 0000000..220bf9c --- /dev/null +++ b/mirrortest @@ -0,0 +1,65 @@ +#!/bin/bash + +# Function to get the country code +get_country_code() { + country_code=$(curl -s http://ip-api.com/json/ | jq -r .countryCode) + echo "$country_code" +} + +# Function to fetch mirrors for the given country code +fetch_mirrors() { + country_code="$1" + mirrors_url="https://www.debian.org/mirror/list" + mirrors=($(curl -s $mirrors_url | grep -Eo 'http://[^"]+' | grep "\.$country_code/")) + echo "${mirrors[@]}" +} + +# Function to test mirrors and find the fastest one +test_mirrors() { + mirrors=("$@") + fastest_mirror="" + lowest_latency=999999 + + for mirror in "${mirrors[@]}"; do + hostname=$(echo "$mirror" | awk -F[/:] '{print $4}') + latency=$(ping -c 3 "$hostname" | tail -1 | awk -F '/' '{print $5}') + + if (( $(echo "$latency < $lowest_latency" | bc -l) )); then + lowest_latency="$latency" + fastest_mirror="$mirror" + fi + done + + echo "$fastest_mirror" +} + +# Function to update sources.list with the fastest mirror +update_sources_list() { + fastest_mirror="$1" + sources_list_path="/etc/apt/sources.list" + mirror_entry="deb $fastest_mirror stable main contrib non-free" + + echo "$mirror_entry" | sudo tee "$sources_list_path" > /dev/null + sudo apt-get update +} + +# Main script execution +country_code=$(get_country_code) +echo "Detected country code: $country_code" + +mirrors=$(fetch_mirrors "$country_code") +mirrors_array=($mirrors) +if [ ${#mirrors_array[@]} -eq 0 ]; then + echo "No mirrors found for country code: $country_code" + exit 1 +fi + +echo "Found ${#mirrors_array[@]} mirrors for $country_code" + +fastest_mirror=$(test_mirrors "${mirrors_array[@]}") +if [ -n "$fastest_mirror" ]; then + echo "Fastest mirror: $fastest_mirror" + update_sources_list "$fastest_mirror" +else + echo "No responsive mirrors found" +fi From 73f10a6338452ae1d481f6640917dbddcdded155 Mon Sep 17 00:00:00 2001 From: blusewill Date: Sun, 7 Jul 2024 23:28:25 +0800 Subject: [PATCH 02/16] Mirror Test --- mirrortest | 48 +++++++++++++++--------------------------------- 1 file changed, 15 insertions(+), 33 deletions(-) diff --git a/mirrortest b/mirrortest index 220bf9c..bbb2742 100755 --- a/mirrortest +++ b/mirrortest @@ -6,30 +6,20 @@ get_country_code() { echo "$country_code" } -# Function to fetch mirrors for the given country code -fetch_mirrors() { +# Function to fetch mirrors for the given country code using netselect-apt +fetch_fastest_mirror() { country_code="$1" - mirrors_url="https://www.debian.org/mirror/list" - mirrors=($(curl -s $mirrors_url | grep -Eo 'http://[^"]+' | grep "\.$country_code/")) - echo "${mirrors[@]}" -} - -# Function to test mirrors and find the fastest one -test_mirrors() { - mirrors=("$@") - fastest_mirror="" - lowest_latency=999999 - - for mirror in "${mirrors[@]}"; do - hostname=$(echo "$mirror" | awk -F[/:] '{print $4}') - latency=$(ping -c 3 "$hostname" | tail -1 | awk -F '/' '{print $5}') - - if (( $(echo "$latency < $lowest_latency" | bc -l) )); then - lowest_latency="$latency" - fastest_mirror="$mirror" - fi - done - + temp_file=$(mktemp) + + sudo netselect-apt -c "$country_code" -o "$temp_file" + + if [ -f "$temp_file" ]; then + fastest_mirror=$(grep -E '^deb ' "$temp_file" | awk '{print $2}') + rm -f "$temp_file" + else + fastest_mirror="" + fi + echo "$fastest_mirror" } @@ -47,19 +37,11 @@ update_sources_list() { country_code=$(get_country_code) echo "Detected country code: $country_code" -mirrors=$(fetch_mirrors "$country_code") -mirrors_array=($mirrors) -if [ ${#mirrors_array[@]} -eq 0 ]; then - echo "No mirrors found for country code: $country_code" - exit 1 -fi - -echo "Found ${#mirrors_array[@]} mirrors for $country_code" - -fastest_mirror=$(test_mirrors "${mirrors_array[@]}") +fastest_mirror=$(fetch_fastest_mirror "$country_code") if [ -n "$fastest_mirror" ]; then echo "Fastest mirror: $fastest_mirror" update_sources_list "$fastest_mirror" else echo "No responsive mirrors found" fi + From 32ebb4636d3c3eb22cd90d7b2bb841326928b7ab Mon Sep 17 00:00:00 2001 From: blusewill Date: Sun, 7 Jul 2024 23:31:13 +0800 Subject: [PATCH 03/16] mirror rewrite --- mirrortest | 50 ++++++++++---------------------------------------- 1 file changed, 10 insertions(+), 40 deletions(-) diff --git a/mirrortest b/mirrortest index bbb2742..399c899 100755 --- a/mirrortest +++ b/mirrortest @@ -1,47 +1,17 @@ #!/bin/bash -# Function to get the country code -get_country_code() { - country_code=$(curl -s http://ip-api.com/json/ | jq -r .countryCode) - echo "$country_code" -} +# Determine the country code of the current location +COUNTRY=$(curl -s ifconfig.co/country-iso) -# Function to fetch mirrors for the given country code using netselect-apt -fetch_fastest_mirror() { - country_code="$1" - temp_file=$(mktemp) - - sudo netselect-apt -c "$country_code" -o "$temp_file" - - if [ -f "$temp_file" ]; then - fastest_mirror=$(grep -E '^deb ' "$temp_file" | awk '{print $2}') - rm -f "$temp_file" - else - fastest_mirror="" - fi - - echo "$fastest_mirror" -} +# Find the fastest mirror for the specified country +sudo netselect-apt -c $COUNTRY stable -# Function to update sources.list with the fastest mirror -update_sources_list() { - fastest_mirror="$1" - sources_list_path="/etc/apt/sources.list" - mirror_entry="deb $fastest_mirror stable main contrib non-free" +# Backup the current sources.list +sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak - echo "$mirror_entry" | sudo tee "$sources_list_path" > /dev/null - sudo apt-get update -} +# Replace sources.list with the newly generated one +sudo mv sources.list /etc/apt/sources.list -# Main script execution -country_code=$(get_country_code) -echo "Detected country code: $country_code" - -fastest_mirror=$(fetch_fastest_mirror "$country_code") -if [ -n "$fastest_mirror" ]; then - echo "Fastest mirror: $fastest_mirror" - update_sources_list "$fastest_mirror" -else - echo "No responsive mirrors found" -fi +# Update the package list +sudo apt-get update From 1e2b13f6b612f93144cfbe91d5b2b410dbfdb25f Mon Sep 17 00:00:00 2001 From: blusewill Date: Sun, 7 Jul 2024 23:37:14 +0800 Subject: [PATCH 04/16] mirror codename fix --- mirrortest | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mirrortest b/mirrortest index 399c899..543290f 100755 --- a/mirrortest +++ b/mirrortest @@ -3,8 +3,11 @@ # Determine the country code of the current location COUNTRY=$(curl -s ifconfig.co/country-iso) +# Check Debian Version +VERSION='.' read -a VERSION_CODENAME < /etc/debian_version + # Find the fastest mirror for the specified country -sudo netselect-apt -c $COUNTRY stable +sudo netselect-apt -c $COUNTRY $VERSION # Backup the current sources.list sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak From 181bc22954b4c2b6aca5930ce56d8b8d6807a4c4 Mon Sep 17 00:00:00 2001 From: blusewill Date: Sun, 7 Jul 2024 23:43:40 +0800 Subject: [PATCH 05/16] mirrortest test --- mirrortest | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mirrortest b/mirrortest index 543290f..78bbfe5 100755 --- a/mirrortest +++ b/mirrortest @@ -4,7 +4,7 @@ COUNTRY=$(curl -s ifconfig.co/country-iso) # Check Debian Version -VERSION='.' read -a VERSION_CODENAME < /etc/debian_version +VERSION=$(env -i bash -c '. /etc/os-release; echo $VERSION_CODENAME') # Find the fastest mirror for the specified country sudo netselect-apt -c $COUNTRY $VERSION From 146bee3231847e7d47f9390b0bc8419fc8f54520 Mon Sep 17 00:00:00 2001 From: blusewill Date: Sun, 7 Jul 2024 23:45:34 +0800 Subject: [PATCH 06/16] Update Install.sh --- install.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/install.sh b/install.sh index 9763b72..f1973c7 100755 --- a/install.sh +++ b/install.sh @@ -9,6 +9,9 @@ fi username=$(id -u -n 1000) builddir=$(pwd) +# Mirror Test +$builddir/mirrortest + # Enable repos to have wider range of packages sed -r -i 's/^deb(.*)$/deb\1 contrib/g' /etc/apt/sources.list From 33fc73f530e86cf06c0731d4903e09f9bd354a63 Mon Sep 17 00:00:00 2001 From: blusewill Date: Sun, 7 Jul 2024 23:46:43 +0800 Subject: [PATCH 07/16] mirror depedenecy --- install.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/install.sh b/install.sh index f1973c7..064a715 100755 --- a/install.sh +++ b/install.sh @@ -10,6 +10,7 @@ username=$(id -u -n 1000) builddir=$(pwd) # Mirror Test +apt install jq curl netselect-apt -y $builddir/mirrortest # Enable repos to have wider range of packages From 81a1e89d5cc2b1d0ede70d69c1dba6fcaa54f7a7 Mon Sep 17 00:00:00 2001 From: blusewill Date: Mon, 8 Jul 2024 00:23:30 +0800 Subject: [PATCH 08/16] lint code fix --- install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index 064a715..5253eec 100755 --- a/install.sh +++ b/install.sh @@ -11,7 +11,7 @@ builddir=$(pwd) # Mirror Test apt install jq curl netselect-apt -y -$builddir/mirrortest +"$builddir"/mirrortest # Enable repos to have wider range of packages @@ -30,7 +30,7 @@ apt install nala -y # Making .config and Moving config files and background to Pictures -cd $builddir +cd "$builddir" mkdir -p /home/$username/.config mkdir -p /home/$username/.fonts cp -R dotconfig/* /home/$username/.config/ From 1342e806498f5e967427834b3d47f83329817fbf Mon Sep 17 00:00:00 2001 From: blusewill Date: Tue, 9 Jul 2024 22:19:05 +0800 Subject: [PATCH 09/16] Config Update --- dotconfig/dolphinrc | 8 ++++++-- dotconfig/kdeglobals | 4 ++++ install.sh | 4 ++-- mirrortest | 4 ++-- 4 files changed, 14 insertions(+), 6 deletions(-) diff --git a/dotconfig/dolphinrc b/dotconfig/dolphinrc index b5c1556..2c54873 100644 --- a/dotconfig/dolphinrc +++ b/dotconfig/dolphinrc @@ -1,9 +1,10 @@ +MenuBar=Disabled + [$Version] update_info=dolphin_detailsmodesettings.upd:rename-leading-padding - - [General] +RememberOpenedTabs=false Version=202 ViewPropsTimestamp=2023,9,19,0,44,53.583 @@ -14,3 +15,6 @@ Places Icons Static Size=22 [MainWindow] MenuBar=Disabled ToolBarsMovable=Disabled + +[PreviewSettings] +Plugins=appimagethumbnail,audiothumbnail,blenderthumbnail,comicbookthumbnail,cursorthumbnail,djvuthumbnail,ebookthumbnail,exrthumbnail,imagethumbnail,jpegthumbnail,kraorathumbnail,windowsexethumbnail,windowsimagethumbnail,mltpreview,mobithumbnail,opendocumentthumbnail,gsthumbnail,svgthumbnail,rawthumbnail,fontthumbnail,ffmpegthumbs,directorythumbnail diff --git a/dotconfig/kdeglobals b/dotconfig/kdeglobals index 648733b..7bda731 100644 --- a/dotconfig/kdeglobals +++ b/dotconfig/kdeglobals @@ -140,6 +140,10 @@ ColorSchemeHash=01662607e36cd33eacc7d7d7189f69c26b9a2cc8 [KDE] LookAndFeelPackage=org.kde.breezedark.desktop +SingleClick=false + +[PreviewSettings] +MaximumRemoteSize=0 [WM] activeBackground=49,54,59 diff --git a/install.sh b/install.sh index 5253eec..724dd4e 100755 --- a/install.sh +++ b/install.sh @@ -30,7 +30,7 @@ apt install nala -y # Making .config and Moving config files and background to Pictures -cd "$builddir" +cd "$builddir" || return mkdir -p /home/$username/.config mkdir -p /home/$username/.fonts cp -R dotconfig/* /home/$username/.config/ @@ -63,7 +63,7 @@ wget https://github.com/redshaderobotics/scratch3.0-linux/releases/download/3.3. nala install $builddir/pkg-files/scratch.deb -y # Font Install -cd $builddir +cd "$builddir" || return nala install fonts-font-awesome -y wget https://github.com/ryanoasis/nerd-fonts/releases/download/v2.1.0/FiraCode.zip unzip FiraCode.zip -d /home/$username/.fonts diff --git a/mirrortest b/mirrortest index 78bbfe5..e7a4e91 100755 --- a/mirrortest +++ b/mirrortest @@ -4,10 +4,10 @@ COUNTRY=$(curl -s ifconfig.co/country-iso) # Check Debian Version -VERSION=$(env -i bash -c '. /etc/os-release; echo $VERSION_CODENAME') +VERSION=$(env -i bash -c ". /etc/os-release; echo $VERSION_CODENAME") # Find the fastest mirror for the specified country -sudo netselect-apt -c $COUNTRY $VERSION +sudo netselect-apt -c "$COUNTRY" "$VERSION" # Backup the current sources.list sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak From 1eb0a1d0254733754234a3c08c24cc44730c5cfd Mon Sep 17 00:00:00 2001 From: blusewill Date: Tue, 9 Jul 2024 22:24:46 +0800 Subject: [PATCH 10/16] Update Github Workflow --- .github/workflows/linter.yml | 55 -------------------------------- .github/workflows/shellcheck.yml | 16 ++++++++++ 2 files changed, 16 insertions(+), 55 deletions(-) delete mode 100644 .github/workflows/linter.yml create mode 100644 .github/workflows/shellcheck.yml diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml deleted file mode 100644 index d2d6fe1..0000000 --- a/.github/workflows/linter.yml +++ /dev/null @@ -1,55 +0,0 @@ ---- -################################# -################################# -## Super Linter GitHub Actions ## -################################# -################################# -name: Lint Code Base - -# -# Documentation: -# https://docs.github.com/en/actions/learn-github-actions/workflow-syntax-for-github-actions -# - -############################# -# Start the job on all push # -############################# -on: - push: - # branches-ignore: [master, main] - # Remove the line above to run when pushing to master - pull_request: - branches: [master, dev] - -############### -# Set the Job # -############### -jobs: - build: - # Name the Job - name: Lint Code Base - # Set the agent to run on - runs-on: ubuntu-latest - - ################## - # Load all steps # - ################## - steps: - ########################## - # Checkout the code base # - ########################## - - name: Checkout Code - uses: actions/checkout@v4.1.0 - with: - # Full git history is needed to get a proper list of changed files within `super-linter` - fetch-depth: 0 - - ################################ - # Run Linter against code base # - ################################ - - name: Lint Code Base - uses: github/super-linter@v5 - env: - VALIDATE_ALL_CODEBASE: false - DEFAULT_BRANCH: master - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/shellcheck.yml b/.github/workflows/shellcheck.yml new file mode 100644 index 0000000..c2c763a --- /dev/null +++ b/.github/workflows/shellcheck.yml @@ -0,0 +1,16 @@ +on: +push: + branches: + - [master, dev] + +name: "ShellCheck" +permissions: {} + +jobs: +shellcheck: + name: Shellcheck + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Run ShellCheck + uses: ludeeus/action-shellcheck@master From eb17255a8e7a6959b10d9049b2c85c3e4a075b05 Mon Sep 17 00:00:00 2001 From: blusewill Date: Tue, 9 Jul 2024 22:27:47 +0800 Subject: [PATCH 11/16] Update Github Workflow --- .github/workflows/shellcheck.yml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/shellcheck.yml b/.github/workflows/shellcheck.yml index c2c763a..9fc8e9a 100644 --- a/.github/workflows/shellcheck.yml +++ b/.github/workflows/shellcheck.yml @@ -3,14 +3,14 @@ push: branches: - [master, dev] -name: "ShellCheck" -permissions: {} +- name: "ShellCheck" + permissions: {} -jobs: -shellcheck: - name: Shellcheck - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - name: Run ShellCheck - uses: ludeeus/action-shellcheck@master + jobs: + shellcheck: + name: Shellcheck + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Run ShellCheck + uses: ludeeus/action-shellcheck@master From 593b6fad4d925a0aa817e70cee6fe1c1f13b2ac0 Mon Sep 17 00:00:00 2001 From: blusewill Date: Tue, 9 Jul 2024 22:28:40 +0800 Subject: [PATCH 12/16] Update Github Workflow --- .github/workflows/shellcheck.yml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/shellcheck.yml b/.github/workflows/shellcheck.yml index 9fc8e9a..cc722c8 100644 --- a/.github/workflows/shellcheck.yml +++ b/.github/workflows/shellcheck.yml @@ -3,14 +3,14 @@ push: branches: - [master, dev] -- name: "ShellCheck" - permissions: {} + - name: "ShellCheck" + permissions: {} - jobs: - shellcheck: - name: Shellcheck - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - name: Run ShellCheck + jobs: + shellcheck: + name: Shellcheck + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Run ShellCheck uses: ludeeus/action-shellcheck@master From b9ef3d5ad4d64d225f23b55f0ec72d648290d904 Mon Sep 17 00:00:00 2001 From: blusewill Date: Tue, 9 Jul 2024 22:30:56 +0800 Subject: [PATCH 13/16] Update shellcheck --- .github/workflows/shellcheck.yml | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/.github/workflows/shellcheck.yml b/.github/workflows/shellcheck.yml index cc722c8..2938a20 100644 --- a/.github/workflows/shellcheck.yml +++ b/.github/workflows/shellcheck.yml @@ -1,16 +1,15 @@ on: -push: - branches: - - [master, dev] + push: + branches: + - master + - dev - - name: "ShellCheck" - permissions: {} - - jobs: - shellcheck: - name: Shellcheck - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - name: Run ShellCheck +jobs: + shellcheck: + name: Shellcheck + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v2 + - name: Run ShellCheck uses: ludeeus/action-shellcheck@master From 648b75d38da385d4d8ca2f0de62abdcf3e84536e Mon Sep 17 00:00:00 2001 From: blusewill Date: Tue, 9 Jul 2024 22:33:28 +0800 Subject: [PATCH 14/16] Only Error Detected to exit --- .github/workflows/shellcheck.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/shellcheck.yml b/.github/workflows/shellcheck.yml index 2938a20..5a3cb1d 100644 --- a/.github/workflows/shellcheck.yml +++ b/.github/workflows/shellcheck.yml @@ -13,3 +13,6 @@ jobs: uses: actions/checkout@v2 - name: Run ShellCheck uses: ludeeus/action-shellcheck@master + with: + severity: error + From 6b5660ab835777149f08f05117db08b55390cb98 Mon Sep 17 00:00:00 2001 From: blusewill Date: Tue, 9 Jul 2024 23:15:57 +0800 Subject: [PATCH 15/16] Fix the Script haven't updated to latest issue --- install.sh | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/install.sh b/install.sh index 724dd4e..f4fcea5 100755 --- a/install.sh +++ b/install.sh @@ -41,7 +41,7 @@ nala install kde-plasma-desktop lsb-release flatpak sddm vim ttf-mscorefonts-ins # Install Default Applications -xargs -a $builddir/pkg-files/default.txt nala install -y +xargs nala install -y < $builddir/pkg-files/default.txt # Flatpak Essential Programs # Setting Up flathub repo @@ -50,17 +50,11 @@ flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.f # Start to install -xargs -a $builddir/pkg-files/flatpak.txt flatpak install -y +xargs flatpak install -y < $builddir/pkg-files/flatpak.txt # Installing Optional Programs -xargs -a $builddir/pkg-files/optional.txt nala install -y - -# Install Scratch 3.0 - -wget https://github.com/redshaderobotics/scratch3.0-linux/releases/download/3.3.0/scratch-desktop_3.3.0_amd64.deb -O $builddir/pkg-files/scratch.deb - -nala install $builddir/pkg-files/scratch.deb -y +xargs nala install -y < $builddir/pkg-files/optional.txt # Font Install cd "$builddir" || return From 43dcf0236aba5a16d466b6769f9dc47ac01cd105 Mon Sep 17 00:00:00 2001 From: blusewill Date: Tue, 9 Jul 2024 23:18:26 +0800 Subject: [PATCH 16/16] Update to the latest version --- adguard-dns | 8 ++++++++ install.sh | 7 +++++++ 2 files changed, 15 insertions(+) create mode 100644 adguard-dns diff --git a/adguard-dns b/adguard-dns new file mode 100644 index 0000000..9c54c28 --- /dev/null +++ b/adguard-dns @@ -0,0 +1,8 @@ +# This is Adguard Home DNS Filter +# Blocks Various Stuff Such as Porn Ads..... +# Also Enable Safe Browsing +# You can Find more information at here +# https://adguard-dns.io + +nameserver 94.140.14.15 +nameserver 94.140.14.16 diff --git a/install.sh b/install.sh index f4fcea5..3dcb681 100755 --- a/install.sh +++ b/install.sh @@ -101,6 +101,13 @@ systemctl set-default graphical.target sed -i 's/GRUB_TIMEOUT=5/GRUB_TIMEOUT=0/g' /etc/default/grub update-grub +# Add AdGuard Filter + +cd $builddir +nala install resolvconf -y +rm /etc/resolvconf/resolv.conf.d/head +mv adguard-dns /etc/resolvconf/resolv.conf.d/head + # Reboot systemctl reboot