Difference between revisions of "Portal:Accessing Linux"

From WebOS Internals
Jump to navigation Jump to search
(Added the simple Palm SDK method of accessing Linux.)
(Simplified the introduction.)
Line 1: Line 1:
 
__notoc__
 
__notoc__
 
{{portal-one-column-blue
 
{{portal-one-column-blue
|header=Accessing Linux (Rooting your Pre is the Old Inaccurate Term)
+
|header=Accessing Linux on the Pre or the Pre Emulator
 
|column1=
 
|column1=
The Palm pre is a Linux based device.  As it is shipped, the linux is a fully installed and operational copy, and communicates with the outside world using the Novacomm protocols (the same as used by the iPhone.)
+
The Palm Pre is a Linux based device.  Palm provides a simple method to access Linux running on the Pre or the Pre Emulator.
  
Therefore, enabling access to the Pre was remarkably simple and is officially documented by Palm in the public emulator instructions.  Typing in the "developers code"  ( ''upupdowndownleftrightleftrightbastart'' ) enables communication between the Linux and the outside world using novacomm.
+
Once you have access to Linux, everything else is a process of installing a ''community standard library'' of Linux programs so that users have the same tools and options available to them.  Once this is process is completed, pretty much anything you can do on a Linux box you can also do on the Pre or the Pre Emulator.
  
After that, everything else is a process of installing a ''community standard library'' of Linux programs so that users have the same tools and options available to them. 
+
The following procedures will walk you through the process of obtaining access to Linux on the Pre or the Pre Emulator, and installing the community standard software packages.
 
 
One of the first choices was installing a package manager for the OptWare library of over 1000 Linux programs, compiled for the Pre. 
 
 
 
Once this is done, basically, anything you can do on a Linux box, you can do on the Pre.  The community is rapidly working on developing methods for Linux programs to interact with the end-user shell known as Luna or Mojo in addition to access via terminal programs. 
 
 
 
The following links will walk you through the process of obtaining access to the Linux system from a terminal program, and installing the community standard software package. 
 
 
 
It is necessary (as of this edit) to access the Linux operating system via a terminal program running on a separate PC.  You can not achieve root access to the Linux operating system on the phone from the phone itself.  However, once you have achieved secure root access, it is possible to make any changes you like to the underlying linux system on the phone.
 
 
 
The process of obtaining access to the Linux is actually a fairly simple procedure. Look below.
 
 
 
[http://www.youtube.com/watch?v=-LBXV0tYyyI Example of a Palm Pre with secure root access]
 
 
 
[http://www.youtube.com/watch?v=xoIE7Y_pyEU YouTube how-to instructions]
 
 
 
Note that if you are running the Pre emulator, you can achieve Linux access on the emulator (not on the real Pre) by using an ssh client (e.g. PuTTY on Windows) to connect to 'root@localhost' at port 5522 on the host machine (which is port forwarded by VirtualBox to the dropbear ssh daemon running on port 22 inside the emulator), and the instructions on this page are not required - you should go straight to the [[Next_steps|next steps]].
 
  
 
}}
 
}}
Line 42: Line 26:
 
# Install it using the [[http://developer.palm.com/index.php?option=com_content&view=article&id=1597 Palm SDK installation instructions]].
 
# Install it using the [[http://developer.palm.com/index.php?option=com_content&view=article&id=1597 Palm SDK installation instructions]].
 
# You can then run [[http://developer.palm.com/index.php?option=com_content&view=article&id=1552#CommandLineTools-palminstall palm-install]] to install a package onto your Pre (or onto the Pre Emulator), or run 'novaterm' instead of 'palm-install' to access the Linux command line.
 
# You can then run [[http://developer.palm.com/index.php?option=com_content&view=article&id=1552#CommandLineTools-palminstall palm-install]] to install a package onto your Pre (or onto the Pre Emulator), or run 'novaterm' instead of 'palm-install' to access the Linux command line.
 +
# Follow the 'Next steps after Accessing Linux' below.
  
 
There are three other old deprecated, unsupported, and much more difficult versions of the secure root access procedure:   
 
There are three other old deprecated, unsupported, and much more difficult versions of the secure root access procedure:   

Revision as of 10:18, 22 July 2009

Accessing Linux on the Pre or the Pre Emulator

The Palm Pre is a Linux based device. Palm provides a simple method to access Linux running on the Pre or the Pre Emulator.

Once you have access to Linux, everything else is a process of installing a community standard library of Linux programs so that users have the same tools and options available to them. Once this is process is completed, pretty much anything you can do on a Linux box you can also do on the Pre or the Pre Emulator.

The following procedures will walk you through the process of obtaining access to Linux on the Pre or the Pre Emulator, and installing the community standard software packages.

Before you start

Please make a note of this page: How To Recover

If you are unfamiliar with basic Linux command usage, you should visit this page: Basic Linux Use

You might also want to consider backing up any files you have in the usb drive portion of the Pre.

Procedure:

  1. Download the [Palm SDK].
  2. Install it using the [Palm SDK installation instructions].
  3. You can then run [palm-install] to install a package onto your Pre (or onto the Pre Emulator), or run 'novaterm' instead of 'palm-install' to access the Linux command line.
  4. Follow the 'Next steps after Accessing Linux' below.

There are three other old deprecated, unsupported, and much more difficult versions of the secure root access procedure:

Next steps after Accessing Linux

Advanced Topics