Author Topic: Telstra 4G USB [SOLVED]  (Read 2592 times)

Offline FighterMageThief

  • Newly Subscribed
  • *
  • Posts: 10
  • Karma: 0
  • New Forum User
    • View Profile
  • Peppermint version(s): version 5
Telstra 4G USB [SOLVED]
« on: December 21, 2014, 05:01:41 pm »
Hi folks,

How do I install my Telstra 4G USB stick? This peripheral device is used for internet access on the fly.

Thanks
FMT
« Last Edit: December 23, 2014, 04:05:14 am by AndyInMokum »

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26452
  • Karma: 65531
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: Telstra 4G USB
« Reply #1 on: December 22, 2014, 02:54:39 am »
With the USB dongle plugged in, please post the output from:
Code: [Select]
lsusb
Can you not post the same question twice please .. I'd already responded to your other topic.

BTW, I've now deleted your other topic.
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline FighterMageThief

  • Newly Subscribed
  • *
  • Posts: 10
  • Karma: 0
  • New Forum User
    • View Profile
  • Peppermint version(s): version 5
Re: Telstra 4G USB
« Reply #2 on: December 22, 2014, 03:28:00 am »
Hi PCNetSpec,

I thought I only posted the question about the 4g dongle once?  Apologies if this is not the case.

When I type lsusb in the terminal it lists what is plugged into the usb port.  I can can see the device listed there.  What do i do next?

FMT

Offline rjm65

  • Veteran
  • ****
  • Posts: 1029
  • Karma: 313
  • I have Peppermint Fresh Breath. :P
    • View Profile
  • Peppermint version(s): Win-98 /Win-7/ Peppermint 9
Re: Telstra 4G USB
« Reply #3 on: December 22, 2014, 05:45:20 am »
He needs you to copy and paste the output of that command here in the forum, so he can see what is going on....   ???
Robert
Peppermint 9 User

Gateway Solo 9300 Pro
IBM T40

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26452
  • Karma: 65531
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: Telstra 4G USB
« Reply #4 on: December 22, 2014, 11:07:28 am »
What rjm65 just said ;)

I want the IDvendor:IDproduct string for that device (which is contained in the "lsusb" output) so I can check if the device is -

a) supported
and/or
b) properly switching from ZeroCD to modem mode
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline FighterMageThief

  • Newly Subscribed
  • *
  • Posts: 10
  • Karma: 0
  • New Forum User
    • View Profile
  • Peppermint version(s): version 5
Re: Telstra 4G USB
« Reply #5 on: December 22, 2014, 10:05:03 pm »
Ahhh I see.  Sorry I am very new to this world of linux.  Please forgive my ineptitude and thank you both for your help with this matter.

~ $ lsusb
Bus 002 Device 003: ID 1532:0015 Razer USA, Ltd
Bus 002 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 004: ID 19d2:0257 ZTE WCDMA Technologies MSM
Bus 001 Device 003: ID 04f2:b1d8 Chicony Electronics Co., Ltd
Bus 001 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Am I correct in assuming that the 4G dongle is this:    Bus 001 Device 004: ID 19d2:0257 ZTE WCDMA Technologies MSM

FMT

Offline AndyInMokum

  • Global Moderator
  • Hero
  • *****
  • Posts: 4889
  • Karma: 1058
  • "Keep on Rockin' in the Free World"
    • View Profile
  • Peppermint version(s): PM 9 & PM 10 (64-bit)
Re: Telstra 4G USB
« Reply #6 on: December 23, 2014, 12:41:41 am »
Hi FighterThiefMage, how's it going?  Yes you are correct, the line you are referring to is the 4G dongle.  Lets see if we can get it up and running.  First lets make a backup of the initial file you are going to work on.  Open a terminal window with the following keystrokes: Ctrl+Alt+t.  Copy and paste the following command in into the terminal window:

Tip:  Linux is case sensitive.  To reduce the possibility of typographical errors, please use the Code: [Select] function below to highlight the contents. Click on the centre mouse button/wheel while in the terminal window to paste the contents.

