Skip to content

Commit 22ac9d8

Browse files
committed
Change apt to apt-get
Signed-off-by: Tommy <[email protected]>
1 parent 09fa8f2 commit 22ac9d8

File tree

3 files changed

+36
-36
lines changed

3 files changed

+36
-36
lines changed

Proxmox-8.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,9 @@ deb https://deb.debian.org/debian/ bookworm-backports main contrib non-free non-
5757
deb http://download.proxmox.com/debian/pve bookworm pve-no-subscription' | tee /etc/apt/sources.list
5858

5959
# Update packages
60-
apt update
61-
apt full-upgrade -y
62-
apt autoremove -y
60+
apt-get update
61+
apt-get full-upgrade -y
62+
apt-get autoremove -y
6363

6464
CPU=$(grep vendor_id /proc/cpuinfo)
6565
if [[ "${CPU}" == *"AuthenticAMD"* ]]; then
@@ -69,7 +69,7 @@ else
6969
fi
7070

7171
# Install packages
72-
apt install -y "${microcode}" proxmox-kernel-6.14 unattended-upgrades systemd-zram-generator tuned
72+
apt-get install -y "${microcode}" proxmox-kernel-6.14 unattended-upgrades systemd-zram-generator tuned
7373

7474
### This part assumes that you are using systemd-boot
7575
echo "mitigations=auto,nosmt spectre_v2=on spectre_bhi=on spec_store_bypass_disable=on tsx=off kvm.nx_huge_pages=force nosmt=force l1d_flush=on l1tf=full,force kvm-intel.vmentry_l1d_flush=always spec_rstack_overflow=safe-ret gather_data_sampling=force reg_file_data_sampling=on random.trust_bootloader=off random.trust_cpu=off intel_iommu=on amd_iommu=force_isolation efi=disable_early_pci_dma iommu=force iommu.passthrough=0 iommu.strict=1 slab_nomerge init_on_alloc=1 init_on_free=1 pti=on vsyscall=none ia32_emulation=0 page_alloc.shuffle=1 randomize_kstack_offset=on debugfs=off lockdown=confidentiality module.sig_enforce=1 nomodeset $(cat /etc/kernel/cmdline)" > /etc/kernel/cmdline

Ubuntu-24.04-Desktop.sh

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ sudo systemctl disable --now systemd-timesyncd
4545
sudo systemctl mask systemd-timesyncd
4646

4747
if [ "${virtualization}" = "parallels" ]; then
48-
sudo apt install -y chrony
48+
sudo apt-get install -y chrony
4949
unpriv curl -s https://raw.githubusercontent.com/GrapheneOS/infrastructure/refs/heads/main/etc/chrony.conf | sudo tee /etc/chrony/chrony.conf > /dev/null
5050
sudo chmod 644 /etc/chrony/chrony.conf
5151
sudo systemctl restart chronyd
@@ -130,33 +130,33 @@ sudo systemctl disable --now whoopsie.path
130130
sudo systemctl mask whoopsie.path
131131

132132
# Update packages
133-
sudo apt update -y
134-
sudo apt full-upgrade -y
133+
sudo apt-get update -y
134+
sudo apt-get full-upgrade -y
135135

136136
## Avoid phased updates
137-
sudo apt install -y curl
137+
sudo apt-get install -y curl
138138
unpriv curl -s https://raw.githubusercontent.com/TommyTran732/Linux-Setup-Scripts/main/etc/apt/apt.conf.d/99sane-upgrades | sudo tee /etc/apt/apt.conf.d/99sane-upgrades > /dev/null
139139
sudo chmod 644 /etc/apt/apt.conf.d/99sane-upgrades
140140

141141
# Update system
142-
sudo apt update -y
143-
sudo apt full-upgrade -y
144-
sudo apt autoremove -y
142+
sudo apt-get update -y
143+
sudo apt-get full-upgrade -y
144+
sudo apt-get autoremove -y
145145

