![]() |
2008-07-04
, 05:14
|
|
Posts: 197 |
Thanked: 87 times |
Joined on Apr 2007
@ USA
|
#2
|
![]() |
2008-07-04
, 14:07
|
|
Posts: 716 |
Thanked: 236 times |
Joined on Dec 2007
|
#3
|
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.
The Following User Says Thank You to tz1 For This Useful Post: | ||
![]() |
2008-07-04
, 19:26
|
|
Posts: 226 |
Thanked: 38 times |
Joined on May 2008
@ Texas/Earth/Sol System/Milky Way/Local Group/Hubble Bubble/Infinity
|
#4
|
...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
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.
apt-get autoremove
Failed to fetch http://security.ubuntu.com/ubuntu/di...rce/Sources.gz Could not resolve 'security.ubuntu.com'
![]() |
2008-07-04
, 20:02
|
|
Posts: 475 |
Thanked: 771 times |
Joined on Dec 2007
@ Hamilton, Ontario, Canada
|
#5
|
The Following User Says Thank You to fiferboy For This Useful Post: | ||
![]() |
2008-07-04
, 21:53
|
|
Posts: 226 |
Thanked: 38 times |
Joined on May 2008
@ Texas/Earth/Sol System/Milky Way/Local Group/Hubble Bubble/Infinity
|
#6
|
sudo ./maemo-scratchbox-install_4.1.sh
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#
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/
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
maemo@maemo:~$ /scratchbox/login
ERROR: Scratchbox is not properly set up!
maemo@maemo:~$
maemo@maemo:~$ sudo /scratchbox/sbin/sbox_adduser maemo yes
Scratchbox user account for user maemo already exists!
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.
maemo@maemo:~/scripts$ sudo /scratchbox/sbin/sbox_ctl start
Starting Scratchbox: binfmt_misc, mount.
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-: ~] >
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$
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.
![]() |
2008-07-05
, 02:06
|
|
Posts: 226 |
Thanked: 38 times |
Joined on May 2008
@ Texas/Earth/Sol System/Milky Way/Local Group/Hubble Bubble/Infinity
|
#7
|
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#
![]() |
2008-07-05
, 03:52
|
|
Posts: 226 |
Thanked: 38 times |
Joined on May 2008
@ Texas/Earth/Sol System/Milky Way/Local Group/Hubble Bubble/Infinity
|
#8
|
![]() |
2008-07-05
, 13:44
|
|
Posts: 716 |
Thanked: 236 times |
Joined on Dec 2007
|
#9
|
![]() |
2008-07-05
, 22:33
|
|
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.
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:
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?"