Forum     

Go Back   Digit Technology Discussion Forum > Software > Open Source
Register FAQ Calendar Mark Forums Read

Open Source A place where you can talk to like-minded people about the fastest growing software movement today! Discuss anything and everything about Open Source software and Operating Systems.


Closed Thread
 
LinkBack (12) Thread Tools Display Modes
Old 12-02-2007, 12:26 AM   12 links from elsewhere to this Post. Click to view. #1 (permalink)
Resident Fanatic
 
Manshahia's Avatar
 
Join Date: Jul 2006
Location: /Milky way/earth/india/
Posts: 911
Arrow Internet Connection in Linux via Mobile


1.Connect the mobile via USB cable.

2. Open terminal and type su to become root.

3. It will ask for the root password, type in there.

4. Then Issue this command
Code:
wvdialconf /etc/wvdial.conf
Phone wud b detected as Modem

5. Then to Edit this file, open it in a Text Editor
Code is
Code:
kwrite  /etc/wvdial.conf
When we issued command in point 4, it showed the address of ur phone that in which USB port it has been connected. note it down from there.
"Modem = /dev/***"

6. When Text Editor opens the file, erase everything from there and Paste the following:
Code:
[Dialer Defaults]
Modem = /dev/ttyUSB0  # <-- Replace it with the reading you got 
Phone = *99#
Username = aa
Password = bbc
Baud = 230400
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
ISDN = 0
Modem Type = Analog Modem
Carrier Check = No
The mOdem has been configured successfully.

To dial the internet conenction type
Code:
wvdial
If eerything goes fine it wud say that connected successfully.
Press Ctrl+C to disconnect.

SOURCE-- Chester
__________________
----------

Last edited by Manshahia; 12-02-2007 at 07:47 PM.
Manshahia is offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 12-02-2007, 02:27 AM   #2 (permalink)
Wise Old Owl
 
Tech.Masti's Avatar
 
Join Date: Dec 2005
Location: ( 22.2° N, 88.2° E )
Posts: 1,507
Default Re: Internet Connection in Linux via Mobile

thanks mods 4 stick this thread..... lets have to try it on linux.....
and is this works on all distros???
Tech.Masti is offline  
Old 12-02-2007, 03:39 AM   #3 (permalink)
Beneath The Eyelids
 
The Outsider's Avatar
 
Join Date: Aug 2006
Posts: 289
Default Re: Internet Connection in Linux via Mobile

yes, works for almost all major distros, except in Fedora Core 6 you need to edit the resolv.conf to get the thing to work.

Last edited by The Outsider; 12-02-2007 at 03:54 AM.
The Outsider is offline  
Old 12-02-2007, 06:33 AM   #4 (permalink)
18 Till I Die............
 
Join Date: Jul 2004
Location: India, Mumbai, Marine Lines
Posts: 5,792
Default Re: Internet Connection in Linux via Mobile

Quote:
Originally Posted by Chester
yes, works for almost all major distros, except in Fedora Core 6 you need to edit the resolv.conf to get the thing to work.
Is that a bug? I don't see why it wouldn't work properly unless there's a bug.
__________________
http://www.bash.org/?258908
mehulved is offline  
Old 12-02-2007, 10:02 AM   #5 (permalink)
Resident Fanatic
 
Manshahia's Avatar
 
Join Date: Jul 2006
Location: /Milky way/earth/india/
Posts: 911
Default Re: Internet Connection in Linux via Mobile

Quote:
Originally Posted by Chester
yes, works for almost all major distros, except in Fedora Core 6 you need to edit the resolv.conf to get the thing to work.
If its true then Post that too
__________________
----------
Manshahia is offline  
Old 12-02-2007, 10:53 AM   #6 (permalink)
Google Bot
 
Pathik's Avatar
 
Join Date: Aug 2005
Posts: 9,772
Default Re: Internet Connection in Linux via Mobile

wat abt bt
Pathik is offline  
Old 12-02-2007, 11:27 AM   #7 (permalink)
Wise Old Owl
 
desertwind's Avatar
 
Join Date: Nov 2004
Location: Hyderabad
Posts: 1,096
Default Re: Internet Connection in Linux via Mobile

