Setup Diaspora on Ubuntu

Diaspora => The privacy aware, personally controlled, do-it-all, open source social network.

Was seeing lot of people facing issues to in set up, including me at the beginning, so i thought to make a setup script for ubuntu os,which can be cloned from my repo [[ Mentioned below ]].

I have tested it to the max i could, still it might not be fool proof, do try and let me know if you find any bugs.

Me trying Diaspora on my localhost

Bit flaky

Update : This script got merged with the main branch of Diaspora

Can be seen in the main branch of diaspora, ubuntu-setup.bash I thank the diaspora team for accepting my small contribution.

The script


# Author : [email protected]
# Site :
# This script helps to setup diaspora.

# Set extented globbing 
shopt -s extglob

# Check if the user has sudo privilages 
sudo -v >/dev/null 2>&1 || 
{ echo $(whoami) has no sudo privileges ; exit 1; }

# Check if universal repository is enabled 
grep -i universe /etc/apt/sources.list > /dev/null || 
{ echo "Please enable universe repository" ; exit 1 ; }

# Install build tools 
echo "Installing build tools.."
sudo apt-get -y --no-install-recommends install \
build-essential libxslt1.1 libxslt1-dev libxml2
echo "..Done installing build tools"

# Install Ruby 1.8.7 
echo "Installing ruby-full Ruby 1.8.7.." 
sudo apt-get -y --no-install-recommends install ruby-full
echo "..Done installing Ruby"

# Install Rake 
echo "Installing rake.."
sudo apt-get -y  --no-install-recommends install rake
echo "..Done installing rake"

# Get the current release and install mongodb
lsb=$(lsb_release -rs)
repo="deb ${ver} 10gen"
echo "Setting up MongoDB.."
echo "."
echo ${repo} | sudo tee -a /etc/apt/sources.list
echo "."
echo "Fetching keys.."
sudo apt-key adv --keyserver --recv 7F0CEB10
echo "."
sudo apt-get  update
echo "."
sudo apt-get -y  --no-install-recommends install mongodb-stable
echo "Done installing monngodb-stable.."

# Install imagemagick
echo "Installing imagemagick.."
sudo apt-get -y --no-install-recommends install imagemagick libmagick9-dev
echo "Installed imagemagick.."

# Install git-core
echo "Installing git-core.."
sudo apt-get -y --no-install-recommends install git-core
echo "Installed git-core.."

# Setting up ruby gems
echo "Fetching and installing ruby gems.."
    echo "."
    cd /tmp 
    echo "."
    tar -xf rubygems-1.3.7.tgz
    echo "."
    cd rubygems-1.3.7
    echo "."
    sudo ruby setup.rb
    echo "."
    sudo ln -s /usr/bin/gem1.8 /usr/bin/gem 
    echo "."    
echo "Done installing the gems.."

# Install blunder
echo "Installing blunder.."
sudo gem install bundler
echo "Installed blunder.."

# Take a clone of Diaspora
echo "Clone diaspora source.."
git clone
echo "Cloned the source.."
# Install extra gems 
cd diaspora
echo "Installing more gems.."
sudo bundle install
echo "Installed."

# Install DB setup 
echo "Seting up DB.."
rake db:seed:tom
echo "DB ready. Login -> tom and password -> evankorth.\
 More details ./diaspora/db/seeds/tom.rb."

# Run appserver 
echo "Starting server"
bundle exec thin start 

Update : Notice many facing issue in executing the script, download it and run it as sudo bash ubuntu-setup.bash

Update : Thanks again to the diaspora team, for listing me here

Share this