<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://wiki.webos-internals.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Srlake314</id>
	<title>WebOS Internals - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.webos-internals.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Srlake314"/>
	<link rel="alternate" type="text/html" href="http://wiki.webos-internals.org/wiki/Special:Contributions/Srlake314"/>
	<updated>2026-04-17T15:27:26Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.35.1</generator>
	<entry>
		<id>http://wiki.webos-internals.org/index.php?title=Next_steps&amp;diff=3792</id>
		<title>Next steps</title>
		<link rel="alternate" type="text/html" href="http://wiki.webos-internals.org/index.php?title=Next_steps&amp;diff=3792"/>
		<updated>2009-08-04T22:59:55Z</updated>

		<summary type="html">&lt;p&gt;Srlake314: /* Optware Setup */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;''The old, manual setup of Optware and users can be found [[Setting_up_optware_feed | here]].''&lt;br /&gt;
&lt;br /&gt;
=Automated Setup of Optware, Users and Access=&lt;br /&gt;
The webOS community asks that users who have obtained access to the Linux subsystem install a standard set of software  to ensure everyone has the necessary tools in place to use the resources the community is providing.&lt;br /&gt;
&lt;br /&gt;
In particular, this includes the Optware package manager.  Palm's webOS uses the ''ipkg'' package manager internally.  The community has a version of ''ipkg''  called  ''ipkg-opt'' which accesses the Optware library of over 1300 Linux programs available for installation on the Pre. &lt;br /&gt;
&lt;br /&gt;
Palm has indicated that they have no intention of using the /opt directory, so we direct our installs to /opt/bin rather than /bin to avoid being overwritten  by future Palm software upgrades. &lt;br /&gt;
&lt;br /&gt;
In addition, the standard package  creates a non-root user, installs ''sudo'', and includes an SSH program (''dropbear'') and an sftp program. &lt;br /&gt;
&lt;br /&gt;
For your convenience, we've packaged all this up into a simple script.&lt;br /&gt;
&lt;br /&gt;
==Optware Setup==&lt;br /&gt;
&lt;br /&gt;
'''If you're attempting to install these packages to your emulator, you must first add sufficient space by [[Adding_Disks_to_the_Emulator|enabling a virtual disk]].'''&lt;br /&gt;
&lt;br /&gt;
After completing the process of obtaining access to your Pre, do the following: &lt;br /&gt;
&lt;br /&gt;
'''Type each line exactly as it appears.  Copying and pasting is probably a good idea.''' AND WHERE EXACTLY DO I TYPE THIS INTO?  WHAT PROGRAM, IF IN CMD WINDOW, WHERE?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''Note to Windows Putty users:  To paste in putty, simply right-click and the program pastes into the terminal whatever you have copied to the clipboard.''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;font-size:100%;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;source lang=bash&amp;gt;&lt;br /&gt;
 cd /tmp&lt;br /&gt;
 wget http://gitorious.org/webos-internals/bootstrap/blobs/raw/master/optware-bootstrap.sh&lt;br /&gt;
 sh optware-bootstrap.sh&lt;br /&gt;
