-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup-debian.sh
51 lines (37 loc) · 1.54 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#!/usr/bin/env bash
# to setup a box type this at bash upon login as root...
#
# source <(curl -s https://raw.githubusercontent.com/jwd83/dotfiles/master/setup-debian.sh)
#
# curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
apt update -y && apt upgrade -y
# install packages
apt install tmux git htop iftop ufw mosh weechat strace dstat mc swapspace nodejs make cmatrix build-essential proxychains privoxy screenfetch -y
# setup firewall rules
ufw allow 22
ufw allow 60000:60100/udp
ufw --force enable
# install rmate support
curl -o /usr/local/bin/rmate https://raw.githubusercontent.com/aurora/rmate/master/rmate
sudo chmod +x /usr/local/bin/rmate
# install the slap editor
# npm install -g slap
# install config files
curl -o ~/.gitconfig https://raw.githubusercontent.com/jwd83/dotfiles/master/.gitconfig
curl -o ~/.iftoprc https://raw.githubusercontent.com/jwd83/dotfiles/master/.iftoprc
curl -o ~/.nanorc https://raw.githubusercontent.com/jwd83/dotfiles/master/.nanorc
curl -o ~/.tmux.conf https://raw.githubusercontent.com/jwd83/dotfiles/master/.tmux.conf
curl -o ~/.vimrc https://raw.githubusercontent.com/jwd83/dotfiles/master/.vimrc
# display system details
screenfetch
echo ""
echo "quick setup included..."
echo "------------------------------------------"
echo "git htop iftop ufw mosh weechat strace dstat mc"
echo "swapsace nodejs make cmatrix rmate privoxy proxychains"
echo ""
echo "firewall rules block all except"
echo "------------------------------------------"
echo "22 * ssh"
echo "60000-60100 udp mosh"
echo ""