1
0
mirror of https://github.com/tommytran732/Linux-Setup-Scripts synced 2024-09-18 13:14:43 -04: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 "$@"
}
# Moving to the home directory
#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.)
cd /home/"${USER}" || exit
# Compliance
sudo systemctl disable --now ctrl-alt-del.target
# Setting umask to 077
umask 077

View File

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