This article assumes you have at least basic knowledge of linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple. I will show you through the step by step installation Wetty on CentOS 7 server.
Install Wetty on CentOS 7
Step 1. First, you need to enable EPEL (Extra Packages for Enterprise Linux) on your system.
- CentOS 7 64 Bit
## RHEL/CentOS 7 64-Bit ##
# wget http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm
# rpm -ivh epel-release-7-5.noarch.rpm
yum install epel-release git nodejs npm
Step 3. Installing Wetty.
After installing these dependencies, clone the GitHub repository:
git clone https://github.com/krishnasrinivas/wetty
Add an user for wetty:
Step 4. Starting Wetty and Access Linux Terminal from Web Browser.
Start the web interface in local port 8080 for Wetty by running (this assumes your current working directory is /wetty):
node app.js -p 8080
Run Wetty through HTTPS:
openssl req -x509 -newkey rsa:2048 -keyout key.pem -out cert.pem -days 365 -nodes
Finally, you will need to open the custom HTTPS port where you will want to run Wetty:
firewall-cmd --add-service=https # Run Wetty in the standard HTTPS port (443)
firewall-cmd --permanent --add-service=https
firewall-cmd --add-port=XXXX/tcp # Run Wetty on TCP port XXXX
nohup node app.js --sslkey key.pem --sslcert cert.pem -p 8080 &
Accessing Wetty through HTTPS:
Congratulation’s! You have successfully installed Wetty. Thanks for using this tutorial for installing Wetty (Web + tty) in CentOS 7 system. For additional help or useful information, we recommend you to check the official Wetty web site.