webOS Nation Forums >  webOS apps and software >  webOS development > Rooting the emulator? LOLz
Rooting the emulator? LOLz

  Reply
 
LinkBack Thread Tools Display Modes
Old 06/28/2009, 05:56 PM   #1 (permalink)
Member
 
Join Date: Jun 2009
Posts: 27
Likes Received: 0
Thanks: 16
Thanked 2 Times in 2 Posts
Talking Rooting the emulator? LOLz

Ok ... so don't ask why ... but I thought it would be fun to try the rooting procedure on the emulator. It doesn't work. You never get past entering the Konami code ... no developer mode switch comes up. (you may laugh at me now)

Nerp
nerp is offline   Reply With Quote
Old 06/28/2009, 05:58 PM   #2 (permalink)
Member
 
mdmogren's Avatar
 
Join Date: Jun 2009
Posts: 519
Likes Received: 0
Thanks: 52
Thanked 65 Times in 43 Posts
Default

Quote:
Originally Posted by nerp View Post
Ok ... so don't ask why ... but I thought it would be fun to try the rooting procedure on the emulator. It doesn't work. You never get past entering the Konami code ... no developer mode switch comes up. (you may laugh at me now)

Nerp
The emulator is already rooted, just ssh to localhost port 5522 and login with root/root.
mdmogren is offline   Reply With Quote
Thanked by dbgod, nerp
Old 06/28/2009, 06:03 PM   #3 (permalink)
Member
 
Join Date: Jun 2009
Location: San Diego
Posts: 13
Likes Received: 0
Thanks: 2
Thanked 1 Time in 1 Post
Default

Quote:
Originally Posted by mdmogren View Post
The emulator is already rooted, just ssh to localhost port 5522 and login with root/root.
can i get that in english please. i don't speak geek
lazyshoveldj is offline   Reply With Quote
Old 06/28/2009, 06:14 PM   #4 (permalink)
Member
 
Join Date: Jun 2009
Posts: 27
Likes Received: 0
Thanks: 16
Thanked 2 Times in 2 Posts
Default

How did you find out the port? Actually, since they included Putty, I figured that there was an SSH running somewhere, but I couldn't figure out where. So I tried to nmap to find the port since it wasn't 22 or 555, but apparently nmapping localhost is not really supported. :/

I did discover something else interesting in my travels ... the udpate app on the emulator doesn't try to update at all. I ended up running a pcap against the emulator box:

C:\Program Files\Sun\xVM VirtualBox>vboxmanage modifyvm "Palm Emulator (sdk47)" -nictrace1 on -nictracefile1 e:\pre-netcap.pcap

... and saw that it actually never sends any data over the wire for update.

THANKS FOR THE INFO tho ... Really appreciate it!

Nerp
nerp is offline   Reply With Quote
Old 06/28/2009, 06:14 PM   #5 (permalink)
Member
 
rboatright's Avatar
 
Join Date: Jun 2009
Location: topeka, ks
Posts: 550
Likes Received: 0
Thanks: 4
Thanked 188 Times in 90 Posts
Default

ok, let's try this again then.

1) you do not need to root the emulator, it is pre done.
2) to access the emulator's linux you will need a program that can do ssh. Oh windows, use putty. On everything else, use ssh.
3) with the emulator running, open a session using the ssh protocal to the system id "localhost" using port 5522 instead of the 222 that was used in rooting the actual pre.

and you're done. There's nothing to do.
rboatright is offline   Reply With Quote
Thanked By: DNic
Old 06/28/2009, 06:18 PM   #6 (permalink)
Member
 
mdmogren's Avatar
 
Join Date: Jun 2009
Posts: 519
Likes Received: 0
Thanks: 52
Thanked 65 Times in 43 Posts
Default

Quote:
Originally Posted by nerp View Post
How did you find out the port? Actually, since they included Putty, I figured that there was an SSH running somewhere, but I couldn't figure out where. So I tried to nmap to find the port since it wasn't 22 or 555, but apparently nmapping localhost is not really supported. :/

I did discover something else interesting in my travels ... the udpate app on the emulator doesn't try to update at all. I ended up running a pcap against the emulator box:

C:\Program Files\Sun\xVM VirtualBox>vboxmanage modifyvm "Palm Emulator (sdk47)" -nictrace1 on -nictracefile1 e:\pre-netcap.pcap

... and saw that it actually never sends any data over the wire for update.

THANKS FOR THE INFO tho ... Really appreciate it!