Quote:
Originally Posted by tech_your_future
Is that a bug? I don't see why it wouldn't work properly unless there's a bug.
It's not a bug. The default firewall policy makes it that way. All you have to do note down the primary and secondary dns when connecting for the first time and add these to /etc/resolv.conf in the following format.

nameserver ip

eg:

nameserver 192.127.0.1
nameserver 192.127.0.2
__________________
Sometime you'll think you understand everything

...Then you'll regain consciousness
desertwind is offline  
Old 12-02-2007, 11:59 AM   #8 (permalink)
Resident Fanatic
 
Manshahia's Avatar
 
Join Date: Jul 2006
Location: /Milky way/earth/india/
Posts: 911
Default Re: Internet Connection in Linux via Mobile

^^ these always remains the same??
__________________
----------
Manshahia is offline  
Old 12-02-2007, 12:15 PM   #9 (permalink)
18 Till I Die............
 
Join Date: Jul 2004
Location: India, Mumbai, Marine Lines
Posts: 5,792
Default Re: Internet Connection in Linux via Mobile

Quote:
Originally Posted by desertwind
It's not a bug. The default firewall policy makes it that way.
Can you explain more on this. I don't understand much about firewalls yet.
__________________
http://www.bash.org/?258908
mehulved is offline  
Old 12-02-2007, 12:26 PM   #10 (permalink)
Wise Old Owl
 
desertwind's Avatar
 
Join Date: Nov 2004
Location: Hyderabad
Posts: 1,096
Default Re: Internet Connection in Linux via Mobile

SELinux has three modes. Enforcing, Permissive and Disabled.

The default policy is Enforcing. In Enforcing mode, the kernel will block all access unless they are explicitly allowed. That's what we're doing by adding the dns server address to resolv.conf

Quote:
Originally Posted by Manshahia
^^ these always remains the same??
Nope. They are just examples for how to enter it. It varies for different ISPs. When you're connected using wvdial, you'll get your primary and secondary dns displayed in the output. copy them and add it to resolv.conf.
__________________
Sometime you'll think you understand everything

...Then you'll regain consciousness
desertwind is offline  
Old 12-02-2007, 12:29 PM   #11 (permalink)
18 Till I Die............
 
Join Date: Jul 2004
Location: India, Mumbai, Marine Lines
Posts: 5,792
Default Re: Internet Connection in Linux via Mobile

Quote:
Originally Posted by desertwind
SELinux has three modes. Enforcing, Permissive and Disabled.

The default policy is Enforcing. In Enforcing mode, the kernel will block all access unless they are explicitly allowed. That's what we're doing by adding the dns server address to resolv.conf
So, is it SELinux that's blocking it or the firewall? And is SELinux really needed for home users?
__________________
http://www.bash.org/?258908
mehulved is offline  
Old 12-02-2007, 12:34 PM   #12 (permalink)
Wise Old Owl
 
desertwind's Avatar
 
Join Date: Nov 2004
Location: Hyderabad
Posts: 1,096
Default Re: Internet Connection in Linux via Mobile

^^ It's not very well needed unless they are connected to outside world by any mean.

A Linux kernel integrating SELinux enforces mandatory access control policies that confine user programs and system servers to the minimum amount of privilege they require to do their jobs. This reduces or eliminates the ability of these programs and daemons to cause harm when compromised (via buffer overflows or misconfigurations, for example).
__________________
Sometime you'll think you understand everything

...Then you'll regain consciousness
desertwind is offline  
Old 12-02-2007, 01:24 PM   #13 (permalink)
Wise Old Owl
 
Tech.Masti's Avatar
 
Join Date: Dec 2005
Location: ( 22.2° N, 88.2° E )
Posts: 1,507
Default Re: Internet Connection in Linux via Mobile

can we apply this theory for Live CD's also???? i have some live CD's.... i want to use net on those.... please guys i am new to linux....
Tech.Masti is offline  
Old 12-02-2007, 01:36 PM   #14 (permalink)
18 Till I Die............
 
Join Date: Jul 2004
Location: India, Mumbai, Marine Lines
Posts: 5,792
Default Re: Internet Connection in Linux via Mobile

