1
0
mirror of https://github.com/tommytran732/Linux-Setup-Scripts synced 2024-12-25 00:01:59 -05:00

Create Ubuntu-22.04-Desktop

Signed-off-by: Tommy <contact@tommytran.io>
This commit is contained in:
Tommy 2023-06-05 22:45:31 -07:00 committed by GitHub
parent cde93931bd
commit 5d8b2dca88
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

14
Ubuntu-22.04-Desktop Normal file
View File

@ -0,0 +1,14 @@
#!/bin/bash
#Please note that this is how I PERSONALLY setup my computer - I do some stuff such as not using anything to download GNOME extensions from extensions.gnome.org and installing the extensions as a package instead
#Customize it to your liking
#Run this script as your admin user, NOT root
#Setting umask to 077
umask 077
sudo sed -ie '/^DIR_MODE=/ s/=[0-9]*\+/=0700/' /etc/adduser.conf
sudo sed -ie '/^UMASK\s\+/ s/022/077/' /etc/login.defs
sudo sed -i 's/USERGROUPS_ENAB yes/USERGROUPS_ENAB no/g' /etc/login.defs
echo "umask 077" | sudo tee --append /etc/profile
apt purge -y gnome-calculator