-
Notifications
You must be signed in to change notification settings - Fork 0
/
instubp1.sh
33 lines (25 loc) · 1.1 KB
/
instubp1.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
#!/bin/bash
apt update
###################################
#### Install updated Ubuntu Version
###################################
apt install --install-recommends linux-generic-hwe-20.04 -y
apt upgrade -y
apt install mlocate sntp ntpdate software-properties-common -y
hostnamectl set-hostname $2
##############################
#### Change MariaDB repository
##############################
apt-key adv --fetch-keys 'https://mariadb.org/mariadb_release_signing_key.asc'
add-apt-repository 'deb [arch=ppc64el,amd64,arm64] https://mirror.mva-n.net/mariadb/repo/10.5/ubuntu focal main'
apt update
#passwd root
echo "root:$1" | chpasswd # set root password -
##############################
#### Install Virtualmin
##############################
#wget -O virtualmin-install-pre-release.sh https://raw.githubusercontent.com/virtualmin/virtualmin-install/d7fcb4ea35b5545417a38b7af4c4d97dbe45d591/virtualmin-install.sh
wget -O virtualmin-install.sh https://raw.githubusercontent.com/virtualmin/virtualmin-install/master/virtualmin-install.sh
#sh virtualmin-install-pre-release.sh -y
sh virtualmin-install.sh -y
reboot