The Main Server for the Official Point Club.
- Handle all communication between users.
- Save all data as backup and pass it to users.
Run the command sudo apt-get install openjdk-11-jdk
- Run the command sudo apt-get install postgresql
- Find pg_hba.conf, which is usually located at /etc/postgresql/ < version > /main
- Edit it by changing all 'METHOD' options which are not peer, to 'trust'
The lines should look like: host all all 127.0.0.1/32 trust - Add user 'postgres' to sudoers by running sudo usermod -aG sudo postgres
- change user 'postgres' password to 'postgres' by running passwd postgres and typing the password 'postgres'
- Switch to user postgres and edit its password in psql:
6.1. sudo -i -u postgres
6.2. psql
6.3. ALTER USER postgres WITH PASSWORD 'postgres'; - Restart postgres by running: sudo systemctl restart postgresql
- Find and edit pg_hba.conf by following the previous section
- Add the following lines at the end of the file:
host all all 0.0.0.0/0 trust
host all all ::0/0 trust - Edit the file /etc/postgresql/ < version > /main/postgresql.conf
Uncomment the line containing 'listen_addresses', and change the value to '*' - Restart postgres by running: sudo systemctl restart postgresql
NoIp allows free DNS of our server.
See https://www.noip.com/ for more info.
In order to periodically update the IP address used by our hostname, we need to run NoIp's client in the background.
Run the following Commands:
- cd /usr/local/src
- wget http://www.no-ip.com/client/linux/noip-duc-linux.tar.gz
- tar xzf noip-duc-linux.tar.gz
- cd noip-2.1.9-1
- apt install make
- apt install gcc
- make
- make install
1.Create the file /etc/systemd/system/noip2.service with the following content:
[Unit]
Description=noip2 service
[Service]
Type=forking
ExecStart=/usr/local/bin/noip2
Restart=always
[Install]
WantedBy=default.target
- Run the command sudo systemctl daemon-reload
- Run the command sudo systemctl enable noip2
Follow this guide https://ubuntu.com/kubernetes/install
Follow this guide https://microk8s.io/docs/addon-dashboard
Follow this guide https://medium.com/@tejaswi.goudru/disable-authentication-https-in-kubernetes-dashboard-2fada478ce91