maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   How to install SDK on Ubuntu Hardy (https://talk.maemo.org/showthread.php?t=31347)

vitna91 2009-09-06 15:59

How to install SDK on Ubuntu Hardy
 
Hello,
I am a new user and i want to install the maemo 5(fremantle) SDK on Ubuntu Hardy.
I have red the tutorial in this site but i have an error on the second step:

Code:

$ sudo ./maemo-scratchbox-install_5.0beta2.sh –u USER
the error that it give me is:
Code:

sudo: ./maemo-scratchbox-install_5.0beta2.sh: command not found
why?
Sorry for my bad skill on linux(i am an XP's users, and i do apps in visual basic and C++)...and for my bad english i hope you understand which i have written.

Thanks for all answers!

pelago 2009-09-06 16:52

Re: How to install SDK on Ubuntu Hardy
 
You probably aren't in the same folder as the download when you type the sudo ./maemo-etc command, so you should 'cd' into the correct folder first. However, before you go any further, you should probably look up some kind of Ubuntu or general Linux tutorial, as there are quite a lot of differences from XP.

vitna91 2009-09-06 17:40

Re: How to install SDK on Ubuntu Hardy
 
But with the first step of this tutorial, i download automatically from terminal the file, and i don't know where they are saved.

texaslabrat 2009-09-06 17:57

Re: How to install SDK on Ubuntu Hardy
 
Quote:

Originally Posted by vitna91 (Post 322745)
But with the first step of this tutorial, i download automatically from terminal the file, and i don't know where they are saved.

find / -name maemo-scratchbox-install_5.0beta2.sh

Andre Klapper 2009-09-07 07:59

Re: How to install SDK on Ubuntu Hardy
 
Check your browser settings to find out where you have saved it, if you do not get asked where to store when downloading stuff...

vitna91 2009-09-07 11:59

Re: How to install SDK on Ubuntu Hardy
 
I have still a problem:
i have 'cd' on the right directory(home/USER) but now it give me another error:

If i write sudo ./memo-etc...
the error is:
Code:

command not found
if i write without 'sudo'
./maemo-etc...
the error is:
Code:

Permesso negato(permission denied)
help me please!

choubbi 2009-09-07 12:21

Re: How to install SDK on Ubuntu Hardy
 
Are you sure the file is executable ?
if not, try "chmod a+x ./maemo[...].sh", and try again to run it with sudo ?

vitna91 2009-09-07 16:23

Re: How to install SDK on Ubuntu Hardy
 
Quote:

Originally Posted by choubbi (Post 323129)
Are you sure the file is executable ?
if not, try "chmod a+x ./maemo[...].sh", and try again to run it with sudo ?

sorry for my stupidity, but also with this instruction it give me "command not found"
but isn't there a procedure easyer than this?

choubbi 2009-09-07 16:31

Re: How to install SDK on Ubuntu Hardy
 
I'm not aware of an easier procedure, but maybe posting screenshots could help us locate the problem?
If even chmod gives you an error, there's something wrong somewhere.

ColonelKilkenny 2009-09-07 16:44

Re: How to install SDK on Ubuntu Hardy
 
Use "sudo sh ./maemo-...."

Sudo needs a "proper" command after it.

vitna91 2009-09-07 17:02

Re: How to install SDK on Ubuntu Hardy
 
1 Attachment(s)
when i give the chmod command it give me this error(attachment)

vitna91 2009-09-07 17:05

Re: How to install SDK on Ubuntu Hardy
 
1 Attachment(s)
Quote:

Originally Posted by ColonelKilkenny (Post 323263)
Use "sudo sh ./maemo-...."

Sudo needs a "proper" command after it.

i test this...

choubbi 2009-09-07 21:10

Re: How to install SDK on Ubuntu Hardy
 
Ah, now it works. Just follow the instructions it gives you and remove VDSO support.
That happened to me too, but the permanent solution it gives let me get to the next steps.

vitna91 2009-09-08 07:54

Re: How to install SDK on Ubuntu Hardy
 
i must do the permanent solution or the "only for this session" one??

vitna91 2009-09-08 08:09

Re: How to install SDK on Ubuntu Hardy
 
for this time i have been executed the "only for this session" and now it is installing correctly the scratchbox, thanks to all, and sorry for my incompetence

rafanto 2009-09-08 08:55

Re: How to install SDK on Ubuntu Hardy
 
Hi,
test first the path of the maemo-scratchbox-install_5.0beta2.sh

and set the permits to exec the file with chmod +x maemo...sh

After these step

launch the file on the terminal with :

sh maemo-scratchbox-install_5.0beta2.sh

always occurs the path of maemo-scratchbox-install_5.0beta2.sh !!

twaelti 2009-09-08 10:07

Re: How to install SDK on Ubuntu Hardy
 
I stumbled over the same two things a few days ago. Unfortunately, the Maemo 5 Beta 2 SDK Installation docs can't be that easily edited. Who is the responsible editor? Should we file bugs in the bugzilla for this?

After the download, I had to do the
Code:

chmod a+x ./maemo-scratchbox-install_5.0beta2.sh
to be able to launch the shell script.

And then to permanently change the VDSO support in my Ubuntu as described in a post from Karoliina:
Code:

$ sudo su
$ nano /etc/sysctl.conf

Add a new line
Code:

vm.vdso_enabled = 0
to the end of file.
Press ctrl-x to exit and save.
Then (while remaining as root) run:
Code:

sysctl -p
Finally type
Code:

exit
to return to previous shell
Now you can finally
Code:

sudo ./maemo-scratchbox-install_5.0beta2.sh –u USER
This will get scratchbox and install it on your system. Time needed: 5-10 minutes

Once this has finished, do:
Code:

$ sh  maemo-sdk-install_5.0beta.sh
Will take another 5-10 minutes to install.

Then setup is complete. You can now launch scratchbox etc. according to the article.
Unfortunately, you then have only a very empty "virtual N900" to play around. Best thing is to add the Fremantle Extras repositories to your installation: create the file(s) /etc/apt/sources.list.d/extras-repo.list under your scratchbox targets.

This will then enable you to apt-get some applications to have something to play around :-)

danielwilms 2009-09-08 11:58

Re: How to install SDK on Ubuntu Hardy
 
Quote:

Originally Posted by twaelti (Post 323622)
I stumbled over the same two things a few days ago. Unfortunately, the Maemo 5 Beta 2 SDK Installation docs can't be that easily edited. Who is the responsible editor? Should we file bugs in the bugzilla for this?

Hi,

I have extended the installation docs. Thanks for the feedback.

Cheers Daniel

vitna91 2009-09-09 12:47

Re: How to install SDK on Ubuntu Hardy
 
1 Attachment(s)
I have still another error, when i write this command
Code:

$ sh  maemo-sdk-install_5.0beta2.sh
i hope you help me still.

choubbi 2009-09-09 12:54

Re: How to install SDK on Ubuntu Hardy
 
I suggest trying the command "adduser vaselli sbox" (since you have to add the user "vaselli" to the group "sbox")

vitna91 2009-09-09 13:33

Re: How to install SDK on Ubuntu Hardy
 
it give me
L'utente «vaselli» fa già parte del gruppo «sbox».
The user "vaselli" is almost part of the group "sbox"

vitna91 2009-09-10 08:27

Re: How to install SDK on Ubuntu Hardy
 
someone help me please!!!

i had almost added the user "vaselli" to the "sbox" group but it give me the same error!!!

choubbi 2009-09-10 09:43

Re: How to install SDK on Ubuntu Hardy
 
do you run the script with sudo/su or with the user session ?
If you do it without sudo/su and it still doesn't work, I don't see where the error comes from.

BTW, I think you wanted to say "already", not "almost" ("You keep using that word. I do not think it means what you think it means";))

