prolonged sudo passwd timeout
This commit is contained in:
parent
7de7fb697e
commit
601fed9b75
1 changed files with 7 additions and 2 deletions
|
@ -12,12 +12,16 @@ yellow=$(tput setaf 3) # ${yellow}
|
||||||
# Deleting password for the script
|
# Deleting password for the script
|
||||||
|
|
||||||
echo "$USER ALL=(ALL) NOPASSWD: ALL" | sudo tee /etc/sudoers.d/99-t
|
echo "$USER ALL=(ALL) NOPASSWD: ALL" | sudo tee /etc/sudoers.d/99-t
|
||||||
|
echo "Defaults timestamp_timeout=-1" | sudo tee -a /etc/sudoers
|
||||||
|
|
||||||
|
# Making Makepkg a bit faster
|
||||||
|
|
||||||
sudo sed -i 's/OPTIONS=(strip docs !libtool !staticlibs emptydirs zipman purge !debug lto !autodeps)/OPTIONS=(strip docs !libtool !staticlibs emptydirs zipman purge !debug !lto !autodeps)/' /etc/makepkg.conf
|
sudo sed -i 's/OPTIONS=(strip docs !libtool !staticlibs emptydirs zipman purge !debug lto !autodeps)/OPTIONS=(strip docs !libtool !staticlibs emptydirs zipman purge !debug !lto !autodeps)/' /etc/makepkg.conf
|
||||||
|
|
||||||
# Installing reflector for updating mirrors
|
# Installing reflector for updating mirrors
|
||||||
|
|
||||||
#sudo pacman -S reflector rsync --noconfirm
|
sudo pacman -S reflector rsync --noconfirm
|
||||||
#sudo reflector -c "Hungary,Austria,Germany,Czech" -f 12 -l 10 -n 12 --save /etc/pacman.d/mirrorlist
|
reflector --verbose -c AT -c DE -c HU --protocol https --sort rate --latest 10 --download-timeout 5 --save /etc/pacman.d/mirrorlist
|
||||||
#sudo pacman -Sy
|
#sudo pacman -Sy
|
||||||
|
|
||||||
# Installing packages
|
# Installing packages
|
||||||
|
@ -136,6 +140,7 @@ SystemAccount=false" | sudo tee /var/lib/AccountsService/users/$USER
|
||||||
|
|
||||||
# Cleanup
|
# Cleanup
|
||||||
sudo rm /etc/sudoers.d/99-$USER
|
sudo rm /etc/sudoers.d/99-$USER
|
||||||
|
sed -i '140d' /etc/sudoers
|
||||||
sudo rm -rf /home/$USER/cosmetics
|
sudo rm -rf /home/$USER/cosmetics
|
||||||
|
|
||||||
# End of script
|
# End of script
|
||||||
|
|
Loading…
Reference in a new issue