&amp;lt;/source&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Follow the on-screen instructions.  &lt;br /&gt;
&lt;br /&gt;
If you want to review the script before you run it, you can look here: &lt;br /&gt;
&lt;br /&gt;
[http://gitorious.org/webos-internals/bootstrap/blobs/master/optware-bootstrap.sh http://gitorious.org/webos-internals/bootstrap/blobs/master/optware-bootstrap.sh]&lt;br /&gt;
&lt;br /&gt;
==Quilt setup==&lt;br /&gt;
&lt;br /&gt;
Optionally, you can then install the ''quilt'' patch manager which allows multiple-file patches.  (Yes, the pun was intentional. Quilt manages multiple patches.)  This installation process has also been packaged into a simple script. It will install quilt, and all of its dependencies, and create a local clone of the WebOS-Internals patch repository. [[Applying_Patches | Applying Patches]] provides a more thorough guide on the use of quilt.&lt;br /&gt;
&lt;br /&gt;
'''Again, type each line exactly as it appears.  Copying and pasting is probably a good idea.'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;font-size:100%;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;source lang=bash&amp;gt;&lt;br /&gt;
 cd /tmp&lt;br /&gt;
 wget http://gitorious.org/webos-internals/bootstrap/blobs/raw/master/quilt-bootstrap.sh&lt;br /&gt;
 sh quilt-bootstrap.sh&lt;br /&gt;
&amp;lt;/source&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you want to review the script before you run it, you can look here: &lt;br /&gt;
&lt;br /&gt;
[http://gitorious.org/webos-internals/bootstrap/blobs/master/quilt-bootstrap.sh http://gitorious.org/webos-internals/bootstrap/blobs/master/quilt-bootstrap.sh]&lt;br /&gt;
&lt;br /&gt;
==Finishing==&lt;br /&gt;
&lt;br /&gt;
To finish off, turn Developer Mode back to &amp;quot;Off&amp;quot; (which will reboot your Pre).&lt;br /&gt;
&lt;br /&gt;
Once you are finished, you may SSH into your Pre with an SSH client like [http://www.chiark.greenend.org.uk/~sgtatham/putty/ Putty]:&lt;br /&gt;
*Find your IP address with [http://checkmyip.com/ CheckMyIP.com]&lt;br /&gt;
*SSH to that IP address on port 222&lt;br /&gt;
**If you're doing this over EVDO, there may be a lot of latency.  Be patient.&lt;br /&gt;
*Log in with the username and password you created during the Optware installation&lt;br /&gt;
**Many operations cannot be carried out with the permissions of that username.  You'll need to [[Basic_Linux_Use#sudo|sudo]] those operations with the new username's password&lt;/div&gt;</summary>
		<author><name>Srlake314</name></author>
	</entry>
	<entry>
		<id>http://wiki.webos-internals.org/index.php?title=Portal:Community&amp;diff=3773</id>
		<title>Portal:Community</title>
		<link rel="alternate" type="text/html" href="http://wiki.webos-internals.org/index.php?title=Portal:Community&amp;diff=3773"/>
		<updated>2009-08-04T17:54:46Z</updated>

		<summary type="html">&lt;p&gt;Srlake314: /* IRC */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;There is a large community of developers around the Palm Pre. &lt;br /&gt;
&lt;br /&gt;
* [[Contact|Contact]] &lt;br /&gt;
* [[Meetups|Meetups]]&lt;br /&gt;
&lt;br /&gt;
== IRC ==&lt;br /&gt;
[[image:Linux_Chat.png|right]]&lt;br /&gt;
You can join us anytime on our [[wikipedia:Internet Relay Chat|IRC]] channels.&lt;br /&gt;
&lt;br /&gt;
* [irc://chat.freenode.net/webos #webos] for general Palm Pre topics &lt;br /&gt;
* [irc://chat.freenode.net/webos-internals #webos-internals] for discussion of the operating system &lt;br /&gt;
* [irc://chat.freenode.net/webos-watercooler #webos-watercooler] for off-topic discussion&lt;br /&gt;
&lt;br /&gt;
We are located on the freenode network, accessible from chat.freenode.net&lt;br /&gt;
&lt;br /&gt;
Come and join us&lt;br /&gt;
&lt;br /&gt;
=== Guidelines ===&lt;br /&gt;
[[image:Linux_Mad.png|right]]&lt;br /&gt;
&lt;br /&gt;
See [[WebOS-Internals IRC Channel Policy]].&lt;br /&gt;
&lt;br /&gt;
* For pastes greater than 2 lines, use a pastebin such as [http://webos.pastebin.com/ webos.pastebin.com].&lt;br /&gt;
* Keep the language civilized. Don't try to debate. WebOS is cross platform and the [[Portal:Tools|tools]] supported by webOS-Internals are also.&lt;br /&gt;
#how do I access this through pidgeon'?&lt;/div&gt;</summary>
		<author><name>Srlake314</name></author>
	</entry>
	<entry>
		<id>http://wiki.webos-internals.org/index.php?title=Patch_Email_Enable_Landscape_Viewing&amp;diff=3772</id>
		<title>Patch Email Enable Landscape Viewing</title>
		<link rel="alternate" type="text/html" href="http://wiki.webos-internals.org/index.php?title=Patch_Email_Enable_Landscape_Viewing&amp;diff=3772"/>
		<updated>2009-08-04T17:11:50Z</updated>

		<summary type="html">&lt;p&gt;Srlake314: /* Notes */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{template:patch}}&lt;br /&gt;
== Preamble==&lt;br /&gt;
&lt;br /&gt;
You will need write permissions to the file system on your Pre to apply this patch.&lt;br /&gt;
&lt;br /&gt;
To get write persmissions execute:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;rootfs_open -w&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After you've made the changes below, remount the file system as read-only:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;mount -o remount,ro /&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Procedure==&lt;br /&gt;
&lt;br /&gt;
Enabling rotation in email is trivial. Whenever you rotate the device, the system calls the orientationChanged function of the app. There's already one defined in email, but for some reason it does nothing. You can enable rotation by applying the following patches.&lt;br /&gt;
&lt;br /&gt;
NOTE: The root of the patches is /usr/palm/applications/com.palm.app.email/&lt;br /&gt;
&lt;br /&gt;
=== app/controllers/list-assistant.js===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
--- list-assistant.js_2009-06-27	Sat Jun 27 19:19:19 2009&lt;br /&gt;
+++ list-assistant.js	Sat Jun 27 20:03:19 2009&lt;br /&gt;
@@ -27,6 +27,9 @@&lt;br /&gt;
 				{label:$L('Update'), icon:'sync', command:'sync'}&lt;br /&gt;
 			]};&lt;br /&gt;
 	this.controller.setupWidget(Mojo.Menu.commandMenu, undefined, this.cmdMenuModel);&lt;br /&gt;
+	&lt;br /&gt;
+	// enable free orientation&lt;br /&gt;
+	this.controller.window.PalmSystem.setWindowOrientation(&amp;quot;free&amp;quot;);&lt;br /&gt;
   },&lt;br /&gt;
 &lt;br /&gt;
   // NOTE: this is called by app_scene's _setup function&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== app/controllers/compose-assistant.js===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
--- compose-assistant.js_2009-06-27	Sat Jun 27 19:21:43 2009&lt;br /&gt;
+++ compose-assistant.js	Sat Jun 27 20:03:45 2009&lt;br /&gt;
@@ -178,6 +178,9 @@&lt;br /&gt;
 &lt;br /&gt;
 		// Delayed a little, since we want the header part of render as quickly as possible&lt;br /&gt;
 		ComposeAssistant.onLoad.defer(this.controller, this.email);&lt;br /&gt;
+		&lt;br /&gt;
+		// enable free orientation&lt;br /&gt;
+		this.controller.window.PalmSystem.setWindowOrientation(&amp;quot;free&amp;quot;);&lt;br /&gt;
 	},&lt;br /&gt;
 &lt;br /&gt;
 	cleanup: function() {&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== app/controllers/accounts-assistant.js===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
--- accounts-assistant.js_2009-06-27	Sat Jun 27 19:29:47 2009&lt;br /&gt;
+++ accounts-assistant.js	Sat Jun 27 20:01:28 2009&lt;br /&gt;
@@ -51,6 +51,9 @@&lt;br /&gt;
 		EmailAppDepot.depot.isShowFavorites(AccountsAssistant.kFavoriteFoldersAccountID, this.depotGetFavExpanded.bind(this));&lt;br /&gt;
 &lt;br /&gt;
 		this.controller.listen(this.controller.sceneElement, Mojo.Event.keypress, this.keypressHandler.bind(this));&lt;br /&gt;
+		&lt;br /&gt;
+		// enable free orientation                                                 &lt;br /&gt;
+                this.controller.window.PalmSystem.setWindowOrientation(&amp;quot;free&amp;quot;);&lt;br /&gt;
 	},&lt;br /&gt;
 &lt;br /&gt;
 	cleanup: function() {&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Notes==&lt;br /&gt;
&lt;br /&gt;
Credit goes to jblebrun for the original hack.&lt;br /&gt;
&lt;br /&gt;
Seems that the menu disappears in landscape mode and that the orientation mode carries over from one part of the app to the other as you move to a message or back to the message list or account list. This is especially weird in the compose screen since the menu has some needed functionality in it&lt;br /&gt;
~ FXDemolisher&lt;br /&gt;
&lt;br /&gt;
Curious item found in accounts-assitant.js. There seems to be an orientationString variable in the controller that is linked to some kind of hack if you type a specific string while having the account(folder) list open. Will investigate further. &lt;br /&gt;
&lt;br /&gt;
UPDATE: Seems that typing &amp;quot;RocknRollHax&amp;quot; (see ./app/controllers/accounts-assistant.js)  in the accounts list window will cause the email app to go into 'free' orientation mode. Looks like its an easier way to perform orientation changes instead of explicitly calling setWindowOrientation whenever the orientation changes. '''Doesnt work'''&lt;br /&gt;
&lt;br /&gt;
Alternate to RocknRollHax:  In accounts-assistant.js, change key word in line 106 to 'wide' or whatever you want.  Change string length in line 104 to num characters of your new key word. - xorg&lt;br /&gt;
&lt;br /&gt;
- FXDemolisher&lt;br /&gt;
&lt;br /&gt;
7/25/2009 With webOS 1.1 you can type &amp;quot;wide&amp;quot; to activate this feature w/o editing any files. However it is not persistent between application launches. &lt;br /&gt;
&lt;br /&gt;
Only the '''accounts-assistant.js''' file needs to be patched in webOS 1.1. The '''compose-assistant.js''' edit needs work as it currently does not work in webOS 1.1.&lt;br /&gt;
&lt;br /&gt;
-NetWhiz&lt;/div&gt;</summary>
		<author><name>Srlake314</name></author>
	</entry>
</feed>