-
Notifications
You must be signed in to change notification settings - Fork 0
/
install_proxmox_backup.sh
38 lines (23 loc) · 1.06 KB
/
install_proxmox_backup.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/bin/bash
set -ex
# sudo mkdir /tmp/ssm
# cd /tmp/ssm
# wget https://s3.amazonaws.com/ec2-downloads-windows/SSMAgent/latest/debian_amd64/amazon-ssm-agent.deb
# sudo dpkg -i amazon-ssm-agent.deb
# sudo systemctl enable amazon-ssm-agent
# rm amazon-ssm-agent.deb
sudo su
apt-get install wget -y
wget https://enterprise.proxmox.com/debian/proxmox-release-bullseye.gpg -O /etc/apt/trusted.gpg.d/proxmox-release-bullseye.gpg
sha512sum /etc/apt/trusted.gpg.d/proxmox-release-bullseye.gpg
echo deb http://ftp.debian.org/debian bullseye main contrib >> /etc/apt/sources.list
echo deb http://ftp.debian.org/debian bullseye-updates main contrib >> /etc/apt/sources.list
echo deb http://download.proxmox.com/debian/pbs bullseye pbs-no-subscription >> /etc/apt/sources.list
echo deb http://security.debian.org/debian-security bullseye-security main contrib >> /etc/apt/sources.list
apt-get update -y
apt install proxmox-backup ifupdown -y
apt dist-upgrade -y
passwd root
# Then a new passwd will be asked, so enter new passwd and then confirm it.
#then make sure you reboot.
reboot