-
Notifications
You must be signed in to change notification settings - Fork 0
/
instubp1arm.sh
60 lines (45 loc) · 1.55 KB
/
instubp1arm.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#!/bin/bash
apt update
###################################
#### Install updated Ubuntu Version
###################################
apt upgrade -y
apt install plocate sntp ntpdate software-properties-common -y
timedatectl set-timezone Europe/Zurich
hostnamectl set-hostname $2
apt update
#passwd root
echo "root:$1" | chpasswd # set root password -
###################################
#### Add gat (replacement for cat)
###################################
cd /usr/local/bin
wget https://github.com/koki-develop/gat/releases/download/v0.8.3/gat_Linux_arm64.tar.gz
tar -xvzf gat_Linux_arm64.tar.gz
chown root:root gat
chmod +x gat
rm gat_Linux_arm64.tar.gz
rm LICENSE
rm README.md
###################################
#### Add joshuto (cli filemanager)
###################################
cd /usr/local/bin
wget https://github.com/kamiyaa/joshuto/releases/download/v0.9.4/joshuto-v0.9.4-aarch64-unknown-linux-gnu.tar.gz
tar -vxzf joshuto-v0.9.4-aarch64-unknown-linux-gnu.tar.gz -C /usr/local/bin --strip-components=1
chown root:root joshuto
chmod +x joshuto
rm joshuto-v0.9.4-aarch64-unknown-linux-gnu.tar.gz
###################################
#### Build aliases file
###################################
cd /root
touch .bash_aliases
echo "alias jos='joshuto'" >> .bash_aliases
echo "alias gc='gat'" >> .bash_aliases
##############################
#### Install Virtualmin
##############################
wget -O virtualmin-install_arm.sh https://raw.githubusercontent.com/fdmgit/install-ubuntu-22.04/main/virtualmin-install_arm.sh
sh virtualmin-install_arm.sh -y
reboot