This repository was archived by the owner on Jan 7, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathinitial-setup.sh
More file actions
73 lines (57 loc) · 1.6 KB
/
initial-setup.sh
File metadata and controls
73 lines (57 loc) · 1.6 KB
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
61
62
63
64
65
66
67
68
69
70
71
72
73
#!/usr/bin/env bash
# check if we are root
if [ "$EUID" -ne 0 ]
then echo "Please run as root"
exit
fi
echo ""
echo "============================="
echo "| Let's update some pkgs |"
echo "============================="
echo ""
# update
apt-get update
apt-get -y upgrade
# programming
apt-get -y install cmake pkg-config build-essential git libpcap0.8-dev
# admin
apt-get -y install nmap htop samba samba-common-bin arp-scan wget curl
# linux kernel
apt-get -y install raspi-config rpi-update
# ascii art
apt-get -y install jp2a
echo ""
echo "============================="
echo "| Let's grab some repos |"
echo "============================="
echo ""
# packagecloud.io
cd /tmp
curl -s https://packagecloud.io/install/repositories/walchko/robots/script.deb.sh | sudo bash
apt-get update
# install some repos
su pi -c "cd /home/pi/github && git clone git@github.com:walchko/dotfiles.git"
echo ""
echo "============================="
echo "| Go python |"
echo "============================="
echo ""
apt-get -y install python-dev
cd /tmp && wget https://bootstrap.pypa.io/get-pip.py && python get-pip.py
pip install -U pip setuptools wheel
apt-get -y install python3k
pip3 install -U pip setuptools wheel
echo ""
echo "============================="
echo "| Clean up and fix perms |"
echo "============================="
echo ""
chown -R pi:pi /home/pi
chown -R pi:pi /usr/local
chown -R pi:pi /usr/lib/python2.7/dist-packages/
chown -R pi:pi /usr/lib/node_modules/
echo ""
echo "============================="
echo "| Done !!! :) |"
echo "============================="
echo ""