mirror of
https://github.com/tommytran732/Linux-Setup-Scripts
synced 2024-11-22 17:41:32 -05:00
Compare commits
No commits in common. "2c0754a7bc88b84774f448050bab4b4f705e53b7" and "166b42d1fae31b42d1f603c63c0b08ab3e51e2df" have entirely different histories.
2c0754a7bc
...
166b42d1fa
@ -148,19 +148,18 @@ flatpak update -y
|
|||||||
MACHINE_TYPE=$(uname -m)
|
MACHINE_TYPE=$(uname -m)
|
||||||
if [ "${MACHINE_TYPE}" == 'x86_64' ]; then
|
if [ "${MACHINE_TYPE}" == 'x86_64' ]; then
|
||||||
output 'x86_64 machine, installing Microsoft Edge.'
|
output 'x86_64 machine, installing Microsoft Edge.'
|
||||||
echo '[microsoft-edge]
|
curl -O https://packages.microsoft.com/keys/microsoft.asc
|
||||||
name=microsoft-edge
|
sudo rpm --import microsoft.asc
|
||||||
baseurl=https://packages.microsoft.com/yumrepos/edge/
|
rm microsoft.asc
|
||||||
enabled=1
|
sudo dnf config-manager --add-repo https://packages.microsoft.com/yumrepos/edge
|
||||||
gpgcheck=1
|
|
||||||
gpgkey=https://packages.microsoft.com/keys/microsoft.asc' | sudo tee /etc/yum.repos.d/microsoft-edge.repo
|
|
||||||
sudo dnf install -y microsoft-edge-stable
|
sudo dnf install -y microsoft-edge-stable
|
||||||
sudo mkdir -p /etc/opt/edge/policies/managed/ /etc/opt/edge/policies/recommended/
|
sudo mkdir -p /etc/opt/edge/policies/managed/ /etc/opt/edge/policies/recommended/
|
||||||
sudo chmod -R 755 /etc/opt/edge
|
sudo chmod -R 755 /etc/opt/edge
|
||||||
unpriv curl https://raw.githubusercontent.com/TommyTran732/Microsoft-Edge-Policies/main/Linux/managed.json | sudo tee /etc/opt/edge/policies/managed/managed.json
|
unpriv curl https://raw.githubusercontent.com/TommyTran732/Microsoft-Edge-Policies/main/Linux/managed.json | sudo tee /etc/opt/edge/policies/managed/managed.json
|
||||||
sudo chmod 644 /etc/opt/edge/policies/managed/managed.json
|
sudo chmod 644 /etc/opt/edge/policies/managed/managed.json
|
||||||
unpriv curl https://raw.githubusercontent.com/TommyTran732/Microsoft-Edge-Policies/main/Linux/recommended.json | sudo tee /etc/opt/edge/policies/recommended/recommended.json
|
unpriv curl https://raw.githubusercontent.com/TommyTran732/Microsoft-Edge-Policies/main/Linux/recommended.json | sudo tee /etc/opt/edge/policies/recommended/recommended.json
|
||||||
sudo chmod 644 /etc/opt/edge/policies/managed/managed.json /etc/opt/edge/policies/recommended/recommended.json
|
sudo chmod 644 /etc/opt/edge/policies/managed/managed.json /etc/opt/edge/policies/managed/recommended.json
|
||||||
|
sudo chmod 644 /etc/opt/edge/policies/managed/recommended.json
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Enable auto TRIM
|
# Enable auto TRIM
|
||||||
|
@ -131,32 +131,84 @@ sudo apt install -y gnome-console
|
|||||||
sudo snap install gnome-text-editor loupe
|
sudo snap install gnome-text-editor loupe
|
||||||
|
|
||||||
# Rosetta setup
|
# Rosetta setup
|
||||||
if [ -f /media/psf/RosettaLinux/rosetta ]; then
|
echo '# deb cdrom:[Ubuntu 22.04.3 LTS _Jammy Jellyfish_ - Release arm64 (20240119)]/ jammy main restricted
|
||||||
unpriv curl https://raw.githubusercontent.com/TommyTran732/Linux-Setup-Scripts/main/etc/apt/rosetta-sources.list | sudo tee /etc/apt/sources.list
|
|
||||||
unpriv curl https://raw.githubusercontent.com/TommyTran732/Linux-Setup-Scripts/main/etc/apt/sources.list.d/rosetta-proposed.list | sudo tee /etc/apt/sources.list.d/proposed.list
|
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
|
||||||
fi
|
# newer versions of the distribution.
|
||||||
|
deb [arch=arm64] http://us.ports.ubuntu.com/ubuntu-ports/ jammy main restricted
|
||||||
|
deb [arch=amd64] http://us.ports.ubuntu.com/ubuntu-ports/ jammy main restricted
|
||||||
|
# deb-src http://us.ports.ubuntu.com/ubuntu-ports/ jammy main restricted
|
||||||
|
|
||||||
|
## Major bug fix updates produced after the final release of the
|
||||||
|
## distribution.
|
||||||
|
deb [arch=arm64] http://us.ports.ubuntu.com/ubuntu-ports/ jammy-updates main restricted
|
||||||
|
deb [arch=amd64] http://us.ports.ubuntu.com/ubuntu-ports/ jammy-updates main restricted
|
||||||
|
# deb-src http://us.ports.ubuntu.com/ubuntu-ports/ jammy-updates main restricted
|
||||||
|
|
||||||
|
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
|
||||||
|
## team. Also, please note that software in universe WILL NOT receive any
|
||||||
|
## review or updates from the Ubuntu security team.
|
||||||
|
deb [arch=arm64] http://us.ports.ubuntu.com/ubuntu-ports/ jammy universe
|
||||||
|
deb [arch=amd64] http://us.ports.ubuntu.com/ubuntu-ports/ jammy universe
|
||||||
|
# deb-src http://us.ports.ubuntu.com/ubuntu-ports/ jammy universe
|
||||||
|
deb [arch=arm64] http://us.ports.ubuntu.com/ubuntu-ports/ jammy-updates universe
|
||||||
|
deb [arch=amd64] http://us.ports.ubuntu.com/ubuntu-ports/ jammy-updates universe
|
||||||
|
# deb-src http://us.ports.ubuntu.com/ubuntu-ports/ jammy-updates universe
|
||||||
|
|
||||||
|
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
|
||||||
|
## team, and may not be under a free licence. Please satisfy yourself as to
|
||||||
|
## your rights to use the software. Also, please note that software in
|
||||||
|
## multiverse WILL NOT receive any review or updates from the Ubuntu
|
||||||
|
## security team.
|
||||||
|
deb [arch=arm64] http://us.ports.ubuntu.com/ubuntu-ports/ jammy multiverse
|
||||||
|
deb [arch=amd64] http://us.ports.ubuntu.com/ubuntu-ports/ jammy multiverse
|
||||||
|
# deb-src http://us.ports.ubuntu.com/ubuntu-ports/ jammy multiverse
|
||||||
|
deb [arch=arm64] http://us.ports.ubuntu.com/ubuntu-ports/ jammy-updates multiverse
|
||||||
|
deb [arch=amd64] http://us.ports.ubuntu.com/ubuntu-ports/ jammy-updates multiverse
|
||||||
|
# deb-src http://us.ports.ubuntu.com/ubuntu-ports/ jammy-updates multiverse
|
||||||
|
|
||||||
|
## N.B. software from this repository may not have been tested as
|
||||||
|
## extensively as that contained in the main release, although it includes
|
||||||
|
## newer versions of some applications which may provide useful features.
|
||||||
|
## Also, please note that software in backports WILL NOT receive any review
|
||||||
|
## or updates from the Ubuntu security team.
|
||||||
|
deb [arch=arm64] http://us.ports.ubuntu.com/ubuntu-ports/ jammy-backports main restricted universe multiverse
|
||||||
|
deb [arch=amd64] http://us.ports.ubuntu.com/ubuntu-ports/ jammy-backports main restricted universe multiverse
|
||||||
|
# deb-src http://us.ports.ubuntu.com/ubuntu-ports/ jammy-backports main restricted universe multiverse
|
||||||
|
|
||||||
|
deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports jammy-security main restricted
|
||||||
|
deb [arch=amd64] http://ports.ubuntu.com/ubuntu-ports jammy-security main restricted
|
||||||
|
# deb-src http://ports.ubuntu.com/ubuntu-ports jammy-security main restricted
|
||||||
|
deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports jammy-security universe
|
||||||
|
deb [arch=amd64] http://ports.ubuntu.com/ubuntu-ports jammy-security universe
|
||||||
|
# deb-src http://ports.ubuntu.com/ubuntu-ports jammy-security universe
|
||||||
|
deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports jammy-security multiverse
|
||||||
|
deb [arch=amd64] http://ports.ubuntu.com/ubuntu-ports jammy-security multiverse
|
||||||
|
# deb-src http://ports.ubuntu.com/ubuntu-ports jammy-security multiverse
|
||||||
|
|
||||||
|
# This system was installed using small removable media
|
||||||
|
# (e.g. netinst, live or single CD). The matching "deb cdrom"
|
||||||
|
# entries were disabled at the end of the installation process.
|
||||||
|
# For information about how to configure apt package sources,
|
||||||
|
# see the sources.list(5) manual.' | sudo tee /etc/apt/sources.list
|
||||||
|
|
||||||
sudo dpkg --add-architecture amd64
|
sudo dpkg --add-architecture amd64
|
||||||
sudo apt update
|
sudo apt update
|
||||||
sudo apt full-upgrade -y
|
|
||||||
|
|
||||||
# Install Microsoft Edge if x86_64
|
# Install Microsoft Edge if x86_64
|
||||||
MACHINE_TYPE=$(uname -m)
|
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 ]; then
|
||||||
output 'x86_64 machine, installing Microsoft Edge.'
|
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
|
unpriv curl https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add -
|
||||||
sudo chmod 644 /usr/share/keyrings/microsoft.gpg
|
sudo add-apt-repository "deb [arch=amd64] https://packages.microsoft.com/repos/edge stable main"
|
||||||
unpriv curl https://raw.githubusercontent.com/TommyTran732/Linux-Setup-Scripts/main/etc/apt/sources.list.d/microsoft-edge.list | sudo tee /etc/apt/sources.list.d/microsoft-edge.list
|
|
||||||
sudo chmod 644 /etc/apt/sources.list.d/microsoft-edge.list
|
|
||||||
sudo apt update
|
|
||||||
sudo apt full-upgrade -y
|
|
||||||
sudo apt install -y microsoft-edge-stable
|
sudo apt install -y microsoft-edge-stable
|
||||||
sudo mkdir -p /etc/opt/edge/policies/managed/ /etc/opt/edge/policies/recommended/
|
sudo mkdir -p /etc/opt/edge/policies/managed/ /etc/opt/edge/policies/recommended/
|
||||||
sudo chmod -R 755 /etc/opt/edge
|
sudo chmod -R 755 /etc/opt/edge
|
||||||
unpriv curl https://raw.githubusercontent.com/TommyTran732/Microsoft-Edge-Policies/main/Linux/managed.json | sudo tee /etc/opt/edge/policies/managed/managed.json
|
unpriv curl https://raw.githubusercontent.com/TommyTran732/Microsoft-Edge-Policies/main/Linux/managed.json | sudo tee /etc/opt/edge/policies/managed/managed.json
|
||||||
sudo chmod 644 /etc/opt/edge/policies/managed/managed.json
|
sudo chmod 644 /etc/opt/edge/policies/managed/managed.json
|
||||||
unpriv curl https://raw.githubusercontent.com/TommyTran732/Microsoft-Edge-Policies/main/Linux/recommended.json | sudo tee /etc/opt/edge/policies/recommended/recommended.json
|
unpriv curl https://raw.githubusercontent.com/TommyTran732/Microsoft-Edge-Policies/main/Linux/recommended.json | sudo tee /etc/opt/edge/policies/recommended/recommended.json
|
||||||
sudo chmod 644 /etc/opt/edge/policies/managed/managed.json /etc/opt/edge/policies/recommended/recommended.json
|
sudo chmod 644 /etc/opt/edge/policies/managed/managed.json /etc/opt/edge/policies/managed/recommended.json
|
||||||
|
sudo chmod 644 /etc/opt/edge/policies/managed/recommended.json
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Enable fstrim.timer
|
# Enable fstrim.timer
|
||||||
|
@ -1,60 +0,0 @@
|
|||||||
# deb cdrom:[Ubuntu 22.04.3 LTS _Jammy Jellyfish_ - Release arm64 (20240119)]/ jammy main restricted
|
|
||||||
|
|
||||||
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
|
|
||||||
# newer versions of the distribution.
|
|
||||||
deb [arch=arm64] http://us.ports.ubuntu.com/ubuntu-ports/ jammy main restricted
|
|
||||||
deb [arch=amd64] http://archive.ubuntu.com/ubuntu/ jammy main restricted
|
|
||||||
# deb-src http://us.ports.ubuntu.com/ubuntu-ports/ jammy main restricted
|
|
||||||
|
|
||||||
## Major bug fix updates produced after the final release of the
|
|
||||||
## distribution.
|
|
||||||
deb [arch=arm64] http://us.ports.ubuntu.com/ubuntu-ports/ jammy-updates main restricted
|
|
||||||
deb [arch=amd64] http://archive.ubuntu.com/ubuntu/ jammy-updates main restricted
|
|
||||||
# deb-src http://us.ports.ubuntu.com/ubuntu-ports/ jammy-updates main restricted
|
|
||||||
|
|
||||||
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
|
|
||||||
## team. Also, please note that software in universe WILL NOT receive any
|
|
||||||
## review or updates from the Ubuntu security team.
|
|
||||||
deb [arch=arm64] http://us.ports.ubuntu.com/ubuntu-ports/ jammy universe
|
|
||||||
deb [arch=amd64] http://archive.ubuntu.com/ubuntu/ jammy universe
|
|
||||||
# deb-src http://us.ports.ubuntu.com/ubuntu-ports/ jammy universe
|
|
||||||
deb [arch=arm64] http://us.ports.ubuntu.com/ubuntu-ports/ jammy-updates universe
|
|
||||||
deb [arch=amd64] http://archive.ubuntu.com/ubuntu/ jammy-updates universe
|
|
||||||
# deb-src http://us.ports.ubuntu.com/ubuntu-ports/ jammy-updates universe
|
|
||||||
|
|
||||||
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
|
|
||||||
## team, and may not be under a free licence. Please satisfy yourself as to
|
|
||||||
## your rights to use the software. Also, please note that software in
|
|
||||||
## multiverse WILL NOT receive any review or updates from the Ubuntu
|
|
||||||
## security team.
|
|
||||||
deb [arch=arm64] http://us.ports.ubuntu.com/ubuntu-ports/ jammy multiverse
|
|
||||||
deb [arch=amd64] http://archive.ubuntu.com/ubuntu/ jammy multiverse
|
|
||||||
# deb-src http://us.ports.ubuntu.com/ubuntu-ports/ jammy multiverse
|
|
||||||
deb [arch=arm64] http://us.ports.ubuntu.com/ubuntu-ports/ jammy-updates multiverse
|
|
||||||
deb [arch=amd64] http://archive.ubuntu.com/ubuntu/ jammy-updates multiverse
|
|
||||||
# deb-src http://us.ports.ubuntu.com/ubuntu-ports/ jammy-updates multiverse
|
|
||||||
|
|
||||||
## N.B. software from this repository may not have been tested as
|
|
||||||
## extensively as that contained in the main release, although it includes
|
|
||||||
## newer versions of some applications which may provide useful features.
|
|
||||||
## Also, please note that software in backports WILL NOT receive any review
|
|
||||||
## or updates from the Ubuntu security team.
|
|
||||||
deb [arch=arm64] http://us.ports.ubuntu.com/ubuntu-ports/ jammy-backports main restricted universe multiverse
|
|
||||||
deb [arch=amd64] http://archive.ubuntu.com/ubuntu/ jammy-backports main restricted universe multiverse
|
|
||||||
# deb-src http://us.ports.ubuntu.com/ubuntu-ports/ jammy-backports main restricted universe multiverse
|
|
||||||
|
|
||||||
deb [arch=arm64] http://us.ports.ubuntu.com/ubuntu-ports/ jammy-security main restricted
|
|
||||||
deb [arch=amd64] http://archive.ubuntu.com/ubuntu/ jammy-security main restricted
|
|
||||||
# deb-src http://us.ports.ubuntu.com/ubuntu-ports jammy-security main restricted
|
|
||||||
deb [arch=arm64] http://us.ports.ubuntu.com/ubuntu-ports/ jammy-security universe
|
|
||||||
deb [arch=amd64] http://archive.ubuntu.com/ubuntu/ jammy-security universe
|
|
||||||
# deb-src http://us.ports.ubuntu.com/ubuntu-ports jammy-security universe
|
|
||||||
deb [arch=arm64] http://us.ports.ubuntu.com/ubuntu-ports/ jammy-security multiverse
|
|
||||||
deb [arch=amd64] http://archive.ubuntu.com/ubuntu/ jammy-security multiverse
|
|
||||||
# deb-src http://us.ports.ubuntu.com/ubuntu-ports jammy-security multiverse
|
|
||||||
|
|
||||||
# This system was installed using small removable media
|
|
||||||
# (e.g. netinst, live or single CD). The matching "deb cdrom"
|
|
||||||
# entries were disabled at the end of the installation process.
|
|
||||||
# For information about how to configure apt package sources,
|
|
||||||
# see the sources.list(5) manual.
|
|
@ -1 +0,0 @@
|
|||||||
deb [arch=amd64 signed-by=/usr/share/keyrings/microsoft.gpg] https://packages.microsoft.com/repos/edge stable main
|
|
@ -1,2 +0,0 @@
|
|||||||
deb [arch=arm64] http://us.ports.ubuntu.com/ubuntu-ports/ jammy-proposed main restricted
|
|
||||||
deb [arch=amd64] http://archive.ubuntu.com/ubuntu/ jammy-proposed main restricted
|
|
Loading…
Reference in New Issue
Block a user