Nerp
I can't take credit, "destinal" in the irc told me about it, he found it via netstat.
mdmogren is offline   Reply With Quote
Old 06/28/2009, 06:29 PM   #7 (permalink)
Member
 
Join Date: Jun 2009
Posts: 51
Likes Received: 0
Thanks: 0
Thanked 5 Times in 5 Posts
Default

It can also be determined by looking at the Palm Emulator (sdk47).xml that is created for the VM. It contains all the "outside" ports, 5522, 9991, and 5858.
jjlucsy is offline   Reply With Quote
Old 06/28/2009, 06:32 PM   #8 (permalink)
Member
 
Join Date: Jun 2009
Posts: 27
Likes Received: 0
Thanks: 16
Thanked 2 Times in 2 Posts
Default

Quote:
The emulator is already rooted, just ssh to localhost port 5522 and login with root/root.
This didn't work for me - With the emulator running, I tried using putty in SSH mode to connect to both localhost:5522 and the specific IP for the VirtualBox Host-Only network and got "connection refused" both times. After turning Windows firewall off, I got the same message.

I'm sure I'm just doing something wrong?
Nerp
nerp is offline   Reply With Quote
Old 06/28/2009, 06:34 PM   #9 (permalink)
Member
 
Join Date: Jun 2009
Posts: 51
Likes Received: 0
Thanks: 0
Thanked 5 Times in 5 Posts
Default

My VM is set to NAT, not Host-only. Perhaps thats your problem.
jjlucsy is offline   Reply With Quote
Old 06/28/2009, 06:45 PM   #10 (permalink)
Member
 
Join Date: Jun 2009
Posts: 27
Likes Received: 0
Thanks: 16
Thanked 2 Times in 2 Posts
Default

My VM was set to NAT as well, I just tried the VirtualBox Host Only Network IP without realizing that (along with localhost) ... niether of which worked for me. For kicks, I changed the VM to Hostonly and retried, but still wasn't able to get a putty connection to 5522.

This has got to be one of those "is it plugged in" problems.

*frazzle* :/

Nerp
nerp is offline   Reply With Quote
Old 06/28/2009, 06:48 PM   #11 (permalink)
Member
 
mdmogren's Avatar
 
Join Date: Jun 2009
Posts: 519
Likes Received: 0
Thanks: 52
Thanked 65 Times in 43 Posts
Default

Quote:
Originally Posted by nerp View Post
My VM was set to NAT as well, I just tried the VirtualBox Host Only Network IP without realizing that (along with localhost) ... niether of which worked for me. For kicks, I changed the VM to Hostonly and retried, but still wasn't able to get a putty connection to 5522.

This has got to be one of those "is it plugged in" problems.

*frazzle* :/

Nerp
Mine works and is on NAT, the only thing i can think is some kind of security software.
mdmogren is offline   Reply With Quote
Old 06/28/2009, 06:50 PM   #12 (permalink)
Member
 
Join Date: Jun 2009
Posts: 51
Likes Received: 0
Thanks: 0
Thanked 5 Times in 5 Posts
Default

Perhaps deleting the VM and having the emulator recreate it will reset everything. I've had the VM stop being able to install new ipk's thru palm-install which deleting fixed.
jjlucsy is offline   Reply With Quote
Old 06/28/2009, 07:44 PM   #13 (permalink)
Member
 
Join Date: Jun 2007
Posts: 1,905
Likes Received: 7
Thanks: 76
Thanked 105 Times in 82 Posts
Default

Quote:
Originally Posted by lazyshoveldj View Post
can i get that in english please. i don't speak geek
Perhaps that is your problem.
ADGrant is offline   Reply With Quote
Old 06/28/2009, 08:48 PM   #14 (permalink)
Developer
 
rwhitby's Avatar
 
Join Date: Apr 2003
Location: Adelaide, Australia - follow @webosinternals on Twitter visit www.webos-internals.org and www.facebook.com/webosinternals
Posts: 10,220
Likes Received: 546
Thanks: 90
Thanked 8,534 Times in 2,806 Posts
Default

Quote:
Originally Posted by mdmogren View Post
The emulator is already rooted, just ssh to localhost port 5522 and login with root/root.
We're working on an Optware feed for the emulator too, so you'll be able to install the same optware apps on the real device or the emulator.

-- Rod
__________________
WebOS Internals and Preware Founder and Developer
You may wish to donate by Paypal to donations @ webos-internals.org if you find our work useful.
All donations go back into development.
www.webos-internals.org twitter.com/webosinternals facebook.com/webosinternals
rwhitby is offline   Reply With Quote
Old 06/28/2009, 08:50 PM   #15 (permalink)
Homebrew Developer
 
