<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Just a reference base &#187; gentoo</title>
	<atom:link href="http://www.troublenow.org/archives/category/linux/gentoo/feed" rel="self" type="application/rss+xml" />
	<link>http://www.troublenow.org</link>
	<description>Just a reference base</description>
	<lastBuildDate>Thu, 08 Jul 2010 12:52:54 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Mobile internet using you mobile phone in Linux</title>
		<link>http://www.troublenow.org/archives/22</link>
		<comments>http://www.troublenow.org/archives/22#comments</comments>
		<pubDate>Sun, 24 Aug 2008 16:22:20 +0000</pubDate>
		<dc:creator>Arno Haverlach</dc:creator>
				<category><![CDATA[debian]]></category>
		<category><![CDATA[gentoo]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.troublenow.org/?p=22</guid>
		<description><![CDATA[When I am on the road sometimes its very handy to have internet around.
luckily this is very easy to accomplish in Linux. In this case I will be using a Samsung F700 Mobile phone connected to my Asus EEE 701 laptop running Ubuntu linux.
A few things however to think of before you start:
- Do you [...]]]></description>
			<content:encoded><![CDATA[<p>When I am on the road sometimes its very handy to have internet around.</p>
<p>luckily this is very easy to accomplish in Linux. In this case I will be using a Samsung F700 Mobile phone connected to my Asus EEE 701 laptop running Ubuntu linux.</p>
<p>A few things however to think of before you start:<br />
- Do you have a &#8216;unlimited&#8217; or limited (100MiB/1GiB etc..) contract (&#8216;unlimited&#8217; is recommended)<br />
- Does your provider allow dial up using your phone &amp; laptop (By Vodafone it is not allowed but if you use it for &#8216;normal&#8217; web browsing they don&#8217;t mind (if you start using it to download your latest TV episode&#8217;s or whatever you will be shutdown.)</p>
<p><strong>So lets start:</strong></p>
<p>First connect the phone to the laptop using the USB cable in my case the phone will ask me in what &#8216;mode&#8217; the phone should operate, I need to select &#8216;pc studio&#8217; to use the phone as a gateway to the internet.</p>
<p>Now when the phone is connected to the PC open a terminal and run wvdialconf to create a new config file:</p>

<div class="wp-terminal">trouble@sun:$ sudo wvdialconf /etc/wvdial.conf<br/><br/>Editing `/etc/wvdial.conf'.<br/><br/>Scanning your serial ports for a modem.<br/><br/>ttyS0&lt;*1&gt;: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud<br/>ttyS0&lt;*1&gt;: ATQ0 V1 E1 -- failed with 9600 baud, next try: 115200 baud<br/>ttyS0&lt;*1&gt;: ATQ0 V1 E1 -- and failed too at 115200, giving up.<br/>Modem Port Scan&lt;*1&gt;: S1   S2   S3<br/>WvModem&lt;*1&gt;: Cannot get information for serial port.<br/>ttyACM0&lt;*1&gt;: ATQ0 V1 E1 -- OK<br/>ttyACM0&lt;*1&gt;: ATQ0 V1 E1 Z -- OK<br/>ttyACM0&lt;*1&gt;: ATQ0 V1 E1 S0=0 -- OK<br/>ttyACM0&lt;*1&gt;: ATQ0 V1 E1 S0=0 &amp;C1 -- OK<br/>ttyACM0&lt;*1&gt;: ATQ0 V1 E1 S0=0 &amp;C1 &amp;D2 -- OK<br/>ttyACM0&lt;*1&gt;: ATQ0 V1 E1 S0=0 &amp;C1 &amp;D2 +FCLASS=0 -- ERROR<br/>ttyACM0&lt;*1&gt;: Modem Identifier: ATI -- Manufacturer: SAMSUNG ELECTRONICS CORPORATION<br/>ttyACM0&lt;*1&gt;: Speed 4800: AT -- OK<br/>ttyACM0&lt;*1&gt;: Speed 9600: AT -- OK<br/>ttyACM0&lt;*1&gt;: Speed 19200: AT -- OK<br/>ttyACM0&lt;*1&gt;: Speed 38400: AT -- OK<br/>ttyACM0&lt;*1&gt;: Speed 57600: AT -- OK<br/>ttyACM0&lt;*1&gt;: Speed 115200: AT -- OK<br/>ttyACM0&lt;*1&gt;: Speed 230400: AT -- OK<br/>ttyACM0&lt;*1&gt;: Speed 460800: AT -- OK<br/>ttyACM0&lt;*1&gt;: Max speed is 460800; that should be safe.<br/>ttyACM0&lt;*1&gt;: ATQ0 V1 E1 S0=0 &amp;C1 &amp;D2 -- OK<br/><br/>Found an USB modem on /dev/ttyACM0.<br/>Modem configuration written to /etc/wvdial.conf.<br/>ttyACM0: Speed 460800; init "ATQ0 V1 E1 S0=0 &amp;C1 &amp;D2"<br/></div>

<p>As you can see it found my Samsung F700 phone and updated the wvdial.conf file.</p>
<p>Now we need to edit the wvdial.conf file to add a few paramaters (user/pass &amp; dial number)<br />
the default config file looks like this:</p>

<div class="wp-terminal">trouble@sun:$ $ cat /etc/wvdial.conf<br/><br/>[Dialer Defaults]<br/>Init1 = ATZ<br/>Init2 = ATQ0 V1 E1 S0=0 &amp;C1 &amp;D2<br/>Modem Type = USB Modem<br/>Baud = 460800<br/>New PPPD = yes<br/>Modem = /dev/ttyACM0<br/>ISDN = 0<br/>; Phone =<br/>; Password =<br/>; Username =<br/></div>

<p>Now you will need to know the &#8216;Target Phone Number&#8217; for vodafone in the Netherlands this is &#8216;*99#&#8217; but this might be different in your case so just &#8216;google&#8217; around if you have a other provider for the target phone number.</p>
<p>The username and password can be just random but I like to keep it simple and changed both to &#8216;vodafone&#8217;</p>
<p>Also you need to enable &#8217;stupid mode&#8217; in wvdial to work around some of the &#8216;intelligence&#8217; in wvdial to get it to work.</p>
<p>So vi the wvdial.conf file and it should look like this:</p>

<div class="wp-terminal">trouble@sun:$ $ sudo vi /etc/wvdial.conf<br/>[Dialer Defaults]<br/>Init1 = ATZ<br/>Init2 = ATQ0 V1 E1 S0=0 &amp;C1 &amp;D2<br/>Modem Type = USB Modem<br/>Baud = 460800<br/>New PPPD = yes<br/>Modem = /dev/ttyACM0<br/>ISDN = 0<br/>Phone = *99#<br/>Password = vodafone<br/>Username = vodafone<br/>Stupid Mode = 1<br/></div>

<p>Now you are ready to go, so start &#8216;wvdial&#8217; and you should be connected (I created a desktop terminal launcher with the command: &#8217;sudo wvdial&#8217; for this).</p>

<div class="wp-terminal">trouble@sun:$ $ sudo wvdial<br/>--&gt; WvDial: Internet dialer version 1.60<br/>--&gt; Cannot get information for serial port.<br/>--&gt; Initializing modem.<br/>--&gt; Sending: ATZ<br/>ATZ<br/>OK<br/>--&gt; Sending: ATQ0 V1 E1 S0=0 &amp;C1 &amp;D2<br/>ATQ0 V1 E1 S0=0 &amp;C1 &amp;D2<br/>OK<br/>--&gt; Modem initialized.<br/>--&gt; Sending: ATDT*99#<br/>--&gt; Waiting for carrier.<br/>ATDT*99#<br/>CONNECT<br/>--&gt; Carrier detected.  Starting PPP immediately.<br/>--&gt; Starting pppd at Sun Aug 24 18:14:11 2008<br/>--&gt; Pid of pppd: 23198<br/>--&gt; Using interface ppp0<br/>--&gt; pppd: ��[06][08]��[06][08]<br/>--&gt; pppd: ��[06][08]��[06][08]<br/>--&gt; pppd: ��[06][08]��[06][08]<br/>--&gt; pppd: ��[06][08]��[06][08]<br/>--&gt; pppd: ��[06][08]��[06][08]<br/>--&gt; pppd: ��[06][08]��[06][08]<br/>--&gt; pppd: ��[06][08]��[06][08]<br/>--&gt; local  IP address YOURIP<br/>--&gt; pppd: ��[06][08]��[06][08]<br/>--&gt; remote IP address GATEWAYIP<br/>--&gt; pppd: ��[06][08]��[06][08]<br/>--&gt; primary   DNS address DNSIP<br/>--&gt; pppd: ��[06][08]��[06][08]<br/>--&gt; secondary DNS address DNSIP<br/>--&gt; pppd: ��[06][08]��[06][08]<br/></div>

]]></content:encoded>
			<wfw:commentRss>http://www.troublenow.org/archives/22/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
