Active Topics

 


Reply
Thread Tools
stevecrye's Avatar
Posts: 226 | Thanked: 38 times | Joined on May 2008 @ Texas/Earth/Sol System/Milky Way/Local Group/Hubble Bubble/Infinity
#1
Hi;

I'm a noob when it come to maemo and scratchbox.

Having a problem with missing toolchains after installing the new scratchbox for Diablo. I'm using the Xubunto VM maemo-sdk-0.6.

The scratchbox installs OK, but when I try to install the SDK using the shell script, it complains about missing toolchains:

maemo@maemo:~/scripts$ sh maemo-sdk-install_4.1.sh
This script will install maemo SDK 4.1 diablo release to your computer.

Install options
Do not download or install Nokia EUSA binaries (no)
Force remove of existing targets (no)
Alternative sources.list ('')

Target configuration for armel (DIABLO_ARMEL)
compiler=cs2005q3.2-glibc2.5-arm
devkits=perl:debian-etch:maemo3-tools:cputransp
cputransp=qemu-arm-0.8.2-sb2

Target configuration for i386 (DIABLO_X86)
compiler=cs2005q3.2-glibc2.5-i386
devkits=perl:debian-etch:maemo3-tools

Checking for prerequisites
--------------------------

wget tool in path... /usr/bin/wget
Checking for dpkg tool in path... /usr/bin/dpkg
Running outside of scratchbox... yes
Script not run as user root... yes
Scratchbox installation found... yes
Scratchbox home directory... yes
Scratchbox sb-conf tool... yes
Scratchbox user's bind mount... yes
Scratchbox user's /dev set up... yes
Scratchbox home directory... yes
Scratchbox login... yes
Scratchbox login executable... yes
Scratchbox sb-conf tool works... yes
Scratchbox version requirement met... yes
Scratchbox CPU transparency method for ARMEL is present... yes
Scratchbox toolchains... no
E: Toolchain cs2005q3.2-glibc2.5-arm required for 'DIABLO_ARMEL' target.
E: Toolchain cs2005q3.2-glibc2.5-i386 required for 'DIABLO_X86' target.
E: Please complete scratchbox installation first.
E: Specify an alternative installation path using '-s PATH' option.
maemo@maemo:~/scripts$
I can login to scratchbox OK and run the sb-menu.

I read more about scratchbox here:
http://scratchbox.org/documentation/...nstalldoc.html

There is a walk-through of the process for creating a new target. In that walk-through, after step 4, it says:

"We use "MYTARGET" as the target name in this example.
Next, the setup will ask which toolchain should be used to compile programs"

If I try those steps, it never prompts me to select a toolchain, but instead goes to the next screens for selecting devkits.

So, I'm baffled about how to get the toolchains installed.

Any suggestions most welcome.

Thanks,

Steve
__________________
my estimated current noob level:
<helpless>......«•».............<all-powerful>
"Who is John Galt?"
 
megabyte405's Avatar
Posts: 197 | Thanked: 87 times | Joined on Apr 2007 @ USA
#2
Not sure - did you follow the "install" directions specifically for the maemo sdk? I just use the SDK vmware image so I don't have to mess with installing scratchbox
__________________
Ryan
AbiWord Dev, N800 user
Nokia internet tablet docs: http://www.cleardefinition.com
AbiWord on Maemo beta now available - contact me to help fix bugs!
 
tz1's Avatar
Posts: 716 | Thanked: 236 times | Joined on Dec 2007
#3
These were my steps (from the install.txt):
http://tablets-dev.nokia.com/4.1/INSTALL.txt

download http://repository.maemo.org/stable/d...install_4.1.sh

Run:
sudo chmod a+x ./maemo-scratchbox-install_4.1.sh
sudo ./maemo-scratchbox-install_4.1.sh

Note you will need to specify users - this paragraph from install is a bit vague but describes it. See the scratchbox documentation. You will need to logout (I would suggest logging out of X) and login again for it to work after doing this. You may be able to do this after installling the rootstraps

Specify users to be added to scratchbox users with '-u USER'
option. Run the command 'newgrp sbox' or start a new login terminal after
being added to the group for group membership to be effective.
download:
http://repository.maemo.org/stable/d...install_4.1.sh
(this installs the rootstrap toolchains)

