Update 'README.md'
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
## Device preparation
|
||||
|
||||
1. Install OS [Armbian 11 Bullseye](https://download.csec.ba/tinkerboard/Armbian_11.img.xz)
|
||||
1. Install OS [Armbian 11 Bullseye](https://download.csec.ba/tinkerboard/Armbian_11.img.xz). During installation process create user canary.
|
||||
|
||||
2. Update and upgrade
|
||||
```bash
|
||||
@@ -49,6 +49,47 @@ pip install wheel
|
||||
pip install rdpy
|
||||
pip install opencanary
|
||||
pip install scapy pcapy
|
||||
|
||||
```
|
||||
|
||||
10. Create config file and copy it to the path
|
||||
```bash
|
||||
opencanaryd --copyconfig
|
||||
sudo cp /home/canary/opencanary.conf /etc/opencanaryd/opencanary.conf
|
||||
sudo mv /home/canary/opencanary.conf /home/canary/opencanary/opencanary.conf
|
||||
```
|
||||
|
||||
11. Create OpenCanary service
|
||||
```bash
|
||||
sudo nano /etc/systemd/system/opencanary.service
|
||||
|
||||
#Add following lines into it
|
||||
[Unit]
|
||||
Description=OpenCanary
|
||||
After=syslog.target
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
User=root
|
||||
Type=simple
|
||||
RemainAfterExit=yes
|
||||
Restart=always
|
||||
ExecStart=/home/canary/opencanary/env/bin/opencanaryd --start
|
||||
ExecStop=/home/canary/opencanary/env/bin/opencanaryd --stop
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
```
|
||||
|
||||
12. Enable and start service
|
||||
```bash
|
||||
sudo systemctl enable opencanary && sudo systemctl start opencanary
|
||||
```
|
||||
|
||||
- or you can symply download install to avoid all manual work
|
||||
```bash
|
||||
wget https://download.csec.ba/tinkerboard/opencanary.sh
|
||||
#Make it executable
|
||||
sudo chmod +x ./opencanary.conf
|
||||
#Execute script
|
||||
sudo ./opencanary.sh
|
||||
```
|
||||
Reference in New Issue
Block a user