I finished up a new linux server build tonight. Migrated WordPress, DNS, mail, FTP and a handful of other services to this new server as well as installing LXDE GUI front-end.
Category: Linux
All things *nix.
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
MySQL Performance Analysis and Tuning Resources
Came across a few useful websites with miscellaneous MySQL performance/configuration analysis/testing tools.
http://www.day32.com/MySQL/
http://hackmysql.com/mysqlsla
http://www.maatkit.org/doc/
http://blog.mysqltuner.com/
Debian Handbook
I have added the Debian Handbook to my Resources navigation menu.
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