Running a Diaspora pod on Ubuntu 10.10

Edit: Since Diaspora has switched from mongo db to mysql, the procedure below is now outdated. I may or may not update this page, or write a new guide.

During the holidays I have had some time to look into Diaspora.
Diaspora is a distributed social network, with a focus on privacy, security and ownership of ones own content. Everyone is free to run their own pod, and users on different pods can connect and communicate with each other. (Diaspora servers are called pods). The Diaspora software is still being developed and is in an alpha state.

Installing Diaspora
There is a great guide to installing Diaspora on Mac OSX, Ubuntu or Fedora here.
On Ubuntu 10.10 it boils down to this.

First install some required packages.
sudo apt-get install build-essential libxslt1.1 libxslt1-dev libxml2 ruby-full mongodb libssl-dev imagemagick libmagick9-dev git-core redis-server rubygems
sudo gem install bundler
sudo ln -s /var/lib/gems/1.8/bin/bundle /usr/local/bin/bundle

Then get Diaspora and the required gems.
git clone http://github.com/diaspora/diaspora.git
cd diaspora
bundle install --path vendor

Configure Diaspora and nginx
cd config
cp app_config.yml.example app_config.yml

now edit app_config.yml and change the hostname. If you want your pod to be able to send e-mail also edit the mailer_on and smtp_* entries. All the rest is for more advance settings, and your pod should run just fine with the default settings.

One last thing that needs to be set up, before you can enjoy your very own Diaspora server is a proxy, so that requests sent to port 80 are routed to port 3000.
I use the nginx server, as recommended.

Create a file called diaspora in /etc/nginx/sites-available with this content (where you of course change name-of-your-domain to the relevant string):

server {
        listen   80;
        server_name  diaspora.name-of-your-domain;
        access_log  /var/log/nginx/diaspora.name-of-your-domain.access.log;
        location / {
                proxy_pass http://name-of-your-domain:3000;
        }
}

Activate it with
sudo ln -s /etc/nginx/sites-available/diaspora /etc/nginx/sites-enabled/diaspora
Then restart the nginx server with
sudo /etc/init.d/nginx restart

Finally, if you also want to allow the users of your pod to propagate their status to Twitter and Facebook, you should follow this easy guide on how to configure the oauth_keysm.yml file.

You should now be able to start your pod by issuing
./script/server
from the diaspora directory.

Running Diaspora
However, this way of starting the pod can result in an inability to add contacts from other pods. So inspired by this you can do the following.

sudo update-rc.d -f redis-server remove
sudo sed -i 's/daemonize yes/daemonize no/' redis.conf
sudo /usr/bin/redis-server /etc/redis/redis.conf &

(You will need to start the redis server each time you reboot your host, or if the server fails in other ways.)

Now, each time you want to start your Diaspora pod run the following three commands from the diaspora directory. Wait for one service to start, before starting the next.

ruby script/websocket_server.rb &

QUEUE=receive,mail,receive_local,socket_webfinger,http_service,http,receive_salmon bundle exec rake resque:work &

bundle exec thin start -p 3000 -e development &

You can of course do this more elegantly, by wrapping it up in some scripts, but hopefully you get the idea. So instead of using the script/server script I use those three commands to start my pod.

Now your pod should finally be ready for use.

Now what?
So, should everyone run their own server? Properly not. Diaspora is still so early in the development process that normal users should think twice before using it. The features are limited, and there are still plenty of bugs.

But if you want to see what it can do, look for bugs or are just curious, then why not?. However, you don’t need to run your own pod for that. There are plenty of pods out there that accept new user signups.
Take a look at the list over here: http://podup.sargodarya.de/.

You should also feel free to use my pod, located at diaspora.compadre.dk.
What ever you choose to do, please note that this is still alpha-software, and should be treated as such.

If you need someone to add as contact for testing purposes, feel free to add me: soeren_b_c@diaspora.compadre.dk.

For more info about Diaspora see:

https://joindiaspora.com/ – the official Diaspora website, that also hosts a pod, run by the core developers. Currently the pod at joindiaspora.com is closed for new signups, but due to the distributed nature of Diaspora any pod should be fine, as long as you trust the people running the pod.
http://podup.sargodarya.de/ – list of running pods.
http://en.wikipedia.org/wiki/Diaspora_%28software%29 – Wikipedia article

Intellectual Monopolies and other stories from FSCONS

I spent the weekend in Gothenburg, Sweden, attending the FSCONS conference.


Image by: Mathias Klang.

First things first, the most important thing I brought home with me from Sweden is that we should start changing the way we talk about ‘Intellectual Property‘, and start calling it what it really is – Intellectual Monopoly.

