Linux Web TTY

Requires
* debian or debian based linux
* node
* screen

File /usr/bin/wetty.screen
screen -D -RR -S wetty

File /lib/systemd/system/wetty.service
[Unit]
Description=Wetty - Http(s) Terminal emulator
Documentation=https://www.npmjs.com/package/wetty
After=network.target

[Service]
Type=simple
User=nobody
WorkingDirectory=/home/
ExecStart=/usr/local/bin/wetty --title "Wetty@hostname" -b "/" -c /usr/bin/wetty.screen
Restart=on-failure

[Install]
WantedBy=multi-user.target

Commands
After creating both files just systemctl daemon-reload and systemctl enable wetty and systemctl start wetty

Using it
Naviate to http://computer.ip:3000/ and use the user and password you want.

Notes
The port is not encrypted, you can use a redirection or a proxy to achieve this. I will create a post when I get around to writing how I do this. Specially useful when you have a letsencrypt certificate.