Skip to content

Instantly share code, notes, and snippets.

@yasulab yasulab/README.md
Created Aug 31, 2012

Embed
What would you like to do?
ScreenX on RackHub - A Real-time Terminal Broadcasting System

Description

This script enables you to broadcast your terminal with ScreenX + RackHub.

Demo Broadcasting available by 2012/09/10

Screenshot

How to use

  1. Create your account on RackHub and a rack (NOTE: Make sure to check the 3 hours free plan).

  2. Log in to the rack by given SSH information like this:

    ssh rackhuber@YOUR_RACK_NAME.rackbox.net -p PORT_NUMBER -A

  3. Type the following command to install and run ScreenX.

    curl -s -L https://gist.github.com/raw/3547668/install.sh | bash

  4. Open http://YOUR_RACK_NAME.rackbox.net:8080/screenx.html with your browser.

  5. Done! Now you can broadcast what you are doing in your terminal!

TIPS: You can save money if you delete your rack within 3 hours after creating the rack.

Usecase

I suggest this script is beneficial when you do:

  1. coding interview.

  2. broadcast your activity.

  3. work with terminal via your browser (in progress).

Author

#!/usr/bin/env bash
cd ~/
git clone https://github.com/tompng/screenx.git
cd screenx
git checkout remotes/origin/comet_ver
sh build.sh
sudo aptitude install screen
cd classes
nohup java ScreenX &
sudo ln -s ~/screenx/http/* /usr/local/httpd/htdocs/
sudo apachectl start
screen -x screenx -R
echo ""
echo "############################################################################"
echo "ScreenX is ready!"
echo "Now you can attach the broadcasting screen by typing the following command:"
echo " $ screen -x"
echo "NOTE: If there is no screen created yet, please create new screen by:"
echo " $ screen -x screenx -R"
echo ""
echo "And share the following URL with anyone you want to share!"
echo " http://YOUR_RACK_NAME.rackbox.net:8080/screenx.html"
echo "############################################################################"
echo ""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.