Last active
September 4, 2015 07:05
-
-
Save marshyski/6100302813af76e3d273 to your computer and use it in GitHub Desktop.
Setup a demo env with a public Linux terminal
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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