-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup_debian.sh
35 lines (27 loc) · 1.04 KB
/
setup_debian.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
#!/bin/bash
# Debian Setup
# Michi von Ah - April 2023
# Run as "root"
# Install updates
apt-get update && apt-get upgrade -y
# Install basic software
apt-get install htop mc wget curl unzip ufw -y
# Install git
apt-get install git -y
# Install docker
apt-get install docker.io docker-compose -y
# Create welcome message
# Ascii Art Generator: https://patorjk.com/software/taag/#p=display&c=echo&f=Big&t=Debian
#sed -i "s#PrintMotd no#PrintMotd yes#g" /etc/ssh/sshd_config
> /etc/motd
echo "-----------------------------------" >> /etc/motd
echo " _____ _ _ " >> /etc/motd
echo " | __ \ | | (_) " >> /etc/motd
echo " | | | | ___| |__ _ __ _ _ __ " >> /etc/motd
echo " | | | |/ _ \ '_ \| |/ _\` | '_ \ " >> /etc/motd
echo " | |__| | __/ |_) | | (_| | | | |" >> /etc/motd
echo " |_____/ \___|_.__/|_|\__,_|_| |_|" >> /etc/motd
echo " " >> /etc/motd
echo "-----------------------------------" >> /etc/motd
echo "Debian Template by Michi von Ah" >> /etc/motd
#systemctl restart sshd