slitaz-doc-wiki-data view pages/en/guides/dialup.txt @ rev 7

Add pages/en folder.
author Christopher Rogers <slaxemulator@gmail.com>
date Sat Feb 26 12:17:18 2011 +0000 (2011-02-26)
parents
children
line source
1 ====== 3G-UMTS =======
3 The # sign means that you do this command as root on your console:
5 ===== Automatic Installation =====
7 The new hwsetup in SliTaz 3.0 now adds automatic installation for 3G (still in trial version).
9 <code># tazhw setup 3g-modem</code>
11 Now open the wvdial box by typing y, enter your data (as described in wvdial.conf), save the configuration (if you don't save you risk breaking your pin), dial the pin (you have to do this only once you plug in your modem), then start dialing and you should be connected.
13 ===== Manual Installation =====
15 <code>
16 # tazpkg get-install wvdial
17 # tazpkg get-install linux-dialup
18 </code>
20 You have to bring down your network, otherwise you will have a route problem:
22 <code>
23 # ifconfig eth0 down
24 # ifconfig eth1 down
25 </code>
27 You have to switch on the modem with:
29 <code>
30 # modprobe option (Huawei E220, E160g, Venus-VT12)
31 </code>
33 Please help update which modem or phone is using which module using the forum post: http://labs.slitaz.org/issues/show/149. You will find if your modem is supported by linux-dialup.
35 There is an extra guide for the [[http://doc.slitaz.org/en-guides:cricket-a600|Cricket-a600]]
37 For automatization load the module at startup with your Slitaz Control Box.
39 ===== wvdial.conf =====
41 Check the modem if it is /dev/ttyUSB* or /dev/ttyACM* (e.g. with #dmesg) and edit your wvdial.conf (here as an example):
43 <code>
44 # leafpad /etc/wvdial.conf
45 </code>
47 <file>
48 [Dialer pin]
49 Modem = /dev/ttyUSB0
50 Init1 = AT+CPIN=1234...................,.....!!here's your pin!!
52 [Dialer umts]
53 Modem = /dev/ttyUSB0
54 ISDN = off
55 Modem Type = USB Modem
56 Baud = 460800
57 Init = ATZ
58 Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
59 Dial Prefix =
60 Dial Attempts = 1
61 Dial Command = ATM1L3DT
62 Ask Password = off
63 Auto Reconnect = off
64 Abort on Busy = off
65 Carrier Check = on
66 Check Def Route = on
67 Abort on No Dialtone = on
68 Stupid Mode = off
69 Idle Seconds = 0
70 Init3 = AT+CGDCONT=1,"IP","drei.at".....!!here's your string!!
71 Username = drei.at...........................!!here's your Usern!!
72 Password = drei.at...........................!!here's your Passw!!
73 Phone = *99#.................................!!here's your Phone!!
74 </file>
76 All the needed data can be found here:
78 Austria, Germany,Switzerland: http://linux.frankenberger.at/Huawei_E220_Daten.html
80 World:http://www.flexispy.com/Mobile%20APN%20Setting%20to%20use%20GPRS.htm
82 But you can search the net with the name of your provider and wvdial.conf and I think you will need to.
84 To connect do:
86 <code>
87 # wvdial pin
88 # wvdial umts
89 </code>
91 You can put the pin also in Dialer umts, but I use my modem most of the time on the train, and you would get an error when you reconnect (when the connection breaks) - so use wvdial pin only the first time you plug in the modem.
93 The only thing thats left is to put the DNS in resolv.conf (you will find the DNS in the two lists with all the data).
95 <code>
96 # leafpad /etc/resolv.conf
97 </code>
99 <file>
100 nameserver 213.94.78.16........................!!here's your DNS!!
101 </file>
103 If you want to dial out as user - add yourself to the group "dialout" (cat /etc/group) and set the permissions for wvdial and wvdial.conf.
105 For automatization you can put a script in /usr/local/bin called umts-connect (executable)! From here it's not proved, because I connect from the console, but it should work like this!
107 <code bash>
108 #! /bin/bash
109 ifconfig eth0 down
110 ifconfig eth1 down
111 wvdial pin
112 wvdial umts
113 </code>
115 But dont reconnect with this.
117 ===== Desktop entry =====
119 You can also put a desktop entry in /usr/share/applications with the name umts.desktop
121 <file>
122 [Desktop Entry]
123 Encoding=UTF8
124 Name=UMTS connection
125 Name[de]=UMTS-Verbindung
126 Comment=UMTS-Verbindung
127 Type=Application
128 Exec=/usr/local/bin/umts-connect
129 Icon=/usr/share/icons/.................whatever you want
130 Categories=Application;Network;
131 </file>
133 Please check Exec=/usr/local/bin/umts-connect for permissions.
135 Here is the forum post about this: http://forum.slitaz.org/index.php/discussion/comment/440/#Comment_440
138 ----
139 \\
140 ^ Page Review Section ^^
141 |Quality| Good |
142 |Review| Minor Updates |
143 |Priority| Medium |
144 |Problems| add a [[http://forum.slitaz.org|forum post link]]|
145 |::: | OR add a [[http://labs.slitaz.org/issues |lab issue tracker link ]]|
146 |How to Improve| Suggest briefly|
147 |::: | |
149 \\
150 ----