Difference between revisions of "Accessing Linux Using Novaterm"

From WebOS Internals
Jump to navigation Jump to search
(create)
 
m
 
(9 intermediate revisions by 7 users not shown)
Line 1: Line 1:
 
 
# Download the Palm sdk from http://developer.palm.com and run it.  
 
# Download the Palm sdk from http://developer.palm.com and run it.  
 
# Click through the installer.
 
# Click through the installer.
#* If you are on windows, download novaterm for windows and unzip it into the sdk/bin directory.  
+
#* If you are on windows, download [http://tkgeisel.com/stuff/novaterm-1.zip novaterm for windows] and unzip it into the sdk/bin directory.  
 
# 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.
Line 9: Line 8:
 
#* on Mac and Linux open a terminal, and type in cd /opt/nova/bin
 
#* on Mac and Linux open a terminal, and type in cd /opt/nova/bin
 
#**  Then type ./novaterm
 
#**  Then type ./novaterm
#* on windows, run novaterm-1.exe from the palm/sdk/bin directory. (use explorer or a command line)
+
#**  (if novaterm is missing, locate the novacom binary (whereis novacom) and run novacom $* -t open tty://0)
# You will be asked to log in.
+
#* On Mac, if ./novaterm results: in failed to connect to server, do the folllowing
# 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)
+
#** sudo chmod 644 /Library/LaunchDaemons/com.palm.novacomd
 +
#** sudo launchctl load -w /Library/LaunchDaemons/com.palm.novacomd
 +
#** ./novaterm
 +
#* on windows, run novaterm.exe or novaterm-1.exe from the palm/sdk/bin directory. (use explorer or a command line) (if this doesn't work, run novacom -t open tty:// )
 +
# Click "Connect" with "localhost" in the field next to the button.  
 
#* This is what you should see
 
#* This is what you should see
 
#:: <pre><nowiki>
 
#:: <pre><nowiki>
Line 33: Line 36:
 
== Next Steps: ==
 
== Next Steps: ==
  
Your rooted pre is in a very sensitive and unusual state.  There are several steps you should take immidiately:
+
Your Linux-accessible pre is in a very sensitive and unusual state.  There are several steps you should take immediately:
  
* 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 have to connect as root
 
* Open up ports in the pre so that you can connect to it.
 
* 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.**
 
* 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.   
 
* 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]].
  
 
== Enabling Developer Mode As A Button ==
 
== 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 following the instructions at [[Unhide the DeveloperMode App|Unhide the DeveloperMode App]] - '''Works with 1.1'''
+
Having to type the Konami code every time is tedious so you can make the developer mode button visible by following the instructions at [[Patch Launcher Unhide the DeveloperMode App|Unhide the DeveloperMode App]] - '''Works with 1.1'''

Latest revision as of 06:43, 24 October 2009

  1. Download the Palm sdk from http://developer.palm.com and run it.
  2. Click through the installer.
  3. 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.
  4. Open the DeveloperMode application on your Pre and enable the developer mode switch, resetting the device when prompted.
  5. Connect to your computer 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.
  6. Run Novaterm.
    • on Mac and Linux open a terminal, and type in cd /opt/nova/bin
      • Then type ./novaterm
      • (if novaterm is missing, locate the novacom binary (whereis novacom) and run novacom $* -t open tty://0)
    • On Mac, if ./novaterm results: in failed to connect to server, do the folllowing
      • sudo chmod 644 /Library/LaunchDaemons/com.palm.novacomd
      • sudo launchctl load -w /Library/LaunchDaemons/com.palm.novacomd
      • ./novaterm
    • on windows, run novaterm.exe or novaterm-1.exe from the palm/sdk/bin directory. (use explorer or a command line) (if this doesn't work, run novacom -t open tty:// )
  7. Click "Connect" with "localhost" in the field next to the button.
    • 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.
    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

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

Next Steps:

Your Linux-accessible pre is in a very sensitive and unusual state. There are several steps you should take immediately:

  • Create a new username and password so that you don't have to 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.

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 following the instructions at Unhide the DeveloperMode App - Works with 1.1