{"id":101,"date":"2009-08-02T15:28:16","date_gmt":"2009-08-02T22:28:16","guid":{"rendered":"http:\/\/kai.mactane.org\/blog\/?p=101"},"modified":"2009-08-02T15:28:45","modified_gmt":"2009-08-02T22:28:45","slug":"an-installation-shell-script-for-palm-pre-developers","status":"publish","type":"post","link":"https:\/\/kagan.mactane.org\/blog\/2009\/08\/02\/an-installation-shell-script-for-palm-pre-developers\/","title":{"rendered":"An Installation Shell-Script for Palm Pr&#275; Developers"},"content":{"rendered":"<p>Last week, I wrote that I&#8217;d been working on a script to easily install homebrew apps on the Palm Pr&#275;. It now looks like there are much better ways to handle such things&nbsp;&mdash; I&#8217;ve become quite a fan of fileCoaster, myself, and of course webOSQuickInstall is a wonderful piece of work, as well. But just in case anyone might find this shell script useful, I&#8217;ll release it for general use.\n<\/p>\n<p><strong>Assumptions<\/strong>\n<\/p>\n<ol>\n<li>You have a web-accessible server where you put your development .ipk files.<\/li>\n<li>You can ssh into your Pr&#275;.<\/li>\n<\/ol>\n<p><strong>Download<\/strong>\n<\/p>\n<p>You can download the script at <a href=\"http:\/\/kai.mactane.org\/software\/libraries\/download\/homebrew.sh\">http:\/\/kai.mactane.org\/software\/libraries\/download\/homebrew.sh<\/a>.\n<\/p>\n<p><strong>Installation<\/strong>\n<\/p>\n<p>Just drop the shell script into your home directory and make it executable. If you want to be able to use the &#8220;my&#8221; argument, you&#8217;ll also need to edit the three configuration variables at the beginning: MY_HOSTNAME, STDPATH, and STDVERSION.\n<\/p>\n<p><strong>Usage<\/strong>\n<\/p>\n<p>For most purposes, you&#8217;ll just want to install your own package that you&#8217;ve been working on. Assuming you&#8217;ve set the config variables correctly, you can just type <code>.\/homebrew.sh my <em>appname<\/em><\/code>, where the <em>appname<\/em> is the base name of your package.\n<\/p>\n<p>If you&#8217;re installing multiple .ipks and you don&#8217;t need to restart the GUI manager for each one, you can use the &#8220;skip&#8221; command on all but the last:\n<\/p>\n<p><code>.\/homebrew.sh skip my foo<br \/>\n.\/homebrew.sh skip my bar<br \/>\n.\/homebrew.sh skip my baz<br \/>\n.\/homebrew.sh my quux<br \/>\n<\/code>\n<\/p>\n<p>You can also supply a complete URL: <code>.\/homebrew.sh http:\/\/forums.precentral.net\/spe_attachment\/download-23971-com.palm.net.precoder.fcoaster_1.0.2_all.ipk<\/code> will download and install fileCoaster, so you won&#8217;t have to mess with my script any more.\n<\/p>\n<p><strong>What It Does<\/strong>\n<\/p>\n<p>It automates the process of <a href=\"http:\/\/www.webos-internals.org\/wiki\/Installing_Homebrew_Apps_With_A_Rooted_Pr&#275;\">installing homebrew apps with a rooted Pr&#275;<\/a>, as described on the webOS Internals wiki. Basically, it remounts the root partition in read-write mode, <code>wget<\/code>s your .ipk file, installs it, does the &#8220;Good Housekeeping&#8221; backup, remounts the root partition in read-only mode again, and then restarts the GUI manager.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Last week, I wrote that I&#8217;d been working on a script to easily install homebrew apps on the Palm Pr&#275;. It now looks like there are much better ways to handle such things&nbsp;&mdash; I&#8217;ve become quite a fan of fileCoaster, myself, and of course webOSQuickInstall is a wonderful piece of work, as well. But just [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[54,38,56,51,65,53],"_links":{"self":[{"href":"https:\/\/kagan.mactane.org\/blog\/wp-json\/wp\/v2\/posts\/101"}],"collection":[{"href":"https:\/\/kagan.mactane.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kagan.mactane.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kagan.mactane.org\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/kagan.mactane.org\/blog\/wp-json\/wp\/v2\/comments?post=101"}],"version-history":[{"count":3,"href":"https:\/\/kagan.mactane.org\/blog\/wp-json\/wp\/v2\/posts\/101\/revisions"}],"predecessor-version":[{"id":104,"href":"https:\/\/kagan.mactane.org\/blog\/wp-json\/wp\/v2\/posts\/101\/revisions\/104"}],"wp:attachment":[{"href":"https:\/\/kagan.mactane.org\/blog\/wp-json\/wp\/v2\/media?parent=101"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kagan.mactane.org\/blog\/wp-json\/wp\/v2\/categories?post=101"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kagan.mactane.org\/blog\/wp-json\/wp\/v2\/tags?post=101"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}