updated scripts
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
#!/bin/bash
|
||||
rm /home/akanealw/scripts/debian-essentials* > /dev/null 2>&1
|
||||
mkdir /home/akanealw/scripts > /dev/null 2>&1
|
||||
wget -O /home/akanealw/scripts/debian-essentials.sh https://aknlw.com/debian-essentials
|
||||
wget -qO /home/akanealw/scripts/debian-essentials.sh https://aknlw.com/debian-essentials
|
||||
chmod +x /home/akanealw/scripts/debian-essentials.sh
|
||||
sudo /home/akanealw/scripts/debian-essentials.sh
|
||||
|
||||
@@ -6,7 +6,7 @@ rm *.qcow2 > /dev/null 2>&1
|
||||
rm *.tar.xz > /dev/null 2>&1
|
||||
|
||||
# debian 11 bullseye cloud
|
||||
wget -q -O debian-11-genericcloud-amd64-daily.tar.xz https://cloud.debian.org/images/cloud/bullseye/daily/latest/debian-11-genericcloud-amd64-daily.tar.xz
|
||||
wget -qO debian-11-genericcloud-amd64-daily.tar.xz https://cloud.debian.org/images/cloud/bullseye/daily/latest/debian-11-genericcloud-amd64-daily.tar.xz
|
||||
tar --transform='s/disk/debian-11-genericcloud-amd64-daily/g' -xvf debian-11-genericcloud-amd64-daily.tar.xz
|
||||
#rm debian-11-genericcloud-amd64-daily.tar.xz
|
||||
#mv disk.raw debian-11-genericcloud-amd64-daily.raw
|
||||
@@ -22,7 +22,7 @@ sleep 2
|
||||
sleep 2
|
||||
|
||||
# debian 12 bookworm cloud
|
||||
wget -q -O debian-12-genericcloud-amd64-daily.tar.xz https://cloud.debian.org/images/cloud/bookworm/daily/latest/debian-12-generic-amd64-daily.tar.xz
|
||||
wget -qO debian-12-genericcloud-amd64-daily.tar.xz https://cloud.debian.org/images/cloud/bookworm/daily/latest/debian-12-generic-amd64-daily.tar.xz
|
||||
tar --transform='s/disk/debian-12-genericcloud-amd64-daily/g' -xvf debian-12-genericcloud-amd64-daily.tar.xz
|
||||
#rm debian-11-genericcloud-amd64-daily.tar.xz
|
||||
#mv disk.raw debian-11-genericcloud-amd64-daily.raw
|
||||
@@ -38,7 +38,7 @@ sleep 2
|
||||
sleep 2
|
||||
|
||||
# ubuntu focal 20.04
|
||||
wget -q -O focal-server-cloudimg-amd64.qcow2 https://cloud-images.ubuntu.com/focal/current/focal-server-cloudimg-amd64.img
|
||||
wget -qO focal-server-cloudimg-amd64.qcow2 https://cloud-images.ubuntu.com/focal/current/focal-server-cloudimg-amd64.img
|
||||
/usr/sbin/qm set 310 --delete scsi0
|
||||
sleep 2
|
||||
/usr/sbin/qm set 310 --delete unused0
|
||||
@@ -51,7 +51,7 @@ sleep 2
|
||||
sleep 2
|
||||
|
||||
# ubuntu jammy 22.04
|
||||
wget -q -O jammy-server-cloudimg-amd64.qcow2 https://cloud-images.ubuntu.com/jammy/current/jammy-server-cloudimg-amd64.img
|
||||
wget -qO jammy-server-cloudimg-amd64.qcow2 https://cloud-images.ubuntu.com/jammy/current/jammy-server-cloudimg-amd64.img
|
||||
/usr/sbin/qm set 311 --delete scsi0
|
||||
sleep 2
|
||||
/usr/sbin/qm set 311 --delete unused0
|
||||
@@ -64,7 +64,7 @@ sleep 2
|
||||
sleep 2
|
||||
|
||||
# ubuntu focal 20.04 minimal
|
||||
wget -q -O ubuntu-20.04-minimal-cloudimg-amd64.qcow2 https://cloud-images.ubuntu.com/minimal/releases/focal/release/ubuntu-20.04-minimal-cloudimg-amd64.img
|
||||
wget -qO ubuntu-20.04-minimal-cloudimg-amd64.qcow2 https://cloud-images.ubuntu.com/minimal/releases/focal/release/ubuntu-20.04-minimal-cloudimg-amd64.img
|
||||
/usr/sbin/qm set 312 --delete scsi0
|
||||
sleep 2
|
||||
/usr/sbin/qm set 312 --delete unused0
|
||||
@@ -77,7 +77,7 @@ sleep 2
|
||||
sleep 2
|
||||
|
||||
# ubuntu jammy 22.04 minimal
|
||||
wget -q -O ubuntu-22.04-minimal-cloudimg-amd64.qcow2 https://cloud-images.ubuntu.com/minimal/releases/jammy/release/ubuntu-22.04-minimal-cloudimg-amd64.img
|
||||
wget -qO ubuntu-22.04-minimal-cloudimg-amd64.qcow2 https://cloud-images.ubuntu.com/minimal/releases/jammy/release/ubuntu-22.04-minimal-cloudimg-amd64.img
|
||||
/usr/sbin/qm set 313 --delete scsi0
|
||||
sleep 2
|
||||
/usr/sbin/qm set 313 --delete unused0
|
||||
|
||||
@@ -6,16 +6,16 @@ rm /root/scripts/proxmox-* > /dev/null 2>&1
|
||||
|
||||
# check for pbs directory
|
||||
if [[ -d /etc/proxmox-backup ]] ; then
|
||||
wget -O /root/scripts/proxmox-pbs-essentials.sh https://aknlw.com/proxmox-pbs-essentials
|
||||
wget -O /root/scripts/proxmox-post-pbs-install.sh https://aknlw.com/proxmox-post-pbs-install
|
||||
wget -O /root/scripts/proxmox-kernel-clean.sh https://aknlw.com/proxmox-kernel-clean
|
||||
wget -qO /root/scripts/proxmox-pbs-essentials.sh https://aknlw.com/proxmox-pbs-essentials
|
||||
wget -qO /root/scripts/proxmox-post-pbs-install.sh https://aknlw.com/proxmox-post-pbs-install
|
||||
wget -qO /root/scripts/proxmox-kernel-clean.sh https://aknlw.com/proxmox-kernel-clean
|
||||
chmod +x /root/scripts/proxmox-*.sh
|
||||
fi
|
||||
|
||||
# check for pve directory
|
||||
if [[ -d /etc/pve ]] ; then
|
||||
wget -O /root/scripts/proxmox-pve-essentials.sh https://aknlw.com/proxmox-pve-essentials
|
||||
wget -O /root/scripts/proxmox-post-pve-install.sh https://aknlw.com/proxmox-post-pve-install
|
||||
wget -O /root/scripts/proxmox-kernel-clean.sh https://aknlw.com/proxmox-kernel-clean
|
||||
wget -qO /root/scripts/proxmox-pve-essentials.sh https://aknlw.com/proxmox-pve-essentials
|
||||
wget -qO /root/scripts/proxmox-post-pve-install.sh https://aknlw.com/proxmox-post-pve-install
|
||||
wget -qO /root/scripts/proxmox-kernel-clean.sh https://aknlw.com/proxmox-kernel-clean
|
||||
chmod +x /root/scripts/proxmox-*.sh
|
||||
fi
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
ssh -i /root/.ssh/gamingpc akanealw@gamingpc -t 'shutdown /f /t 3'
|
||||
ssh -i /root/.ssh/truenas root@truenas -t 'shutdown -p now'
|
||||
shutdown -h now
|
||||
Reference in New Issue
Block a user