danielwilms 2009-09-10 10:08

Re: How to install SDK on Ubuntu Hardy
 
Quote:

Originally Posted by vitna91 (Post 324722)
someone help me please!!!
i had almost added the user "vaselli" to the "sbox" group but it give me the same error!!!


have you tried:

Code:

newgrp sbox
alternatively you could try to log out and log in again.

cheers daniel

Nathan 2009-09-10 10:43

Re: How to install SDK on Ubuntu Hardy
 
Since you are familiar with windows have you considered: https://garage.maemo.org/plugins/wik...id=1033&type=g

Current thread: http://talk.maemo.org/showthread.php?t=31141&page=4

This is basically a VM image that will pretty much setup everything for you.

Nathan

vitna91 2009-09-10 17:23

Re: How to install SDK on Ubuntu Hardy
 
i have installed it, i wrote sudo su, but without it it work fine!

thanks at everyone which posted here for help me!

vitna91 2009-09-10 19:42

Re: How to install SDK on Ubuntu Hardy
 
1 Attachment(s)
i am doing the last step but there is another error :(

Nathan 2009-09-11 16:03

Re: How to install SDK on Ubuntu Hardy
 
The Nokia Binaries URL was unstable yesterday (The first couple times I tried I got the same error mesage). I would just retry that step in the instructions.

Just make sure that you have included the "deb" line in "both" scratchbox's sources.list files that you got from the nokia web site...

Nathan.

vitna91 2009-09-11 17:34

Re: How to install SDK on Ubuntu Hardy
 
i know a only source.list...

you would say X86 and ARMEL???

Nathan 2009-09-11 18:33

Re: How to install SDK on Ubuntu Hardy
 
Sorry, yes source.list -- and you need to have it on Both the Armel and X86 targets. Do an Apt-get update then apt-get install.

Nathan.


All times are GMT. The time now is 23:07.

vBulletin® Version 3.8.8