Compile
The program is written in the GoLang language. If you don't have GoLang installed, you can download it here.
- First you need to clone the repository:
git clone https://git.kor-elf.net/kor-elf-shield/kor-elf-shield.git - Go to the folder with the copy:
cd kor-elf-shield - Compiling:
go build -o kor-elf-shieldAfter compilation, the "kor-elf-shield" file will appear in the folder.
- After that, we copy the "kor-elf-shield" to "/usr/local/bin/". This is necessary so that the program can be called in the console simply by writing "kor-elf-shield".
sudo cp kor-elf-shield /usr/local/bin/kor-elf-shield - After that, we install the necessary launch rights.:
sudo chmod +x /usr/local/bin/kor-elf-shield - Copying the default settings:
sudo cp -r assets/configs /etc/kor-elf-shield - Copying the service settings:
sudo cp assets/kor-elf-shield.service /etc/systemd/system/kor-elf-shield.service - Copying the logrotate setting so that logs can be rotated:
sudo cp assets/kor-elf-shield.logrotate /etc/logrotate.d/kor-elf-shield - It is necessary for systemd to see the new service.:
sudo systemctl daemon-reload
Before launching the program, we recommend that you read the instructions for the first launch.
After reading the instructions and configuring the program, you can set the autorun:
sudo systemctl enable kor-elf-shield
And run the program itself:
sudo systemctl start kor-elf-shield