-
Notifications
You must be signed in to change notification settings - Fork 0
/
PLCinit.sh
37 lines (33 loc) · 1.04 KB
/
PLCinit.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
#!/bin/bash
#filename :PLCinit.sh
#description :bash script to deploy basic packages on PLC vm after first deployment
#author :De Braekeler Dennis
#date :20231023
#
#notes :run as root..
#
# =============================================================================
# update packages
apt-get update
echo "repo's updated"
# install basic packages (python3, git)
#TO-DO: add check to verify if the package has already been deployed
yes|apt-get install iputils-ping
yes|apt-get install python3
yes|apt-get install git
echo "installed python3 and git"
# install OpenPLC package
cd ~
mkdir ICS
cd ./ICS
git clone https://github.com/thiagoralves/OpenPLC_v3.git
cd ./OpenPLC_v3
./install.sh linux
echo "openPLC installed"
#TO-DO initalize OpenPLC installation
# install mininet package
#cd ~/ICS/
#git clone https://github.com/mininet/mininet
#./mininet/util/install.sh -s ~/ICS/mininet -a
yes|apt-get install mininet #quick and easy way
#TO-DO: initialize and configure mininet