-
Notifications
You must be signed in to change notification settings - Fork 0
/
debian-bootstrap.sh
60 lines (46 loc) · 1012 Bytes
/
debian-bootstrap.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
#
# About:
#
# Program for initial Debian configuration.
#
# Usage:
#
# apt-get update && apt-get install --yes bash curl
# bash <(curl -s https://raw.githubusercontent.com/cicerops/autopilot/main/debian-bootstrap.sh)
#
# License:
#
# GNU Affero General Public License, version 3
#
# References:
#
set +ex
# Configuration
PACKAGES=""
PACKAGES="${PACKAGES} htop iotop iftop lsof tcpdump ngrep net-tools dnsutils whois wget curl httpie"
PACKAGES="${PACKAGES} tmux silversearcher-ag bzip2 ncdu nano"
PROFILE_FILE=/etc/profile.d/cicerops.sh
function install_packages {
apt-get update
apt-get install --yes ${PACKAGES}
}
function configure_profile {
cat << EOF > "${PROFILE_FILE}"
#
# !!! ATTENTION !!!
#
# Automatically generated by cicerops autopilot. Please do not modify.
#
# Environment variable adjustments.
export HISTSIZE=999999
export HISTFILESIZE=999999
# Program aliases.
alias l='ls -alF --color'
EOF
}
function main {
install_packages
configure_profile
}
main