Difference between revisions of "Portal:Accessing Linux"

From WebOS Internals
Jump to navigation Jump to search
(massive rewrite)
Line 27: Line 27:
  
 
'''Short Version'''
 
'''Short Version'''
# Download the [http://developer.palm.com/index.php?option=com_ajaxregister&view=register&sdkdownload Palm SDK].
+
# Download the [http://developer.palm.com/index.php?option=com_content&view=article&layout=page&id=1788&Itemid=321# Palm SDK].
# 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 installation instructions for [http://developer.palm.com/index.php?option=com_content&view=article&layout=page&id=1545&Itemid=55 Mac], [http://developer.palm.com/index.php?option=com_content&view=article&layout=page&id=1585&Itemid=55 Linux], or [http://developer.palm.com/index.php?option=com_content&view=article&layout=page&id=1661&Itemid=55 Windows].
#* If you are on Windows 7, follow these instructions: http://www.juergentreml.de/archives/802 (If the SDK rollbacks 75% of the way through install, you will need to follow special instructions [http://forums.precentral.net/web-os-development/195043-setting-up-novacom-windows-7-easier-method.html here from PreCentral] to get the Novacom to install properly.)
+
# Enable dev mode on your Pre:
# Enable dev mode on your Pre [http://developer.palm.com/index.php?option=com_content&view=article&id=1552#dev_mode Enable dev mode].
+
## In Card view or in the Launcher application, type the following:  webos20090606
# 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)
+
## Tap the resulting Developer Mode Enabler icon.
#* This step is only if you have a package file you need to install. Chances are this means you are developing your own application and need to test it or testing an application for someone and they gave you the package file.
+
## In the application, move the Developer Mode slider to the On position.
 +
## Tap Reset the Device .
 +
## When reset is complete, Developer mode is enabled.
 
# The next step varies:  
 
# The next step varies:  
#* On Mac or Linux, type '''novaterm''' instead of 'palm-install' to directly access the Linux command line.
+
#* On Mac or Linux, type '''novaterm''' in a command (terminal) window to directly access the Linux command line.
#* To perform basic steps on windows (all versions including 64 bit and 7) novacom can be used ([[Novcom on Windows|Using Novacom on Windows]]), but a terminal application such as putty or novaterm will be needed to perform steps that can't be done using novacom. It is recommended to use a terminal application once basic setup is done.
+
#* On Windows you will need to download and install a novaterm program.  
#**On 32 bit XP or Vista You can dowload [http://tkgeisel.com/stuff/novaterm-1.zip novaterm1.zip] and unzip it into the sdk/bin directory.  Then, just like the Mac and Linux users you can just type '''novaterm'''.
+
#** On 32 bit Windows download [http://tkgeisel.com/stuff/novaterm-1.zip novaterm1.zip] and unzip it into the \program files\palm\sdk\bin directory. 
#** Putty is also available and installed with the SDK. <TODO: Enter link to setting up putty>
+
#** On 64 bit Windows download [http://vocshop.com/stuff/novaterm64.zip novaterm64.zip] and unzip it into the \program files\palm\sdk\bin directory.   
#* An alternative for 64 bit Windows is to use the [http://msdn.microsoft.com/en-us/library/ms164699(VS.80).aspx Corflags tool] to set the 32 bit flag on the novaterm.exe downloaded from above.
+
#**Then, just like the Mac and Linux users you can just type '''novaterm'''.
# Follow desired steps from the 'Next steps' below.
+
 
''' Long Version'''
+
'''NOTE:''' with the addition of the ability to  install Optware packages to Preware, unless you have a need or desire to type commands into the native Linux of the Pre, there is no need to do this. Webos Quick Install and Preware are fully capable of installing any Optware IPK to the Pre. This Linux command line access is needed by very few people. If you came here from a web page that talked about "root access" or "rooting your Pre" be aware that most of the instructions which require root access have been superceded.  
* A detailed walk through for Mac OS X / Linux / 32 Bit Windows users: [[Accessing Linux Using Novaterm]]
 
  
  
Line 55: Line 56:
 
== Next Steps ==
 
== Next Steps ==
  
* [[Next_steps|Set up users, Optware, and access]] '''(Strongly recommended)'''
+
* [[Next_steps|Set up users, Optware, and access]] '''DEPRECATED'''
* [[Applying_Patches|Applying Patches]]
+
* [[Applying_Patches|Applying Patches]] '''DEPRECATED'''
* [[Tutorials_Linux_DDNS_for_EVDO|DDNS for EVDO]]
+
* [[Tutorials_Linux_DDNS_for_EVDO|DDNS for EVDO]]  
* [[Setup_SFTP|Setup SFTP]]
+
* [[Setup_SFTP|Setup SFTP]] '''DEPRECATED'''
 
 
 
 
}}
 
{{portal-one-column-blue
 
|header=Obsolete Pages
 
|column1=
 
 
 
There are three other old deprecated, unsupported, and much more difficult versions of the secure root access procedure below.  These were  developed before the Palm SDK was publicly available and are no longer required (since using the Palm SDK and novaterm is so much simpler and more reliable).
 
* [[Accessing Linux From Windows|Windows XP or Windows Vista via USB cable  (novaproxy) ]]
 
* [[Accessing Linux From OSX|Mac OS X procedure via usb cable ]]
 
* [[Accessing Linux From Linux|Linux procedure via usb cable ]]
 
  
If you followed '''very early''' sets of obsolete instructions (even before the ones above), you might need this page:
 
* [[Change_From_Loopback|Change from loopback]]
 
* [[Alt_optmedia|Alternative optmedia & LVM]]
 
  
 
}}
 
}}

Revision as of 21:35, 18 January 2010

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

Disclaimer

Enacting any set of instructions from this site has the (remote, but greater than zero) potential to void your warranty. Our intention and the specific design of all instructions is such that you should be able to recover using the webOS Doctor should anything go wrong, and put your Pre back to a state which is indistinguishable from a factory-new Pre, but we give no guarantee. Use any information from this site at your own risk. At the very least, you should be prepared to lose all data on your phone at any time. We cannot tell you what you should do - we provide the information, but it's up to your own sense of personal responsibility to determine what you do with that information. We require you to use the webOS Doctor to put your Pre back to factory condition before contacting Palm or your cellular carrier for service or support.

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

Procedure:

Short Version

  1. Download the Palm SDK.
  2. Install it using the installation instructions for Mac, Linux, or Windows.
  3. Enable dev mode on your Pre:
    1. In Card view or in the Launcher application, type the following: webos20090606
    2. Tap the resulting Developer Mode Enabler icon.
    3. In the application, move the Developer Mode slider to the On position.
    4. Tap Reset the Device .
    5. When reset is complete, Developer mode is enabled.
  4. The next step varies:
    • On Mac or Linux, type novaterm in a command (terminal) window to directly access the Linux command line.
    • On Windows you will need to download and install a novaterm program.
      • On 32 bit Windows download novaterm1.zip and unzip it into the \program files\palm\sdk\bin directory.
      • On 64 bit Windows download novaterm64.zip and unzip it into the \program files\palm\sdk\bin directory.
      • Then, just like the Mac and Linux users you can just type novaterm.

NOTE: with the addition of the ability to install Optware packages to Preware, unless you have a need or desire to type commands into the native Linux of the Pre, there is no need to do this. Webos Quick Install and Preware are fully capable of installing any Optware IPK to the Pre. This Linux command line access is needed by very few people. If you came here from a web page that talked about "root access" or "rooting your Pre" be aware that most of the instructions which require root access have been superceded.

Advanced Topics

Next Steps