-
Notifications
You must be signed in to change notification settings - Fork 0
/
raspbase.sh
49 lines (35 loc) · 1.28 KB
/
raspbase.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
#!/bin/bash
wget https://raw.githubusercontent.com/fdmgit/install-debian-12/main/bashrc.ini
wget https://raw.githubusercontent.com/fdmgit/install-debian-12/main/instp1arm.sh
wget https://raw.githubusercontent.com/fdmgit/install-debian-12/main/instp2arm.sh
cp bashrc.ini /root/.bashrc
rm /root/bashrc.ini
source /root/.bashrc
chmod +x /root/instp1arm.sh
chmod +x /root/instp2arm.sh
###################################
#### Setup root key file
###################################
if [ -d /root/.ssh ]; then
echo ".ssh exists"
else
mkdir /root/.ssh
fi
if [ -f /root/.ssh/authorized_keys ]; then
echo "file authorized_keys exists"
else
cd /root/.ssh
wget https://raw.githubusercontent.com/fdmgit/virtualmin/main/authorized_keys
fi
apt update && apt upgrade -y
apt install curl sudo software-properties-common -y
systemctl stop apparmor
systemctl disable apparmor
apt remove --assume-yes --purge apparmor
touch /etc/default/raspi-firmware-custom
echo "# overclocking" >> /etc/default/raspi-firmware-custom
echo "over_voltage=3" >> /etc/default/raspi-firmware-custom
echo "arm_freq=1800" >> /etc/default/raspi-firmware-custom
echo "gpu_freq=600" >> /etc/default/raspi-firmware-custom
apt install keyboard-configuration console-setup locales -y
dpkg-reconfigure keyboard-configuration