From a7e93226666e87c90ecd5f48dd4e5f5168abdf82 Mon Sep 17 00:00:00 2001 From: David Pellerin Date: Sun, 20 May 2018 08:27:07 -0400 Subject: [PATCH] added installation steps --- Deployment.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/Deployment.md b/Deployment.md index 0606ed2..e65f025 100644 --- a/Deployment.md +++ b/Deployment.md @@ -62,6 +62,26 @@ Restart=always WantedBy=multi-user.target ``` +# Installation Steps: + +The following installation steps can be used to automate the installation on Ubuntu Linux 16 (LTS), some slight modifications may be required for other distributions. + +```bash +$ wget https://github.com/shazow/ssh-chat/releases/download/v1.6/ssh-chat-linux_amd64.tgz +$ sudo tar -xf ssh-chat-linux_amd64.tgz -C /opt # extracts ssh-chat to /opt +$ sudo ln -sf /opt/ssh-chat/ssh-chat /usr/local/bin/ssh-chat # creates a symlink in /usr/local/bin for convenience +$ sudo ssh-keygen -t rsa -N '' -f /root/.ssh/id_rsa # generates a key/fingerprint for your server +$ sudo sed -i -e '/^Port/s/^.*$/Port 2222/' /etc/ssh/sshd_config # ensures that system sshd runs on port 2222 +$ sudo service ssh restart # restarts sshd (now on port 2222) +$ sudo mv /home/ubuntu/ssh-chat.service /etc/systemd/system # moves systemd config into systemd system folder +$ sudo chown root.root /etc/systemd/system/ssh-chat.service # sets permissions of systemd script +$ sudo systemctl daemon-reload # restarts systemd daemon +$ sudo systemctl enable ssh-chat # ensures ssh-chat will start up after a reboot +$ sudo systemctl start ssh-chat # starts the ssh-chat daemon +``` + +# + Additional resources: - https://impactcore.blogspot.ca/2017/09/ssh-chat-irc-like-chat-client-over-ssh.html