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 the step-by-step installation of Wetty on the 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
Step 2. Install dependencies.
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 cd wetty npm install
Add a user for wetty:
useradd idroot passwd idrootwetty
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:
Congratulations! 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 website.