146146
# Remove unneeded packages
147-
sudo apt purge -y apport baobab cups* eog evince* gedit firefox* gnome-calculator gnome-characters* gnome-clocks gnome-font-viewer gnome-logs gnome-power-manager gnome-shell-extension-prefs gnome-system-monitor gnome-text-editor libreoffice* seahorse tcpdump whoopsie
148-
sudo apt autoremove -y
147+
sudo apt-get purge -y apport baobab cups* eog evince* gedit firefox* gnome-calculator gnome-characters* gnome-clocks gnome-font-viewer gnome-logs gnome-power-manager gnome-shell-extension-prefs gnome-system-monitor gnome-text-editor libreoffice* seahorse tcpdump whoopsie
148+
sudo apt-get autoremove -y
149149
sudo snap remove firefox gnome-text-editor snap-store
150150

151151
sudo rm -rf /usr/share/hplip
152152

153153
# Install packages that I use
154-
sudo apt install -y gnome-console gnome-software-plugin-flatpak
154+
sudo apt-get install -y gnome-console gnome-software-plugin-flatpak
155155
sudo snap install gnome-text-editor
156156

157157
# Install appropriate virtualization drivers
158158
if [ "$virtualization" = 'kvm' ]; then
159-
sudo apt install -y qemu-guest-agent spice-vdagent
159+
sudo apt-get install -y qemu-guest-agent spice-vdagent
160160
fi
161161

162162
# Setup Flatpak
@@ -177,8 +177,8 @@ if [ -f /media/psf/RosettaLinux/rosetta ] || [ -f /media/rosetta/rosetta ]; then
177177
unpriv curl -s https://raw.githubusercontent.com/TommyTran732/Linux-Setup-Scripts/main/etc/apt/sources.list.d/rosetta.sources | sudo tee /etc/apt/sources.list.d/ubuntu.sources > /dev/null
178178
sudo chmod 644 /etc/apt/sources.list.d/ubuntu.sources
179179
sudo dpkg --add-architecture amd64
180-
sudo apt update
181-
sudo apt full-upgrade -y
180+
sudo apt-get update
181+
sudo apt-get full-upgrade -y
182182
fi
183183

184184
# Install Microsoft Edge if x86_64
@@ -189,9 +189,9 @@ if [ "${MACHINE_TYPE}" = 'x86_64' ] || [ -f /media/psf/RosettaLinux/rosetta ] ||
189189
chmod 644 /usr/share/keyrings/microsoft.gpg
190190
unpriv curl -s https://raw.githubusercontent.com/TommyTran732/Linux-Setup-Scripts/main/etc/apt/sources.list.d/microsoft-edge.sources | sudo tee /etc/apt/sources.list.d/microsoft-edge.sources > /dev/null
191191
sudo chmod 644 /etc/apt/sources.list.d/microsoft-edge.sources
192-
sudo apt update
193-
sudo apt full-upgrade -y
194-
sudo apt install -y microsoft-edge-stable
192+
sudo apt-get update
193+
sudo apt-get full-upgrade -y
194+
sudo apt-get install -y microsoft-edge-stable
195195
sudo mkdir -p /etc/opt/edge/policies/managed/ /etc/opt/edge/policies/recommended/
196196
sudo chmod -R 755 /etc/opt
197197
unpriv curl -s https://raw.githubusercontent.com/TommyTran732/Microsoft-Edge-Policies/main/Linux/managed.json | sudo tee /etc/opt/edge/policies/managed/managed.json > /dev/null
@@ -217,8 +217,8 @@ sudo systemctl enable --now fstrim.timer
217217
if [ "$virtualization" = 'none' ]; then
218218
output "Bare Metal installation. Tuned will not be set up here - PPD should take care of it."
219219
else
220-
sudo apt purge -y power-profiles-daemon
221-
sudo apt install -y tuned
220+
sudo apt-get purge -y power-profiles-daemon
221+
sudo apt-get install -y tuned
222222
systemctl enable --now tuned
223223
sudo tuned-adm profile virtual-guest
224224
fi
@@ -230,7 +230,7 @@ sudo systemctl restart fwupd
230230
# Setup networking
231231

