Safezone and Safezone test - SeoulSKY/safe-zone-system GitHub Wiki
ssh <NSID>@tuxworld.usask.ca; password = <your usask password>
To connect to VM as team:
ssh team@safezone or ssh team@safezone-test; password = Beautiful-morning-007
To connect to VM as jdm489:
ssh jdm489@safezone or ssh jdm489@safezone-test; password = Green-lime-toast-1764
To connect to github:
ssh passphrase = cmpt371
ssh passphrase(safezone-test) = safezone371
- Postgres [Resource used: how to install Postgres on ubuntu]:
sudo apt-get update
sudo apt install postgresql postgresql-contrib
- SMTP Server [Resource used: how to configure an smtp server on ubuntu]:
Install postfix:
sudo apt-get install mailutils
Open main.cf config file and set inet_interfaces to loopback-only (or localhost):
sudo nano /etc/postfix/main.cf
Restart postfix:
sudo service postfix restart
Open aliases file:
sudo nano /etc/aliases
Add "root: <email address>" in a new line
Run service to apply changes:
sudo newaliases
Restart postfix:
sudo service postfix restart
Test smtp server:
echo "This is the body of the email" | mail -s "This is the subject line" root
- Docker [how to install docker on ubuntu]:
Update apt package index:
sudo apt-get update
Install packages to allow apt use a repo over https:
sudo apt-get install \
ca-certificates \
curl \
gnupg \
lsb-release
Add Docker's official GPG key:
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
Set up the stable repo:
echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
Update apt package index again:
sudo apt-get update
Install docker engine:
sudo apt-get install docker-ce docker-ce-cli containerd.io
- Docker Compose [how to install docker-compose on ubuntu]:
Download current stable release of docker-compose:
sudo curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
Apply executable permissions to the binary:
sudo chmod +x /usr/local/bin/docker-compose
Test the installation:
docker-compose --version