Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@marshyski
Last active September 4, 2015 07:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marshyski/6100302813af76e3d273 to your computer and use it in GitHub Desktop.
Save marshyski/6100302813af76e3d273 to your computer and use it in GitHub Desktop.
Setup a demo env with a public Linux terminal
cd /root
yum install -y screen
wget https://dl.ngrok.com/ngrok_2.0.19_linux_amd64.zip
unzip ngrok_2.0.19_linux_amd64.zip
wget https://github.com/yudai/gotty/releases/download/v0.0.10/linux_amd64.tar.gz
tar -zxvf linux_amd64.tar.gz
nohup /root/gotty -c marshyski:SuperPowers123 -p 9000 screen -S demo &
#/root/gotty -p 9000 -w screen -S demo #If you want users to interact with your session
#/root/ngrok update
/root/ngrok http 9000
#Open a new window and enter: screen -x demo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment