Diaspora one time setup script for ubuntu

129 views
Skip to first unread message

hemanth.hm

unread,
Sep 16, 2010, 3:40:55 AM9/16/10
to diaspora-dev
Hello all,

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 :

http://github.com/hemanth/futhark/blob/master/diaspora-setup.bash

I have tested it to the max i could, still might not be fool proof, do
try and let me know my flaws.

--
'I am what I am because of who we all are'
h3manth.com
-- Hemanth HM

Morten Høybye Frederiksen

unread,
Sep 16, 2010, 5:11:35 AM9/16/10
to diaspora-dev
Hi,

On Sep 16, 9:40 am, "hemanth.hm" <hemanth...@gmail.com> wrote:
> 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 :
> http://github.com/hemanth/futhark/blob/master/diaspora-setup.bash
Thanks for this.

It worked fine for me, except for the missing "rake". A simple "sudo
apt-get install rake" did the trick. Perhaps adding that to the script
would be a good idea.


Regards,
Morten
Message has been deleted

Neo31

unread,
Sep 16, 2010, 5:31:58 AM9/16/10
to diaspo...@googlegroups.com
WoW this is incredible,
thanks for da little script Hemanth, you leave me no choice not to try Diaspora today :p
thanks again, I hope I will be able to contribute with any little thing, otherwise I'll just do my  best to write some little article and share this great news with friends and ppl that may be interested :)

On Thu, Sep 16, 2010 at 10:25 AM, Antoine Lyset <antoin...@gmail.com> wrote:
Hi,

Yes rake should be include but maybe with "sudo gem install rake".

Someone noticed some errors with apt-get.

As seen here :

http://groups.google.com/group/diaspora-dev/browse_thread/thread/c2558731974d82e5#

I can translate this script in french too.

Regars,

Antoine.

hemanth.hm

unread,
Sep 16, 2010, 6:00:31 AM9/16/10
to diaspora-dev
Thank you all, for your quick responses.

0. I have added rake install line.
1. Replaced apt-get with aptitude.

Will try by best to do similar script for Debian [[ will install it
soon on VM and try ]] and i cant do it for Mac OS cause i can't
install that on VM :) Please do help me to improve this more.

On Sep 16, 2:31 pm, Neo31 <Ne...@net.sghaier.com> wrote:
> WoW this is incredible,
> thanks for da little script Hemanth, you leave me no choice not to try
> Diaspora today :p
> thanks again, I hope I will be able to contribute with any little thing,
> otherwise I'll just do my  best to write some little article and share this
> great news with friends and ppl that may be interested :)
>
> On Thu, Sep 16, 2010 at 10:25 AM, Antoine Lyset <antoinely...@gmail.com>wrote:
>
>
>
> > Hi,
>
> > Yes rake should be include but maybe with "sudo gem install rake".
>
> > Someone noticed some errors with apt-get.
>
> > As seen here :
>
> >http://groups.google.com/group/diaspora-dev/browse_thread/thread/c255...

Antoine Lyset

unread,
Sep 16, 2010, 6:56:05 AM9/16/10
to diaspora-dev
Here is my french translation :


http://pastebin.com/txkHvGaD

meisterpropper

unread,
Sep 16, 2010, 7:22:35 AM9/16/10
to diaspora-dev
Hi,

the script don´t work on my Ubuntu 64-bit system. When I click on Run
it in terminal, the terminal open a short time and nothing happens...

What's wrong. Also I have installed rake via sudo apt-get but it don't
work. Now I get the following error in the terminal after bundle exec
thin start: Could not find abstract-1.0.0 in any of the sources.

Has anyone an idea?

Thanks!

hemanth.hm

unread,
Sep 16, 2010, 7:54:55 AM9/16/10
to diaspora-dev
Thanks for the translation will update this in the repo soon :)

hemanth.hm

unread,
Sep 16, 2010, 7:57:14 AM9/16/10
to diaspora-dev
Hey Meisterpropper,

/me is also on 64-bit system here, cd the the path where the script
is and say sudo bash diaspora-setup.bash and please tell me what do
you notice after that.

meisterpropper

unread,
Sep 16, 2010, 8:15:09 AM9/16/10
to diaspora-dev
Now it works fine. Thanks!

hemanth.hm

unread,
Sep 16, 2010, 8:45:09 AM9/16/10
to diaspora-dev
No problem, have fun :)

Alkarex

unread,
Sep 16, 2010, 4:20:11 PM9/16/10
to diaspora-dev
Hello,
Thank for this script.
A quick feedback, using ubuntu-10.10-beta-desktop-i386 in a virtual
machine (VirtualBox-3.2.8-64453-Win). Very standard installation,
nothing special.

$nano dispora-setup.bash
--> Paste your script
$chmod 777 ./dispora-setup.bash
$sudo bash ./dispora-setup.bash
root has no sudo permissions on this machine

Doing the same without sudo gives me "[mysername] has no sudo
permissions on this machine".
But I do have sudo permissions...

For information:
$id -u
1000
$sudo id -u
0

Best regards,
Alexandre
http://alexandre.alapetite.fr

Alkarex

unread,
Sep 16, 2010, 4:29:08 PM9/16/10
to diaspora-dev
Hello again,
After removing the line checking for sudo rights, the scripts goes on
for a while, hitting a few problems such as
Err http://downloads.mongodb.org 10.10/10gen i386
Packages
403 Forbidden

...

http://downloads.mongodb.org/distros/ubuntu/dists/10.10/10gen/binary-i386/Packages.gz
403 Forbidden

And a bit later, I face the same problem as when I tried to install
manually, namely:

