Differences between revisions 18 and 19
Revision 18 as of 2014-11-22 17:27:07
Size: 3324
Editor: Praveen A
Comment: add todo
Revision 19 as of 2014-11-22 20:59:00
Size: 3656
Editor: Praveen A
Comment: configure database
Deletions are marked like this. Additions are marked like this.
Line 81: Line 81:
=== Configure postgresql ===

{{{
# apt-get install postgresql sudo
# sudo -u postgres createuser diaspora
# sudo -u postgres createdb diaspora
}}}

Use host as /var/run/postgresql in config/database.yml for using peer authentication.

{{{
# su -diaspora
$ DB=postgres bundle exec rake db:create db:schema:load
}}}

Translation(s): none


Diaspora

This page will be used for user documentations.

Diaspora Package Testing

This is very early version of diaspora package and not recommended for production yet.

Setup Debian Unstable environment

You have to setup a debian unstable system (you could setup it as a virtual machine if you want). You'll have to install debian testing from debian.org and then upgrade to unstable.

You can also use pbuilder to setup a debian unstable environment

# pbuilder create
# pbuilder login

Enable experimental suite and install packages from there

Once you have debian unstable, enable experimental repo.

# echo deb http://ftp.de.debian.org/debian experimental main >>/etc/apt/sources.list
# apt-get update

Install the following packages from experimental

# aptitude -t experimental install ruby-compass-rails ruby-handlebars-assets \
ruby-rails-i18n ruby-redcarpet ruby-omniauth ruby-typhoeus ruby-gon ruby-fog \
ruby-rack-piwik ruby-rack-ssl ruby-ethon ruby-excon ruby-configurate

List of packages you need are here

Enable diaspora unreleased repo and install diaspora

Enable diaspora-unreleased repository

The archive is signed with Praveen's GPG key: 2A79 74AE 2FC1 52D7 7867 DA4A CE1F 9C67 4512 C22A

# gpg --recv-keys --keyserver hkp://subkeys.pgp.net CE1F9C674512C22A
# gpg --export --armor CE1F9C674512C22A | apt-key add -

# apt-get install apt-transport-https
# echo deb http://people.debian.org/~praveen/diaspora-unreleased unstable main >>/etc/apt/sources.list
# apt-get update

then install diaspora

# apt-get install diaspora

Verify bundler can see all dependencies

Go to /usr/share/diaspora

# apt-get install libssl1.0.0/unstable
# cd /usr/share/diaspora
# useradd diaspora -d /usr/share/diaspora -s /bin/bash
# chown diaspora: -R .
# su - diaspora 
$ bundle install --local

Configure postgresql

# apt-get install postgresql sudo
# sudo -u postgres createuser diaspora
# sudo -u postgres createdb diaspora

Use host as /var/run/postgresql in config/database.yml for using peer authentication.

# su -diaspora
$ DB=postgres bundle exec rake db:create db:schema:load

There is more work to do.

Issues

  1. bundle install failure with openssl missing - work around available

  2. ruby-twitter-text doesn't have a gemspec file in binary package

TODO

  1. Complete packaging of remaining gem dependencies (list gems that needs to be packaged, some of them are already in NEW or being worked on

  2. Test the installation by going ahead with next steps listed at diaspora installation manual

  3. Create debconf templates for pod configuration.

See below for the team effort to package the dependencies of Diaspora and Diaspora itself for Debian.

Diaspora packaging