Editing JPush

Warning: You are not logged in. Your IP address will be recorded in this page's edit history.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 11: Line 11:
===Pre-Setup===
===Pre-Setup===
-
* Create jabber account separate from your own (anywhere works, gmail, jabber.org, etc).
+
*Create jabber account separate from your own (anywhere works, gmail, jabber.org, etc).
-
* Add server account to buddy list of client account.
+
*Add server account to buddy list of client account.
-
* Modest must be set to check for new email automatically (just set it to once every 24 hours). This is some odd issue that I ran into.
+
*Modest must be set to check for new email automatically (just set it to once every 24 hours). This is some odd issue that I ran into.
-
* Install the following files as instructed below.
+
*Install the following files as instructed below.
===Install===
===Install===
*Server: a .deb file is available [https://garage.maemo.org/frs/?group_id=1903&release_id=4168 here].
*Server: a .deb file is available [https://garage.maemo.org/frs/?group_id=1903&release_id=4168 here].
-
*Client (N900): a .deb is not available yet. Download the source code from [https://garage.maemo.org/frs/?group_id=1903&release_id=4168 here], and install the files in any directory. Make sure the files are executable (<code>chmod +x</code>).
+
*Client (N900): a .deb is not available yet. Download the source code from [https://garage.maemo.org/frs/?group_id=1903&release_id=4168 here], and install the files in any directory. Make sure the files are executable (chmod +x).
===Configuration===
===Configuration===
Line 25: Line 25:
====Server====
====Server====
-
# Edit <code>/usr/bin/jpush-server</code>
+
1. Edit <code>/usr/bin/jpush-server</code>
-
#* edit the config block:
+
*edit the config block:
-
#** insert username and password for a new jabber account created above.
+
**insert username and password for a new jabber account created above.
-
#** set a secret that you will also put on the client (make this up).
+
**set a secret that you will also put on the client (make this up).
-
#** set notifications (type of commands to be sent to the device). Leave this as the default if you only want email.
+
**set notifications (type of commands to be sent to the device). Leave this as the default if you only want email.
-
# Setup Email Hook
+
 
-
#* <code>/usr/bin/jpush-emailhook</code> should be called whenever a new email is received.  This sends an update to JPushServer, which notifies the N900.
+
2. Setup Email Hook
-
#* This file receives two arguments: <code>/usr/bin/jpush-emailhook username updateType</code>
+
*/usr/bin/jpush-emailhook should be called whenever a new email is received.  This sends an update to JPushServer, which notifies the N900.
-
#** example: To receive push email, insert new line into <code>/etc/aliases</code> as: <pre>part-of-email-before-at-symbol "|/usr/bin/jpush-emailhook username email"</pre>
+
*This file receives two arguments -> <code>/usr/bin/jpush-emailhook username updateType</code>
-
#** Run '<code>sudo newaliases</code>' to make server update email config above.
+
**EX: To receive push email, insert new line into <code>/etc/aliases</code> as: <pre>part-of-email-before-at-symbol "|/usr/bin/emailhook username email"</pre>
-
#** Forward all email to part-of-email-before-at-symbol@server.com
+
**Run '<code>sudo newaliases</code>' to make server update email config above.
-
# Starting
+
**Forward all email to part-of-email-before-at-symbol@server.com
-
#* Run jpush-server start
+
 
 +
3. Starting
 +
*Run jpush-server start
====Client====
====Client====
-
# Edit <code>/opt/jpush/jpush.py</code>
+
1. Edit /opt/jpush/jpush.py
-
#* edit the config block
+
*edit the config block
-
#** set a secret (use the same value that you set for the server config above).
+
**set a secret (use the same value that you set for the server config above).
-
# Optional - Edit <code>/?/?/actions.py</code>
+
 
-
#* Follow instructions in file.
+
2. Optional - Edit <code>/?/?/actions.py</code>
 +
* Follow instructions in file.
==Download==
==Download==

Learn more about Contributing to the wiki.


Please note that all contributions to maemo.org wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see maemo.org wiki:Copyrights for details). Do not submit copyrighted work without permission!


Cancel | Editing help (opens in new window)