Glyn Moody held a keynote entitled Ethics of Intellectual Monopolies (slides here). His point was (among other things) that we should start calling what is currently known as Intellectual Property (IP) what it really is, namely Intellectual Monopoly. Because copy-right and patents are just that – a monopoly granted by society to an author or inventor.
And we all know monopolies are bad! This will help people understand more clearly that these monopolies are harmful to society and need to be abolished (or at the very least weakened). To those who claim that the current rules and laws can’t be changed and are somehow set in stone, Glyn had a very good point, namely that they can be changed. They have been changed before through history, and of course they can be changed again.
The first copyright was limited to 14 years – compare that with the lifetime copyright of today. Through time there has been an increase of the time copyright was held. Nothing ensures that we could not start decreasing the time that an author is granted copyright.

If you want to do some more reading on this topic, Glyn recommended this book:
Against Intellectual Monopoly

Besides a lot of interesting talks I also met up with Andreas and Anders for a miniature Ubuntu-nordic meet-up to share stories and ideas. One thing the Swedish team is doing, that I hope we can start doing in the Danish team as well, is putting the translated Ubuntu documentation online in Swedish.
It is the same informations as can be accessed through the help menu in any Ubuntu system, but when you are looking for support, having such documents online can be a great resource. The documentation is online in English at the help.ubuntu.com website, and the Swedish team has put the translated Swedish documentation online at help.ubuntu-se.org. The translation work has already been done, so putting the Danish documentation online shouldn’t be that big of a problem.

In general I very much enjoyed the FSCONS venue and the people there. It made me happy to see a lot of Ubuntu installs on the different laptops and netbooks as well.

It was no coincidence that most rooms and walls in the building had little computer-related names printed on to them. Normally the building houses the IT faculty. In one room the names of old video-games decorated the walls, other rooms had famous computer people, special keyboard key names or similar printed… and look whose name I found next to a toilet on the ground floor:

Great Succes!

Ubuntu 10.10 has been released, and here in Copenhagen we managed to gather a nice group of people at the local Café Klaptræet, for a relaxed release party get-together.

With only three days notice I was pleasantly surprised by the big turnout, and I think it is something we should consider doing again. Sometimes there doesn’t need to be an agenda, and talks and the like.
Sometimes it’s just nice to meet up and have a soda, coffee or beer with other Ubuntu and Free Software users, while sharing thoughts and ideas about Ubuntu, software and life in general.

I haven’t had much time to look at the new Ubuntu release, but hopefully I will have time to look into it in more detail when I have my fall vacation in one weeks time.

Other Ubuntu users around the world will be celebrating the release in the coming days as well. Feel free to share your release party stories and links to photos in the comments below.

Ubuntu Global Jam i København 2010

Så er det igen tid til Ubuntu Global Jam.

Endnu engang mødes Ubuntu og Fri Software entusiaster for at arbejde med at forbedre Ubuntu. I weekenden d. 27. – 29. august går det løse over hele kloden – og vi er også med i Danmark.
Vi mødes i København i Labitat, men det er også muligt at være med hjemmefra med en internet forbindelse.

Man bestemmer selv hvad man har lyst til at arbejde med, men Bugs og oversættelse er de mest oplagte kandidater – det er lige til at gå til.

Så hvis du har lyst til at være med, så kom forbi H. C. Ørstedsvej i weekenden, eller log på vores irc kanal og lad os snakke om hvad du har lyst til at arbejde med.

Der er også en Facebook begivenhed man kan tilmelde sig, så vi har et gæt på hvor mange der deltager.

Og så har Mark i øvrigt annonceret at Ubuntu 11.04 får kælenavnet Natty Narwhal (hvilket kan oversættes til Fikse Narhval). Det var i hvert fald gået hen over mit hoved – men jeg har også haft travlt med mange ting de sidste par dage…

Big news everyone – studies – Gefion Gymnasium and home

If you know me really well in real life, none of the news in this blog post will really be news to you.

If you follow my Twitter feed (or Facebook), some of this news will be old news to you, but there is still one big surprise – do read on to the end.

If you only follow my life through this blog… well, stand by for the most content rich post since… ever?

Studies

So, at April 7 I finally defended my thesis – and passed! So that marks the conclusion of my many years as a student at the University of Copenhagen and my work towards my Master degree in Mathematics.

To make it official, my diploma arrived on the 21th of July, much to my surprise. There have been many stories of people, who have waited over a year to receive their diploma. It would seem that I have either been lucky, or that some of the problems, that have haunted the administration at the University, have been cured recently.

Work