Run: (you need the -y if you've already run this)
sh maemo-sdk-install_4.1.sh -y

In the above cases, tell it to install everything including any nokia binary-only packages and all the debug stuff. "Runtime Environment + All Dev and Dbg Packages."
 

The Following User Says Thank You to tz1 For This Useful Post:
stevecrye's Avatar
Posts: 226 | Thanked: 38 times | Joined on May 2008 @ Texas/Earth/Sol System/Milky Way/Local Group/Hubble Bubble/Infinity
#4
Well, things are not any better. tz1, thanks for the tip about scratchbox users, but my attempt to apply that just hosed my vm. Mega, I'm going through all this because the vm is not equipped with the Diablo versions of scratchbox and SDK.

Here are the details of what I am doing - clearly I am thrashing around in the dark:

* Download the VM, extract, run it in either VMware workstation 6.x or VMware Player

* Bring up these links, follow instructions:
http://maemo.org/development/sdks/maemo-4-1-diablo-sdk/
http://tablets-dev.nokia.com/4.1/INSTALL.txt
From INSTALL.txt:
...The installer script can be found from this URL:

http://repository.maemo.org/stable/d...install_4.1.sh

To install scratchbox, first download the script (from the link
mentioned above) to your host
computer and run the maemo-scratchbox-install_4.1.sh as user
root:

$ sudo chmod a+x ./maemo-scratchbox-install_4.1.sh
$ sudo ./maemo-scratchbox-install_4.1.sh
* The script will not run if the /scratchbox directory from the Chinook installtion is present, so I first delete that directory and all subs. After that, the script runs OK and reports success. I can even use scratchbox to compile and make the 'hello world' program, even without any toolchains.

tz1, you are correct that the part about adding users in vague! These instructions from the INSTALL.txt are very confusing:
Specify users to be added to scratchbox users with '-u USER'
option.

What command is used to specify '-u USER' ? Do they mean to feed that to the maemo-scratchbox-install_4.1.sh ??!? If so, I wish they had put that up higher in the instructions!

I looked at the script, and the Options section says that -u will accept a comma-separated list of users.

But, now that scratchbox has already been installed, I can't just run it again with -u maemo', so I delete /scratchbox and start again, this time with the 'u maemo option <grrrrr>

But, now the script fails, with:
Building dependency tree
Reading state information... Done
scratchbox-core is already the newest version.
scratchbox-devkit-cputransp is already the newest version.
scratchbox-devkit-debian is already the newest version.
scratchbox-devkit-doctools is already the newest version.
scratchbox-devkit-perl is already the newest version.
scratchbox-libs is already the newest version.
scratchbox-libs set to manual installed.
scratchbox-toolchain-cs2005q3.2-glibc2.5-arm is already the newest version.
scratchbox-toolchain-cs2005q3.2-glibc2.5-i386 is already the newest version.
scratchbox-devkit-maemo3 is already the newest version.
scratchbox-toolchain-host-gcc is already the newest version.
The following packages were automatically installed and are no longer required:
wamerican libportaudio0 libicu36 network-manager nvidia-kernel-common
ttf-opensymbol libwps-0.1-1 wpasupplicant myspell-en-gb myspell-en-us
myspell-en-za wbritish mozilla-firefox-locale-en-gb libsndfile1
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 45 not upgraded.
E: Scratchbox command '/scratchbox/sbin/sbox_adduser' is not executable.
E: Something went wrong with the install. Sorry.
Arrgh!
so, I run
apt-get autoremove
as root.

It removes a bunch of stuff - but things are just getting worse. I'm presented with windows asking me to pick dictionaries to remove, and lots of frightening stuff scrolls by. When it is all over, and I try the scratchbox script again, it will not run at all - page afer page of alarming errors such as:
Failed to fetch http://security.ubuntu.com/ubuntu/di...rce/Sources.gz Could not resolve 'security.ubuntu.com'
It seems that my networking on the vm is now totally hosed. eth0 will not start. ifconfig shows only lo.

I'm going to re-install the downloaded VM and try again.
<sigh>

Steve
__________________
my estimated current noob level:
<helpless>......«•».............<all-powerful>
"Who is John Galt?"
 
fiferboy's Avatar
Posts: 475 | Thanked: 771 times | Joined on Dec 2007 @ Hamilton, Ontario, Canada
#5
stevecrye: I am running the VMWare image and using chinook and diablo SDKs in scratchbox. Here is what I did:

First, upgraded xubuntu to Hardy (just a personal choice, but it did present a small issue that is solved later on, read the following link). I also got rid of the 'user' user and added my own (again, just a personal choice).

Second, followed these instructions to install the diablo sdk: http://linuxuk.org/node/38. I used the scratchbox install that came with the VMWare image (although I think I updated the debs when upgrading to hardy).

Now I have my personal user as the Xubuntu user, and I added that user as the scratchbox user as well (that is covered in the article linked). I can develop for chinook and diablo quite easily. I did have to recompile open-vm-tools (http://open-vm-tools.sourceforge.net/)for the newer hardy kernel before things like network, clipboard, and auto-resizing would work.

Hope this helps!
 

The Following User Says Thank You to fiferboy For This Useful Post:
stevecrye's Avatar
Posts: 226 | Thanked: 38 times | Joined on May 2008 @ Texas/Earth/Sol System/Milky Way/Local Group/Hubble Bubble/Infinity
#6
Man, I must be missing something obvious that perhaps is not in the instructions or will not work in this VM - something that everyone assumes a developer will know to do but I don't because I'm such a noob. I sense I am very close to getting it to work - the problem will turn out to be something trivial.

I'm working with the scripts and instructions found here:
http://repository.maemo.org/stable/diablo/

I'm trying yet again from yet again a fresh download of the VM... this will be my 5th attempt in 3 days.

Questions and results of latest attempt:

* Can't I just use user 'maemo' as both the scratchbox user and the default user of the Xubunto vm? Must I create a new user? I'm not going to use this VM for anything else, and I want to keeps things as simple as possible.

* Did you have to delete /scratchbox before running
sudo ./maemo-scratchbox-install_4.1.sh
?

Because if I don't, I get this error:
maemo@maemo:~/scripts$ sudo su
root@maemo:/home/maemo/scripts# sudo chmod a+x ./maemo-scratchbox-install_4.1.sh
root@maemo:/home/maemo/scripts# ./maemo-scratchbox-install_4.1.sh
This script will install Scratchbox 1.0.8 'apophis' release to your computer.
Install options
---------------
Install from packages=apt
Scratchbox install path=/scratchbox
Scratchbox group=sbox
armel compiler=cs2005q3.2-glibc2.5-arm
i386 compiler=cs2005q3.2-glibc2.5-i386
armel devkits=perl:debian-etch:maemo3-tools:cputransp
i386 devkits=perl:debian-etch:maemo3-tools
armel CPU transparency=qemu-arm-0.8.2-sb2
Checking for prerequisites
--------------------------
Running as user root... yes
Not running as user root inside fakeroot... yes
Running outside of scratchbox... yes
Running on Linux kernel... yes
Running on i386 architecture... yes
Host kernel binfmt_misc support... yes
Host kernel VDSO support... yes
No host kernel SELinux extensions... yes
Host kernel local IPv4 port range... yes
Scratchbox installation not existing... no
E: Scratchbox already found in installation path '/scratchbox'.
E: Please remove your scratchbox installation first if you want to proceed.
E: Remember to copy your scratchbox users' home directories.
E: Also run '/scratchbox/sbin/sbox_ctl stop' before removing directory.
E: Specify an alternative installation path using '-s PATH' option.
root@maemo:/home/maemo/scripts#
So, I then delete /scratchbox and all subs, and try again. This time, as in previous attempts, it finishes OK. It downloads tons of stuff, everything looks beautiful. The process is unattended and I am not prompted to answer any questions.

Installation was successful!
----------------------------
You now have Scratchbox 1.0.8 'apophis' release installed.

Scratchbox cannot be run as user root. Instead, use your normal login
user account. Add additional scratchbox users and sandboxes with the
following command (outside scratchbox with root permissions):
# /scratchbox/sbin/sbox_adduser USER yes
Running this command will create sandbox environment for that user and
add user to the 'sbox' scratchbox user group.
You will need to start a new login terminal after being added to the
'sbox' group for group membership to be effective.
Login to scratchbox session using the following command (as user):
$ /scratchbox/login
Refer to scratchbox.org documentation for more information re scratchbox:
http://scratchbox.org/documentation/...cratchbox-1.0/
I then try - yet again:
root@maemo:/home/maemo/scripts# /scratchbox/sbin/sbox_adduser maemo yes
The user `maemo' is already a member of `sbox'.
Scratchbox user account for user maemo added
It says that user maemo is already a user. Ok, fine. I exit root, exit the terminal, bring up a new terminal. I then try:
maemo@maemo:~$ /scratchbox/login
ERROR: Scratchbox is not properly set up!
maemo@maemo:~$
Now What?!?

So, I try the slightly different instructions provided by your link:

maemo@maemo:~$ sudo /scratchbox/sbin/sbox_adduser maemo yes
Scratchbox user account for user maemo already exists!
Hmmm....

Well, lets see if the SDK will install:

maemo@maemo:~/scripts$ sh maemo-sdk-install_4.1.sh -y
This script will install maemo SDK 4.1 diablo release to your computer.
Install options
Do not download or install Nokia EUSA binaries (no)
Force remove of existing targets (yes)
Alternative sources.list ('')
Target configuration for armel (DIABLO_ARMEL)
compiler=cs2005q3.2-glibc2.5-arm
devkits=perl:debian-etch:maemo3-tools:cputransp
cputransp=qemu-arm-0.8.2-sb2
Target configuration for i386 (DIABLO_X86)
compiler=cs2005q3.2-glibc2.5-i386
devkits=perl:debian-etch:maemo3-tools
Checking for prerequisites
--------------------------
wget tool in path... /usr/bin/wget
Checking for dpkg tool in path... /usr/bin/dpkg
Running outside of scratchbox... yes
Script not run as user root... yes
Scratchbox installation found... yes
Scratchbox home directory... yes
Scratchbox sb-conf tool... yes
Scratchbox user's bind mount... no
E: Scratchbox bind mount for user not present.
E: Start scratchbox service with 'sudo /scratchbox/sbin/sbox_ctl start'.
E: Specify an alternative installation path using '-s PATH' option.
Starting the service did not help:
maemo@maemo:~/scripts$ sudo /scratchbox/sbin/sbox_ctl start
Starting Scratchbox: binfmt_misc, mount.
Out of desperation I reboot. Things are a little better:

maemo@maemo:~$ /scratchbox/login
You dont have active target in scratchbox chroot.
Please create one by running "sb-menu" before continuing
Welcome to Scratchbox, the cross-compilation toolkit!
Use 'sb-menu' to change your compilation target.
See /scratchbox/doc/ for documentation.
sb-conf: No current target
[sbox-: ~] >
So, perhaps now the SDK will install?

maemo@maemo:~/scripts$ sh maemo-sdk-install_4.1.sh -y
This script will install maemo SDK 4.1 diablo release to your computer.
Install options
Do not download or install Nokia EUSA binaries (no)
Force remove of existing targets (yes)
Alternative sources.list ('')
Target configuration for armel (DIABLO_ARMEL)
compiler=cs2005q3.2-glibc2.5-arm
devkits=perl:debian-etch:maemo3-tools:cputransp
cputransp=qemu-arm-0.8.2-sb2
Target configuration for i386 (DIABLO_X86)
compiler=cs2005q3.2-glibc2.5-i386
devkits=perl:debian-etch:maemo3-tools
Checking for prerequisites
--------------------------
wget tool in path... /usr/bin/wget
Checking for dpkg tool in path... /usr/bin/dpkg
Running outside of scratchbox... yes
Script not run as user root... yes
Scratchbox installation found... yes
Scratchbox home directory... yes
Scratchbox sb-conf tool... yes
Scratchbox user's bind mount... yes
Scratchbox user's /dev set up... yes
Scratchbox home directory... yes
Scratchbox login... yes
Scratchbox login executable... yes
Scratchbox sb-conf tool works... yes
Scratchbox version requirement met... yes
Scratchbox CPU transparency method for ARMEL is present... yes
Scratchbox toolchains... no
E: Toolchain cs2005q3.2-glibc2.5-arm required for 'DIABLO_ARMEL' target.
E: Toolchain cs2005q3.2-glibc2.5-i386 required for 'DIABLO_X86' target.
E: Please complete scratchbox installation first.
E: Specify an alternative installation path using '-s PATH' option.
maemo@maemo:~/scripts$
Nope. I'm back to the same place I was 3 days and 8 man-hours ago. On the pre-installed Chinook version that comes with the VM, there is a directory called /scratchbox/device-tools that is missing after I run the Diablo scratchbox install.

It never takes me to the screens that are listed in section 3.3.4 of http://maemo.org/maemo_release_docum...1.x/node4.html

I'm not certain if this is a clue, because it happens in the unmodified VM also:
root@maemo:/home/maemo/scripts# find / -name cs2005q3.2-glibc2.5-arm
find: Filesystem loop detected; `/scratchbox/users/maemo/scratchbox' has the same device number and inode as a directory which is 3 levels higher in the filesystem hierarchy.
More puzzled than ever. I'm looking at the manual steps for installing the SDK.

Steve
__________________
my estimated current noob level:
<helpless>......«•».............<all-powerful>
"Who is John Galt?"

Last edited by stevecrye; 2008-07-05 at 01:49. Reason: fixed typos, latest results
 
stevecrye's Avatar
Posts: 226 | Thanked: 38 times | Joined on May 2008 @ Texas/Earth/Sol System/Milky Way/Local Group/Hubble Bubble/Infinity
#7
News Flash! Victory! I knew it would be something silly.

I started over with the fresh VM. This time, instead of deleting the exisiting /scratchbox, I instead stopped the scratchbox service, and then installed to a fresh path /d-s/scratchbox, using the -s PATH option. I also used the -u USER option, specifying user maemo.

root@maemo:/home/maemo/scripts# sudo chmod a+x ./maemo-scratchbox-install_4.1.sh
root@maemo:/home/maemo/scripts# sudo ./maemo-scratchbox-install_4.1.sh -u maemo -s /d-s/scratchbox
This script will install Scratchbox 1.0.8 'apophis' release to your computer.
...

Checking for prerequisites
...

Scratchbox user names... maemo yes

Everything seems to be ok.

Downloading scratchbox packages
...

Downloading 'scratchbox-devkit-debian-1.0.9-i386.tar.gz'.
--21:01:38-- http://scratchbox.org/download/files....9-i386.tar.gz
=> `/tmp/scratchbox-devkit-debian-1.0.9-i386.tar.gz'
Resolving scratchbox.org... 62.61.85.37
Connecting to scratchbox.org|62.61.85.37|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 9,746,134 (9.3M) [application/x-tar]

100%[====================================>] 9,746,134 89.16K/s ETA 00:00

21:03:34 (82.06 KB/s) - `/tmp/scratchbox-devkit-debian-1.0.9-i386.tar.gz' saved [9746134/9746134]

Downloading 'scratchbox-devkit-doctools-1.0.7-i386.tar.gz'.
--21:03:35-- http://scratchbox.org/download/files....7-i386.tar.gz
=> `/tmp/scratchbox-devkit-doctools-1.0.7-i386.tar.gz'
Resolving scratchbox.org... 62.61.85.37
Connecting to scratchbox.org|62.61.85.37|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 98,183,989 (94M) [application/x-tar]

100%[====================================>] 98,183,989 85.89K/s ETA 00:00

21:22:59 (82.39 KB/s) - `/tmp/scratchbox-devkit-doctools-1.0.7-i386.tar.gz' saved [98183989/98183989]

Downloading 'scratchbox-devkit-maemo3-1.0.3-i386.tar.gz'.
--21:23:04-- http://scratchbox.org/download/files....3-i386.tar.gz
=> `/tmp/scratchbox-devkit-maemo3-1.0.3-i386.tar.gz'
Resolving scratchbox.org... 62.61.85.37
Connecting to scratchbox.org|62.61.85.37|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 22,558,160 (22M) [application/x-tar]

100%[====================================>] 22,558,160 87.10K/s ETA 00:00

21:27:32 (82.50 KB/s) - `/tmp/scratchbox-devkit-maemo3-1.0.3-i386.tar.gz' saved [22558160/22558160]

Downloading 'scratchbox-devkit-perl-1.0.4-i386.tar.gz'.
--21:27:33-- http://scratchbox.org/download/files....4-i386.tar.gz
=> `/tmp/scratchbox-devkit-perl-1.0.4-i386.tar.gz'
Resolving scratchbox.org... 62.61.85.37
Connecting to scratchbox.org|62.61.85.37|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 970,158 (947K) [application/x-tar]

100%[====================================>] 970,158 87.34K/s ETA 00:00

21:27:45 (81.37 KB/s) - `/tmp/scratchbox-devkit-perl-1.0.4-i386.tar.gz' saved [970158/970158]

Downloading 'scratchbox-libs-1.0.8-i386.tar.gz'.
--21:27:45-- http://scratchbox.org/download/files....8-i386.tar.gz
=> `/tmp/scratchbox-libs-1.0.8-i386.tar.gz'
Resolving scratchbox.org... 62.61.85.37
Connecting to scratchbox.org|62.61.85.37|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 14,399,196 (14M) [application/x-tar]

100%[====================================>] 14,399,196 52.05K/s ETA 00:00

21:30:34 (83.55 KB/s) - `/tmp/scratchbox-libs-1.0.8-i386.tar.gz' saved [14399196/14399196]

Downloading 'scratchbox-toolchain-cs2005q3.2-glibc2.5-arm-1.0.7.2-i386.tar.gz'.
--21:30:35-- http://scratchbox.org/download/files....2-i386.tar.gz
=> `/tmp/scratchbox-toolchain-cs2005q3.2-glibc2.5-arm-1.0.7.2-i386.tar.gz'
Resolving scratchbox.org... 62.61.85.37
Connecting to scratchbox.org|62.61.85.37|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 47,597,128 (45M) [application/x-tar]

100%[====================================>] 47,597,128 88.97K/s ETA 00:00

21:39:46 (84.54 KB/s) - `/tmp/scratchbox-toolchain-cs2005q3.2-glibc2.5-arm-1.0.7.2-i386.tar.gz' saved [47597128/47597128]

Downloading 'scratchbox-toolchain-cs2005q3.2-glibc2.5-i386-1.0.7-i386.tar.gz'.
--21:39:48-- http://scratchbox.org/download/files....7-i386.tar.gz
=> `/tmp/scratchbox-toolchain-cs2005q3.2-glibc2.5-i386-1.0.7-i386.tar.gz'
Resolving scratchbox.org... 62.61.85.37
Connecting to scratchbox.org|62.61.85.37|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 44,022,168 (42M) [application/x-tar]

100%[====================================>] 44,022,168 86.16K/s ETA 00:00

21:50:24 (67.65 KB/s) - `/tmp/scratchbox-toolchain-cs2005q3.2-glibc2.5-i386-1.0.7-i386.tar.gz' saved [44022168/44022168]

Downloading 'scratchbox-toolchain-host-gcc-1.0.8-i386.tar.gz'.
--21:50:26-- http://scratchbox.org/download/files....8-i386.tar.gz
=> `/tmp/scratchbox-toolchain-host-gcc-1.0.8-i386.tar.gz'
Resolving scratchbox.org... 62.61.85.37
Connecting to scratchbox.org|62.61.85.37|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 4,361,203 (4.2M) [application/x-tar]

100%[====================================>] 4,361,203 87.82K/s ETA 00:00

21:51:17 (84.84 KB/s) - `/tmp/scratchbox-toolchain-host-gcc-1.0.8-i386.tar.gz' saved [4361203/4361203]


Setting up
----------

Extracting 'scratchbox-core-1.0.8-i386.tar.gz' to '/d-s/scratchbox'.
Extracting 'scratchbox-devkit-cputransp-1.0.7-i386.tar.gz' to '/d-s/scratchbox'.
Extracting 'scratchbox-devkit-debian-1.0.9-i386.tar.gz' to '/d-s/scratchbox'.
Extracting 'scratchbox-devkit-doctools-1.0.7-i386.tar.gz' to '/d-s/scratchbox'.
Extracting 'scratchbox-devkit-maemo3-1.0.3-i386.tar.gz' to '/d-s/scratchbox'.
Extracting 'scratchbox-devkit-perl-1.0.4-i386.tar.gz' to '/d-s/scratchbox'.
Extracting 'scratchbox-libs-1.0.8-i386.tar.gz' to '/d-s/scratchbox'.
Extracting 'scratchbox-toolchain-cs2005q3.2-glibc2.5-arm-1.0.7.2-i386.tar.gz' to '/d-s/scratchbox'.
Extracting 'scratchbox-toolchain-cs2005q3.2-glibc2.5-i386-1.0.7-i386.tar.gz' to '/d-s/scratchbox'.
Extracting 'scratchbox-toolchain-host-gcc-1.0.8-i386.tar.gz' to '/d-s/scratchbox'.

Running first time script.
Do you want to use sudo mode? [yes/no] (no): Give the name of the scratchbox group (sbox):
Stopping Scratchbox: umount, binfmt_misc.
Starting Scratchbox: binfmt_misc, mount.

Now you should add one or more users with /d-s/scratchbox/sbin/sbox_adduser

Adding scratchbox user 'maemo'.
The user `maemo' is already a member of `sbox'.
Scratchbox user account for user maemo added

Installation was successful!
----------------------------

You now have Scratchbox 1.0.8 'apophis' release installed.

Scratchbox cannot be run as user root. Instead, use your normal login
user account. Add additional scratchbox users and sandboxes with the
following command (outside scratchbox with root permissions):

# /d-s/scratchbox/sbin/sbox_adduser USER yes

Running this command will create sandbox environment for that user and
add user to the 'sbox' scratchbox user group.
You will need to start a new login terminal after being added to the
'sbox' group for group membership to be effective.

Scratchbox service must be started for CPU transparency to be functional.
Run the following command (outside scratchbox with root permissions):

# /d-s/scratchbox/sbin/sbox_ctl start

Add this command to e.g. /etc/rc.local file to start scratchbox service
at boot time.

Login to scratchbox session using the following command (as user):

$ /d-s/scratchbox/login

Refer to scratchbox.org documentation for more information re scratchbox:
http://scratchbox.org/documentation/...cratchbox-1.0/

root@maemo:/home/maemo/scripts#
Next, I ran the SDK script, but used -s PATH to specify my 'special' path. All the expected interaction screens were there! It is downloading everything as I type this.

Happy, Happy Joy Joy!

Steve
__________________
my estimated current noob level:
<helpless>......«•».............<all-powerful>
"Who is John Galt?"

Last edited by stevecrye; 2008-07-05 at 02:25. Reason: Typos
 
stevecrye's Avatar
Posts: 226 | Thanked: 38 times | Joined on May 2008 @ Texas/Earth/Sol System/Milky Way/Local Group/Hubble Bubble/Infinity
#8
Diablo SDK installed and working! GUI 'Hello World' compiled and running.



Well, now the fun really starts ... trying to get Kismet working properly under Diablo, with the n810 drivers, correctly displaying signal strength, 'r' option working, able to capture packets without stalling after a while ..

Wish me luck!

Steve
__________________
my estimated current noob level:
<helpless>......«•».............<all-powerful>
"Who is John Galt?"

Last edited by stevecrye; 2008-07-05 at 23:20. Reason: fixed typo in screenshot link
 
tz1's Avatar
Posts: 716 | Thanked: 236 times | Joined on Dec 2007
#9
I noticed you didn't say you logged out and logged back in after doing the -user, though it probably worked to set the value, but sometime in this process you did and it took. Also if you are using 8.04 (heron) derived xubuntu, there is a note in the INSTALL.txt. You do need to read the whole thing - the manual/automatic stuff is interleaved so you can't always find it easily.
 
stevecrye's Avatar
Posts: 226 | Thanked: 38 times | Joined on May 2008 @ Texas/Earth/Sol System/Milky Way/Local Group/Hubble Bubble/Infinity
#10
I noticed you didn't say you logged out and logged back in after doing the -user, though it probably worked to set the value, but sometime in this process you did and it took. Also if you are using 8.04 (heron) derived xubuntu, there is a note in the INSTALL.txt. You do need to read the whole thing - the manual/automatic stuff is interleaved so you can't always find it easily.
Would not rebooting the Xubunto machine 'log me out'? I am confused about this. It is true that I never typed "logout" from the terminal - I just exited my session and launched terminal again.

However, I *think* the trick was some combo of:
- picking a new install path
- shutting down the scratchbox server during the install
- running the scratchbox script with -u USER the first time through.

When I have time, I'll try it again with a fresh VM and see if I can get it to install to the default path.

Thanks again to all for suggestions, and putting up with my lengthy hollering for help!

Steve
__________________
my estimated current noob level:
<helpless>......«•».............<all-powerful>
"Who is John Galt?"
 
Reply


 
Forum Jump


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