Difference between revisions of "Accessing Linux From OSX"

From WebOS Internals
Jump to navigation Jump to search
m (Osx-rooting moved to Accessing Linux OSX: naming scheme)
 
(root -> accessing linux)
 
(8 intermediate revisions by 5 users not shown)
Line 1: Line 1:
 +
{{template:deprecated |
 +
Please use the much simpler method at [[Portal:Accessing_Linux|Accessing Linux]] instead.
 +
}}
 
= Mac OS X: =
 
= Mac OS X: =
  
If you are not on a mac, follow the instructions [http://predev.wikidot.com/using-novaproxy here] instead.
+
If you are not on a mac, follow the instructions [[Accessing_Linux_From_Windows|here]] instead.
  
 
# Download the [http://palm.cdnetworks.net/rom/pre_p100eww/webosdoctorp100ewwsprint.jar webOS image].
 
# Download the [http://palm.cdnetworks.net/rom/pre_p100eww/webosdoctorp100ewwsprint.jar webOS image].
Line 8: Line 11:
 
# Run NovacomInstaller.pkg.
 
# Run NovacomInstaller.pkg.
 
# Click through the installer.
 
# Click through the installer.
# From the Pre desktop, with no applicatons open on the Pre, type in the Konami code on your Pre's keyboard. (**upupdowndownleftrightleftrightbastart**) to access the developer mode application.  You do not need to press enter.  When you press the "t" of start, the developer app will become visible.  
+
# From the Pre desktop, with no applicatons open on the Pre, type in the Konami code on your Pre's keyboard. ('''upupdowndownleftrightleftrightbastart''') to access the developer mode application.  You do not need to press enter.  When you press the "t" of start, the developer app will become visible.  
 
# Open the DeveloperMode application on your Pre and enable the developer mode switch, resetting the device when prompted.
 
# Open the DeveloperMode application on your Pre and enable the developer mode switch, resetting the device when prompted.
# Connect to your Mac via USB cable. There is no need to answer the question on your Pre regarding mounting the drive or just charging.  **Don't select anything** (or select "Just Charge" if not selecting anything really bothers you).  **Warning:  Selecting a USB mode will turn off the Pre's WiFi & Cellular connections and mess up later steps by giving you a "wget: bad address" error when you try and install additional packages.**
+
# Connect to your Mac via USB cable. There is no need to answer the question on your Pre regarding mounting the drive or just charging.  '''Don't select anything''' (or select "Just Charge" if not selecting anything really bothers you).  '''Warning:  Selecting a USB mode will turn off the Pre's WiFi & Cellular connections and mess up later steps by giving you a "wget: bad address" error when you try and install additional packages.'''
# cd /opt/nova/bin
+
# Open Terminal, and type in cd /opt/nova/bin
# ./novaterm
+
# Then type ./novaterm
 
# At this point you should have root.
 
# At this point you should have root.
# Login with username **root** and a blank password.  (Note that you can only use root and a blank password while dev mode is on - rebooting turns this insecure access off again)
+
# Login with username '''root''' and a blank password.  (Note that you can only use root and a blank password while dev mode is on - rebooting turns this insecure access off again)
 
   
 
   
 
* This is what you should see
 
* This is what you should see
Line 22: Line 25:
 
</nowiki></pre>
 
</nowiki></pre>
  
* Assuming that worked, you are in as root.  You can prove this by typing  **ls -all** and hitting enter.  You should get a directory listing.   
+
* Assuming that worked, you are in as root.  You can prove this by typing  '''ls -al''' and hitting enter.  You should get a directory listing.   
  
 
Congrats, you are now in as root.  Tread lightly.
 
Congrats, you are now in as root.  Tread lightly.
Line 28: Line 31:
 
== Next Steps: ==
 
== Next Steps: ==
  
Your rooted pre is in a very sensitive and unusual state.  There are several steps you should take immidiately:
+
Your pre is in a very sensitive and unusual state.  There are several steps you should take immidiately:
  
 
* Create a new username and password so that you don't connect as root
 
* Create a new username and password so that you don't connect as root
Line 35: Line 38:
 
* Install the Optware package manager so that you can install software onto the Pre.   
 
* Install the Optware package manager so that you can install software onto the Pre.   
  
All this picks up in [[Next_steps | Next steps after rooting ]].
+
All this picks up in [[Next_steps | Next steps after accessing linux ]].
  
 
== What You Should See: ==
 
== What You Should See: ==
Line 54: Line 57:
  
 
<pre><nowiki>
 
<pre><nowiki>
 +
cp -ip /usr/palm/applications/com.palm.app.devmodeswitcher/appinfo.json /usr/palm/applications/com.palm.app.devmodeswitcher/appinfo.json.bak
 
vi /usr/palm/applications/com.palm.app.devmodeswitcher/appinfo.json
 
vi /usr/palm/applications/com.palm.app.devmodeswitcher/appinfo.json
 
</nowiki></pre>
 
</nowiki></pre>
  
 
* Line 8. Change visible to true.
 
* Line 8. Change visible to true.
 
 
''Ported by hopspitfire''
 

Latest revision as of 00:22, 29 July 2009

This page is deprecated.

Please use the much simpler method at Accessing Linux instead.

Mac OS X:

If you are not on a mac, follow the instructions here instead.

  1. Download the webOS image.
  2. Rename this file to .zip, and extract it.
  3. Untar resources/NovacomInstaller.pkg.tar.gz (tar -xzvf).
  4. Run NovacomInstaller.pkg.
  5. Click through the installer.
  6. From the Pre desktop, with no applicatons open on the Pre, type in the Konami code on your Pre's keyboard. (upupdowndownleftrightleftrightbastart) to access the developer mode application. You do not need to press enter. When you press the "t" of start, the developer app will become visible.
  7. Open the DeveloperMode application on your Pre and enable the developer mode switch, resetting the device when prompted.
  8. Connect to your Mac via USB cable. There is no need to answer the question on your Pre regarding mounting the drive or just charging. Don't select anything (or select "Just Charge" if not selecting anything really bothers you). Warning: Selecting a USB mode will turn off the Pre's WiFi & Cellular connections and mess up later steps by giving you a "wget: bad address" error when you try and install additional packages.
  9. Open Terminal, and type in cd /opt/nova/bin
  10. Then type ./novaterm
  11. At this point you should have root.
  12. Login with username root and a blank password. (Note that you can only use root and a blank password while dev mode is on - rebooting turns this insecure access off again)
  • This is what you should see
root@castle:/#
  • Assuming that worked, you are in as root. You can prove this by typing ls -al and hitting enter. You should get a directory listing.

Congrats, you are now in as root. Tread lightly.

Next Steps:

Your pre is in a very sensitive and unusual state. There are several steps you should take immidiately:

  • Create a new username and password so that you don't connect as root
  • Open up ports in the pre so that you can connect to it.
  • Create a secure connection so that your pre is not open to everyone in the universe. **If you do not secure the network, your device will be accessible by anyone on the internet until it is rebooted.**
  • Install the Optware package manager so that you can install software onto the Pre.

All this picks up in Next steps after accessing linux .

What You Should See:

root@castle:/# ls
bin         dev         etc         lib         md5sums     mnt sbin        tmp         var
boot        dspbridge   home        lost+found  media       proc sys         usr
root@castle:/# uname -a
Linux castle 2.6.24-palm-joplin-3430 #1 175.1.15 armv7l unknown
root@castle:/# whoami
root

Enabling Developer Mode As A Button

Having to type the Konami code every time is tedious so you can make the developer mode button visible by doing the following:

cp -ip /usr/palm/applications/com.palm.app.devmodeswitcher/appinfo.json /usr/palm/applications/com.palm.app.devmodeswitcher/appinfo.json.bak
vi /usr/palm/applications/com.palm.app.devmodeswitcher/appinfo.json
  • Line 8. Change visible to true.