webOS Nation Forums
> webOS apps and software
> webOS development
>
Possible tether work-around
First
...
2 7 8 9 10 11 12
13 14 15 16 17
...
Last
Member:
tweak41
at: 01:15 PM 06/30/2009
Originally Posted by aonic:
The usb tether part is ready, the code to enable/disable usbnet is also ready, just need to throw in a button for that in the view.
If you guys like I can release my app for those two things tonight and then continue work on the adhoc part of it, or do you need both?
I'd also prefer the USB method, so if you've got something I'd love to try it too.
Member:
mu7efcer
at: 01:31 PM 06/30/2009
Originally Posted by aonic:
If you guys like I can release my app for those two things tonight and then continue work on the adhoc part of it, or do you need both?
I vote release early and release often. That way you can take contributions from others. $0.02.
Member:
aonic
at: 01:53 PM 06/30/2009
Will do. I'll post later tonight, including instructions on installing the shell service.
Member:
neoGTR22
at: 03:25 PM 06/30/2009
Originally Posted by aonic:
Will do. I'll post later tonight, including instructions on installing the shell service.
Can't wait.
Usb is fine for me to I already have the bluetooth part down
Member:
mu7efcer
at: 04:40 PM 06/30/2009
I've made a modification to the tether.sh script that jhoff posted, to get it to gather status. E.g.
tehter.sh status
returns "on" if all 3 componets of tethering are enabled: (wifi, nat, ip forwarding)
returns "off" otherwise
I want to modify jhoff's code so that when you start the app it will query the status and put the toggle in the correct position. I'm looking at the devmode app as a way of doing this. It appears to have a "configure" function. That does everything. But I can't find where that function is called. Does webOS when starting the tether-assistant.
js automatically call both setup and configure?
For details see the following file on the pre:
/usr/palm/applications/com.palm.app.devmodeswitcher/app/controllers/devmodeswitcher-assistant.
js
Anyone? Bueller?
Member:
mykael
at: 08:36 PM 06/30/2009
Hi Jhoff,
Looks like I got your app up, but could not install the org.webosinternals.services IPKG-Opt. It kept coming back as:
-----
root@castle:/opt/bin# ipkg-opt install org.webosinternals.services
Nothing to be done
An error ocurred, return value: 4.
Collected errors:
Cannot find package org.webosinternals.services.
Check the spelling or perhaps run 'ipkg update'
root@castle:/opt/bin#
-----
Not sure what i need to do, but the package was downloaded to "/opt/bin"
Member:
jhoff80
at: 08:42 PM 06/30/2009
Originally Posted by mykael:
Hi Jhoff,
Looks like I got your app up, but could not install the org.webosinternals.services IPKG-Opt. It kept coming back as:
-----
root@castle:/opt/bin# ipkg-opt install org.webosinternals.services
Nothing to be done
An error ocurred, return value: 4.
Collected errors:
Cannot find package org.webosinternals.services.
Check the spelling or perhaps run 'ipkg update'
root@castle:/opt/bin#
-----
Not sure what i need to do, but the package was downloaded to "/opt/bin"
Okay to tell ipkg-opt that it's a file, I believe you need to keep the .ipk extension at the end of it.
Also, for some reason when I kept the name as-is, I was having issues. I renamed it to shell.ipk and then did ipkg-opt install shell.ipk and it worked fine. Maybe that'll work for you as well.
Member:
mykael
at: 08:48 PM 06/30/2009
I'm also interested in your App AONIC, let me know if I can test it as well
can anyone package it to install via email. im still on 1.03 and would like to try that way thanks
Member:
mykael
at: 08:51 PM 06/30/2009
Thanks for the fast reply Jhoff,
I went ahead and renamed it to shell.ipk and got this error now:
ipkg: invalid magic
Member:
jhoff80
at: 09:30 PM 06/30/2009
Originally Posted by mykael:
Thanks for the fast reply Jhoff,
I went ahead and renamed it to shell.ipk and got this error now:
ipkg: invalid magic
Sorry, never seen that one before.
Member:
mykael
at: 09:35 PM 06/30/2009
Basically what i did was:
"cd /opt/bin/ directory
wget http: //gitorious.org/webos-internals/applications/trees/master/org.webosinternals.services
mv org.webosinternals.services shell.ipk
ipkg-opt install shell.ipk"
Thats how i got that error, was that the correct way to install?
Member:
jhoff80
at: 09:49 PM 06/30/2009
Originally Posted by mykael:
Basically what i did was:
"cd /opt/bin/ directory
wget http: //gitorious.org/webos-internals/applications/trees/master/org.webosinternals.services
mv org.webosinternals.services shell.ipk
ipkg-opt install shell.ipk"
/org.webosinternals.services/org.webosinternals.services-0.4_all.ipk
Thats how i got that error, was that the correct way to install?
I think maybe that it might be that when you do it like that it's giving you just the directory.
Try this link directly to it.
http://gitorious.org/webos-internals...94b2490bfaaae5
Member:
JWille
at: 10:03 PM 06/30/2009
Seen someone beat me to the punch.
Member:
mu7efcer
at: 11:06 PM 06/30/2009
Originally Posted by mykael:
ipkg: invalid magic
That error happens when the file that you're trying to install is not actually a .ipk file. It means that you haven't downloaded the correct file.
Click on this
link. Then on the page that comes up, right click on the link and copy. Then wget that link.
Member:
tweak41
at: 05:06 AM 07/01/2009
jhoff80,
I packaged your tethering app into an ipk and installed on my pre via wget method and then ipkg-opt installed it. I also installed the webosinternals.services package that was mentioned a few posts up on this page. However, when I run the app and move the slider in the app, nothing happens. I feel as though I'm missing a step...did I miss something in the pages between your tutorial post and now?
Member:
aonic
at: 08:15 AM 07/01/2009
MOVED: http://forums.precentral.net/showthread.php?p=1735750
Instructions (version 1.1.1):
Root into your pre, in command line type the following commands:
[code]
cd /tmp/
mount -o remount rw, /
wget http://vz.aonic.net:8080/~raja/pre/net.aonic.my-tether_1.1.1_all.ipk
ipkg install net.aonic.my-tether_1.1.1_all.ipk
wget http://gitorious.org/webos-internals/applications/blobs/raw/db385edfa3f71ceb98401c16dd94b2490bfaaae5/org.webosinternals.services/org.webosinternals.services-0.4_all.ipk
ipkg install org.webosinternals.services-0.4_all.ipk
rm org.webosinternals.services-0.4_all.ipk net.aonic.my-tether_1.1.1_all.ipk
mount -o remount ro, /
/usr/bin/luna-send palm://com.palm.applicationManager/rescan {}
[/code]
Update to 1.1.1
This update prompts you to enable DHCP if your Pre doesn't already have it enabled.
If you already installed a previous version, here are instructions to upgrade:
[code]
cd /tmp/
mount -o remount rw, /
http://vz.aonic.net:8080/~raja/pre/net.aonic.my-tether_1.1.1_all.ipk
ipkg install net.aonic.my-tether_1.1.1_all.ipk
rm net.aonic.my-tether_1.1.1_all.ipk
mount -o remount ro, /
/usr/bin/luna-send palm://com.palm.applicationManager/rescan {}
[/code]
Update to 1.1
I just made a new version with some tweaks and UI friendly additions. Now the application detects if tethering is already enabled and puts the toggle in the correct place based on that.
It also prompts you to enable USBNET if you try to toggle without enabling it.
If you already installed 1.0, here are instructions to upgrade:
[code]
cd /tmp/
mount -o remount rw, /
wget http://vz.aonic.net:8080/~raja/pre/net.aonic.my-tether_1.1_all.ipk
ipkg install net.aonic.my-tether_1.1_all.ipk
rm net.aonic.my-tether_1.1_all.ipk
mount -o remount ro, /
/usr/bin/luna-send palm://com.palm.applicationManager/rescan {}
[/code]
You should see "My Tether" in your launcher, if not, reboot. Let me know how it goes.
Member:
darrenf
at: 09:33 AM 07/01/2009
Great work!
Two caveats: make sure the operating system is rw before installing and the Pre has to be restarted for the icon to show up in the launcher. These are pretty much common knowledge, but I forgot both so I thought I would remind folks.
-darren
Member:
aonic
at: 09:36 AM 07/01/2009
Thank you!
I believe the ipk system handles making it rw, and the reason I said to install the shell service last is because the shell services postinstall script refreshes the launcher.
Downloading to /tmp avoids having to manually change w to rw and back to w.
I may be wrong_ but that's how it worked for my pre.
Originally Posted by darrenf:
Great work!
Two caveats: make sure the operating system is rw before installing and the Pre has to be restarted for the icon to show up in the launcher. These are pretty much common knowledge, but I forgot both so I thought I would remind folks. 
-darren
First
...
2 7 8 9 10 11 12
13 14 15 16 17
...
Last
webOS Nation Forums
> webOS apps and software
> webOS development
>
Possible tether work-around