mirror of
https://github.com/tommytran732/Linux-Setup-Scripts
synced 2024-11-09 03:31:33 -05:00
Compare commits
No commits in common. "effebda27a3c974a064f608cafda69b617b72645" and "1e0d6d3a3c5ce0337ddce5098a435ca5cbaf2dbd" have entirely different histories.
effebda27a
...
1e0d6d3a3c
@ -86,7 +86,7 @@ if [ ! -d /boot/efi/EFI/ZBM ]; then
|
||||
fi
|
||||
|
||||
# Disable telemetry
|
||||
sudo systemctl stop --now apport.service
|
||||
sudo systemctl stop apport.service
|
||||
sudo systemctl disable apport.service
|
||||
sudo systemctl mask apport.service
|
||||
|
||||
|
@ -31,6 +31,10 @@ sudo apt update -y
|
||||
sudo apt full-upgrade -y
|
||||
sudo apt autoremove -y
|
||||
|
||||
# Default to gcc-12 instead of gcc-11
|
||||
sudo rm /usr/bin/gcc
|
||||
sudo ln -s /usr/bin/gcc-12 /usr/bin/gcc
|
||||
|
||||
# Make home directory private
|
||||
sudo chmod 700 /home/*
|
||||
|
||||
@ -108,13 +112,11 @@ umask 077
|
||||
|
||||
ubuntu-report -f send no
|
||||
sudo systemctl stop apport.service
|
||||
sudo systemctl disable --now apport.service
|
||||
sudo systemctl disable apport.service
|
||||
sudo systemctl mask apport.service
|
||||
sudo systemctl stop --now whoopsie.service
|
||||
sudo systemctl stop whoopsie.service
|
||||
sudo systemctl disable whoopsie.service
|
||||
sudo systemctl mask whoopsie.service
|
||||
sudo systemctl disable whoopsie.path
|
||||
sudo systemctl mask whoopsie.path
|
||||
|
||||
# Update packages and firmware
|
||||
sudo apt update -y
|
||||
@ -144,20 +146,18 @@ flatpak --user override com.github.tchx84.Flatseal --filesystem=/var/lib/flatpak
|
||||
flatpak update -y
|
||||
|
||||
# Rosetta setup
|
||||
if [ -f /media/psf/RosettaLinux/rosetta ] || [ -f /media/rosetta/rosetta ]; then
|
||||
if [ -f /media/rosetta/rosetta ]; then
|
||||
sudo /usr/sbin/update-binfmts --install rosetta /media/rosetta/rosetta --magic "\x7fELF\x02\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x3e\x00" --mask "\xff\xff\xff\xff\xff\xfe\xfe\x00\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff" --credentials yes --preserve no --fix-binary yes
|
||||
fi
|
||||
if [ -f /media/psf/RosettaLinux/rosetta ]; then
|
||||
unpriv curl https://raw.githubusercontent.com/TommyTran732/Linux-Setup-Scripts/main/etc/apt/rosetta-sources.list | sudo tee /etc/apt/sources.list
|
||||
rm -rf /etc/apt/sources.list.d/proposed.list
|
||||
sudo dpkg --add-architecture amd64
|
||||
sudo apt update
|
||||
sudo apt full-upgrade -y
|
||||
fi
|
||||
|
||||
sudo dpkg --add-architecture amd64
|
||||
sudo apt update
|
||||
sudo apt full-upgrade -y
|
||||
|
||||
# Install Microsoft Edge if x86_64
|
||||
MACHINE_TYPE=$(uname -m)
|
||||
if [ "${MACHINE_TYPE}" == 'x86_64' ] || [ -f /media/psf/RosettaLinux/rosetta ] || [ -f /media/rosetta/rosetta ]; then
|
||||
if [ "${MACHINE_TYPE}" == 'x86_64' ] || [ -f /media/psf/RosettaLinux/rosetta ]; then
|
||||
output 'x86_64 machine, installing Microsoft Edge.'
|
||||
unpriv curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor | sudo tee /usr/share/keyrings/microsoft.gpg
|
||||
sudo chmod 644 /usr/share/keyrings/microsoft.gpg
|
||||
|
Loading…
Reference in New Issue
Block a user