Yeah should work with live cd's too, since wvdial is present.
Pathiks just connect your phone with BT and follow this tut. It should find the modem at /dev/rfcomm0 most prolly.
__________________
http://www.bash.org/?258908
mehulved is offline  
Old 12-02-2007, 05:45 PM   #15 (permalink)
Beneath The Eyelids
 
The Outsider's Avatar
 
Join Date: Aug 2006
Posts: 289
Default Re: Internet Connection in Linux via Mobile

Quote:
Originally Posted by tech_your_future
Is that a bug? I don't see why it wouldn't work properly unless there's a bug.
even after disabling SELinux and Firewall, fedora won't find the DNS Servers and you have to add them manually to /etc/resolv.conf


for airtel, all you have to do is add
Code:
nameserver 202.56.230.5
nameserver 202.56.230.6
to /etc/resolv.conf

and Manshahia bro, edit the first post, the second step make it "su" instead of "SU"

Last edited by The Outsider; 12-02-2007 at 06:06 PM.
The Outsider is offline  
Old 12-02-2007, 07:49 PM   #16 (permalink)
Resident Fanatic
 
Manshahia's Avatar
 
Join Date: Jul 2006
Location: /Milky way/earth/india/
Posts: 911
Default Re: Internet Connection in Linux via Mobile

^^^^^^^^^^
DONE
__________________
----------
Manshahia is offline  
Old 13-02-2007, 12:57 PM   #17 (permalink)
1337 |)00|) \m/
 
kaustav_geek's Avatar
 
Join Date: Nov 2005
Location: Cyber Space
Posts: 472
Default Re: Internet Connection in Linux via Mobile

@ tech_your_future:

I'm facing problems pairing my phone with my Pc in Ubuntu 6.10
I've followed all the steps properly and have cross checked them innumerable times.
The primary problem you see is that the rfcomm0 device is not getting created in /dev/...

I tried all the steps as a root. I've referred to many online guides as to how-to go about doing it, but to not avail.
The problem is that My phone gets identified in the device scan, It also pairs with the computer, but the rfcomm0 modem devices isn't created. I don't know how to make Ubuntu do it.

Please point me to any one who has succesfully initiated airtel gprs connection in ubuntu using his Phone as a modem connected via bluetooth.

cheers.
__________________
My Blog : www.vatsuak.blogspot.com
My DA page : www.burningsilver.deviantart.com

OK..ok..... Ads are bad.. ;)
kaustav_geek is offline  
Old 13-02-2007, 01:28 PM   #18 (permalink)
18 Till I Die............
 
Join Date: Jul 2004
Location: India, Mumbai, Marine Lines
Posts: 5,792
Default Re: Internet Connection in Linux via Mobile

Quote:
Originally Posted by kaustav_geek
@ tech_your_future:

I'm facing problems pairing my phone with my Pc in Ubuntu 6.10
I've followed all the steps properly and have cross checked them innumerable times.
The primary problem you see is that the rfcomm0 device is not getting created in /dev/...

I tried all the steps as a root. I've referred to many online guides as to how-to go about doing it, but to not avail.
The problem is that My phone gets identified in the device scan, It also pairs with the computer, but the rfcomm0 modem devices isn't created. I don't know how to make Ubuntu do it.

Please point me to any one who has succesfully initiated airtel gprs connection in ubuntu using his Phone as a modem connected via bluetooth.

cheers.
Just check one of the threads on Suse, it's on the first page itself. I had given how to make frcomm dev, to Pathiks.
__________________
http://www.bash.org/?258908
mehulved is offline  
Old 14-02-2007, 06:15 PM   #19 (permalink)
Custom User Title
 
ManiDhillon's Avatar
 
Join Date: Feb 2007
Location: Location
Posts: 171
Question Re: Internet Connection in Linux via Mobile

I'm using Open Suse 10.2 I can't save wvdian.conf after editing it. It says you do not have enough privileages to do so. Help Me!
__________________
| BlackBerry® PlayBook™ 16GB |
| X4 965-BE | M5A97 | Corsair 3x4 GB ~ 12 GB DDR3 1333MHz | Sapphire Radeon HD 6850 | 1 TB Seagate SATA III 72k RPM | Seasonic SII Bronze 620W |
ManiDhillon is offline  
Old 14-02-2007, 06:19 PM   #20 (permalink)
Debian Rocks!
 
freebird's Avatar
 
