https://wiki.archlinux.org/api.php?action=feedcontributions&user=Andrejpodzimek&feedformat=atomArchWiki - User contributions [en]2024-03-28T13:26:43ZUser contributionsMediaWiki 1.41.0https://wiki.archlinux.org/index.php?title=Diaspora&diff=255975Diaspora2013-05-03T12:13:42Z<p>Andrejpodzimek: </p>
<hr />
<div>[[Category:Networking]]<br />
[http://www.joindiaspora.com/ Diaspora] is the privacy aware, personally controlled, do-it-all, open source social network.<br />
<br />
On November 23, 2010 was [http://blog.joindiaspora.com/2010/11/23/private-alpha-released.html announced] that Diaspora is in [http://en.wikipedia.org/wiki/Software_release_life_cycle#Alpha private alpha] phase.<br />
<br />
Since August 27, 2012 Diaspora is ruled by the community ([http://blog.diasporafoundation.org/2012/08/27/announcement-diaspora-will-now-be-a-community-project.html announcement]).<br />
<br />
Currently Diaspora will '''not''' work on ArchLinux at all, because of Ruby compatibility problems. Ruby 1.9.2 is strictly required by the Diaspora dependencies, but this version will neither pass the tests after compilation nor run on an up-to-date ArchLinux environment. Pods based on ArchLinux may start working again once Diaspora becomes compatible with Ruby 2.0.<br />
<br />
== Prerequisites ==<br />
* Since Diaspora can run on MySQL and PostgreSQL you need to decide which one you want to use. Install one of them and set it up.<br />
* Diaspora starts a so called appserver, on port 3000 by default, which serves the dynamic contents. You need a reverse proxy to handle the static content that forwards requests it can't handle to the appserver. Typical tools for that are Apache or Nginx.<br />
* You'll also need the usual tools to build packages from the AUR.<br />
* And [https://aur.archlinux.org/packages/ruby1.9-bundler/ ruby1.9-bundler] from the AUR.<br />
<br />
== Installation ==<br />
<br />
Obtain the [https://aur.archlinux.org/packages/diaspora/ diaspora] package from the AUR, do not use any AUR helpers such as yaourt to build the package, since it's a split package and you want only one part. So, for example if you use Yaourt run:<br />
yaourt -G diaspora && cd diaspora<br />
<br />
To build and install the MySQL version run:<br />
makepkg -si --pkg diaspora-mysql<br />
<br />
To build and install the PostgreSQL version run:<br />
makepkg -si --pkg diaspora-postgresql<br />
<br />
Now edit /etc/webapps/diaspora/database.yml and fill out the needed values. Then edit /etc/webapps/diaspora/diaspora.yml and change at least the url setting to the URL your installation will be reachable under (the one served by your reverse proxy). You can change the port the appserver will listen on under the server section. By default Diaspora requires a SSL setup, you can disable that with the require_ssl setting.<br />
<br />
Ensure your database is running and then switch to the diaspora user:<br />
sudo -u diaspora /bin/bash<br />
cd $HOME<br />
<br />
Create the database and initialize the schema:<br />
bundle exec rake db:create db:schema:load<br />
If the user you specified in the database.yml file can't create databases leave the 'db:create' out and create a database named diaspora_production by hand.<br />
<br />
You can now switch back to your regular user and start Diaspora:<br />
sudo systemctl start diaspora<br />
<br />
The static content your reverse proxy needs to serve will be available under /usr/share/webapps/diaspora/public/<br />
<br />
== Updating ==<br />
<br />
Updating is very analogous. Obtain the newest version of the package and build it, just like in the installation instructions. Watch for .pacnew files and review the changes. Also read the [https://github.com/diaspora/diaspora/blob/master/Changelog.md changelog] over at Diaspora. Then again ensure the database is running and switch to the diaspora user:<br />
sudo -u diaspora /bin/bash<br />
cd $HOME<br />
<br />
And update the database schema:<br />
bundle exec rake db:migrate<br />
<br />
Exit and restart Diaspora:<br />
sudo systemctl restart diaspora<br />
<br />
<br />
== Add yourself as an admin ==<br />
<br />
Switch to the diaspora user and start the Rails console:<br />
sudo -u diaspora /bin/bash<br />
cd $HOME<br />
bundle exec rails console production<br />
<br />
Then run the following command, replacing "user" with your username:<br />
Role.add_admin User.find_by_username("user")<br />
<br />
You can exit the Rails console by pressing Ctrl+D.<br />
<br />
== Troubleshooting ==<br />
<br />
===GDM login screen with diaspora===<br />
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.<br />
To exclude this user from the login window, add this 'Exclude' line in your /etc/gdm/custom.conf file:<br />
[greeter]<br />
Exclude=diaspora<br />
<br />
==More Resources==<br />
*[http://github.com/diaspora/diaspora Diaspora git]</div>Andrejpodzimek