Social networking the FOSS way with Diaspora
Cross-Posting
Given the huge market share of social network titans like Twitter and Facebook, it may be difficult to force the masses to join those who wish to make the switch. Mercifully, it's possible to register with Diaspora pods that support cross-posting to major platforms such as Twitter, Tumblr, Facebook, and WordPress (Figure 4).
The specific setup steps are available on Diaspora's Wiki, but in simplest terms this involves authorizing an app similar to a Twitter or Facebook bot to post on a user's behalf. This should mean each time that new content is shared on Diaspora it will also be posted by the corresponding app. The privacy of posts is determined when initially setting up the app. For example, all posts may be visible only to the account's Facebook friends.
Setting Up a Diaspora Pod
For readers whose appetites have been sufficiently whetted, simple setup guides for running one's own Diaspora pod are available on the Foundation's website. Debian-based distros such as Ubuntu are supported, as well as CentOS, Gentoo, Arch, and Hamara Linux [13].
Whichever distribution is employed, the hardware requirements aren't very onerous. The website recommends at least 1.5GB RAM, 1GB swap space, and a decent multicore CPU. The amount of HDD space required will vary naturally depending on the number of users and the content shared.
For Raspberry Pi lovers, the Foundation says Diaspora will run on the Raspberry Pi Model 2 and 3 but is very slow and so not recommended for multiple users [14]. Diaspora requires several different components, so the Foundation recommends using a VPS or dedicated server over shared hosting servers.
In terms of software, Diaspora is written in Ruby. The Foundation recommends using Ruby Version Manager (RVM) to keep Ruby up to date and also to separate it from any other Ruby apps you may have installed. Diaspora is compatible with most app and web servers; however, the most common setup is using Unicorn for the app server and Nginx as the web server.
Users who are serious about running their own Diaspora pod will need an SSL certificate both to encrypt traffic between clients and the browser and to allow federation with other pods. Self-signed certificates or certificates issued by CACert won't work. The Foundation recommends obtaining a free TLS Certificate from providers such as Let's Encrypt, WoSign, or StartSSL [15].
Diaspora Drawbacks
Setting up a pod should pose no trouble for anyone with experience or server administration or Rails app deployment; however, there are support channels on Freenode in various languages for anyone who has difficulties [16].
As previously discussed, the admin of the pod has access to all registered users' data. Similarly, content shared by users with people registered to other pods will be visible to those "podmins" as well. There's also no way to isolate a pod from others without modifying the source code, so caution should still be exercised when posting content.
The decentralized nature of Diaspora can be abused, as it was in 2014 when ISIS supporters decided to join Diaspora after being kicked off Twitter. Although in technical terms the Diaspora Foundation could do nothing to stop people from hosting their own pods, they did urge the community to report any offensive posts and worked with admins of the largest Diaspora pods to make sure extremists' accounts were deleted [17].
Podmins headaches also do not end with terrorism. Admins are specifically forbidden from integrating advertisements into a pod, meaning that each must be run as a labor of love, not for profit. There's also no automatic way to run backups of a server. The Diaspora Foundation recommends making copies of the public/uploads
directory to back up images and then googling how to perform a dump of "Diaspora_databases" from the database server, which is less than elegant [18]. Users have also complained that downloading profile data is done via a JSON file, which is only machine readable, meaning users need to upload to a different pod to review what they uploaded [19].
By default, Diaspora doesn't come with an integrated chat feature as is available in Facebook, but the website's wiki does contain instructions to set this up on a pod via Prosody. The chat feature also has to be enabled by users for each specific aspect (Figure 5). Sadly, use of Aspects means that it is currently impossible to create a group for people with similar interests as can be done easily on Facebook [20].
« Previous 1 2 3 Next »
Buy this article as PDF
(incl. VAT)
Buy Linux Magazine
Subscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Subscribe to our ADMIN Newsletters
Support Our Work
Linux Magazine content is made possible with support from readers like you. Please consider contributing when you’ve found an article to be beneficial.
News
-
So Long Neofetch and Thanks for the Info
Today is a day that every Linux user who enjoys bragging about their system(s) will mourn, as Neofetch has come to an end.
-
Ubuntu 24.04 Comes with a “Flaw"
If you're thinking you might want to upgrade from your current Ubuntu release to the latest, there's something you might want to consider before doing so.
-
Canonical Releases Ubuntu 24.04
After a brief pause because of the XZ vulnerability, Ubuntu 24.04 is now available for install.
-
Linux Servers Targeted by Akira Ransomware
A group of bad actors who have already extorted $42 million have their sights set on the Linux platform.
-
TUXEDO Computers Unveils Linux Laptop Featuring AMD Ryzen CPU
This latest release is the first laptop to include the new CPU from Ryzen and Linux preinstalled.
-
XZ Gets the All-Clear
The back door xz vulnerability has been officially reverted for Fedora 40 and versions 38 and 39 were never affected.
-
Canonical Collaborates with Qualcomm on New Venture
This new joint effort is geared toward bringing Ubuntu and Ubuntu Core to Qualcomm-powered devices.
-
Kodi 21.0 Open-Source Entertainment Hub Released
After a year of development, the award-winning Kodi cross-platform, media center software is now available with many new additions and improvements.
-
Linux Usage Increases in Two Key Areas
If market share is your thing, you'll be happy to know that Linux is on the rise in two areas that, if they keep climbing, could have serious meaning for Linux's future.
-
Vulnerability Discovered in xz Libraries
An urgent alert for Fedora 40 has been posted and users should pay attention.