mirror of
https://github.com/tommytran732/Linux-Setup-Scripts
synced 2024-09-07 16:23:30 -04:00
Compare commits
4 Commits
1e0d6d3a3c
...
effebda27a
Author | SHA1 | Date | |
---|---|---|---|
effebda27a | |||
8cb97dfeb9 | |||
4071009728 | |||
6e207360fa |
@ -86,7 +86,7 @@ if [ ! -d /boot/efi/EFI/ZBM ]; then
|
||||
fi
|
||||
|
||||
# Disable telemetry
|
||||
sudo systemctl stop apport.service
|
||||
sudo systemctl stop --now apport.service
|
||||
sudo systemctl disable apport.service
|
||||
sudo systemctl mask apport.service
|
||||
|
||||
|
@ -31,10 +31,6 @@ 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/*
|
||||
|
||||
@ -112,11 +108,13 @@ umask 077
|
||||
|
||||
ubuntu-report -f send no
|
||||
sudo systemctl stop apport.service
|
||||
sudo systemctl disable apport.service
|
||||
sudo systemctl disable --now apport.service
|
||||
sudo systemctl mask apport.service
|
||||
sudo systemctl stop whoopsie.service
|
||||
sudo systemctl stop --now 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
|
||||
@ -146,18 +144,20 @@ flatpak --user override com.github.tchx84.Flatseal --filesystem=/var/lib/flatpak
|
||||
flatpak update -y
|
||||
|
||||
# Rosetta setup
|
||||
if [ -f /media/psf/RosettaLinux/rosetta ]; then
|
||||
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
|
||||
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 ]; then
|
||||
if [ "${MACHINE_TYPE}" == 'x86_64' ] || [ -f /media/psf/RosettaLinux/rosetta ] || [ -f /media/rosetta/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