Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Main Support Categories > Networking & Wireless
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Ubuntu 9.10 is out!!!

When downloading Ubuntu 9.10 please consider using bittorrent to get your copy of Ubuntu.

The Ubuntu Developers Summit for Lucid Lynx will be held the week of 16-Nov-2009 till 20-Nov-2009 in Dallas, TX USA. Visit the the Ubuntu wiki for more information about UDS and how to participate remotely.

Networking & Wireless
Having problems getting connected to the internet or getting your wireless card to work? Ask here.

 
Thread Tools Display Modes
Old May 3rd, 2009   #1
Unkuiri
5 Cups of Ubuntu
 
Unkuiri's Avatar
 
Join Date: Jul 2007
Beans: 43
Ubuntu 9.10 Karmic Koala
Smile How-to: Install modem ZTE MF626 HSDPA in Jaunty

1) Get the latest usb_modeswitch file from the page http://www.draisberghof.de/usb_modeswitch/ from the section "Downloads"

2) click with the right button of the mouse in the file and select extract here;

3) Open the Terminal, and go to the location of the decompressed file and execute:
Quote:
sudo make install
... it asks for the root password;




4) Edit the "usb_modeswitch.conf" archive. To do that execute:
Quote:
sudo gedit /etc/usb_modeswitch.conf
it will open the Gnome text editor.

5) Look for the modem name:"ZTE MF626" and erase the comments, the ( # ) and the ( ; ), Until it looks something like this:

ZTE MF628+ (tested version from Telia / Sweden)
ZTE MF626

Contributor: Joakim Wennergren

DefaultVendor= 0x19d2
DefaultProduct= 0x2000

TargetVendor= 0x19d2
TargetProduct= 0x0031

MessageEndpoint=0x01
MessageContent="55534243123456782000000080000c8501 0101180101010101000000000000"



6) Save and Quit.

7) Plug the modem, wait few seconds and execute "lsusb" in the terminal. Here one device must have the ID 19d2:2000.



Execute this in Terminal:
Quote:
sudo /usr/sbin/usb_modeswitch -W -c /etc/usb_modeswitch.conf
With this we change the usb mode so the system recognize it as a modem. Do "lsusb" again, it has changed to ID 19d2:0031



10) Now it should be recognized as a modem...and we can define an archive in order to make this device recognizable by Network Manager, for this we write in terminal:
Quote:
sudo gedit /usr/share/hal/fdi/information/20thirdparty/20-zte-mf626.fdi
This will open a blank archive and in it we write:
Quote:
<!-- -*- SGML -*- -->
<deviceinfo version="0.2">
<device>
<!-- ZTE MF626 HSDPA USB Modem -->
<match key="@info.parent:usb.vendor_id" int="0x19d2">
<match key="@info.parent:usb.product_id" int="0x0031">
<match key="@info.parent:usb.interface.number" int="3">
<append key="modem.command_sets" type="strlist">GSM-07.07</append>
<append key="modem.command_sets" type="strlist">GSM-07.05</append>
<append key="info.capabilities" type="strlist">modem</append>
</match>
</match>
</match>
</device>
</deviceinfo>
Then Save and Quit

11) Now it should be seen in network connections as a new connection.

In the original page in spanish http://www.taringa.net/posts/linux/2...ZTE-mf626.html by MOZZart, it has other commands that for this ubuntu release I found unnecessary.

In my country and provider it's necessary to do some configuration in the network manager.
I have to do Edit Conections -> (in english could be something like) Mobile Broadband -> Add...and than select the mobile provider...

Reboot and than it will maybe () work fine...
any corrections and suggestions are welcome...

P.S.:I still don't find a way to automatize all the process, anytime I want to enter the internet I have to do: "sudo /usr/sbin/usb_modeswitch -W -c /etc/usb_modeswitch.conf"...anyone that knows a way I'll appreciate...

Last edited by Unkuiri; May 3rd, 2009 at 08:11 PM..
Unkuiri is offline   Reply With Quote
Old May 3rd, 2009   #2
loell
☀ ☀ ☀
 
loell's Avatar
 
Join Date: Oct 2005
Location: Davao, Philippines
Beans: 4,542
Ubuntu 9.10 Karmic Koala
Send a message via Yahoo to loell
Re: How-to: Install modem ZTE MF626 HSDPA in Jaunty

And this is is in jaunty!? i'm only asking because, many have troubles using usb_modeswitch in jaunty.
__________________
My Package Archive
loell is offline   Reply With Quote
Old May 3rd, 2009   #3
Unkuiri
5 Cups of Ubuntu
 
Unkuiri's Avatar
 
Join Date: Jul 2007
Beans: 43
Ubuntu 9.10 Karmic Koala
Re: How-to: Install modem ZTE MF626 HSDPA in Jaunty

Yeah, it worked for me in Jaunty...I tried many tutorials but the only one that worked is this one...

P.S.: I'm a newby in Ubuntu, maybe i'm making something wrong, if it happens please forgive me...
Unkuiri is offline   Reply With Quote
Old May 3rd, 2009   #4
loell
☀ ☀ ☀
 
loell's Avatar
 
Join Date: Oct 2005
Location: Davao, Philippines
Beans: 4,542
Ubuntu 9.10 Karmic Koala
Send a message via Yahoo to loell
Re: How-to: Install modem ZTE MF626 HSDPA in Jaunty

ah great , i was only asking because some have this error

https://answers.launchpad.net/ubuntu...question/65281

but if it went just fine, then that's goog news
__________________
My Package Archive
loell is offline   Reply With Quote
Old May 3rd, 2009   #5
Unkuiri
5 Cups of Ubuntu
 
Unkuiri's Avatar
 
