From ArchWiki
Revision as of 17:59, 21 December 2011 by MrZYX (Talk | contribs)

Jump to: navigation, search

This template has only maintenance purposes. For linking to local translations please use interlanguage links, see Help:i18n#Interlanguage links.

Local languages: Català – Dansk – English – Español – Esperanto – Hrvatski – Indonesia – Italiano – Lietuviškai – Magyar – Nederlands – Norsk Bokmål – Polski – Português – Slovenský – Česky – Ελληνικά – Български – Русский – Српски – Українська – עברית – العربية – ไทย – 日本語 – 正體中文 – 简体中文 – 한국어

External languages (all articles in these languages should be moved to the external wiki): Deutsch – Français – Română – Suomi – Svenska – Tiếng Việt – Türkçe – فارسی

Diaspora is the privacy aware, personally controlled, do-it-all, open source social network.

On November 23, 2010 was announced that Diaspora is in private alpha phase.


Install gems

$ sudo gem install mysql2
$ sudo gem install bundle


Install Diaspora

Since diaspora does not have a stable version, you can install it with the development package in the Arch User Repository (AUR).

Diaspora Postinstallation

create the configuration files and make changes according to your system needs

$ cd /usr/share/webapps/diaspora
$ cp config/application.yml.example config/application.yml
$ cp config/database.yml.example config/database.yml
$ cp config/script_server_config.yml.example config/script_server_config.yml

Use Bundler to install Diaspora application

$ bundle install

Create Database

Edit the Rakefile

$ cd /usr/share/webapps/diaspora
$ vi Rakefile

To fix the error "uninitialized constant Rake::DSL" add the line

require 'rake/dsl_definition'

right before

require 'rake'

create the database and it's content using

$ rake db:drop:all
$ rake db:create
$ rake db:migrate

Run Diaspora

  • To run Diaspora:
$ sudo /etc/rc.d/diaspora start

Then access http://localhost:3000/ to see the diaspora main page.

  • To stop Diaspora:
$ sudo /etc/rc.d/diaspora stop
  • (Optional) To start Diaspora automatically at boot, add the diaspora daemon in your /etc/rc.conf file:
DAEMONS=(... diaspora ...)
  • (Optional) To populate the database with sample users:
$ cd /opt/diaspora
$ sudo -u diaspora GEM_HOME=/opt/diaspora-gems rake db:seed:dev

Then access http://localhost:3000/ and login with user 'tom' and password 'evankorth'.


GDM login screen with diaspora

GDM will insert the user diaspora in its login window because it currently considers the id range 500-1000 as normal users while Arch considers this range for system users as defined in /etc/login.defs. GDM does that probably to keep legacy normal users working. To exclude this user from the login window, add this 'Exclude' line in your /etc/gdm/custom.conf file:


More Resources