Join Date: Feb 2007
Location: Coimbattore
Posts: 528
Smile Re: Internet Connection in Linux via Mobile

you can try
Code:
~$gksu kate /etc/wvdial.conf
and check whether u can save it
__________________
"The day windows users wake up to reality, it will be doomsday for Microsoft."UNIX like OS are more secure.get urself out 4m M$ http://whylinuxisbetter.net http://tinyurl.com/2amjjc http://fsf.org
freebird is offline  
Old 14-02-2007, 06:27 PM   #21 (permalink)
Custom User Title
 
ManiDhillon's Avatar
 
Join Date: Feb 2007
Location: Location
Posts: 171
Smile Re: Internet Connection in Linux via Mobile

Quote:
Originally Posted by freebird
you can try
Code:
~$gksu kate /etc/wvdial.conf
and check whether u can save it
Okay i'll check that. Thanks
__________________
| BlackBerry® PlayBook™ 16GB |
| X4 965-BE | M5A97 | Corsair 3x4 GB ~ 12 GB DDR3 1333MHz | Sapphire Radeon HD 6850 | 1 TB Seagate SATA III 72k RPM | Seasonic SII Bronze 620W |
ManiDhillon is offline  
Old 14-02-2007, 07:07 PM   #22 (permalink)
Custom User Title
 
ManiDhillon's Avatar
 
Join Date: Feb 2007
Location: Location
Posts: 171
Exclamation Re: Internet Connection in Linux via Mobile

Even this didn't work. Here's snapshot of the error which i get.
Tell me what should i do?
Attached Images
File Type: jpg snapshot1.jpg (16.5 KB, 27 views)
__________________
| BlackBerry® PlayBook™ 16GB |
| X4 965-BE | M5A97 | Corsair 3x4 GB ~ 12 GB DDR3 1333MHz | Sapphire Radeon HD 6850 | 1 TB Seagate SATA III 72k RPM | Seasonic SII Bronze 620W |
ManiDhillon is offline  
Old 14-02-2007, 07:49 PM   #23 (permalink)
Debian Rocks!
 
freebird's Avatar
 
Join Date: Feb 2007
Location: Coimbattore
Posts: 528
Post Re: Internet Connection in Linux via Mobile

You r files are trying to save in yo home dir!
first open nautilus or konqueror and browse and check u have all the dirs!
open a terminal and i belive u r in gnome,
Code:
~$su  -
(give root password)
~#
now the terminal prompt will be a "#"
then run:
Code:
~#nano   -w /etc/wvdial.conf
add ur values and after finishing press CTRL+X to exit and nano will prompt u to save the file.press yes.
your attach shows that ur saving /home/xxx;while u need to save in the directory /etc
__________________
"The day windows users wake up to reality, it will be doomsday for Microsoft."UNIX like OS are more secure.get urself out 4m M$ http://whylinuxisbetter.net http://tinyurl.com/2amjjc http://fsf.org
freebird is offline  
Old 14-02-2007, 07:51 PM   #24 (permalink)
18 Till I Die............
 
Join Date: Jul 2004
Location: India, Mumbai, Marine Lines
Posts: 5,792
Default Re: Internet Connection in Linux via Mobile

It's supposed to be /etc/wvdial.conf and not etc/wvdial.conf. The former is relative path. You need to supply the full path name cos you are currently in your home directory.
__________________
http://www.bash.org/?258908
mehulved is offline  
Old 14-02-2007, 07:55 PM   #25 (permalink)
Debian Rocks!
 
freebird's Avatar
 
Join Date: Feb 2007
Location: Coimbattore
Posts: 528
Default Re: Internet Connection in Linux via Mobile

do copy paste the code posted
__________________
"The day windows users wake up to reality, it will be doomsday for Microsoft."UNIX like OS are more secure.get urself out 4m M$ http://whylinuxisbetter.net http://tinyurl.com/2amjjc http://fsf.org
freebird is offline  
Old 14-02-2007, 07:56 PM   #26 (permalink)
Google Bot
 
Pathik's Avatar
 
Join Date: Aug 2005
Posts: 9,772
Default Re: Internet Connection in Linux via Mobile

