-
Notifications
You must be signed in to change notification settings - Fork 34
/
setup
executable file
·43 lines (35 loc) · 1.23 KB
/
setup
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
echo '\n###\nUpdate & Installing main packages\n###\n'
{
apt-get update
apt-get install -y git-core
apt-get install -y postgresql
apt-get install -y build-essential
pip install --upgrade pip
} >/dev/null
echo '\n###\nStarting PostgreSQL\n###\n'
service postgresql start
echo '\n###\nConfiguring PostgreSQL User & Databadeb\n###\n'
su -c "psql -c \"create user aces with password 'aces';\"" postgres
su -c "createdb network" postgres
echo '\n###\nInstalling packages\n###\n'
{
apt-get install -y python-dev python-nmap python-netaddr python-tk libnetfilter-queue-dev
} >/dev/null
echo '\n###\nInstalling python-netfilterqueue\n###\n'
{
git clone https://github.com/fqrouter/python-netfilterqueue.git
python python-netfilterqueue/setup.py install
} &>/dev/null
echo '\n###\nConfiguring PostgreSQL Tables\n###\n'
python setup_postgres.py >/dev/null
echo '\n###\nDownload Python-Wifi\n###\n'
wget https://pypi.python.org/packages/bc/ab/c49f97516f78c2b0cacb4f45873abc4ca9872942a9c4c19ded8052c8edda/python-wifi-0.6.1.tar.bz2 &>/dev/null
wait ${!}
echo '\n###\nInstalling Python-Wifi\n###\n'
{
tar -xvf python-wifi-0.6.1.tar.bz2
rm python-wifi-0.6.1.tar.bz2
python python-wifi-0.6.1/setup.py install
} >/dev/null
sleep 3
echo '\n###\nSetup Ended! ;)\n###\n'