Join Date: Jun 2009
Posts: 44
Likes Received: 0
Thanks: 0
Thanked 16 Times in 6 Posts
Default

^^^ That will be awesome
edektor is offline   Reply With Quote
Old 06/28/2009, 08:54 PM   #16 (permalink)
Member
 
sudoer's Avatar
 
Join Date: Nov 2002
Location: Boston, MA, USA (but in America's Dairyland for an extended visit)
Posts: 1,727
Likes Received: 0
Thanks: 1,508
Thanked 369 Times in 302 Posts
Default

Quote:
Originally Posted by lazyshoveldj View Post
can i get that in english please. i don't speak geek
Google for "ssh" and learn what the program does (it connects to another computer to run programs remotely, or to log you in to a shell "terminal window".) ssh normally operates on port 22, but since the emulator is special, they use port 2222 instead. (Please don't ask what a shell is.)

thanks, -- Bob
__________________
I'm both super! ... and a doer!
sudoer is offline   Reply With Quote
Old 06/28/2009, 09:17 PM   #17 (permalink)
Developer
 
rwhitby's Avatar
 
Join Date: Apr 2003
Location: Adelaide, Australia - follow @webosinternals on Twitter visit www.webos-internals.org and www.facebook.com/webosinternals
Posts: 10,220
Likes Received: 546
Thanks: 90
Thanked 8,534 Times in 2,806 Posts
Default

Quote:
Originally Posted by bclancy View Post
Google for "ssh" and learn what the program does (it connects to another computer to run programs remotely, or to log you in to a shell "terminal window".) ssh normally operates on port 22, but since the emulator is special, they use port 2222 instead. (Please don't ask what a shell is.)

thanks, -- Bob
5522 rather than 2222.

They install a virtualbox NAT port forward from 5522 on the host to 22 on the guest.

The virtualbox doc has instructions on how to do this, so you can choose whatever host port you want. They have 5522 enabled by default.

-- Rod
__________________
WebOS Internals and Preware Founder and Developer
You may wish to donate by Paypal to donations @ webos-internals.org if you find our work useful.
All donations go back into development.
www.webos-internals.org twitter.com/webosinternals facebook.com/webosinternals
rwhitby is offline   Reply With Quote
Old 06/28/2009, 09:29 PM   #18 (permalink)
Member
 
sacherjj's Avatar
 
Join Date: Jun 2009
Location: Indianapolis, IN
Posts: 1,686
Likes Received: 0
Thanks: 41
Thanked 365 Times in 215 Posts
Default

Quote:
Originally Posted by bclancy View Post
Google for "ssh" and learn what the program does (it connects to another computer to run programs remotely, or to log you in to a shell "terminal window".) ssh normally operates on port 22, but since the emulator is special, they use port 2222 instead. (Please don't ask what a shell is.)
All good, except port 5522.
sacherjj is offline   Reply With Quote
Old 06/28/2009, 10:07 PM   #19 (permalink)
Member
 
Join Date: Jun 2009
Posts: 27
Likes Received: 0
Thanks: 16
Thanked 2 Times in 2 Posts
Default

I've now tried re-installing the SDK, changing the host port, disabling every firewall I can think of -- all with no joy. :/ I'm running Vista. Is anyone else running Vista who is getting this to work?

I'm going to try installing an XP virtual box and setting them both to the "internal network" on virtual box to see if putty can access via XP through the internal network. My current assumption is that this is some Vista security "feature" that I'm running up against. If this turns out to be an easy fix, I'm going to hang my head in shame at this point.

Nerp
nerp is offline   Reply With Quote
Old 06/28/2009, 10:35 PM   #20 (permalink)
Member

 
Join Date: Apr 2003
Location: Boston-area
Posts: 6,973
Likes Received: 116
Thanks: 418
Thanked 1,252 Times in 710 Posts
Default

Quote:
Originally Posted by rwhitby View Post
We're working on an Optware feed for the emulator too, so you'll be able to install the same optware apps on the real device or the emulator.
Really? I was under the impression that all of the optware packages were for the ARM architecture, and the emulator is emulating an x86 machine running webOS. That'd be awesome to get it to work, but I'd think you'd have to recompile all the packages, wouldn't you?
jhoff80 is offline   Reply With Quote
Reply

 

Thread Tools
Display Modes



 


Content Relevant URLs by vBSEO 3.6.0