How To Install Wetty on CentOS 7

Install Wetty on CentOS 7

In this tutorial, we will show you how to install and configuration of Wetty on your CentOS 7 server. For those of you who didn’t know, Wetty is an alternative to ajaxterm/anyterm but much better than them because wetty uses ChromeOS’ terminal emulator (hterm) which is a full-fledged implementation of terminal emulation written entirely in Javascript. Also, it uses WebSockets instead of Ajax and hence better response time.

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 of 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
# 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
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

Accessing Wetty:


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.

VPS Manage Service Offer
If you don’t have time to do all of this stuff, or if this is not your area of expertise, we offer a service to do “VPS Manage Service Offer”, starting from $10 (Paypal payment). Please contact us to get the best deal!