## DO NOT do as ROOT USER!!! sudo where needed instead $ git clone basic_chat $ sudo mkdir -p /opt/basic_chat $ sudo chown $USER:$USER /opt/basic_chat $ sudo mv $(pwd)/basic_chat /opt/basic_chat/ $ pushd /opt/basic_chat # --------------------------------------------------------------- Make a secure KEY: $ go mod tidy $ go build make_a_key.go $ ./make_a_key # --------------------------------------------------------------- Server Install: $ nano chat_server.yaml # Replace key with new Key $ go build chat_server.go $ sudo ln -s $(pwd)/basic_chat_server.service /etc/systemd/system/ Reload the service files to include the new service. $ sudo systemctl daemon-reload Start your service -- HINT type basic_ ((TAB Key)) $ sudo systemctl start basic_chat_server.service To check the status of your service $ sudo systemctl status basic_chat_server.service To enable your service on every reboot $ sudo systemctl enable basic_chat_server.service To disable your service on every reboot sudo systemctl disable basic_chat_server.service UPDATE firewall rules for port 8080 or whatever else is needed... $ sudo ufw allow 8080/tcp $ sudo ufw status # If all looks well, then $ sudo ufw enable # --------------------------------------------------------------- Client Install: $ nano chat_client.yaml # Replace key with new Key, also Update IP to Server $ go build chat_client.go $ sudo ln -s $(pwd)/BasicChat.desktop /usr/share/applications/ $ sudo update-desktop-database /usr/share/applications/ # ---------------------------------------------------------------- Done: $ popd