-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsteps-02-system
executable file
·42 lines (36 loc) · 1.61 KB
/
steps-02-system
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
#! /usr/bin/env sh
set -e # Stop on the 1st error
set -x # Be verbose
apt install sudo
apt install -y vim
apt install -y htop iotop-c
apt install -y traceroute # for TCP tracing
apt install -y asciinema
apt install -y git
apt install -y tree
apt install -y elinks
apt install -y tmux
apt install -y colordiff
apt install -y pv
apt install ipcalc
#apt install -y ansible # for automating things
apt install psmisc # for pstree
# TODO: Choose between 3-4 variants in future including:
# ncat | NMAP netcat reimplementation
# netcat | TCP/IP swiss army knife -- transitional package
# netcat-openbsd | TCP/IP swiss army knife
# netcat-traditional | TCP/IP swiss army knife
# netrw | netcat like tool with nice features to transport files over network
apt install netcat-openbsd # for nc, very useful debugging tool
cd /etc
etckeeper vcs add .
etckeeper vcs commit -m "Snapshotting from the script $0" -a
cat <<- \
---------------------------------------------------------------------- |
# Enable all functions of sysrq:
kernel.sysrq = 1
# See /etc/sysctl.d/10-magic-sysrq.conf for the details.
----------------------------------------------------------------------
tee /etc/sysctl.d/98-magic-sysrq-all-fns.conf | sudo sysctl -p-
etckeeper vcs add /etc/sysctl.d/98-magic-sysrq-all-fns.conf
etckeeper vcs commit -m 'sysctl.d/98-magic-sysrq-all-fns.conf: Enable all functions of sysrq' -a