Join Date: Jul 2007
Beans: 43
Ubuntu 9.10 Karmic Koala
Re: How-to: Install modem ZTE MF626 HSDPA in Jaunty

I had that same error, as I know the usbserial module doesn't work on Jaunty and because of that I did a thing that a user said in other forum, I've edited the file "menu.lst" located in /boot/grub/ and added a line customized entry, copied the part that says:
Quote:
title Ubuntu 9.04, kernel 2.6.28-11-generic
uuid 8a94291a-08f2-40dc-ac28-240589d74efc
kernel /boot/vmlinuz-2.6.28-11-generic root=UUID=8a94291a-08f2-40dc-ac28-240589d74efc ro locale=pt_PT quiet splash
initrd /boot/initrd.img-2.6.28-11-generic
quiet
and altered the new one to look like this:
Quote:
title Ubuntu 9.04, kernel 2.6.28-11-generic custom
uuid 8a94291a-08f2-40dc-ac28-240589d74efc
kernel /boot/vmlinuz-2.6.28-11-generic root=UUID=8a94291a-08f2-40dc-ac28-240589d74efc ro locale=pt_PT quiet splash usbserial.vendor=0x19d2 usbserial.product=0x0031
initrd /boot/initrd.img-2.6.28-11-generic
quiet
I've altered the first line adding "custom"(this is only to know what boot option is)
and added: "usbserial.vendor=0x19d2 usbserial.product=0x0031" (this is for my case, for the modem cited at the top)

and then I booted from that new option...but when I tried to plug the modem and make it work it didn't work and then I tried again to boot normally from the normal option (not custom) and voilá it's working...Thats the reason I didn't say it in the "How-to"...do you think it's important to say that?
Unkuiri is offline   Reply With Quote
Old May 3rd, 2009   #6
loell
☀ ☀ ☀
 
loell's Avatar
 
Join Date: Oct 2005
Location: Davao, Philippines
Beans: 4,542
Ubuntu 9.10 Karmic Koala
Send a message via Yahoo to loell
Re: How-to: Install modem ZTE MF626 HSDPA in Jaunty

Quote:
Originally Posted by Unkuiri View Post
Thats the reason I didn't say it in the "How-to"...do you think it's important to say that?
yeah.. but you already just said it, so it's fine.
__________________
My Package Archive
loell is offline   Reply With Quote
Old May 4th, 2009   #7
GeorgeVita
Has an Ubuntu Drip
 
GeorgeVita's Avatar
 
Join Date: Aug 2008
Location: Athens, Greece
Beans: 721
Ubuntu 9.10 Karmic Koala
Re: How-to: Install modem ZTE MF626 HSDPA in Jaunty

Quote:
Originally Posted by Unkuiri View Post
...P.S.:I still don't find a way to automatize all the process, anytime I want to enter the internet I have to do: "sudo /usr/sbin/usb_modeswitch -W -c /etc/usb_modeswitch.conf"...anyone that knows a way I'll appreciate...
Hi Unkuiri,
if above still exists, you can add a .rule file (as user JimmyI suggests with post #4 of http://ubuntuforums.org/showthread.php?t=1065934).

For your case you could create the file from terminal:
sudo gedit /etc/udev/rules.d/90-zte.rules

copy the following lines into gedit window:

Code:
ACTION!="add", GOTO="ZTE_End"

SUBSYSTEM=="usb", SYSFS{idProduct}=="2000", SYSFS{idVendor}=="19d2", GOTO="ZTE_ZeroCD"

LABEL="ZTE_ZeroCD"
RUN+="/usr/sbin/usb_modeswitch -W -c /etc/usb_modeswitch.conf"

LABEL="ZTE_End"
Save, Exit and reboot.

If all are OK, when you attach the modem (19d2:2000) the usb_modeswitch will run automatically changing to "modem state" (19d2:0031). As you are running the usbserial at boot, you don't need the "usbserial" part of above link.

Regards,
George
GeorgeVita is offline   Reply With Quote
Old May 12th, 2009   #8
radolin
First Cup of Ubuntu
 
Join Date: Mar 2008
Beans: 3
Re: How-to: Install modem ZTE MF626 HSDPA in Jaunty

Hi guys,

I just want to ask those of you that have succeeded in getting the modem to work are you happy with it?

I read somewhere else that people are experiencing modem hangs after ~1hr of use, so do you get these too or it works reliably?

I am looking for a 3g modem to buy with Linux support #1 criteria on the list so this will be useful info.

Best regards,
Rado
radolin is offline   Reply With Quote
Old May 12th, 2009   #9
Unkuiri
5 Cups of Ubuntu
 
Unkuiri's Avatar
 
Join Date: Jul 2007
Beans: 43
Ubuntu 9.10 Karmic Koala
Re: How-to: Install modem ZTE MF626 HSDPA in Jaunty

Hi, For me works fine the only problem that I'm experiencing sometimes is that I have to unplug and re-plug for it to work, but all the remaining things work fine and is faster than windows for example......good luck for your search...
Unkuiri is offline   Reply With Quote
Old May 12th, 2009   #10
Unkuiri
5 Cups of Ubuntu
 
Unkuiri's Avatar
 
Join Date: Jul 2007
Beans: 43
Ubuntu 9.10 Karmic Koala
Re: How-to: Install modem ZTE MF626 HSDPA in Jaunty

Thanks GeorgeVita, What you said worked just fine......now it's just plug and play.....
Unkuiri is offline   Reply With Quote

Bookmarks

Tags
ubuntu, zte modem

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

Forum Jump


All times are GMT -4. The time now is 04:17 AM.


vBulletin ©2000 - 2009, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. bilberry