<?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=Mnp</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=Mnp"/>
	<link rel="alternate" type="text/html" href="http://wiki.webos-internals.org/wiki/Special:Contributions/Mnp"/>
	<updated>2026-05-03T14:19:30Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.35.1</generator>
	<entry>
		<id>http://wiki.webos-internals.org/index.php?title=Linux_Rsync_Backup&amp;diff=7841</id>
		<title>Linux Rsync Backup</title>
		<link rel="alternate" type="text/html" href="http://wiki.webos-internals.org/index.php?title=Linux_Rsync_Backup&amp;diff=7841"/>
		<updated>2009-12-27T17:50:03Z</updated>

		<summary type="html">&lt;p&gt;Mnp: /* Instructions */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Here is a first cut at a backup script which will pull from a linux host.  It will create an SSH public key pair if none exists already, copy them to the Pre, then perform a complete rsync to the user's ~/palm directory.  So far it works okay with the emulator.  Feel free to fix bugs here, or on the discussion tab.&lt;br /&gt;
&lt;br /&gt;
'''Warning''' - Setting up a key pair in this manner will mean a user on your linux box can get your Pre as well.&lt;br /&gt;
&lt;br /&gt;
== Instructions ==&lt;br /&gt;
* Make sure you have rsync and openssh installed on your Linux box.&lt;br /&gt;
* Save the code below to a file on your linux box (eg, '''backup''').  &lt;br /&gt;
* Make it executable (eg,  '''chmod a+x backup'''.&lt;br /&gt;
* Enable wifi on your Pre (you'll need its current IP address), or start your emulator.&lt;br /&gt;
* You'll need to know how to ssh as root to your pre with a password.  You can set this up temporarily:&lt;br /&gt;
  ssh -p222 your_user@pre_ip_address&lt;br /&gt;
  sudo bash     -- give your user password, then you're root&lt;br /&gt;
  /usr/sbin/rootfs_open -w &lt;br /&gt;
  passwd root&lt;br /&gt;
  mount -o remount,ro /&lt;br /&gt;
  exit&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* To use the script with your emulator:&lt;br /&gt;
&lt;br /&gt;
 linuxbox$ ./backup localhost 5522 root&lt;br /&gt;
 found, using it&lt;br /&gt;
 reached the palm with ssh key&lt;br /&gt;
 receiving file list ... done&lt;br /&gt;
 ./&lt;br /&gt;
 bin/&lt;br /&gt;
 ... etc ...&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* To run with the Pre over IP:&lt;br /&gt;
&lt;br /&gt;
  linuxbox$ ./backup 111.222.233.244 222 root&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note you may need to specify the user you created when you rooted the Pre instead.  The user will need read access to the whole file tree.&lt;br /&gt;
&lt;br /&gt;
== Code ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
&lt;br /&gt;
die() &lt;br /&gt;
{&lt;br /&gt;
    echo $@&lt;br /&gt;
    exit 1;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
[ $# -eq 3 ] || die &amp;quot;Usage: $0 palm_ip palm_port palm_user&amp;quot;&lt;br /&gt;
host=$1&lt;br /&gt;
port=$2&lt;br /&gt;
user=$3&lt;br /&gt;
&lt;br /&gt;
strict='-o StrictHostKeyChecking=no'&lt;br /&gt;
pubkey='-o PreferredAuthentications=publickey'&lt;br /&gt;
dest=&amp;quot;-p $port $user@$host&amp;quot;&lt;br /&gt;
&lt;br /&gt;
[ -x /usr/bin/rsync ] || die no rsync, you should: sudo apt-get install rsync&lt;br /&gt;
&lt;br /&gt;
if [[ ! -f ~/.ssh/id_dsa || ! -f ~/.ssh/id_dsa.pub ]]; then&lt;br /&gt;
    echo we need to make an ssh keypair&lt;br /&gt;
    ssh-keygen -q -t dsa -f ~/.ssh/id_dsa -N '' || die ssh-keygen failed&lt;br /&gt;
else&lt;br /&gt;
    echo found, using it&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
if ssh $strict $pubkey $dest ls /etc/palm &amp;gt; /dev/null; then&lt;br /&gt;
    echo reached the palm with ssh key&lt;br /&gt;
else&lt;br /&gt;
    echo need to copy local pubkey to palm&lt;br /&gt;
    cmd='umask 077; test -d .ssh || mkdir .ssh ; cat &amp;gt;&amp;gt; .ssh/authorized_keys'&lt;br /&gt;
    cat ~/.ssh/id_dsa.pub | ssh $strict $dest $cmd&lt;br /&gt;
&lt;br /&gt;
    if ssh $strict $pubkey $dest ls /etc/palm &amp;gt; /dev/null; then&lt;br /&gt;
	echo second try good, reached the palm with ssh key&lt;br /&gt;
    else&lt;br /&gt;
	die could not use pubkey after installing it on the palm&lt;br /&gt;
    fi&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
rsync -avz --size-only --exclude proc/ --exclude dev/ --exclude sys/ \&lt;br /&gt;
    -e &amp;quot;ssh -p $port $strict&amp;quot; $user@$host:/ ~/palm&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Mnp</name></author>
	</entry>
	<entry>
		<id>http://wiki.webos-internals.org/index.php?title=Linux_Rsync_Backup&amp;diff=7840</id>
		<title>Linux Rsync Backup</title>
		<link rel="alternate" type="text/html" href="http://wiki.webos-internals.org/index.php?title=Linux_Rsync_Backup&amp;diff=7840"/>
		<updated>2009-12-27T17:49:37Z</updated>

		<summary type="html">&lt;p&gt;Mnp: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Here is a first cut at a backup script which will pull from a linux host.  It will create an SSH public key pair if none exists already, copy them to the Pre, then perform a complete rsync to the user's ~/palm directory.  So far it works okay with the emulator.  Feel free to fix bugs here, or on the discussion tab.&lt;br /&gt;
&lt;br /&gt;
'''Warning''' - Setting up a key pair in this manner will mean a user on your linux box can get your Pre as well.&lt;br /&gt;
&lt;br /&gt;
== Instructions ==&lt;br /&gt;
* Make sure you have rsync and openssh installed on your Linux box.&lt;br /&gt;
* Save the code below to a file on your linux box (eg, '''backup''').  &lt;br /&gt;
* Make it executable (eg,  '''chmod a+x backup'''.&lt;br /&gt;
* Enable wifi on your Pre (you'll need its current IP address), or start your emulator.&lt;br /&gt;
* You'll need to know how to ssh as root to your pre with a password.  You can set this up temporarily:&lt;br /&gt;
  ssh -p222 your_user@pre_ip_address&lt;br /&gt;
  sudo bash     -- give your user password, then you're root&lt;br /&gt;
  /usr/sbin/rootfs_open -w &lt;br /&gt;
  passwd root&lt;br /&gt;
  mount -o remount,ro /&lt;br /&gt;
  exit&lt;br /&gt;
&lt;br /&gt;
* To use the script with your emulator:&lt;br /&gt;
&lt;br /&gt;
 linuxbox$ ./backup localhost 5522 root&lt;br /&gt;
 found, using it&lt;br /&gt;
 reached the palm with ssh key&lt;br /&gt;
 receiving file list ... done&lt;br /&gt;
 ./&lt;br /&gt;
 bin/&lt;br /&gt;
 ... etc ...&lt;br /&gt;
&lt;br /&gt;
* To run with the Pre over IP:&lt;br /&gt;
&lt;br /&gt;
  linuxbox$ ./backup 111.222.233.244 222 root&lt;br /&gt;
&lt;br /&gt;
Note you may need to specify the user you created when you rooted the Pre instead.  The user will need read access to the whole file tree.&lt;br /&gt;
&lt;br /&gt;
== Code ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
&lt;br /&gt;
die() &lt;br /&gt;
{&lt;br /&gt;
    echo $@&lt;br /&gt;
    exit 1;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
[ $# -eq 3 ] || die &amp;quot;Usage: $0 palm_ip palm_port palm_user&amp;quot;&lt;br /&gt;
host=$1&lt;br /&gt;
port=$2&lt;br /&gt;
user=$3&lt;br /&gt;
&lt;br /&gt;
strict='-o StrictHostKeyChecking=no'&lt;br /&gt;
pubkey='-o PreferredAuthentications=publickey'&lt;br /&gt;
dest=&amp;quot;-p $port $user@$host&amp;quot;&lt;br /&gt;
&lt;br /&gt;
[ -x /usr/bin/rsync ] || die no rsync, you should: sudo apt-get install rsync&lt;br /&gt;
&lt;br /&gt;
if [[ ! -f ~/.ssh/id_dsa || ! -f ~/.ssh/id_dsa.pub ]]; then&lt;br /&gt;
    echo we need to make an ssh keypair&lt;br /&gt;
    ssh-keygen -q -t dsa -f ~/.ssh/id_dsa -N '' || die ssh-keygen failed&lt;br /&gt;
else&lt;br /&gt;
    echo found, using it&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
if ssh $strict $pubkey $dest ls /etc/palm &amp;gt; /dev/null; then&lt;br /&gt;
    echo reached the palm with ssh key&lt;br /&gt;
else&lt;br /&gt;
    echo need to copy local pubkey to palm&lt;br /&gt;
    cmd='umask 077; test -d .ssh || mkdir .ssh ; cat &amp;gt;&amp;gt; .ssh/authorized_keys'&lt;br /&gt;
    cat ~/.ssh/id_dsa.pub | ssh $strict $dest $cmd&lt;br /&gt;
&lt;br /&gt;
    if ssh $strict $pubkey $dest ls /etc/palm &amp;gt; /dev/null; then&lt;br /&gt;
	echo second try good, reached the palm with ssh key&lt;br /&gt;
    else&lt;br /&gt;
	die could not use pubkey after installing it on the palm&lt;br /&gt;
    fi&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
rsync -avz --size-only --exclude proc/ --exclude dev/ --exclude sys/ \&lt;br /&gt;
    -e &amp;quot;ssh -p $port $strict&amp;quot; $user@$host:/ ~/palm&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Mnp</name></author>
	</entry>
	<entry>
		<id>http://wiki.webos-internals.org/index.php?title=Linux_Rsync_Backup&amp;diff=7836</id>
		<title>Linux Rsync Backup</title>
		<link rel="alternate" type="text/html" href="http://wiki.webos-internals.org/index.php?title=Linux_Rsync_Backup&amp;diff=7836"/>
		<updated>2009-12-25T06:46:50Z</updated>

		<summary type="html">&lt;p&gt;Mnp: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Here is a first cut at a backup script which will pull from a linux host.  It will create an SSH public key pair if none exists already, copy them to the Pre, then perform a complete rsync to the user's ~/palm directory.  So far it works okay with the emulator.  Feel free to fix bugs here, or on the discussion tab.&lt;br /&gt;
&lt;br /&gt;
'''Warning''' - Setting up a key pair in this manner will mean a user on your linux box can get your Pre as well.&lt;br /&gt;
&lt;br /&gt;
== Instructions ==&lt;br /&gt;
* Make sure you have rsync and openssh installed on your Linux box.&lt;br /&gt;
* Save the code below to a file on your linux box (eg, '''backup''').  &lt;br /&gt;
* Make it executable (eg,  '''chmod a+x backup'''.&lt;br /&gt;
* Enable wifi on your Pre (you'll need its current IP address), or start your emulator.&lt;br /&gt;
* To try with your emulator &lt;br /&gt;
&lt;br /&gt;
 linuxbox$ ./backup localhost 5522 root&lt;br /&gt;
 found, using it&lt;br /&gt;
 reached the palm with ssh key&lt;br /&gt;
 receiving file list ... done&lt;br /&gt;
 ./&lt;br /&gt;
 bin/&lt;br /&gt;
 ... etc ...&lt;br /&gt;
&lt;br /&gt;
* To run with the Pre over IP:&lt;br /&gt;
&lt;br /&gt;
  linuxbox$ ./backup 111.222.233.244 222 root&lt;br /&gt;
&lt;br /&gt;
Note you may need to specify the user you created when you rooted the Pre instead.  The user will need read access to the whole file tree.&lt;br /&gt;
&lt;br /&gt;
== Code ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
&lt;br /&gt;
die() &lt;br /&gt;
{&lt;br /&gt;
    echo $@&lt;br /&gt;
    exit 1;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
[ $# -eq 3 ] || die &amp;quot;Usage: $0 palm_ip palm_port palm_user&amp;quot;&lt;br /&gt;
host=$1&lt;br /&gt;
port=$2&lt;br /&gt;
user=$3&lt;br /&gt;
&lt;br /&gt;
strict='-o StrictHostKeyChecking=no'&lt;br /&gt;
pubkey='-o PreferredAuthentications=publickey'&lt;br /&gt;
dest=&amp;quot;-p $port $user@$host&amp;quot;&lt;br /&gt;
&lt;br /&gt;
[ -x /usr/bin/rsync ] || die no rsync, you should: sudo apt-get install rsync&lt;br /&gt;
&lt;br /&gt;
if [[ ! -f ~/.ssh/id_dsa || ! -f ~/.ssh/id_dsa.pub ]]; then&lt;br /&gt;
    echo we need to make an ssh keypair&lt;br /&gt;
    ssh-keygen -q -t dsa -f ~/.ssh/id_dsa -N '' || die ssh-keygen failed&lt;br /&gt;
else&lt;br /&gt;
    echo found, using it&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
if ssh $strict $pubkey $dest ls /etc/palm &amp;gt; /dev/null; then&lt;br /&gt;
    echo reached the palm with ssh key&lt;br /&gt;
else&lt;br /&gt;
    echo need to copy local pubkey to palm&lt;br /&gt;
    cmd='umask 077; test -d .ssh || mkdir .ssh ; cat &amp;gt;&amp;gt; .ssh/authorized_keys'&lt;br /&gt;
    cat ~/.ssh/id_dsa.pub | ssh $strict $dest $cmd&lt;br /&gt;
&lt;br /&gt;
    if ssh $strict $pubkey $dest ls /etc/palm &amp;gt; /dev/null; then&lt;br /&gt;
	echo second try good, reached the palm with ssh key&lt;br /&gt;
    else&lt;br /&gt;
	die could not use pubkey after installing it on the palm&lt;br /&gt;
    fi&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
rsync -avz --size-only --exclude proc/ --exclude dev/ --exclude sys/ \&lt;br /&gt;
    -e &amp;quot;ssh -p $port $strict&amp;quot; $user@$host:/ ~/palm&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Mnp</name></author>
	</entry>
	<entry>
		<id>http://wiki.webos-internals.org/index.php?title=Linux_Rsync_Backup&amp;diff=7835</id>
		<title>Linux Rsync Backup</title>
		<link rel="alternate" type="text/html" href="http://wiki.webos-internals.org/index.php?title=Linux_Rsync_Backup&amp;diff=7835"/>
		<updated>2009-12-25T06:44:52Z</updated>

		<summary type="html">&lt;p&gt;Mnp: New page: Here is a first cut at a backup script which will pull from a linux host.  It will create an SSH public key pair if none exists already, copy them to the Pre, then perform a complete rsync...&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Here is a first cut at a backup script which will pull from a linux host.  It will create an SSH public key pair if none exists already, copy them to the Pre, then perform a complete rsync to the user's ~/palm directory.  So far it works okay with the emulator.&lt;br /&gt;
&lt;br /&gt;
'''Warning''' - Setting up a key pair in this manner will mean a user on your linux box can get your Pre as well.&lt;br /&gt;
&lt;br /&gt;
== Instructions ==&lt;br /&gt;
* Make sure you have rsync and openssh installed on your Linux box.&lt;br /&gt;
* Save the code below to a file on your linux box (eg, '''backup''').  &lt;br /&gt;
* Make it executable (eg,  '''chmod a+x backup'''.&lt;br /&gt;
* Enable wifi on your Pre (you'll need its current IP address), or start your emulator.&lt;br /&gt;
* To try with your emulator &lt;br /&gt;
&lt;br /&gt;
 linuxbox$ ./backup localhost 5522 root&lt;br /&gt;
 found, using it&lt;br /&gt;
 reached the palm with ssh key&lt;br /&gt;
 receiving file list ... done&lt;br /&gt;
 ./&lt;br /&gt;
 bin/&lt;br /&gt;
 ... etc ...&lt;br /&gt;
&lt;br /&gt;
* To run with the Pre over IP:&lt;br /&gt;
&lt;br /&gt;
  linuxbox$ ./backup 111.222.233.244 222 root&lt;br /&gt;
&lt;br /&gt;
Note you may need to specify the user you created when you rooted the Pre instead.  The user will need read access to the whole file tree.&lt;br /&gt;
&lt;br /&gt;
== Code ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
&lt;br /&gt;
die() &lt;br /&gt;
{&lt;br /&gt;
    echo $@&lt;br /&gt;
    exit 1;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
[ $# -eq 3 ] || die &amp;quot;Usage: $0 palm_ip palm_port palm_user&amp;quot;&lt;br /&gt;
host=$1&lt;br /&gt;
port=$2&lt;br /&gt;
user=$3&lt;br /&gt;
&lt;br /&gt;
strict='-o StrictHostKeyChecking=no'&lt;br /&gt;
pubkey='-o PreferredAuthentications=publickey'&lt;br /&gt;
dest=&amp;quot;-p $port $user@$host&amp;quot;&lt;br /&gt;
&lt;br /&gt;
[ -x /usr/bin/rsync ] || die no rsync, you should: sudo apt-get install rsync&lt;br /&gt;
&lt;br /&gt;
if [[ ! -f ~/.ssh/id_dsa || ! -f ~/.ssh/id_dsa.pub ]]; then&lt;br /&gt;
    echo we need to make an ssh keypair&lt;br /&gt;
    ssh-keygen -q -t dsa -f ~/.ssh/id_dsa -N '' || die ssh-keygen failed&lt;br /&gt;
else&lt;br /&gt;
    echo found, using it&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
if ssh $strict $pubkey $dest ls /etc/palm &amp;gt; /dev/null; then&lt;br /&gt;
    echo reached the palm with ssh key&lt;br /&gt;
else&lt;br /&gt;
    echo need to copy local pubkey to palm&lt;br /&gt;
    cmd='umask 077; test -d .ssh || mkdir .ssh ; cat &amp;gt;&amp;gt; .ssh/authorized_keys'&lt;br /&gt;
    cat ~/.ssh/id_dsa.pub | ssh $strict $dest $cmd&lt;br /&gt;
&lt;br /&gt;
    if ssh $strict $pubkey $dest ls /etc/palm &amp;gt; /dev/null; then&lt;br /&gt;
	echo second try good, reached the palm with ssh key&lt;br /&gt;
    else&lt;br /&gt;
	die could not use pubkey after installing it on the palm&lt;br /&gt;
    fi&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
rsync -avz --size-only --exclude proc/ --exclude dev/ --exclude sys/ \&lt;br /&gt;
    -e &amp;quot;ssh -p $port $strict&amp;quot; $user@$host:/ ~/palm&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Mnp</name></author>
	</entry>
	<entry>
		<id>http://wiki.webos-internals.org/index.php?title=Talk:Patch_Messaging_New_Cards_For_Each_Conversation&amp;diff=7004</id>
		<title>Talk:Patch Messaging New Cards For Each Conversation</title>
		<link rel="alternate" type="text/html" href="http://wiki.webos-internals.org/index.php?title=Talk:Patch_Messaging_New_Cards_For_Each_Conversation&amp;diff=7004"/>
		<updated>2009-11-08T04:08:16Z</updated>

		<summary type="html">&lt;p&gt;Mnp: New page: Can't make heads of this in 1.2.1: the lines indicated do not make sense to comment out.  Anybody have an update?   Thanks.    Now in /usr/palm/applications/com.palm.app.messaging/app/cont...&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Can't make heads of this in 1.2.1: the lines indicated do not make sense to comment out.  Anybody have an update?   Thanks.&lt;br /&gt;
&lt;br /&gt;
  Now in /usr/palm/applications/com.palm.app.messaging/app/controllers/chatview-assistant.js Comment out lines 246 and 247 (WebOS 1.1: Lines 289 &amp;amp; 290). This will make it so if you back gesture in a chat, then it doesn't bring you back to the conversation list or do anything else.&lt;/div&gt;</summary>
		<author><name>Mnp</name></author>
	</entry>
</feed>