After a few weeks of looking I also found myself a job. So although the first two and a half week is considered vacation, according to my contract I officially start work at the Gefion Gymnasium on August first. I’m really looking forward to starting my new life, where student is no longer my primary profession, but where I am now a teacher.
Feel free to wish both me and my coming students good luck!
(And if any of my future students read this… don’t you have something more important to do? I’m sure you have some homework you haven’t finished!)

Gefion Gymnasium is a merger between Øster Borgerdyd and Metropolitanskolen. I have been told that the new facilities should be of very high quality, but have unfortunately not seen them yet.


Photo by: Thomas Angermann

When watched from from the outside, the GeoCenter building always gives me associations to Germany in the late 1930’s. However that feeling hasn’t followed me inside, when I have been there. (The building also houses parts of the University, so I have been there in that capacity a few times.)

Photo by: seier+seier

Home

Finally I have been looking for a bigger place to live with two friends for some time now, and we have finally found a big apartment in Østerbro.
So I will be moving quite a lot of my things tomorrow, if all goes as planed, and then when I return from vacation, I will move the rest of my stuff, so I will be all moved in (and out) by late August.

Of course Østerbro is further away from the city center than my current apartment, but the new apartment will give me (and the two other guys) a lot more space, and we will have some opportunities to do something really great with the shared rooms.

All in all I am really looking forward to moving to Østerbro, and making that my new home, although the last couple of days have been quite fast-paced. It took less than a week from we saw the apartment first time until we signed the lease.

StarCraft II – beta

Jeg har været så heldig at blive udtaget til at deltage i beta testen af Blizzards StarCraft II. Jeg var (og er) stor fan af det oprindelige StarCraft spil – og Broodwar udvidelsen – og glæder mig meget til Starcraft 2 udkommer, over ti år efter det oprindelige spil.

Jeg har ikke fået spillet beta’en voldsomt meget, men tænkte jeg ville fortælle om det indtryk jeg har fået indtil videre.

De nye (og ændrede) enheder er selvfølgelig det første man bemærker. Der er en del nye enheder og en del gamle kendinge er blevet underkastet den helt store make-over. I modsætning til det oprindelige StarCraft spil er der nu mange flere enheder, som har begrænsninger på om de kan skyde mod luft eller jord enheder. Det lyder måske som en stor begrænsning, men det betyder også at man bliver tvunget til spille mere varieret og vælge the right tool for the job, i stedet for bare at bygge en eller to typer enheder til hudløshed.
En fuld gruppe Protoss Carriers (med den nye Mothership enhed som support) rækker dog stadig langt. Men det er relativt sent i spillet man får adgang til dem og i mellemtiden kan mange ting nå at ske…

Terrænet (i kombination med nogle af de nye enheder) er den anden ændring man bemærker. Nogle enheder kan klatre over niveau forskelle – f.eks. har Terran en Reaper enhed, som med en jet pack, kan flyve over niveau forskellige i landskabet. Tilsvarende har Protoss en Colossus enhed, som på sine lange ben kan klatre ubesværet op og ned af klipper.

Terran Reaper
Terran Reaper

Det er altså ikke længere nok at lukke af for alle ‘indgange’. Ikke kun fly, men en del andre enheder kan selv vælge hvilken vej de vil benytte for at forsøge at få adgang til din base. Nogen baner har også forskellige tårne som kan aktiveres af en ground-enhed. Tårnet viser så hvad der sker på et betydeligt større område af kortet, end normale enheder kan se.

Selvom spiloplevelsen er meget finpudset mangler der stadig nogle detaljer (det er jo stadig beta). Lige så vigtigt så bruger Blizzard beta’en til at balancere de tre racer. Så selvom det vist er sikkert at sige at de grundlæggende enheder og deres egenskaber er på plads, så bliver der stadig justeret på styrker og svagheder for at opnå et så afbalanceret spil som muligt. Single-player delen er heller ikke tilgængelig endnu for mig, så den kan jeg ikke siger noget fornuftigt om. Men jeg forventer da at Blizzard lever op til forventningerne og laver en udfordrende og underholdende single-player del, med en fængende historie.

Protoss Colossus
Protoss Colossus

Det er endnu heller ikke muligt at køre StarCraft 2 beta’en under Wine på Linux, selvom der bliver arbejdet på det. Men de fleste spil fra Blizzard plejer at komme til at køre nogenlunde under wine, så mon ikke også det kommer til at lykkes med StarCraft 2? I mellemtiden så er jeg krøbet til korset og har hevet en gammel Windows maskine frem fra gemmerne. Den kunne godt bruge lidt mere ram, for at køre spillet rigtig flydende, men det må jeg lige kigge på i næste uge.

