# Streaming Cataclysm Guide (with ttycast)

**URL:** <https://discourse.cataclysmdda.org/t/streaming-cataclysm-guide-with-ttycast/503>\
**Category:** The Bunker\
**Created:** [March 17, 2013, 2:13am UTC](https://discourse.cataclysmdda.org/t/streaming-cataclysm-guide-with-ttycast/503 "2013-03-17T02:13:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![shmup](https://avatars.discourse-cdn.com/v4/letter/s/bc79bd/32.png) [@shmup](https://discourse.cataclysmdda.org/u/shmup)\
**Post date:** [March 17, 2013, 2:13am UTC](https://discourse.cataclysmdda.org/t/streaming-cataclysm-guide-with-ttycast/503/1 "2013-03-17T02:13:02Z")

</div>

I’m not terribly interested in typing the most thorough guide right now, but I imagine through helping some people with questions it’ll sort of explain itself better and better.

I was wanting to stream Cataclysm so that my friends could watch, and the idea of streaming video seemed way unnecessary. So I looked around around for terminal streaming and stumbled on this one month old project, [ttycast](https://github.com/dtinth/ttycast). It uses a handful of technologies to do some pretty awesome terminal streaming. In a nutshell, it uses [ttyrec](http://0xcc.net/ttyrec/index.html.en) to record terminal activity, a terminal emulator, [socket.io](http://socket.io), all wrapped up in a npm package.

The instructions are all nicely [listed on the README](https://github.com/dtinth/ttycast/blob/master/README.md#prerequisites):

Prerequisites

Install ttyrec. On Mac OS X, with Homebrew, you would do:

```auto
brew install ttyrec
```

On Ubuntu, you can do:

```auto
sudo apt-get install ttyrec
```

Note: The README assumed that you already had npm installed. It’s a node.js package manager. To install on Ubuntu you can use apt-get install npm, and [on OS X](http://shapeshed.com/setting-up-nodejs-and-npm-on-mac-osx/) you can use brew. For everything else, well, Google how to install npm or just [build it from source](https://github.com/isaacs/npm).

Install ttycast:

```auto
npm install -g ttycast
```

Running (Broadcast & Record)

First, set your terminal to the size that you prefer to broadcast, then run the script:

```auto
ttyreccast outfile.tty
```

Open your browser and navigate to the server. You should see a blank black screen.

```auto
http://localhost:13377/
```

Then, open a new terminal of the same size and run this command:

```auto
reset && ttyrec /tmp/ttycast
```

You should see your terminal screen on the web browser now. Recorded output goes into outfile.tty.

 ![](http://i.imgur.com/AR3xVmf.gif)

---

<div class="post-metadata">

**Author:** ![Iosyn](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/iosyn/32/35_2.png) [@Iosyn](https://discourse.cataclysmdda.org/u/Iosyn)\
**Post date:** [March 17, 2013, 6:22pm UTC](https://discourse.cataclysmdda.org/t/streaming-cataclysm-guide-with-ttycast/503/2 "2013-03-17T18:22:19Z")

</div>

shmup? What shmups you play man? I love them myself. Do-donpachi, touhou, raystorm etc. Love em.

Also I’ll check this out as I’m considering writing a new starters’ guide myself-- I’ll probably post it tomorrow.
