-
Notifications
You must be signed in to change notification settings - Fork 2.9k
reddit install script for Ubuntu
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.
- Get the latest version of the install script.
- Run the script as root.
To populate the database with test data, including a variety of Accounts, Subreddits, Links and Comments do the following as user reddit.
# populate database with test data
reddit$ cd ~/reddit/r2
reddit$ 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.
By default, there are no accounts. Create an account and add it to the admins line in example.ini. If you populate the database using populatedb it will generate an account called reddit with password password which is in the list of admins by default.
Most browsers won't deal with cookies from a domain that doesn't contain dots. For example, http://localhost will not work, while http://reddit.local or http://127.0.0.1 will. Make sure you update the .ini file accordingly!
update_reddits.sh needs to be run. See Cron Jobs for more information on what this does.
reddit used to use Solr for its search needs, but switched to using IndexTank in July 2010. The code for searching with Solr still exists in the repository, but is inactive. A third party running a reddit clone could either create a patch that reactivates Solr, or get an IndexTank account.
Solr is still used for subreddit search and the "related" tab. This is transitional until we convert completely to IndexTank. The install script does not currently install or configure Solr and so neither of these features will work until that is done.