How to Use Linux Terminal Through a Web Browser
In addition to using Terminal in the Terminal app emulator or console. By using Terminus, you can also use Terminal via web browsers.
Of course using the Terminal via the application menu is good enough and very capable. But it doesn’t hurt if you want to try using Terminal via web browsers.
After trying it maybe you will like it or you can try it to just add to your knowledge or knowledge. You can also use it for certain purposes.
Terminus is a Terminal emulator which has the ability to create and manipulate lines HTML inline with the addition of plain text. Terminus runs on web browser such as Mozilla Firefox, Google Chrome, and web browser other.
You can use Terminus the same as using a normal Terminal in general, by entering the same commands as the commands you usually enter in a typical Terminal, such as cd, mkdir, ls, rm, rmdir and so on.
In addition to commands in general, Terminus also has additional commands that can facilitate your work, such as “show” to display images in Terminal and several other commands.
Terminus can run on Linux operating systems and other operating systems that are Unix-based. To use Terminus, we will need Node.js and npm.
How to Install Terminus Server to Run Terminal in Browser
To install Terminus on your Linux. First, download source code from Terminus on the following Terminus developer’s Github page. Download source code it is in Zip file format.
Wait for the download process to complete. The downloaded file will be in the Downloads folder and named “terminus-master.zip”.
Open Terminal on your Linux by pressing the combination keyboard CTRL + ALT + T or you can open Terminal via the application menu.
Since the downloaded file from Terminus is in the Downloads folder, enter the following command in Terminal to go to the Downloads folder:
cd ~/Downloads
The downloaded file is still compressed in the “.zip” format file archive. To extract the zip file, enter the following command in Terminal:
unzip terminus-master.zip
Wait for the process of extracting the zip file to complete and make sure it works well.
Terminus requires Node.js and npm to be up and running. Previously, check and make sure that you have installed Node.js and npm on Linux.
If you don’t have Node.js and npm installed on your Linux, you can install Node.js and npm by entering the following command in Terminal:
sudo apt-get install node
Wait for the installation process to complete. When installing Node.js, npm will also be automatically installed on the device. If you have problems installing Node.js and npm, for further information, you can follow the tutorial on how to install Node.sj and npm below.
If you already have or have successfully installed Node.js and npm on your Linux, then from the Downloads folder, go to the Terminus server directory by typing the following command in Terminal:
cd /terminus-master/server
After successfully entering the server folder, then run the npm install command in Terminal as follows:
npm install
Then wait for the installation process to complete. Once done, you can start the Terminus server by typing the following command in Terminal.
node terminus-server.js server.yaml
After the Terminus server is running successfully, you can use Terminal via a web browser.
To use Terminal via web browser. open web browser that you use, Terminus developers recommend Google Chrome to run Terminus, but it won’t be a problem if you use Mozilla Firefox.
Enter the address “http://localhost:8181/bash” on web browser to run Terminus or open Terminal via web browsers.