added installation steps

David Pellerin 2018-05-20 08:27:07 -04:00
parent 66cbec0478
commit a7e9322666

@ -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