|
|
06/16/2009, 01:41 PM
|
#61 (permalink) | |
|
Member
![]() Join Date: Apr 2008
Posts: 259
Likes Received: 0
Thanks: 8
Thanked 64 Times in 30 Posts
|
Quote:
|
|
06/16/2009, 04:40 PM
|
#64 (permalink) | |
|
Member
![]() Join Date: Aug 2007
Location: Denver, CO
Posts: 33
Likes Received: 0
Thanks: 5
Thanked 20 Times in 5 Posts
|
Quote:
|
|
06/16/2009, 05:22 PM
|
#65 (permalink) |
|
Member
![]() Join Date: Oct 2007
Posts: 269
Likes Received: 0
Thanks: 133
Thanked 63 Times in 48 Posts
|
ok I gave it another stab and finally rooted device and connected via putty, but after that I come to a road-block. I have the settings in Firefox set, but when I log in and type in my password I get (*************@castle:~$) in the putty consle. Also no net conectivity on PC.
Any help? |
06/17/2009, 04:27 AM
|
#67 (permalink) |
|
Member
![]() Join Date: Jun 2009
Posts: 49
Likes Received: 0
Thanks: 1
Thanked 2 Times in 2 Posts
|
you don't have to setup firefox or IE to use the socks proxy - here is what I did:
Root your phone (use the wiki linked in this thread several times) Connect using Personal Area Network (PAN - bluetooth) Most technical part: using putty or ssh, connect to Pre (over ip 10.1.1.10) 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 i paste this portion of fish199902's code: #---------------- begin code -------------------------- iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE while true; do # This value resets iteself to 0 periodically, anyone know why? echo 1 > /proc/sys/net/ipv4/ip_forward sleep 10 done #---------------- 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 you should now be able to surf the web without setting up proxies on your laptop. In the future, you only need to connect to pan - putty/ssh to the phone and run tether.sh as root. - hope that helps |
06/17/2009, 05:50 AM
|
#69 (permalink) |
|
Member
![]() Join Date: Jun 2009
Posts: 13
Likes Received: 0
Thanks: 4
Thanked 1 Time in 1 Post
|
@dsacker you can also install a graphical shell using your web browser which then would allow you to execute the script without ssh at all.
pre dev wiki: Graphical Shell Edit: on second thought, you may need to still SSH over BT. This would work with wifi rule but you would have to change the script a bit. Last edited by grindz145; 06/17/2009 at 08:48 AM. |
06/17/2009, 11:25 AM
|
#70 (permalink) |
|
Member
![]() Join Date: Jun 2009
Posts: 8
Likes Received: 0
Thanks: 0
Thanked 0 Times in 0 Posts
|
Anybody having problems connecting to the NAP? I can pair with the Pre, and set up a hands-free connection, but I keep getting errors the device is busy when trying to connect with NAP. I know it works because I was successful yesterday but haven't been able to re-connect with it since. Reinstalled BT drivers a couple times, unpaired the device, rebooted the Pre, etc...all same thing.
Any ideas? |
06/17/2009, 11:50 AM
|
#71 (permalink) |
|
Member
![]() Join Date: Jun 2009
Posts: 13
Likes Received: 0
Thanks: 4
Thanked 1 Time in 1 Post
|
Pairing seems to work best for me right after the bluetooth configuration window is opened and turned on. I think it probably sends out a bunch of packets then so it's easier to pair.
|
06/18/2009, 06:32 AM
|
#74 (permalink) | |
|
Member
![]() Join Date: Jun 2009
Posts: 36
Likes Received: 0
Thanks: 1
Thanked 0 Times in 0 Posts
|
Quote:
|
|
06/18/2009, 07:56 AM
|
#75 (permalink) |
|
Member
![]() Join Date: Jun 2009
Posts: 13
Likes Received: 0
Thanks: 4
Thanked 1 Time in 1 Post
|
RMP, you have to run as root, try using the sudo or su command, or google these to do a bit more reading on how it works. you can also use a chmod command to make it executable by your main user.
|
06/18/2009, 05:12 PM
|
#77 (permalink) | |
|
Member
![]() Join Date: Jun 2009
Posts: 36
Likes Received: 0
Thanks: 1
Thanked 0 Times in 0 Posts
|
Quote:
Somehow my root filesystem is read only... Last edited by rmp459; 06/18/2009 at 05:36 PM. |
|
06/18/2009, 05:27 PM
|
#78 (permalink) | |
|
Member
![]() Join Date: Jun 2009
Location: Miami, FL
Posts: 195
Likes Received: 0
Thanks: 0
Thanked 41 Times in 20 Posts
|
Quote:
./tether.sh and it should run. Note that the phone waking every 10 seconds to send that "1" to ip_forward will probably affect battery life. You might want to kill the tether.sh script when you're done. ps aux |grep tether (get the number) kill 1234 ![]() -Z |
|
06/18/2009, 05:45 PM
|
#79 (permalink) | |
|
Member
![]() Join Date: Jun 2009
Posts: 36
Likes Received: 0
Thanks: 1
Thanked 0 Times in 0 Posts
|
Quote:
Ive tried even "sudo vi tether.sh" but when I try to write and quit it says "tether.sh Read-only file system" Im guessing I have to remount the file system as rw somehow... EDIT: okay i remounted my filesystem as rw and was able to write tether.sh.... is it okay to leave the filesystem as rw? or should I remount it back to ro? Also, (lol god i suck) "./tether.sh: line 4: iptables: not found" when I try to run it Last edited by rmp459; 06/18/2009 at 06:04 PM. |
|
06/19/2009, 12:09 AM
|
#80 (permalink) | |
|
Member
![]() Join Date: Jun 2009
Posts: 49
Likes Received: 0
Thanks: 1
Thanked 2 Times in 2 Posts
|
Quote:
sudo su - You then become root and all subsequent comments are executed as root and does not need the sudo prefix... |
|
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|



