slitaz-doc-wiki-data annotate 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
rev   line source
slaxemulator@7 1 ====== 3G-UMTS =======
slaxemulator@7 2
slaxemulator@7 3 The # sign means that you do this command as root on your console:
slaxemulator@7 4
slaxemulator@7 5 ===== Automatic Installation =====
slaxemulator@7 6
slaxemulator@7 7 The new hwsetup in SliTaz 3.0 now adds automatic installation for 3G (still in trial version).
slaxemulator@7 8
slaxemulator@7 9 <code># tazhw setup 3g-modem</code>
slaxemulator@7 10
slaxemulator@7 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.
slaxemulator@7 12
slaxemulator@7 13 ===== Manual Installation =====
slaxemulator@7 14
slaxemulator@7 15 <code>
slaxemulator@7 16 # tazpkg get-install wvdial
slaxemulator@7 17 # tazpkg get-install linux-dialup
slaxemulator@7 18 </code>
slaxemulator@7 19
slaxemulator@7 20 You have to bring down your network, otherwise you will have a route problem:
slaxemulator@7 21
slaxemulator@7 22 <code>
slaxemulator@7 23 # ifconfig eth0 down
slaxemulator@7 24 # ifconfig eth1 down
slaxemulator@7 25 </code>
slaxemulator@7 26
slaxemulator@7 27 You have to switch on the modem with:
slaxemulator@7 28
slaxemulator@7 29 <code>
slaxemulator@7 30 # modprobe option (Huawei E220, E160g, Venus-VT12)
slaxemulator@7 31 </code>
slaxemulator@7 32
slaxemulator@7 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.
slaxemulator@7 34
slaxemulator@7 35 There is an extra guide for the [[http://doc.slitaz.org/en-guides:cricket-a600|Cricket-a600]]
slaxemulator@7 36
slaxemulator@7 37 For automatization load the module at startup with your Slitaz Control Box.
slaxemulator@7 38
slaxemulator@7 39 ===== wvdial.conf =====
slaxemulator@7 40
slaxemulator@7 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):
slaxemulator@7 42
slaxemulator@7 43 <code>
slaxemulator@7 44 # leafpad /etc/wvdial.conf
slaxemulator@7 45 </code>
slaxemulator@7 46
slaxemulator@7 47 <file>
slaxemulator@7 48 [Dialer pin]
slaxemulator@7 49 Modem = /dev/ttyUSB0
slaxemulator@7 50 Init1 = AT+CPIN=1234...................,.....!!here's your pin!!
slaxemulator@7 51
slaxemulator@7 52 [Dialer umts]
slaxemulator@7 53 Modem = /dev/ttyUSB0
slaxemulator@7 54 ISDN = off
slaxemulator@7 55 Modem Type = USB Modem
slaxemulator@7 56 Baud = 460800
slaxemulator@7 57 Init = ATZ
slaxemulator@7 58 Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
slaxemulator@7 59 Dial Prefix =
slaxemulator@7 60 Dial Attempts = 1
slaxemulator@7 61 Dial Command = ATM1L3DT
slaxemulator@7 62 Ask Password = off
slaxemulator@7 63 Auto Reconnect = off
slaxemulator@7 64 Abort on Busy = off
slaxemulator@7 65 Carrier Check = on
slaxemulator@7 66 Check Def Route = on
slaxemulator@7 67 Abort on No Dialtone = on
slaxemulator@7 68 Stupid Mode = off
slaxemulator@7 69 Idle Seconds = 0
slaxemulator@7 70 Init3 = AT+CGDCONT=1,"IP","drei.at".....!!here's your string!!
slaxemulator@7 71 Username = drei.at...........................!!here's your Usern!!
slaxemulator@7 72 Password = drei.at...........................!!here's your Passw!!
slaxemulator@7 73 Phone = *99#.................................!!here's your Phone!!
slaxemulator@7 74 </file>
slaxemulator@7 75
slaxemulator@7 76 All the needed data can be found here:
slaxemulator@7 77
slaxemulator@7 78 Austria, Germany,Switzerland: http://linux.frankenberger.at/Huawei_E220_Daten.html
slaxemulator@7 79
slaxemulator@7 80 World:http://www.flexispy.com/Mobile%20APN%20Setting%20to%20use%20GPRS.htm
slaxemulator@7 81
slaxemulator@7 82 But you can search the net with the name of your provider and wvdial.conf and I think you will need to.
slaxemulator@7 83
slaxemulator@7 84 To connect do:
slaxemulator@7 85
slaxemulator@7 86 <code>
slaxemulator@7 87 # wvdial pin
slaxemulator@7 88 # wvdial umts
slaxemulator@7 89 </code>
slaxemulator@7 90
slaxemulator@7 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.
slaxemulator@7 92
slaxemulator@7 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).
slaxemulator@7 94
slaxemulator@7 95 <code>
slaxemulator@7 96 # leafpad /etc/resolv.conf
slaxemulator@7 97 </code>
slaxemulator@7 98
slaxemulator@7 99 <file>
slaxemulator@7 100 nameserver 213.94.78.16........................!!here's your DNS!!
slaxemulator@7 101 </file>
slaxemulator@7 102
slaxemulator@7 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.
slaxemulator@7 104
slaxemulator@7 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!
slaxemulator@7 106
slaxemulator@7 107 <code bash>
slaxemulator@7 108 #! /bin/bash
slaxemulator@7 109 ifconfig eth0 down
slaxemulator@7 110 ifconfig eth1 down
slaxemulator@7 111 wvdial pin
slaxemulator@7 112 wvdial umts
slaxemulator@7 113 </code>
slaxemulator@7 114
slaxemulator@7 115 But dont reconnect with this.
slaxemulator@7 116
slaxemulator@7 117 ===== Desktop entry =====
slaxemulator@7 118
slaxemulator@7 119 You can also put a desktop entry in /usr/share/applications with the name umts.desktop
slaxemulator@7 120
slaxemulator@7 121 <file>
slaxemulator@7 122 [Desktop Entry]
slaxemulator@7 123 Encoding=UTF8
slaxemulator@7 124 Name=UMTS connection
slaxemulator@7 125 Name[de]=UMTS-Verbindung
slaxemulator@7 126 Comment=UMTS-Verbindung
slaxemulator@7 127 Type=Application
slaxemulator@7 128 Exec=/usr/local/bin/umts-connect
slaxemulator@7 129 Icon=/usr/share/icons/.................whatever you want
slaxemulator@7 130 Categories=Application;Network;
slaxemulator@7 131 </file>
slaxemulator@7 132
slaxemulator@7 133 Please check Exec=/usr/local/bin/umts-connect for permissions.
slaxemulator@7 134
slaxemulator@7 135 Here is the forum post about this: http://forum.slitaz.org/index.php/discussion/comment/440/#Comment_440
slaxemulator@7 136
slaxemulator@7 137
slaxemulator@7 138 ----
slaxemulator@7 139 \\
slaxemulator@7 140 ^ Page Review Section ^^
slaxemulator@7 141 |Quality| Good |
slaxemulator@7 142 |Review| Minor Updates |
slaxemulator@7 143 |Priority| Medium |
slaxemulator@7 144 |Problems| add a [[http://forum.slitaz.org|forum post link]]|
slaxemulator@7 145 |::: | OR add a [[http://labs.slitaz.org/issues |lab issue tracker link ]]|
slaxemulator@7 146 |How to Improve| Suggest briefly|
slaxemulator@7 147 |::: | |
slaxemulator@7 148
slaxemulator@7 149 \\
slaxemulator@7 150 ----