Etherpad Lite on Ubuntu 10.04 with Nginx reverse proxy

Etherpad Lite on Ubuntu 10.04 with Nginx reverse proxy

Etherpad Lite is an opensource web-based word processor that allows people to work together on a document in real time. When multiple people edit the same document simultaneously, changes by any individual are instantly reflected on everyone’s screen. The result is a new way to collaborate on text documents, which is particularly useful for meeting notes, drafting sessions, education, team programming, and more. People currently viewing an active pad appear in a sidebar, and each person is assigned a unique background color to track individual contributions. You can type, undo, copy, and paste without interfering with other people’s simultaneous edits to the pad. Backup copies of all saved revisions can be restored at any time. I was using a public Etherpad...

Read More

Fixing the annoying “perl: warning: Setting locale failed” error message

Fixing the annoying “perl: warning: Setting locale failed” error message

I was getting really annoyed getting these messages while managing my Debian and Ubuntu VPSes perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LANG = "en_US.utf8" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). Turns out the solution is simply to run these commands export LANGUAGE=en_US.UTF-8 export LANG=en_US.UTF-8 export LC_ALL=en_US.UTF-8 locale-gen en_US.UTF-8 apt-get install locales dpkg-reconfigure locales The export lines above can also be saved into either ~/.profile or ~/.bashrc or...

Read More

Backing up your Debian/Ubuntu VPS to Rackspace Cloud Files

Backing up your Debian/Ubuntu VPS to Rackspace Cloud Files

There are quite a number of tutorials available on backing up to Amazon S3, which is popular due to its redundancy and low cost (15cents per gigabyte). I prefer Rackspace Cloud Files though due to its lower upload fees (8cents vs 10cents per gigabyte of bandwidth).  We will use duplicity to create the backups because it is bandwidth efficient and also allows us to encrypt our backups. We will also be setting up the cloudcity script to make it easier to automate the backup and restore process. First set up build essential so that you can do necessary compiling later. apt-get install build-essential Install duplicity Debian Lenny and Ubuntu < 10.04 come with older versions of Duplicity. We need to add additional repositories to install a newer version of...

Read More