View Full Version : maemo-sdk-vm 0.6 "Be kind." - root password?
stevecrye
06-30-2008, 02:09 PM
Hi All;
I'm testing the development waters. I found this nice VM that I have installed on my laptop using the free VMware player:
https://garage.maemo.org/frs/?group_id=277
Everything looks great, and although it has the chinook stuff (not diablo), I think this will be a good learning experience for me.
I'm trying to work through the 'hello world' stuff, but ...problem is I don't know the root password to this VM!
I've tried all the obvious ones like "maemo" and "nokia" ,etc. The garage.maemo forums have not been able to help.
Any ideas?
Thanks,
Steve
joepagiii
06-30-2008, 02:13 PM
rootme...dunno...mine dont have a password...
stevecrye
06-30-2008, 02:16 PM
Hi;
It rejected rootme also.
Are you running that same VM? Because I would think the root password for that vm is very specific to that vm.
Thanks,
Steve
fiferboy
06-30-2008, 02:32 PM
That depends on where you are trying to become root. If it is in the regular XFCE desktop (not the development environment) using sudo should require a password of "maemo"
If you are in scratchbox (the development environment) instead of sudo you use "fakeroot" and then the command. No password is required.
stevecrye
06-30-2008, 04:15 PM
Thanks, fiferboy.
My ignorance at this point is embarrassing, but I must plow on.
You said:
That depends on where you are trying to become root. If it is in the regular XFCE desktop (not the development environment) using sudo should require a password of "maemo"
As I type this, I'm using Firefox withing the Xubuntu VM. I opened a terminal window. I want to "be" root there. ( I happen to be in the /root directory at this point; I know that is irrelevant)
Most of my experience is with SuSE and Red Hat. On those distros, I am used to typing "su" and then supplying the root password. At that point my prompt changes to the root prompt and I "am" root. Does this not work in the 'Debian' world?
Here is what I see on the terminal:
maemo@maemo:/root$ su
Password:
su: Authentication failure
Sorry.
maemo@maemo:/root$
I know from reading the sudu man pages that it's primary purpose is to allow the execution of a command as supervisor or another user. This is not what I am trying to do - I want to be in a term session as root - or, in general, to know what the root password is for this nice little VM.
Hope this makes sense!
Thanks,
Steve
stevecrye
06-30-2008, 04:17 PM
Arreeurggrp? ...
I think I just figured it out!
I tried this:
maemo@maemo:/root$ sudo su
root@maemo:~#
:o
Steve
josiahg777
06-30-2008, 04:40 PM
Wow! Thanks steve! this looks like exactly what I was looking for!
Only question is... I'm downloading the torrent version... it's got two files in it, and an MD5 checksum. Do you have any clue what I need to do with the two separate files?
EDIT: my apologies for hijacking your thread!
stevecrye
06-30-2008, 04:54 PM
No worries about thread hijacking. I welcome it - it's lonely being a noob.
I too was puzzled by the multiple files. It *seems* as if the only one needed is the big one - maemo-sdk-0.6.7z.001 . I already deleted the 002 file - it did not seem to contain anything useful.
I used 7zip and it 'sploded into two files, a .vmdk and a .vmx; ~ 7.4 Gig - pretty good compression!
06/29/2008 12:27 AM 1,073,741,824 maemo-sdk-0.6.7z.001
06/30/2008 10:50 AM 7,473,856,512 maemo-sdk-0.6.vmdk
06/30/2008 10:49 AM <DIR> maemo-sdk-0.6.vmdk.lck
06/29/2008 01:49 PM 536,870,912 maemo-sdk-0.6.vmem
06/30/2008 10:49 AM <DIR> maemo-sdk-0.6.vmem.lck
06/29/2008 01:49 PM 0 maemo-sdk-0.6.vmsd
06/30/2008 10:49 AM 18,050,274 maemo-sdk-0.6.vmss
06/30/2008 10:49 AM 1,256 maemo-sdk-0.6.vmx
06/30/2008 10:49 AM <DIR> maemo-sdk-0.6.vmx.lck
06/29/2008 01:49 PM 268 maemo-sdk-0.6.vmxf
06/29/2008 12:20 AM 110 md5sums
06/29/2008 01:54 PM 8,684 nvram
06/29/2008 01:54 PM 28,121 vmware-0.log
06/30/2008 10:49 AM 33,214 vmware.log
I installed the free VMWare player, and then just clicked on the .vmx - a few seconds later I was up and running. Pretty Cool!
Perhaps later you can help me get the Diablo SDK stuff installed. I'm first going to run through the 'hello world' on the chinook stuff that is pre-installed.
Steve
josiahg777
06-30-2008, 05:47 PM
Hmm... perhaps when my torrent finishes we can work through it together :P
I've actually never set up scratchbox before. All my previous devel has been through python which doesn't require compilation :)
megabyte405
06-30-2008, 06:33 PM
You do need the "#2" file - they split the compressed file into two separate files for those not using torrents. When you pass the name of the first one to 7zip, it will automatically grab the second one in the same directory. Once you've extracted it into the vmdk and vmx files, you can delete the two files you downloaded.
There is no "root" account in the ubuntu environment, you use sudo (password: maemo) if you need to install software there. If you want to install software inside of scratchbox (the device emulator), you use "fakeroot" instead of "sudo" (so, fakeroot apt-get install xournal or whatever)
stevecrye
06-30-2008, 06:46 PM
Thanks megabyte405!
That makes sense; I did not delete the 002 file until I had already extracted the VM.
You sound like someone who uses that VM?
Steve
megabyte405
06-30-2008, 07:21 PM
Yep - well, I've used the previous versions, haven't gotten the new one yet. I've found it was way simpler than trying to get scratchbox going myself (especially since I'm on an AMD64 arch box.) The hardest part of using it is keeping track of where you are (Xubuntu, scratchbox/x86, scratchbox/armel, and what ITOS release) and then trying to explain that in instructions :)
stevecrye
06-30-2008, 10:58 PM
Mega;
So; have you tried to update the scratchbox/toolchain to maemo 4.1 yet? I'm wondering if I can just blindly follow the docs, and if it will coexist with the Chinook version that came with the VM.
Steve
megabyte405
06-30-2008, 11:43 PM
Not yet - I'm currently doing a Google Summer of Code project that isn't Maemo-related, so I'm lacking time. I will probably just wait until there is a new vm released or I'll use the Maemo Extras autobuilder and push the same package to both chinook and diablo.
stevecrye
07-01-2008, 05:28 PM
I'm blindly following the 4.1 scratchbox install and it seems to be working perfectly!
WARNING: The following packages cannot be authenticated!
scratchbox-libs scratchbox-core scratchbox-devkit-cputransp
scratchbox-devkit-debian scratchbox-devkit-doctools scratchbox-devkit-maemo3
scratchbox-toolchain-host-gcc
Get:1 http://scratchbox.org apophis-r4/main scratchbox-libs 1.0.10 [14.2MB]
Get:2 http://scratchbox.org apophis-r4/main scratchbox-core 1.0.10 [49.9MB]
Get:3 http://scratchbox.org apophis-r4/main scratchbox-devkit-cputransp 1.0.7 [23.5MB]
Get:4 http://scratchbox.org apophis-r4/main scratchbox-devkit-debian 1.0.10 [9751kB]
Get:5 http://scratchbox.org apophis-r4/main scratchbox-devkit-doctools 1.0.8 [139MB]
I'll let you know how it goes.
Found this link:
http://maemovmware.garage.maemo.org/
Steve
stevecrye
07-01-2008, 05:59 PM
The Install completed! Whoo-hoo!
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/user/scratchbox-1.0/
maemo@maemo:~/scripts$
Now to figure out how to use the durn thing.
Steve
stevecrye
07-01-2008, 06:45 PM
Well...
Some things are working:
[sbox-STC-target1: ~/hello-world] > make
make all-am
make[1]: Entering directory `/home/maemo/hello-world'
if gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT main.o -MD -MP -MF ".deps/main.Tpo" -c -o main.o main.c; \
then mv -f ".deps/main.Tpo" ".deps/main.Po"; else rm -f ".deps/main.Tpo"; exit 1; fi
gcc -g -O2 -o hello main.o
make[1]: Leaving directory `/home/maemo/hello-world'
[sbox-STC-target1: ~/hello-world] > file hello
hello: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.2.0, dynamically linked (uses shared libs), not stripped
[sbox-STC-target1: ~/hello-world] > ./hello
Hello World!
[sbox-STC-target1: ~/hello-world] >
But, when I try to install the SDK, it complains that the toolchains are not installed - puzzling, because the scratchbox auto-install completed with no errors:
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$
Any suggestions about the toolchain problem most welcome!
Thanks,
Steve
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.