1
0
mirror of https://github.com/tommytran732/Linux-Setup-Scripts synced 2024-11-22 17:41:32 -05:00

Compare commits

..

4 Commits

Author SHA1 Message Date
effebda27a
Support UTM Rosetta
Signed-off-by: Tommy <contact@tommytran.io>
2024-01-22 05:12:05 -07:00
8cb97dfeb9
Fix rosetta logic issues
Signed-off-by: Tommy <contact@tommytran.io>
2024-01-22 04:22:35 -07:00
4071009728
Update telemetry disablement
Signed-off-by: Tommy <contact@tommytran.io>
2024-01-22 04:20:45 -07:00
6e207360fa
Ubuntu 23.10 already defaults to gcc-13
Signed-off-by: Tommy <contact@tommytran.io>
2024-01-22 03:38:18 -07:00
2 changed files with 13 additions and 13 deletions

View File

@ -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

View File

@ -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