Installing bcrypt-ruby (2.1.2) with native extensions /usr/local/lib/
site_ruby/1.8/rubygems/installer.rb:483:in `build_extensions': ERROR:
Failed to build gem native extension.
(Gem::Installer::ExtensionBuildError)

http://groups.google.com/group/diaspora-discuss/t/7fbaf5b5523b86c3

I will try again a bit later with a fresh install of the same Ubuntu
version.

Daniel Ravenatic

unread,
Sep 16, 2010, 6:20:06 PM9/16/10
to diaspora-dev
daniel@ubuntu:~/Downloads/hemanth-futhark-65717f3$ bash diaspora-
setup.bash
daniel has no sudo permissions on this machine
daniel@ubuntu:~/Downloads/hemanth-futhark-65717f3$ sudo bash diaspora-
setup.bash
root has no sudo permissions on this machine


Mmm....

On Sep 16, 9:29 pm, Alkarex <alexan...@alapetite.fr> wrote:
> Hello again,
> After removing the line checking for sudo rights, the scripts goes on
> for a while, hitting a few problems such as
> Errhttp://downloads.mongodb.org10.10/10gen i386
> Packages
>   403  Forbidden
>
> ...
>
> http://downloads.mongodb.org/distros/ubuntu/dists/10.10/10gen/binary-...

hemanth.hm

unread,
Sep 24, 2010, 12:31:37 PM9/24/10
to diaspora-dev
Sudo issue was fixed, but yet to pulled to the main branch, get it
from http://github.com/hemanth/diaspora/raw/master/ubuntu-setup.bash

hemanth.hm

unread,
Sep 24, 2010, 12:32:35 PM9/24/10
to diaspora-dev
mongodb is not officially packed for 10.10 yet!

On Sep 17, 1:29 am, Alkarex <alexan...@alapetite.fr> wrote:
> Hello again,
> After removing the line checking for sudo rights, the scripts goes on
> for a while, hitting a few problems such as
> Errhttp://downloads.mongodb.org10.10/10gen i386
> Packages
>   403  Forbidden
>
> ...
>
> http://downloads.mongodb.org/distros/ubuntu/dists/10.10/10gen/binary-...

Daniel Thomas

unread,
Sep 24, 2010, 12:37:05 PM9/24/10
to diaspo...@googlegroups.com
More issues are fixed in
http://github.com/drt24/diaspora/raw/ubuntu/ubuntu-setup.bash
there is a pull request here:
http://github.com/diaspora/diaspora/pull/288 which would put all these
fixes into diaspora/master.

Daniel

signature.asc

Daniel Thomas

unread,
Sep 24, 2010, 12:46:03 PM9/24/10
to diaspo...@googlegroups.com
The updated script works around this by using the official ubuntu
version for maverick. Unfortunately there is a critical bug in the
ubuntu version
https://bugs.launchpad.net/ubuntu/+source/mongodb/+bug/557024 (it fails
to start due to packaging issues) and so the script prints out a
workaround in case that bug has not yet been fixed.
The workaround is:
sudo ln -s /usr/lib/xulrunner-1.9.2.10/libmozjs.so /usr/lib/libmozjs.so

This installs an old version of mongodb but it does appear to work.

Daniel

signature.asc

michael chrisco

unread,
Sep 24, 2010, 2:11:30 PM9/24/10
to diaspora-dev
Awesome. Ill use this script for the next version of the VM and the
live CD. I hope you dont mind.
Just run the script with sudo permissions correct?


On Sep 24, 9:46 am, Daniel Thomas <scottishphoe...@googlemail.com>
wrote:
> The updated script works around this by using the official ubuntu
> version for maverick. Unfortunately there is a critical bug in the
> ubuntu versionhttps://bugs.launchpad.net/ubuntu/+source/mongodb/+bug/557024(it fails
>  signature.asc
> < 1KViewDownload- Hide quoted text -
>
> - Show quoted text -

eveclatrel

unread,
Sep 24, 2010, 2:21:57 PM9/24/10
to diaspora-dev
+ 1
Thanks!
I think my main problem has been with my mongodb install, since it
won't connect anymore. I will yank out the dependencies and try this
instead.

On Sep 24, 12:37 pm, Daniel Thomas <scottishphoe...@googlemail.com>
wrote:
> More issues are fixed inhttp://github.com/drt24/diaspora/raw/ubuntu/ubuntu-setup.bash
> there is a pull request here:http://github.com/diaspora/diaspora/pull/288which would put all these
> fixes into diaspora/master.
>
> Daniel
>
>
>
> On Fri, 2010-09-24 at 09:31 -0700, hemanth.hm wrote:
> > Sudo issue was fixed, but yet to pulled to the main branch, get it
> > fromhttp://github.com/hemanth/diaspora/raw/master/ubuntu-setup.bash
>  signature.asc
> < 1KViewDownload

Daniel Thomas

unread,
Sep 24, 2010, 6:58:50 PM9/24/10
to diaspo...@googlegroups.com
On Fri, 2010-09-24 at 11:11 -0700, michael chrisco wrote:
> Awesome. Ill use this script for the next version of the VM and the
> live CD. I hope you dont mind.
:-D

> Just run the script with sudo permissions correct?

No just run the script, it uses sudo where root is needed but does some
things as the normal user which should be done as the normal user.

I should probably put some usage information on the script and bail out
if root...

signature.asc

michael chrisco

unread,
Sep 25, 2010, 2:31:46 PM9/25/10
to diaspora-dev
OK sounds good.
Im working on it right now. Should have it done and downloadable
tomorrow. Thanks for the script. Should save me some time.

On Sep 24, 3:58 pm, Daniel Thomas <scottishphoe...@googlemail.com>
wrote:
>  signature.asc
> < 1KViewDownload
Reply all
Reply to author
Forward
0 new messages