Code: [Select]
cd /lib/udev/rules.d && sudo cp -v 40-usb_modeswitch.rules 40-usb_modeswitch.rules.oldHit enter and enter your user password when asked.

Note: For enhanced security, passwords are entered invisibly.  There is NO indication of any user input.  You may enter an incorrect password 3 times before you have to repeat the action you are trying to perform.

Now we are going to edit the 40-usb_modeswitch.rules file.  Enter the following command into the terminal window.
Code: [Select]
sudo gedit /lib/udev/rules.d/40-usb_modeswitch.rulesHit enter and enter your user password if asked.  Don't worry about the Gtk-warning message.  it is normal.  A long file will now open in the Gedit text editor. Scroll down to where it looks like this:
Spoiler (click here to view / hide)
[close]
Your file may look slightly different because of your geographical location.  If this is so, it doesn't matter.  We are now going to insert a new device in the ZTE selections. Copy and paste the following into the open file:
Code: [Select]
# ZTE MF821 4G LTE
ATTRS{idVendor}=="19d2", ATTRS{idProduct}=="0257", RUN+="usb_modeswitch '%b/%k'"
so it now looks like this:
Spoiler (click here to view / hide)
[close]
I've inserted it just before the # Vodafone (ZTE) starts. This just for convenience.  Save and quit the file with the following keystrokes: Ctrl+s and Ctrl+q.  We are now going to create a file in /etc/usb_modeswitch.d/ called 19d2:0257.  In a terminal window enter the following command:
Code: [Select]
sudo gedit /etc/usb_modeswitch.d/19d2:0257when the new empty file opens, copy and paste the following into it:
Code: [Select]
# Telstra ZTE LTE 4g modem
#
DefaultVendor=  0x19d2
DefaultProduct= 0x0257

TargetVendor=  0x19d2
TargetProduct= 0x0257

MessageContent="55534243123456782400000080000685000000240000000000000000000000"

CheckSuccess=20
Save and quit the file.  Finally, to have Network Manager automatically recognise the device.  Enter the following code into a terminal window:
Code: [Select]
sudo gedit /etc/rc.localhit enter and do the password thing if asked.  The opened file will look like this:
Spoiler (click here to view / hide)
[close]
Copy and paste the following line into it:
Code: [Select]
modprobe usbserial vendor=0x19d2 product=0x0257so it looks like this:
Spoiler (click here to view / hide)
[close]
Save and quit the file.  Logout and log back in.  That's it, your Telstra 4G USB stick should now work - have fun  ;)!!

This link was used as a reference: http://ubuntuforums.org/showthread.php?t=2074518?s=7357397cd62c92bdf118aac042779178
Backup! Backup! Backup! If you're missing any of these -  you ain't Backed Up!
For my system info please L/click HERE.

Offline FighterMageThief

  • Newly Subscribed
  • *
  • Posts: 10
  • Karma: 0
  • New Forum User
    • View Profile
  • Peppermint version(s): version 5
Re: Telstra 4G USB
« Reply #7 on: December 23, 2014, 03:11:03 am »
Hi Andyinmokum,

I am going really well thanks. 

I followed your instructions and now I have a fully functional Telstra 4g dongle installed (I am using it now as I type this reply).

I had a little trouble on the installation walk-through because I didn't know which "plan" to choose.  However, trial and error got me there on the first edit.

Thank you very much for your helping me with this matter.  Really appreciated :)

Have a merry safe and warm Christmas and New Years.

FMT

Offline AndyInMokum

  • Global Moderator
  • Hero
  • *****
  • Posts: 4889
  • Karma: 1058
  • "Keep on Rockin' in the Free World"
    • View Profile
  • Peppermint version(s): PM 9 & PM 10 (64-bit)
Re: Telstra 4G USB
« Reply #8 on: December 23, 2014, 04:04:30 am »
It is my pleasure  ;).  Could you please remember to mark the topic as [SOLVED] in the subject line of the original post.  I've done this for you this time.  Many thanks  ;)

A very Merry Christmas and a Happy New year to you also.  Remember to keep it Pepperminty  :D!!!
Backup! Backup! Backup! If you're missing any of these -  you ain't Backed Up!
For my system info please L/click HERE.