Skip to content

reddit install script for Ubuntu

spladug edited this page Jun 17, 2011 · 27 revisions

The reddit install script is a bash script designed for use on Ubuntu Linux. It has been tested with Ubuntu 10.04 LTS (Lucid Lynx). The script will install the majority of the reddit stack from scratch. IT DOES NOT WORK ON NATTY NARWHAL AT THE MOMENT.

Usage

$ curl https://raw.github.com/gist/922144/install-reddit.sh | sudo sh

-- or --

  1. Get the latest version of the install script.
  2. Run the script as root.

Test data

To populate the database with test data, including a variety of Accounts, Subreddits, Links and Comments do the following as user reddit.

$ cd ~/reddit/r2
$ paster shell run.ini
>>> from r2.models import populatedb
>>> populatedb.populate()

This will take a while and spew a lot of trace to the console, but the result is a reddit with plenty of test data.

Troubleshooting

See FAQ for some common issues.

Clone this wiki locally