This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| sudo apt install openssh-server | |
| #Obezbjedjivanje SSH-a | |
| echo "Obezbjedjivanje SSH-a..." | |
| sudo sed -i 's/#Port 22/Port 9022/g' /etc/ssh/sshd_config | |
| sudo sed -i 's/#PermitRootLogin prohibit-password/PermitRootLogin prohibit-password/g' /etc/ssh/sshd_config | |
| sudo sed -i 's/#PasswordAuthentication yes/PasswordAuthentication no/g' /etc/ssh/sshd_config | |
| sudo sed -i 's/#PermitEmptyPasswords no/PermitEmptyPasswords no/g' /etc/ssh/sshd_config | |
| sudo systemctl restart ssh.service |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #Update system & reboot | |
| sudo apt update && sudo apt -y upgrade | |
| sudo reboot | |
| #Install Asterisk 16 LTS dependencies | |
| sudo apt -y install git curl wget libnewt-dev libssl-dev libncurses5-dev subversion libsqlite3-dev build-essential libjansson-dev libxml2-dev uuid-dev | |
| #Add universe repository and install subversio | |
| sudo add-apt-repository universe | |
| sudo apt update && sudo apt -y install subversion |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| yum -y update | |
| yum -y groupinstall 'Development Tools' |