This repository has been archived by the owner. It is now read-only.

reddit install script for Ubuntu

Neil Williams edited this page Mar 8, 2016 · 32 revisions

The reddit install script is a bash script designed for use on Ubuntu Linux. It is supported on Ubuntu 14.04 (Trusty Tahr). The script will install the majority of the reddit stack from scratch. Don't run this on a production system or anything with valuable data. We recommend using a dedicated environment (such as a VM) with at least 4GB of RAM


  1. Get the latest version of the install script.
  2. Run the script. (It doesn't need to be invoked as root, but it'll ask for sudo as it runs)
$ wget
$ chmod +x
$ sudo ./

Read the instructions that this script prints, making sure that the pre-defined environmental variables are set properly.

This script will download the installer and config from the reddit github repository. The downloaded config (install/install.cfg) and the main installer script (install/ that come with running that command have got some helpful information that can prevent common issues.

Reddit is now available and listening on port 80. Resolving to the appropriate domain name is beyond the scope of this document, but the easiest thing is probably editing /etc/hosts on the host machine. If you used the default domain and have name resolution working correctly, try going to http://reddit.local/

Test data

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

$ cd $REDDIT_HOME/src/reddit
$ reddit-run scripts/ -c 'inject_test_data()'

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.


See FAQ for some common issues.

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.