From 01f547fdeaf59bfb523a8512de24fd5e009d08be Mon Sep 17 00:00:00 2001 From: Valeria Fadeeva Date: Wed, 8 Jan 2025 18:26:12 +0500 Subject: [PATCH] Update --- liveuser/.config/autostart/dnscrypt.sh.desktop | 8 ++++++++ liveuser/.config/autostart/tor.sh.desktop | 8 ++++++++ liveuser/.config/autostart/tuned.sh.desktop | 8 ++++++++ liveuser/.local/bin/dnscrypt.sh | 15 +++++++++++++++ liveuser/.local/bin/tor.sh | 15 +++++++++++++++ liveuser/.local/bin/tuned.sh | 16 ++++++++++++++++ 6 files changed, 70 insertions(+) create mode 100755 liveuser/.config/autostart/dnscrypt.sh.desktop create mode 100755 liveuser/.config/autostart/tor.sh.desktop create mode 100755 liveuser/.config/autostart/tuned.sh.desktop create mode 100755 liveuser/.local/bin/dnscrypt.sh create mode 100755 liveuser/.local/bin/tor.sh create mode 100755 liveuser/.local/bin/tuned.sh diff --git a/liveuser/.config/autostart/dnscrypt.sh.desktop b/liveuser/.config/autostart/dnscrypt.sh.desktop new file mode 100755 index 00000000..d4d958b4 --- /dev/null +++ b/liveuser/.config/autostart/dnscrypt.sh.desktop @@ -0,0 +1,8 @@ +#!/usr/bin/env xdg-open +[Desktop Entry] +Exec=/bin/sh -c '~/.local/bin/dnscrypt.sh' +Icon= +Name=dnscrypt.sh +Path= +Terminal=false +Type=Application diff --git a/liveuser/.config/autostart/tor.sh.desktop b/liveuser/.config/autostart/tor.sh.desktop new file mode 100755 index 00000000..88390509 --- /dev/null +++ b/liveuser/.config/autostart/tor.sh.desktop @@ -0,0 +1,8 @@ +#!/usr/bin/env xdg-open +[Desktop Entry] +Exec=/bin/sh -c '~/.local/bin/tor.sh' +Icon= +Name=tor.sh +Path= +Terminal=false +Type=Application diff --git a/liveuser/.config/autostart/tuned.sh.desktop b/liveuser/.config/autostart/tuned.sh.desktop new file mode 100755 index 00000000..7e32e969 --- /dev/null +++ b/liveuser/.config/autostart/tuned.sh.desktop @@ -0,0 +1,8 @@ +#!/usr/bin/env xdg-open +[Desktop Entry] +Exec=/bin/sh -c '~/.local/bin/tuned.sh' +Icon= +Name=tuned.sh +Path= +Terminal=false +Type=Application diff --git a/liveuser/.local/bin/dnscrypt.sh b/liveuser/.local/bin/dnscrypt.sh new file mode 100755 index 00000000..9d84a33c --- /dev/null +++ b/liveuser/.local/bin/dnscrypt.sh @@ -0,0 +1,15 @@ +#!/bin/bash + +if [[ "$UID" != 0 ]]; then + echo "USER NOT ROOT" + sudo "$0" + exit +else + echo "USER IS ROOT" +fi + +$status=$(systemctl status dnscrypt-proxy.service) + +if [[ "$status" != 0 ]]; then + systemctl restart dnscrypt-proxy.service +fi diff --git a/liveuser/.local/bin/tor.sh b/liveuser/.local/bin/tor.sh new file mode 100755 index 00000000..f35e5663 --- /dev/null +++ b/liveuser/.local/bin/tor.sh @@ -0,0 +1,15 @@ +#!/bin/bash + +if [[ "$UID" != 0 ]]; then + echo "USER NOT ROOT" + sudo "$0" + exit +else + echo "USER IS ROOT" +fi + +$status=$(systemctl status tor) + +if [[ "$status" != 0 ]]; then + systemctl restart tor +fi diff --git a/liveuser/.local/bin/tuned.sh b/liveuser/.local/bin/tuned.sh new file mode 100755 index 00000000..b7db89c8 --- /dev/null +++ b/liveuser/.local/bin/tuned.sh @@ -0,0 +1,16 @@ +#!/bin/bash + +if [[ "$UID" != 0 ]]; then + echo "USER NOT ROOT" + sudo "$0" + exit +else + echo "USER IS ROOT" +fi + +$status=$(systemctl status tuned tuned-ppd) + +if [[ "$status" != 0 ]]; then + systemctl restart tuned tuned-ppd +# systemctl --user restart plasma-plasmashell +fi