Vi ses på slagmarken (hvis du er med i beta’en – ellers må det vente til spillet bliver endelig udgivet).

Open Source Days 2010

The Danish Ubuntu LoCo team had a community booth at the 2010 Open Source Days in Copenhagen last weekend.

The picture shows us (and the Exherbo guys next to us) setting up early Friday morning. Later in the day a Zebrapig banner joined the Ubuntu banner. All the community booths were located on the first floor, upstairs from the firms and organisations who had a paid booth. I didn’t take that many pictures, and the ones I did take didn’t turn out that great, but Flickr seems to have a nice collection if you are curious.

The new theme for Ubuntu Lucid had just been released the day before, so Friday, when we weren’t talking to people about Ubuntu, we spend a bit of time arguing for and against the new colour scheme.
We managed to hand out all our remaining Ubuntu 9.10 CD’s and Jesper gave a talk about ubuntu-dk.

As always, it was nice to meet up with the other people from the LoCo team. Although we do a lot of work together, it is often via e-mail or irc chat. Putting names to faces is always a pleasure. The beers both Friday and Saturday night were also a pleasure – beer and good company seldom lets you down.

We even managed to do some planning for the coming Ubuntu Global Jam.

Anders is set on doing an entire day of translating Sunday 28 at his place. And the plan is to do some more general bugwork on Friday and Saturday. Location is still to be decided, but properly Jesper or I will open our homes to the masses of Ubuntu volunteers. Stay tuned for more info about the Global Jam in Copenhagen / Denmark.

Newest Alien film

Yesterday I went to see the latest Alien film. Like the others it feature Sigourney Weaver as a woman, who, just like was the case in the first Alien film, has been employed by a heartless corporation, which sends men and women into the far reaches of space, exposing them to extreme dangers, with only one motivation: Profit!

4054882592_e53486845d

Very early in the film it is made clear that conflict with the aliens already populating the planet, called Pandora, is inevitable. All the time I must admit that I was hoping for some of the humans to act responsibly and just say:

I say we take off and nuke the entire site from orbit. It’s the only way to be sure.

That should have wiped out the alien menace once and for all – but of course, just like all the other Alien films, the people in charge make all the wrong decisions. However the lack of nukes being launched does make for a much more entertaining film.

4054081733_507f5236a4

The film, and in particular the special effects used to produce the landscape and the aliens, is stunning. There is a high pace throughout and although it lasts over 2 and a half hours, the film never gets boring.

4054823306_b56cb41c49

Definitely worth seeing.

Ubuntu Live! in Århus

Yesterday the Danish LoCo team had a successful day in Århus. Århus is the second largest city in the country, and home to the biggest shopping mall here in Denmark, called Bruuns Galleri.

Armed with our good spirits, laptops, CDs and flyers for handout, we managed to talk to a lot of people, and hand out a lot of CDs and info flyers.

Photo by: Kim
Photo by: Kim

Especially the Eee Top touch screen with edubuntu installed was a hit with the kids. And when parents saw their kids doing basic arithmetic training while playing games, they were very easy to start a conversation with.

In general it was not hard to start conversations with people, and after mentioning the price and the general lack of viruses, most people were very interested. My rough guestimate is that we managed to hand a CD and a flyers with more info to 100 people and that we managed to talk to quite a few more.

This is definitely a thing that we can do again, and it doesn’t have to be linked to a release. Any weekend will do, and I really hope that we can manage events like this one again soon. Now that we know what is required, it should be fairly easy to plan and run events like this anywhere in the country. All we need is an agreement with a local mall (or similar), CDs, flyers and 6-8 people (with computers). This may be done with the help of a local LUG or similar, if need be.

<small>Photo by: Kim</small>
Photo by: Kim

After talking with ‘ordinary’ (what ever ordinary is) people about Ubuntu yesterday, my feeling is that People and Ubuntu are ready to be introduced, and we just need to go out there and do it!

As an added bonus, we actually had help with the CD handout all the way from Romania yesterday. Manuel from ubuntu-ru.org came down to help out. Of course he didn’t come all the way from Romania just to join us, he is an exchange student living in Århus, but still, I thought it was very brave of him to show up (and I hope the birthday party he was attending later turned out great).

Kim took a lot more pictures and Carsten also has pictures (and a description of the day, in Danish).

After the event a few of us went to the local PROSA office, where we were allowed to borrow their canteen and have some pizza. We also shared opinions about what we wanted to do about the next Ubuntu Live! – Ubuntu Release party here in Denmark. The next one, 10.04 is a LTS, and as such really invites for a grand celebration. We haven’t make any final decisions, but if only half of the ideas we talked about yesterday get carried out, it is going to be Big!