i suppose u hav already tried this... if u havent then do it..
type "su" at the konsole.. enter root passwd..
then
"kwrite /etc/wvdial.conf" not etc/wvdial.conf
Pathik is offline  
Old 14-02-2007, 08:35 PM   #27 (permalink)
Custom User Title
 
ManiDhillon's Avatar
 
Join Date: Feb 2007
Location: Location
Posts: 171
Smile Re: Internet Connection in Linux via Mobile

I got it working friends. Just logined with user name 'root' and everything was simple.Now i'm posting from firefox using Open SuSE! Thanks to you all!
__________________
| BlackBerry® PlayBook™ 16GB |
| X4 965-BE | M5A97 | Corsair 3x4 GB ~ 12 GB DDR3 1333MHz | Sapphire Radeon HD 6850 | 1 TB Seagate SATA III 72k RPM | Seasonic SII Bronze 620W |
ManiDhillon is offline  
Old 14-02-2007, 08:46 PM   #28 (permalink)
18 Till I Die............
 
Join Date: Jul 2004
Location: India, Mumbai, Marine Lines
Posts: 5,792
Default Re: Internet Connection in Linux via Mobile

Log out of root just now.
Use su in the terminal rather. Then configure sudo to give access to wvdial and use sudo then.
__________________
http://www.bash.org/?258908
mehulved is offline  
Old 14-02-2007, 08:48 PM   #29 (permalink)
Google Bot
 
Pathik's Avatar
 
Join Date: Aug 2005
Posts: 9,772
Default Re: Internet Connection in Linux via Mobile

u r lucky to hav got linux n gprs in linux @ the same time... njoy...
Pathik is offline  
Old 14-02-2007, 09:54 PM   #30 (permalink)
Resident Fanatic
 
Manshahia's Avatar
 
Join Date: Jul 2006
Location: /Milky way/earth/india/
Posts: 911
Default Re: Internet Connection in Linux via Mobile

Now i hav started using Ubuntu Ver: 6.6 LTS.
Now the problem is i cant save wvdial.config file.

At the starting it asks for the username and password.
When provided correct, it logins.
Now when i open terminal and type su it says
Code:
su
password:
su: Authentication Failure
Sorry.
Wat sud b the problem??
The password i m providing is correct.
__________________
----------
Manshahia is offline  
Closed Thread

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


LinkBacks (?)
LinkBack to this Thread: http://www.thinkdigit.com/forum/open-source/49242-internet-connection-linux-via-mobile.html
Posted By For Type Date
Ubuntu-hr forum • Pogledaj temu - PC SUITE SAMSUNG, NOKIA, ITD This thread Refback 10-03-2012 08:43 PM
Ubuntu-hr forum • Pogledaj temu - PC SUITE SAMSUNG, NOKIA, ITD This thread Refback 13-02-2012 04:08 AM
Ubuntu-hr forum • Pogledaj temu - PC SUITE SAMSUNG, NOKIA, ITD This thread Refback 02-02-2012 07:49 PM
Ubuntu-hr forum • Pogledaj temu - PC SUITE SAMSUNG, NOKIA, ITD This thread Refback 24-01-2012 10:03 PM
Ubuntu-hr forum • Pogledaj temu - PC SUITE SAMSUNG, NOKIA, ITD This thread Refback 02-10-2011 04:43 PM
Ubuntu-hr forum • Pogledaj temu - PC SUITE SAMSUNG, NOKIA, ITD This thread Refback 02-08-2011 07:40 AM
myLot - How to setting USB modem in ubuntu? This thread Refback 15-06-2011 01:36 AM
Setting up Nokia 5700 in Fedora 8 as a modem - Linux Forums This thread Refback 06-10-2010 09:04 PM
PC SUITE SAMSUNG, NOKIA, ITD This thread Refback 13-07-2010 11:26 AM
PC SUITE SAMSUNG, NOKIA, ITD This thread Refback 13-07-2010 11:24 AM
PC SUITE SAMSUNG, NOKIA, ITD This thread Refback 07-07-2010 09:39 PM
Setting up Nokia 5700 in Fedora 8 as a modem - Linux Forums This thread Refback 25-06-2010 12:47 PM

 
Latest Threads
- by Sujeet
- by clmlbx
- by Sujeet
- by icebags

Advertisement




All times are GMT +5.5. The time now is 10:49 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2