Linux
Forum Home
Messages
Chat
Files
Channel
- Click for Related Forums -
PC Hardware
Laptop Computing
Classic CompuServe Support
Practice Forum
Vintage Computing
Windows Support
Windows XP Pro/Server/2000/NT Support
Prospero Blocks
Hot Searches
'American Idol'
Presidential Race
Tax Rebates
Rob Lowe
NASA
Chat Center
Linux Conference Room
Topic: Linux and Open Source issues
Board Folders
Forum Information
1832 msgs in 148 dscns
Latest: Oct-1
Industry News
3911 msgs in 663 dscns
Latest: 12:08 AM
Applications
5946 msgs in 638 dscns
Latest: Nov-21
Communications
1777 msgs in 148 dscns
Latest: Nov-24
Inter/Intra Net
2302 msgs in 187 dscns
Latest: Nov-15
System Admin
7290 msgs in 663 dscns
Latest: Nov-24
Development
1156 msgs in 98 dscns
Latest: Nov-16
Open Source
1506 msgs in 140 dscns
Latest: Nov-20
X Window System
1552 msgs in 118 dscns
Latest: Nov-19
Hardware Issues
3804 msgs in 361 dscns
Latest: Nov-22
The Penguin's Den
6325 msgs in 650 dscns
Latest: Nov-16
Linux Distribu...
4993 msgs in 456 dscns
Latest: Nov-23
Unix
127 msgs in 21 dscns
Latest: Sep-19
OS Refuge
783 msgs in 90 dscns
Latest: Nov-4
Message Area
To list
New
Prev
Next
1
2
Communications
Using a Treo as a cell modem
Subscribe
Print Discussion
#1
of 24
Posted
Nov-2 8:20 PM
From
Frank B. (Forum Janitor)
Posts
4689
Last
Nov-24
To
TerryXela
[Msg # 129666.1 ]
Terry:
I got my data plan today, and it is working, as I browsed the web on the Treo for a bit this evening. A very frustrating experience, I'm afraid, as the screen is SO small.
>So
(1) plug the usb cable between the two device<
Is that the same USB cable that I use for syncing the Treo? Or do I need a different one?
I'll be getting the USBmodem software in a few minutes.
Frank.
-----------------------
Single booting Linux all day, every day, at home and at work.
Options
Reply
#2
of 24
Posted
Nov-2 8:30 PM
From
TerryXela
Posts
1984
Last
Nov-24
To
Frank B. (Forum Janitor)
[Msg # 129666.2
129666.1
]
>Is that the same USB cable that I use for syncing the Treo?
Yes
Options
Reply
#3
of 24
Posted
Nov-2 8:35 PM
From
TerryXela
Posts
1984
Last
Nov-24
To
Frank B. (Forum Janitor)
[Msg # 129666.3
129666.1
]
Treo 700p / Verizon
Installation
1. Unzip the distribution
2. Install USBModem.prc in the Treo using the kpilot in linux or palm desktop in windows
3. Copy the ppp-script-evdo-template file from the USB Modem distribution to /etc/ppp/peers
4. Rename ppp-script-evdo-template to ppp-script-treo
Note: this template is ready to go. Just in case the USERNAME is left blank the PASSWORD is left blank and the dial number #777
Connecting
1. In the Treo
Start the USB Modem application
Set Connectivity method to USB
Enable the Modem Mode
2. In Linux
To START
# pppd /dev/ttyACM0 call ppp-script-treo
To STOP
# ps axl find the ppd pid number: 3rd column or
# ps -C pppd
# kill <pppd_process_pid>
or unplug :-)
-=terry=-
Options
Reply
#4
of 24
Posted
Nov-2 10:09 PM
From
Frank B. (Forum Janitor)
Posts
4689
Last
Nov-24
To
TerryXela
[Msg # 129666.4
129666.3
]
Terry:
I followed the instructions, and successfully installed the prc file on the Treo. It works. I found the template and copied it unchanged to /etc/ppp/peers, and then renamed it.
From there I ran the app on the Treo. On the USBModem page on the Treo, there are several check boxes, all of which I left unchecked.
Low latency (vs high throughput)
Background mode
Enable automatically on start
In a root console I ran the command you gave me (the same one that is in the PDF instructions):
pppd /dev/ttyACM0 call ppp-script-treo
and I got an error:
pppd: Couldn't stat /dev/tty/ACM0: Not a directory
I'm running Kubuntu 8.04.
Now what?
Frank.
-----------------------
Single booting Linux all day, every day, at home and at work.
Options
Reply
#5
of 24
Posted
Nov-2 10:28 PM
From
TerryXela
Posts
1984
Last
Nov-24
To
Frank B. (Forum Janitor)
[Msg # 129666.5
129666.4
]
>
pppd: Couldn't stat /dev/tty/ACM0: Not a directory
There is a typo there </> where does it come from ;-)
Options
Reply
#6
of 24
Posted
Nov-2 10:43 PM
From
Frank B. (Forum Janitor)
Posts
4689
Last
Nov-24
To
TerryXela
[Msg # 129666.6
129666.5
]
Terry:
Man, took me a long time to find that.... I guess I'm getting tired.
OK, it ran. Now, how do I know if it is being used? I have wifi in the house, and this laptop is using that at the moment. Do I turn off the network manager, or what?
Frank.
PS: That broke my wireless connection. I had to disconnect the treo to post this to you. I tried logging on to google's site while connected to the Treo, but I get a 'server not found' error.
Do I need to have the phone logged into the Internet before I run USBmodem?
FB
PPS: Just tried connecting with the web browser first. It connects, but when I switch to USBModem and run the script, I get no web access.
-FB
-----------------------
Single booting Linux all day, every day, at home and at work.
Edited Nov-2 by Frank B. (Forum Janitor)
Edited Nov-2 by Frank B. (Forum Janitor)
Options
Reply
#7
of 24
Posted
Nov-2 10:54 PM
From
TerryXela
Posts
1984
Last
Nov-24
To
Frank B. (Forum Janitor)
[Msg # 129666.7
129666.6
]
1. you should be able to turn off the wireless connection on the manager.
2. If manual ifconfig is used you can also ifdown the wireless connection.
3. or just unplug the modem for few seconds
4. After you follow the intructions I gave you, you should be connected.
Try to ping
# ping -c2 google.com
you shoud see the 2 packages.
5. Firefox may not work until you unchecked <work offline>
Options
Reply
#8
of 24
Posted
Nov-3 6:44 PM
From
Frank B. (Forum Janitor)
Posts
4689
Last
Nov-24
To
TerryXela
[Msg # 129666.8
129666.7
]
(Unread)
Terry:
OK, I'm answering this from my tethered Treo 650! :)
This time I rebooted, and prevent Network Manager from making a connection by choosing a locked network that I knew I could not get into. It sits there for a while, then gives up. At that point I did as you said by running the USBModem applet, and then ran the script. I then loaded Firefox and gave it a try. The connection is very slow, but at least it works. I'll try setting up my eeepc for this type of connection next. It also looks like I'll be buying the applet. :)
In any case, even with the old phone, this is a usable setup for low-volume stuff. It should work great when we are away, but still in cell range. I can get the weather, and folllow up business emails if nothing else.
Now, as to WHY this works, I have no idea. It appears to bypass my network manager applet altogether.
So, how does all this 'magic' take place, anyway? :)
Frank.
-----------------------
Single booting Linux all day, every day, at home and at work.
Options
Reply
#9
of 24
Posted
Nov-3 6:57 PM
From
Frank B. (Forum Janitor)
Posts
4689
Last
Nov-24
To
TerryXela
[Msg # 129666.9
129666.7
]
(Unread)
Terry:
OK, I'm back on broadband again, as one thing just occurred to me: Am I using airtime minutes when I have a data connection going? Anyone know?
If not, I guess I'll find out when my next statement comes.
In addition, is there a way to keep track of the bandwidth that I am using up? I bought a 1 GB data plan, as it was the smallest one that allowed tethering.
I could probably use a wireless router with the Treo as a feed, but running two computers off the treo might put an unreasonable strain on its limited data handling capabilities. I can see it working with a more modern device, however.
Now I just need wait for the Motorola Android phones to become available in Canada. I'm looking forward to that!
Now to set up my little eeepc so that it will work this way as well.
Frank.
-----------------------
Single booting Linux all day, every day, at home and at work.
Options
Reply
#10
of 24
Posted
Nov-3 7:43 PM
From
Karl
Posts
59
Last
Nov-24
To
Frank B. (Forum Janitor)
[Msg # 129666.10
129666.9
]
Frank,
If I remember correctly, you don't use minutes when you connect with PDAnet, but I am not sure. I know that when I use the reverse DUN I use only data not minutes.
Karl
Options
Reply
#11
of 24
Posted
Nov-3 7:45 PM
From
Frank B. (Forum Janitor)
Posts
4689
Last
Nov-24
To
TerryXela
[Msg # 129666.11
129666.7
]
Terry:
OK, one more thing....
I'm trying to set this up as a shell script with a desktop link so all I have to do is double-click the link to make it run. However, I'm having some issues.
I tried just putting the command line
sudo pppd /dev/ttyACM0 call ppp-script-treo
into the command line of the KDE "Create new link to application" box (see screenshots 1 and 2). It doesn't seem to read the whole line.
I then tried creating a one-line shell script that I saved as "TreoLink.sh" in my home directory, and gave it write permission. (See screenshots 3 and 4).
I uploaded one wrong file and had to delete it, so they are out of order. I had to add the .txt extension to my saved shell script so that the forum software knows how to handle it.
What am I doing wrong?
Frank.
-----------------------
Single booting Linux all day, every day, at home and at work.
Attachments
Name:
Screen2.jpg
Size:
68 K
Name:
Screen3.jpg
Size:
50 K
Name:
Screen4.jpg
Size:
68 K
Name:
Screen1.jpg
Size:
46 K
Name:
TreoLink.sh.txt
Size:
1 K
Options
Reply
#12
of 24
Posted
Nov-3 8:09 PM
From
Frank B. (Forum Janitor)
Posts
4689
Last
Nov-24
To
Karl
[Msg # 129666.12
129666.10
]
Karl:
>If I remember correctly, you don't use minutes when you connect with PDAnet, but I am not sure. <
That is the way it should be, otherwise the carrier is double-dipping. But, carriers are not above that sort of thing, so I wasn't sure.
Thanks, Karl.
Frank.
-----------------------
Single booting Linux all day, every day, at home and at work.
Options
Reply
#13
of 24
Posted
Nov-4 1:02 AM
From
TerryXela
Posts
1984
Last
Nov-24
To
Frank B. (Forum Janitor)
[Msg # 129666.13
129666.11
]
>What am I doing wrong?
1. If you want to use the KDE menu
In one of your picture there is a button (Advanced Options) There you can select run as a different user and write root. So the next it will ask you for the admin password before running it.
Also there is an option says <run in terminal>. If you mark boht it will open a terminal and ask you for the password. Because the terminal will stay open you can see the progress of the connection.
2. If you want to wrirte an script that you just click then you have to provide the password. It means the password has to be in the computer. This create a safety problem which I prefer not to have in a laptop which I can loose.
I do not use sudo so this may not be accurate but I think one way is to use the option -S and redirection. For example
sudo -S pppd.... < passwordfile which is a text file with the password.
Glad that you are connected. The 650 is the oldest of the Treo so it may not be as fast as the 700 or above. One way to speed it up could be to have one of the small linux like dsl-n or puppy. They are very fast. Also use a fast browser with less overhead than firefox. Well like everything else you need to spend some time with it and as you become more and more familiar you can tune the setup in such a way that becomes almost the same that the one at home.
The setup is related to the data plan and not to the voice plan. You need unlimited data otherwise you will get kill.
-=terry=-
Options
Reply
#14
of 24
Posted
Nov-4 3:07 PM
From
Frank B. (Forum Janitor)
Posts
4689
Last
Nov-24
To
TerryXela
[Msg # 129666.14
129666.13
]
(Unread)
Terry:
>In one of your picture there is a button (Advanced Options) There you can select run as a different user and write root. So the next it will ask you for the admin password before running it.
Also there is an option says <run in terminal>. If you mark boht it will open a terminal and ask you for the password. Because the terminal will stay open you can see the progress of the connection.<
OK, I tried that, but got the attached screenshot. It looks like it is not seeing the 'pppd' in the command, for some reason.
Frank.
-----------------------
Single booting Linux all day, every day, at home and at work.
Attachments
Name:
Screen5.jpg
Size:
30 K
Options
Reply
#15
of 24
Posted
Nov-4 4:46 PM
From
D.F. Yriart (Sysop)
Posts
524
Last
Nov-24
To
Frank B. (Forum Janitor)
[Msg # 129666.15
129666.14
]
Frank, check the permissions of pppd and any associated scripts. IIRC, pppd must run su root.
Doug Yriart
Linux Rocks!
Options
Reply
#16
of 24
Posted
Nov-4 8:08 PM
From
Frank B. (Forum Janitor)
Posts
4689
Last
Nov-24
To
D.F. Yriart (Sysop)
[Msg # 129666.16
129666.15
]
Doug:
I thought I'd already done that. I checked the box "Run as a different user" as Terry suggested, selecting "root" as the user. I get the prompt for the root password. It is after that that difficulties arise, as shown in the previous screenshot. I don't understand why the command won't run.
Frank.
-----------------------
Single booting Linux all day, every day, at home and at work.
Attachments
Name:
Screen6.jpg
Size:
49 K
Name:
Screen7.jpg
Size:
32 K
Options
Reply
#17
of 24
Posted
Nov-4 9:41 PM
From
TerryXela
Posts
1984
Last
Nov-24
To
Frank B. (Forum Janitor)
[Msg # 129666.17
129666.16
]
Frank,
I just did in my system the kde approach and works as it should. You are doing something not rigth :-(
1. Open an xterm and su and enter the password, then copy and paste what you have in command field of the KDE menu and see if it works?
2. Do you have a <O> or a <0>?
3. Does /dev/ttyACM0 exits?
BTW I assume you are doing all these testing in the same machine that you were able to connect, correct?
-=terry=-
Options
Reply
#18
of 24
Posted
Nov-6 8:30 PM
From
Frank B. (Forum Janitor)
Posts
4689
Last
Nov-24
To
TerryXela
[Msg # 129666.18
129666.17
]
Terry:
>I just did in my system the kde approach and works as it should. You are doing something not rigth :-(<
I sure wish I knew what it was....
>1. Open an xterm and su and enter the password, then copy and paste what you have in command field of the KDE menu and see if it works?<
Yes.
>2. Do you have a <O> or a <0>? <
No.
>3. Does /dev/ttyACM0 exits?<
It only exists when the Treo is connected and I have enabled the modem mode. At that point, running the command from a root terminal works. However, I just can't make it work from the desktop link. I do have it set to run in a terminal (which opens) and as another user (root). It does ask me for the root password, which I give it. Then I get what is in the attached screenshot.
I dunno. If it asks me for the root password and then runs, why does it tell me "permission denied"?
Frank.
-----------------------
Single booting Linux all day, every day, at home and at work.
Attachments
Name:
Screen8.jpg
Size:
30 K
Name:
Screen9.jpg
Size:
31 K
Edited Nov-6 by Frank B. (Forum Janitor)
Options
Reply
#19
of 24
Posted
Nov-6 9:08 PM
From
TerryXela
Posts
1984
Last
Nov-24
To
Frank B. (Forum Janitor)
[Msg # 129666.19
129666.18
]
Frank,
I start to get a little confuse of what you are doing.
1. Start a connection from an xterm and past the whole thing
2. If the above is correct you should be able to do the same from the KDE menu. From your post I see in two of the jpg different results in reference to the /dev/ttyACM0 so you are doing different things "outside" of the KDE menu
-=terry=-
Options
Reply
#20
of 24
Posted
Nov-6 9:55 PM
From
Frank B. (Forum Janitor)
Posts
4689
Last
Nov-24
To
TerryXela
[Msg # 129666.20
129666.19
]
Terry:
>From your post I see in two of the jpg different results in reference to the /dev/ttyACM0 so you are doing different things "outside" of the KDE menu<
This may be because I tried doing this two ways. 1) I tried using the KDE desktop shortcut command line and 2) I tried using the KDE desktop shortcut to call a shell script that contained my one-line script. However, all of the recent information I have sent to you has had to do with ONLY using the KDE desktop shortcut command line directly
>1. Start a connection from an xterm and past the whole thing<
I can make this work every time. If I type the command:
pppd /dev/tty/ACM0 call ppp-script-treo
in a root console (or a regular console using sudo) it works just fine -- every time.
I'm posting another screenshot of my whole desktop with the KDE shortcut showing the contents of the Applications tab as well as the popup window one gets from clicking the "advanced options" button on the Applications tab. That should show you what I have. You can see that I have (I think) the correct command, and that I have selected it to run as root. When I close this and then run the shortcut, I get a terminal, it asks me for the password, it accepts the password, then tells me that
bash: /dev/ttyACM0: Permission denied
I don't understand what I am doing wrong. As you say, if you can get it to work, then I HAVE to be doing something wrong. I just can't identify it.
In any case, just so you can see what happens when it DOES run, I have attached a screenshot of running the command in a console as well.
Frank.
-----------------------
Single booting Linux all day, every day, at home and at work.
Attachments
Name:
Screen10.jpg
Size:
157 K
Name:
Screen11.jpg
Size:
186 K
Options
Reply
Subscribe
Print Discussion
Communications
Using a Treo as a cell modem
To list
New
Prev
Next
1
2
Adjust text size:
8
9
10
11
12
14
16
18
24
36
Interest level
:
High
Neutral
Ignore
Welcome, Guest
Post a message
New messages to you
Log in
Find messages
Advanced Search
Prospero Blocks
Web Offers
Find:
Criminal Record Check
Astrology Chart
Hybrid Cars
6 Figure Jobs
Social Security Numbers
Death Records
Special Offers
Show me more info on:
Astrology
Stock Tips
Local Jobs
Vacations
Flowers
Cheap RX
Vacation
Mini iPod
Finding People
Find a Date
White Pages
Reverse Lookup
Cell Phone Numbers
Unlisted Numbers
E-mail Addresses
Background Checks
People Finder
Fine Old Friends
Family Tree
Cool Clicks!
Unclaimed Cash
Free Cell Phones
Energy Boost
Party Planning
Photo Sharing
Work From Home
Video Games
BloggingStocks
Horoscope Updates
© 2009 Netscape Communications Corp. All rights reserved.
Legal Notices
|
Privacy Policy