232232
# UFW Snap is strictly confined, unlike its .deb counterpart
233-
sudo apt purge -y ufw
233+
sudo apt-get purge -y ufw
234234
sudo snap install ufw
235235
echo 'y' | sudo ufw enable
236236

Ubuntu-24.04-Server.sh

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ sudo chmod 700 /home/*
4545
# Setup NTS
4646
sudo systemctl disable --now systemd-timesyncd
4747
sudo systemctl mask systemd-timesyncd
48-
sudo apt install -y chrony
48+
sudo apt-get install -y chrony
4949
unpriv curl -s https://raw.githubusercontent.com/GrapheneOS/infrastructure/refs/heads/main/etc/chrony.conf | sudo tee /etc/chrony/chrony.conf > /dev/null
5050
sudo chmod 644 /etc/chrony/chrony.conf
5151
sudo systemctl restart chronyd
@@ -93,20 +93,20 @@ sudo systemctl disable --now apport.service
9393
sudo systemctl mask apport.service
9494

9595
## Avoid phased updates
96-
sudo apt install -y curl
96+
sudo apt-get install -y curl
9797
unpriv curl -s https://raw.githubusercontent.com/TommyTran732/Linux-Setup-Scripts/main/etc/apt/apt.conf.d/99sane-upgrades | sudo tee /etc/apt/apt.conf.d/99sane-upgrades > /dev/null
9898
sudo chmod 644 /etc/apt/apt.conf.d/99sane-upgrades
9999

100-
sudo apt update -y
101-
sudo apt full-upgrade -y
102-
sudo apt autoremove -y
100+
sudo apt-get update -y
101+
sudo apt-get full-upgrade -y
102+
sudo apt-get autoremove -y
103103

104104
## Install basic sysadmin tools
105-
sudo apt install -y nano iputils-ping
105+
sudo apt-get install -y nano iputils-ping
106106

107107
# Install appropriate virtualization drivers
108108
if [ "$virtualization" = 'kvm' ]; then
109-
sudo apt install -y qemu-guest-agent
109+
sudo apt-get install -y qemu-guest-agent
110110
fi
111111

112112
# Enable fstrim.timer
@@ -115,7 +115,7 @@ sudo systemctl enable --now fstrim.timer
115115
### Differentiating bare metal and virtual installs
116116

117117
# Setup tuned
118-
sudo apt install -y tuned
118+
sudo apt-get install -y tuned
119119
sudo systemctl enable --now tuned
120120

121121
if [ "$virtualization" = 'none' ]; then
@@ -126,7 +126,7 @@ fi
126126

127127
# Setup fwupd
128128
if [ "$virtualization" = 'none' ]; then
129-
sudo apt install -y fwupd
129+
sudo apt-get install -y fwupd
130130
echo 'UriSchemes=file;https' | sudo tee -a /etc/fwupd/fwupd.conf
131131
sudo systemctl restart fwupd
132132
mkdir -p /etc/systemd/system/fwupd-refresh.service.d
@@ -135,12 +135,12 @@ if [ "$virtualization" = 'none' ]; then
135135
sudo systemctl daemon-reload
136136
sudo systemctl enable --now fwupd-refresh.timer
137137
else
138-
sudo apt purge -y fwupd
138+
sudo apt-get purge -y fwupd
139139
fi
140140

141141
# Setup unbound
142142

143-
sudo apt install -y unbound dns-root-data
143+
sudo apt-get install -y unbound dns-root-data
144144

145145
echo 'server:
146146
trust-anchor-signaling: yes
@@ -193,8 +193,8 @@ sudo systemctl disable systemd-resolved
193193
# Setup networking
194194

195195
# UFW Snap is strictly confined, unlike its .deb counterpart
196-
sudo apt purge -y ufw
197-
sudo apt install -y snapd
196+
sudo apt-get purge -y ufw
197+
sudo apt-get install -y snapd
198198
sudo snap install ufw
199199
echo 'y' | sudo ufw enable
200200
sudo ufw allow SSH

0 commit comments

Comments
 (0)