-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdoCustomSetup.sh
More file actions
executable file
·36 lines (25 loc) · 852 Bytes
/
Copy pathdoCustomSetup.sh
File metadata and controls
executable file
·36 lines (25 loc) · 852 Bytes
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
#!/bin/sh
while read -r -t 0; do read -r; done
read -p "What would you like to be the hostname of this machine? " newhostname
echo "Setting hostname to $newhostname"
sudo hostnamectl set-hostname $newhostname
echo "Setting timezone do America/Denver"
sudo timedatectl set-timezone America/Denver
export DEBIAN_FRONTEND=noninteractive
sudo apt update -yq
sudo apt -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" install openssh-server -yq
#"openssh-server" <<< "new config for sshd_config: keep local"
#"libssl1.1:amd64" <<< "restart services: yes"
#"ubuntu-server" <<< "new config: package maintainer's"
sudo apt full-upgrade -yq
sudo apt autoremove -yq
cd zsh
. ./setup.sh
cd ../nano
zsh ./setup.sh
# cd ../mailing
# zsh ./setup.sh
cd ../pip
zsh ./setup.sh
read -p "All done. Press [Enter] to reboot."
sudo reboot