ttyrec Playback using jsttyplay and WordPress

So I spent a little bit of time tonight tinkering on Linux. I got interested in tty recording/playback after seeing some nethack things. I figured if I could find something that works well for playback of tty recordings it would be helpful on my blog. Enter: jsttyplay

This is a nice little tool using Perl and JavaScript to handle playback of terminal sessions recorded using ttyrec.

Here’s a demo of how to get things setup, including making a video and editing the HTML to play it.

I plan to start work on making a WordPress plugin for this so I can embed these a bit easier.

If you don’t have ttyrec, install it with your system’s package manager; in my case, I have Debian so I will use apt-get.

apt-get install ttyrec

Debian Handbook

I have added the Debian Handbook to my Resources navigation menu.

Debian 6.0 Handbook

The handbook is available at: https://techish.net/debian-handbook/
You can install it on your Debian system (available in Unstable):

apt-get install debian-handbook

The documentation is stored in: /usr/share/doc/debian-handbook/.
You can also download the handbook from Raphael’s site: http://raphaelhertzog.com/2012/05/10/the-debian-administrators-handbook-is-available/ as well as from the handbook development site: http://debian-handbook.info/

Limit Bandwidth in Apache2

Limit bandwidth with Apache using the libapache2-mod-bw package which installs mod-bw.
Install Package

apt-get install libapache2-mod-bw

Load Module

a2enmod bw

Modify Apache’s configuration
Add the following in the VirtualHost section… in Debian, the Virtual Host configuration files are typically found inin /etc/apache2/sites-available/.

BandwidthModule On
ForceBandwidthModule On
# 1mbit/s (128KB/s) - value is in bytes
Bandwidth all 131072
ErrorDocument 510 510.html
BandWidthError 510

Reload Apache

service apache2 reload