1
0
mirror of https://github.com/tommytran732/Linux-Setup-Scripts synced 2024-11-25 02:31:34 -05:00

Disable ctrl-alt-del

Signed-off-by: Tommy <contact@tommytran.io>
This commit is contained in:
Tommy 2023-12-07 16:44:55 -07:00
parent 50766b9ce5
commit 6a6b775631
No known key found for this signature in database
GPG Key ID: D30DEC268D3FEB17
4 changed files with 11 additions and 3 deletions

View File

@ -24,9 +24,8 @@ unpriv(){
sudo -u nobody "$@" sudo -u nobody "$@"
} }
# Moving to the home directory # Compliance
#Note that I always use /home/${USER} because gnome-terminal is wacky and sometimes doesn't load the environment variables in correctly (Right click somewhere in nautilus, click on open in terminal, then hit create new tab and you will see.) sudo systemctl disable --now ctrl-alt-del.target
cd /home/"${USER}" || exit
# Setting umask to 077 # Setting umask to 077
umask 077 umask 077

View File

@ -22,6 +22,9 @@ unpriv(){
sudo -u nobody "$@" sudo -u nobody "$@"
} }
# Compliance
sudo systemctl disable --now ctrl-alt-del.target
# Setup NTS # Setup NTS
sudo rm -rf /etc/chrony/chrony.conf sudo rm -rf /etc/chrony/chrony.conf
unpriv curl https://raw.githubusercontent.com/GrapheneOS/infrastructure/main/chrony.conf | sudo tee /etc/chrony/chrony.conf unpriv curl https://raw.githubusercontent.com/GrapheneOS/infrastructure/main/chrony.conf | sudo tee /etc/chrony/chrony.conf

View File

@ -20,6 +20,9 @@ output(){
echo -e '\e[36m'"$1"'\e[0m'; echo -e '\e[36m'"$1"'\e[0m';
} }
# Compliance
sudo systemctl disable --now ctrl-alt-del.target
# Setup NTS # Setup NTS
rm -rf /etc/chrony/chrony.conf rm -rf /etc/chrony/chrony.conf
curl https://raw.githubusercontent.com/GrapheneOS/infrastructure/main/chrony.conf | tee /etc/chrony/chrony.conf curl https://raw.githubusercontent.com/GrapheneOS/infrastructure/main/chrony.conf | tee /etc/chrony/chrony.conf

View File

@ -24,6 +24,9 @@ unpriv(){
sudo -u nobody "$@" sudo -u nobody "$@"
} }
# Compliance
sudo systemctl disable --now ctrl-alt-del.target
# Setup NTS # Setup NTS
sudo curl https://raw.githubusercontent.com/GrapheneOS/infrastructure/main/chrony.conf -o /etc/chrony.conf sudo curl https://raw.githubusercontent.com/GrapheneOS/infrastructure/main/chrony.conf -o /etc/chrony.conf