Page 8 of 20 FirstFirst ... 34567891011121318 ... LastLast
Results 141 to 160 of 388
  1. #141  
    Quote Originally Posted by mu7efcer View Post
    Ok. After some experimentation, I was able to get usbnet working on 32bit Vista Home Premium. I followed the instructions here:

    predev.wikidot.com/usbnet-setup

    But I couldn't install the usbnet driver provided on that page. But I was able to find a driver builtin to Vista that appears to work. Here's what I did:
    1. On Pre: usbnet enable
    2. Reboot Pre
    3. Plug in Pre to USB on Vista
    4. In wizard that comes up asking for driver software, I chose ignore.
    5. Then I went into the device manager, by right clicking on "My Computer" and selecting "Manage", then clicking on "Device Manager"
    6. There was a device called "USB Ethernet Gadget". I right clicked on it and selected "Update Driver Software..."
    7. In the wizard that came up, I clicked "Brows my computer for driver software"
    8. In the next page, I clicked "Let me pick from a list of deice drivers on my computer"
    9. It asked me to pick a type of hardware. I chose "Network Adapter"
    10. Under "Manufacturer", I chose "Microsoft Corporation". (Note: this is not the same as "Microsoft")
    11. In "Network Adapter", I chose "Remote NDIS based Internet Sharing Device.
    12. Then I clicked Next.


    Once that finished, I had to manually enable and configure the RNDIS adapter that showed up on the device. I haven't got it working with dnsmasq yet. But I'm able to ssh into my pre over usb. A significant step up from doing it over Bluetooth.
    Thanks for this, if you get a chance it would be great if you added a Vista section to the wiki.
  2. #142  
    Quote Originally Posted by victorkruger View Post
    people have already been tethering their phones on sprint's network for some time.

    It's a matter of making the data from tether connection appear to be coming directly from the phone I.E. using webos on your pre to look at a website vs firefox from your laptop.

    the first step is to properly have a tether to a laptop, the adhoc idea is a great start, just need to work on bluetooth and usb tether now.
    I am dreading the level of paranoia in your tone...

    USB/Bluetooth/AdHoc/Infrastruct is confirmed, so please move on to on/off'ing friendly adhoc hotspots.
  3. dsackr's Avatar
    Posts
    41 Posts
    Global Posts
    49 Global Posts
    #143  
    Quote Originally Posted by muchtall View Post
    Actually you still need to turn on ip_forward after turning off PmConnectionManager:
    Yeah... my bad - thanks for the catch...
  4. dsackr's Avatar
    Posts
    41 Posts
    Global Posts
    49 Global Posts
    #144  
    Quote Originally Posted by Grubish View Post
    What are the chances of placing this code into an IPK so we can install it as an email link application? I am really wanting the tethering but cant Root my device for lack of knowledge.
    I'm sure if it can be turned into an IPK - but you will still need to root your phone - this solution currently requires that you tunnel traffic using ssh or putty - rooting the pre isn't as technical as you might think, there are pretty good instructions found on the wiki...
  5. #145  
    Quote Originally Posted by compnetbobby View Post
    Dont see any USB Ethernet Gadget, it installed a palm pre, what you think?
    Have you done "usbnet enable" on the Pre and rebooted it yet?
  6. #146  
    Quote Originally Posted by mu7efcer View Post
    Have you done "usbnet enable" on the Pre and rebooted it yet?
    No I didnt (like a fool) Let me try it again, thanks for your response
  7. #147  
    Now, if we could only figure out where that annoying notification comes from every time you connect to the Pre via PAN...

    (And for that matter, the notification sound for putting the Pre on the the Touchstone.)
  8. #148  
    any news about getting the usbnet thing working for OS X 10.5.x?
    I've got that version and would be happy to help anyone.
  9. #149  
    i cant get it to work i tried the bluetooth method, i got it to pair and connect changed it to socks and ran the tunnel using putty. but wont load page, say connection refused. (yes im rooted applied the roam only) try doing the usb method but no dice

    using my acer aspire tethered to my palm pre
  10. #150  
    Quote Originally Posted by cjmedina26 View Post
    i cant get it to work i tried the bluetooth method, i got it to pair and connect changed it to socks and ran the tunnel using putty. but wont load page, say connection refused. (yes im rooted applied the roam only) try doing the usb method but no dice
    usb method is super easy.. did you instal the driver on the computer.. also did you enable usbnet on your pre... if you did those two things then all your settings are in place...

    now all you need to do is creat a scrip with the code in one of the other posts.... once your script is created all you do is run the script and you should be golden and then close the script when done.
  11. #151  
    Quote Originally Posted by jack87 View Post
    usb method is super easy.. did you instal the driver on the computer.. also did you enable usbnet on your pre... if you did those two things then all your settings are in place...

    now all you need to do is creat a scrip with the code in one of the other posts.... once your script is created all you do is run the script and you should be golden and then close the script when done.
    A script would be awesome!
  12. #152  
    Quote Originally Posted by compnetbobby View Post
    A script would be awesome!

    Root your phone (http://predev.wikidot.com/wifi-rooting-proc)
    enable usbNet (http://predev.wikidot.com/usbnet-setup)
    Most technical part:
    using putty or ssh, connect to Pre (over ip 192.168.0.202)
    log in as the user id you created when you root'ed your phone

    type 'sudo su -'
    type your password

    First time only:

    type 'vi tether.sh'
    hit the letter a
    paste this code my right clicking inside the termintal:

    #---------------- begin code --------------------------

    stop PmConnectionManager

    echo 1 > /proc/sys/net/ipv4/ip_forward

    iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE

    read -p "Press Enter key to stop tether"

    start PmConnectionManager

    #---------------- end code --------------------------

    hit esc
    type ':wq'
    hit enter

    this should have created a file called tether.sh with the code from above in it, and those steps are a one time only event.

    type '. ./tether.sh' and hit enter

    Do not close the terminal

    now this will run your new .sh script meaning you can surf the web when you are done hit Enter this will close the script and put your pre settings back to normal.

    Now everytime you want to surf the net connect your pre via usb log into ssh and as root run tether.sh then hit enter.

    Note: At one point you may need to mount your file system writable

    To go to writeable:
    mount -o remount,rw /

    To go back to read-only:
    mount -o remount,ro /

    Credit:
    I compiled those instructions using earlier discussion in this thread and slightly modding some instrucitinos given before.
    Last edited by jack87; 06/26/2009 at 12:10 PM.
  13. #153  
    Ok. Now I need to learn how to program this thing. Because my procedure for tethering is annoyingly complicated.
    1. Enable bluetooth on Pre
    2. Connect to bluetooth PAN from PC
    3. SSH into pre
    4. Run my "turn on wifi" script
    5. Run my "turn on tethering" script
    6. Enable adhoc connection on PC
    7. Disconnect bluetooth PAN
    8. Disable bluetooth on Pre

    What I'd rather do is go on the phone, and start an app that allows me to
    • Not have to use bluetooth as a way of controlling the Pre
    • Run my scripts to start/stop wifi & tethering

    I may take a look at the "My Notification" app as a template.

    Note: I've pretty much given up on USBNet from Vista. I'm still going to add what I found to the wiki, but it's mostly unusable:
    1. The driver is seriously flakey. Works sometimes, doesn't others. Can get so confused that it doesn't know its started AND you can't stop it.
    2. It prevents me from doing USB media sync with iTunes and/or doubleTwist.
    Last edited by mu7efcer; 06/26/2009 at 12:27 PM.
  14. #154  
    Quote Originally Posted by mu7efcer View Post
    Run my scripts to start/stop wifi & tethering
    BTW, here are my scripts, for whoever wants them.

    Wifi script, called with "wifi on" and "wifi off"
    Code:
    #!/bin/sh
    
    case $1 in
      "on" )
            /usr/sbin/wifidriver -i
            iwconfig eth0 mode Ad-Hoc essid PreNet
            ifconfig eth0 192.168.1.1 up
            ;;
      "off" )
            /usr/sbin/wifidriver -u
            ;;
    
      * )
            echo "$1 unknown argument.  Argument must be 'on' or 'off'"
            ;;
    esac
    Tether script. Called with "tether on" or "tether off"
    Code:
    #!/bin/sh
    
    case $1 in
      "on" )
            echo '**** Stopping PmConnectionManager'
            stop PmConnectionManager
            echo '**** Enabling IP Forwarding'
            echo 1 > /proc/sys/net/ipv4/ip_forward
            echo '**** Enabling NAT'
            iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE
            echo '**** Tethering ON'
            ;;
      "off" )
            echo '**** Disabling NAT'
            iptables -t nat -D POSTROUTING -o ppp0 -j MASQUERADE
            echo '**** Disabling IP Forwarding'
            echo 0 > /proc/sys/net/ipv4/ip_forward
            echo '**** Restarting PmConnectionManager'
            start PmConnectionManager
            echo '**** Tethering OFF'
            ;;
      * )
            echo "$1 unknown argument.  Argument must be 'on' or 'off'"
            ;;
    esac
  15. #155  
    Quote Originally Posted by mu7efcer View Post
    BTW, here are my scripts, for whoever wants them.

    Wifi script, called with "wifi on" and "wifi off"
    Code:
    #!/bin/sh
    
    case $1 in
      "on" )
            /usr/sbin/wifidriver -i
            iwconfig eth0 mode Ad-Hoc essid PreNet
            ifconfig eth0 192.168.1.1 up
            ;;
      "off" )
            /usr/sbin/wifidriver -u
            ;;
    
      * )
            echo "$1 unknown argument.  Argument must be 'on' or 'off'"
            ;;
    esac
    Tether script. Called with "tether on" or "tether off"
    Code:
    #!/bin/sh
    
    case $1 in
      "on" )
            echo '**** Stopping PmConnectionManager'
            stop PmConnectionManager
            echo '**** Enabling IP Forwarding'
            echo 1 > /proc/sys/net/ipv4/ip_forward
            echo '**** Enabling NAT'
            iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE
            echo '**** Tethering ON'
            ;;
      "off" )
            echo '**** Disabling NAT'
            iptables -t nat -D POSTROUTING -o ppp0 -j MASQUERADE
            echo '**** Disabling IP Forwarding'
            echo 0 > /proc/sys/net/ipv4/ip_forward
            echo '**** Restarting PmConnectionManager'
            start PmConnectionManager
            echo '**** Tethering OFF'
            ;;
      * )
            echo "$1 unknown argument.  Argument must be 'on' or 'off'"
            ;;
    esac
    thanks those will come in handy. i want to get a program that will turn on/off tethering like flash light works be nice to have a switch to do it for usb and one to do it for wifi (having a portable access point)
  16. #156  
    I don't actually know Javascript well enough to write an app from scratch myself, but it seems like the org.webosinternals.shell program should make a on/off switch for this possible...
  17. #157  
    I second that
  18. #158  
    Quote Originally Posted by jhoff80 View Post
    I don't actually know Javascript well enough to write an app from scratch myself, but it seems like the org.webosinternals.shell program should make a on/off switch for this possible...
    I'm looking to use the flashlight program as a template. So far it all seems pretty straight forward, except I don't understand the inclusion of the Prelease.jar. Still investigating. Wish the webOS internals book was available.
  19. #159  
    Quote Originally Posted by mu7efcer View Post
    I'm looking to use the flashlight program as a template. So far it all seems pretty straight forward, except I don't understand the inclusion of the Prelease.jar. Still investigating. Wish the webOS internals book was available.
    Ah, hadn't thought of looking at the flashlight app. I took a quick look, here's what I plan on doing when I have some time: Ignoring everything but the com.*.app.flashlight folder, and then instead replacing the call to prelease in the flashlight-assistant.jsjsjs $be$ $a$ $call$ $to$ $the$ $aforementioned$ $shell$.
  20. darrenf's Avatar
    Posts
    66 Posts
    Global Posts
    126 Global Posts
    #160  
    Thanks to everyone who has contributed here. I now have the usb connection working as well as the tether script. I have a couple of questions and comments that I collected along the way:

    1.) For whatever reason I have a short PATH variable when I log in to the pre under my username and sudo. For that reason, I had to add explicit paths in the new tether script:

    #!/bin/sh

    case $1 in
    "on" )
    echo '**** Stopping PmConnectionManager'
    /sbin/stop PmConnectionManager
    echo '**** Enabling IP Forwarding'
    echo 1 > /proc/sys/net/ipv4/ip_forward
    echo '**** Enabling NAT'
    /usr/sbin/iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE
    echo '**** Tethering ON'
    ;;
    "off" )
    echo '**** Disabling NAT'
    /usr/sbin/iptables -t nat -D POSTROUTING -o ppp0 -j MASQUERADE
    echo '**** Disabling IP Forwarding'
    echo 0 > /proc/sys/net/ipv4/ip_forward
    echo '**** Restarting PmConnectionManager'
    /sbin/start PmConnectionManager
    echo '**** Tethering OFF'
    ;;
    * )
    echo "$1 unknown argument. Argument must be 'on' or 'off'"
    ;;
    esac
    2.) At one point I couldn't get DHCP to work so I extended the range from two addresses to 90. That fixed the problem and, interestingly, I now get assignments from all over the range (non-consecutive). I'm guessing that the lease management is not working just right (perhaps as a result of the read-only file system?). A range of 90 addresses should be fine even if a new address is used each time, given the 12-hour timeout on leases.

    3.) Can the host machine's metric (/hop count) for the usb network connection be specified by the Pre via DHCP in dnsmasq.palm.conf? This would avoid having to set it in the host OS and would make sure that the Pre would be used as a gateway only when other connections to the internet are unavailable. I don't see any sample code related to metric in the config file, though.

    4.) How does DHCP work when the Pre is not in developer mode if I haven't explicitly opened up a hole in the firewall for port 67? If I do want to explicitly open up some ports, is there a favorite location in the system init to do that?

    Thanks again for all the help. I look forward to the modified flashlight app!

    -darren
Page 8 of 20 FirstFirst ... 34567891011121318 ... LastLast

Posting Permissions