Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Diaspora* Pod Install
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
UgolinoII
Tux's lil' helper
Tux's lil' helper


Joined: 25 Apr 2004
Posts: 119

PostPosted: Thu Nov 25, 2010 11:21 pm    Post subject: Diaspora* Pod Install Reply with quote

Recently set up diaspora on a Rackspace Cloud instance, thought I would share here not sure where else to post it, comments welcome:

Build Environment
This is for a standard rackspace cloud x64 VPS (it runs on the basic 256meg build, but slowly), tweak for your hardware:

NB: Note the -j2 MAKEOPT this is to stop horrible swappage, and OOM killer reaping you when you are building stuff (symptoms: inexplicable dropped connections, failed builds) by all means increase this to no_of_cpu+1 if you have the memory to back it (seems about 128 meg per thread was about right)

Code:
# /etc/make.conf
CHOST="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CXXFLAGS="${CFLAGS}"

USE="-gnome -kde -alsa -cups -qt3 -qt4"

USE="${USE} apache2 gd java jpeg mailwrapper png xml xsl"
USE="${USE} -X -xorg"

MAKEOPTS="-j2"


Locale Settings
Tweak as necessary

Code:
cp /usr/share/zoneinfo/Europe/London /etc/localtime
echo 'LANG="en_GB.UTF-8"' > /etc/env.d/02locale
env-update
source /etc/profile


Updates
Bring install up to date - watch for compiler version updates 4.4.4 at time of writing.

Code:
emerge --sync
emerge portage
emerge -uDv --newuse world
dispatch-conf


Set new compiler & rebuild world

Code:
gcc-config x86_64-pc-linux-gnu-4.4.4
source /etc/profile
emerge --oneshot -av libtool
emerge --depclean
emerge -e system
emerge -e world


Server Admin tools
(optional)

Code:
emerge eix gentoolkit
eix-update


MongoDB

Code:
echo 'dev-lang/spidermonkey unicode' >> /etc/portage/package.use
echo '=dev-lang/spidermonkey-1.7.0-r1 ~amd64' >> /etc/portage/package.keywords
echo '=dev-db/mongodb-1.4.0 ~amd64' >> /etc/portage/package.keywords
emerge -auv --newuse spidermonkey mongodb
rc-update add mongodb default
/etc/init.d/mongodb start


Ruby
Additional dependancies, xslt, imagemagick

Code:
emerge ruby rubygems libxslt
gem update --system
gem install rails
gem install bundler


Git

Code:
emerge git
cd /opt
git clone http://github.com/diaspora/diaspora.git
cd diaspora
bundle install
cd config
cp app_config.yml.example app_config.yml


update config to point to your install

Code:
/opt/diaspora/config/app_config.yml
pod_url: "http://your.server.here/"


Do initial setup

Code:
rake db:seed:dev


Finally to run (maybe in a screen):

Code:
./scripts/server


By default it will be on port 3000, edit config/server.sh to change

This got me to a working install. Need to look at configuring mail, and connections with other services next, but documentation seems scarce. (Or I'm not looking in the right places) In fairness though this is all still in alpha.

ALSO NOTE THIS IS RUNNING AS ROOT!
Back to top
View user's profile Send private message
UgolinoII
Tux's lil' helper
Tux's lil' helper


Joined: 25 Apr 2004
Posts: 119

PostPosted: Thu Dec 16, 2010 11:10 pm    Post subject: Reply with quote

You also now need redis-server, 1.2.6 works fine for me.

Code:
echo "=dev-db/redis-1.2.6 ~amd64" >> /etc/portage/package.keywords
emerge -av redis


then you can run it in a screen. feel free to find a more elegant solution ;)

Code:
screen redis-server
Back to top
View user's profile Send private message
UgolinoII
Tux's lil' helper
Tux's lil' helper


Joined: 25 Apr 2004
Posts: 119

PostPosted: Sun Jan 23, 2011 7:59 pm    Post subject: Reply with quote

OK, so the diaspora project is truly Alpha! Switching the backend storage from mongodb probably renders these instructions are totally useless :/

It might just be a case of merging mysql, and updating the config. I haven't got the time to keep up though. I hope they stabilise enough for a beta soon, at that point I'll give it another crack.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum