User Tools

This is an old revision of the document!


WeTTY

WeTTY it's a web based terminal to your server.

useradd -m wetty su - wetty npm -g i wetty –prefix ~/

./bin/wetty –host 127.0.0.1 –port 5522 –title ServerCasa –base /wetty/

npm install –save @fortawesome/fontawesome-free npm i –save @fortawesome/fontawesome-svg-core npm i –save @fortawesome/free-solid-svg-icons

 36  curl -sL https://raw.githubusercontent.com/nvm-sh/nvm/master/install.sh | bash && source ~/.profile
 37  nvm install 20
 38  echo 'export NVM_DIR="$HOME/.nvm"

[ -s “$NVM_DIR/nvm.sh” ] && \. “$NVM_DIR/nvm.sh” # This loads nvm [ -s “$NVM_DIR/bash_completion” ] && \. “$NVM_DIR/bash_completion” # This loads nvm bash_completion' » .bash_rc

 39  chmod +x .bashrc 
 40  source .bashrc 
 41  nvm install 20

location /wetty {

  proxy_pass https://127.0.0.1:3000/wetty;
  #
  proxy_pass_request_headers on;
  #
  proxy_set_header Host $host;
  #
  proxy_http_version 1.1;
  #
  proxy_set_header X-Real-IP $remote_addr;
  proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  proxy_set_header X-Forwarded-Proto $scheme;
  proxy_set_header X-Forwarded-Protocol $scheme;
  proxy_set_header X-Forwarded-Host $http_host;
  proxy_set_header X-NginX-Proxy true;
  #
  proxy_set_header Upgrade $http_upgrade;
  proxy_set_header Connection $http_connection;
  proxy_read_timeout 43200000;
  proxy_set_header X-Forwarded-Ssl on;
  #
  proxy_redirect off;
  proxy_buffering off;

}

running WeTTY result in black screen. Note: issue here

This website uses technical cookies only. No information is shared with anybody or used in any way but provide the website in your browser.

More information