Choose style:

Author Topic: Vodafone Internet Key (K3806-Z) on Peppermint 5  (Read 2420 times)

0 Members and 1 Guest are viewing this topic.

Offline reluma

  • Newly Subscribed
  • *
  • Posts: 4
  • Karma: 0
  • New Forum User
    • View Profile
  • Peppermint version(s): 5
Vodafone Internet Key (K3806-Z) on Peppermint 5
« on: January 04, 2015, 04:41:28 am »
Hi,

I try to connect my PC with the Vodafone Internet Key following this guide:
http://241931348f64b1d1.wordpress.com/2014/09/02/problem-vodafone-internet-key-k3806-z-on-ubuntu-14-04/
the connection starts with the "dhclient wwan0" command but the second part of the guide doesn't work.

How can I create an executable file that run automatically the script "dhclient wwan0"?

Can you help me?

Thanks,

Reluma

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: Vodafone Internet Key (K3806-Z) on Peppermint 5
« Reply #1 on: January 04, 2015, 08:37:00 am »
Hi reluma, and welcome to the forum :)

Have you already created the connection in networkmanager ?

Does running:
Code: [Select]
sudo dhclient wwan0
actually get you a working connection .. if not, the script is useless at this point

Can you open a terminal and post the output from:
Code: [Select]
lsusb
and
Code: [Select]
ifconfig
and
Code: [Select]
ls /etc/NetworkManager/system-connections
« Last Edit: January 04, 2015, 08:43:36 am by PCNetSpec »
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline reluma

  • Newly Subscribed
  • *
  • Posts: 4
  • Karma: 0
  • New Forum User
    • View Profile
  • Peppermint version(s): 5
Re: Vodafone Internet Key (K3806-Z) on Peppermint 5
« Reply #2 on: January 06, 2015, 07:43:44 am »
Yes, I have created the connection in networkmanager, but it starts to work after the "sudo dhclient wwan0" from terminal.
I am searching for an automatic solution for this problem.

lsusb
Code: [Select]
Bus 001 Device 006: ID 19d2:1015 ZTE WCDMA Technologies MSM 
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 006 Device 002: ID 04e8:3242 Samsung Electronics Co., Ltd ML-1510 Laser Printer
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 002: ID 058f:9360 Alcor Micro Corp. 8-in-1 Media Card Reader
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 002: ID 045e:0084 Microsoft Corp. Basic Optical Mouse
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

ifconfig
Code: [Select]
eth0      Link encap:Ethernet  IndirizzoHW 00:1c:25:53:d8:d5  
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisioni:0 txqueuelen:1000
          Byte RX:0 (0.0 B)  Byte TX:0 (0.0 B)
          Interrupt:19

lo        Link encap:Loopback locale 
          indirizzo inet:127.0.0.1  Maschera:255.0.0.0
          indirizzo inet6: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:718 errors:0 dropped:0 overruns:0 frame:0
          TX packets:718 errors:0 dropped:0 overruns:0 carrier:0
          collisioni:0 txqueuelen:0
          Byte RX:64854 (64.8 KB)  Byte TX:64854 (64.8 KB)

wwan0     Link encap:Ethernet  IndirizzoHW 02:15:43:6b:5a:a0 
          indirizzo inet:100.87.62.5  Bcast:100.87.62.255  Maschera:255.255.255.0
          indirizzo inet6: fe80::15:43ff:fe6b:5aa0/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:2919 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2791 errors:0 dropped:0 overruns:0 carrier:0
          collisioni:0 txqueuelen:1000
          Byte RX:1732473 (1.7 MB)  Byte TX:642422 (642.4 KB)

ls /etc/NetworkManager/system-connections
Code: [Select]
Vodafone Mobile Internet

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: Vodafone Internet Key (K3806-Z) on Peppermint 5
« Reply #3 on: January 06, 2015, 11:29:46 am »
Okey dokey then.....

Open a terminal and run:
Code: [Select]
sudo gedit /etc/network/if-up.d/wwan_prob
When a file opens, make it read:-
Code: [Select]
#!/bin/sh

logger "running dhcp client on $IFACE to work around modem manager problem..."

if [ "$IFACE" = "wwan0" ]; then
       dhclient wwan0
fi
SAVE the file and exit gedit.

Back in the terminal run:
Code: [Select]
sudo chmod +x /etc/network/if-up.d/wwan_prob
Now REBOOT to test
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline reluma

  • Newly Subscribed
  • *
  • Posts: 4
  • Karma: 0
  • New Forum User
    • View Profile
  • Peppermint version(s): 5
Re: Vodafone Internet Key (K3806-Z) on Peppermint 5
« Reply #4 on: January 06, 2015, 03:46:14 pm »
Thanks a lot! Now it works!  :D

But the only difference with the original guide is this:

sudo chmod 755 /etc/network/if-up.d/wwan_prob
sudo chmod +x   /etc/network/if-up.d/wwan_prob

 :-\ What is the difference between 755 and +x ?

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: Vodafone Internet Key (K3806-Z) on Peppermint 5
« Reply #5 on: January 06, 2015, 04:08:07 pm »
755 sets "permissions" for the file:-

7 - Owner = read, write and execute
5 - Group = read and execute
5 - Everyone else = read and execute

But even though 755 is stating that everyone has "permission" to execute it (if it's marked as executable) .. it does NOT set the execute bit

+x sets the execute bit (marking the file as "executable").

-x removes the execute bit (marking the file as "NOT executable")

Files created under Linux are NOT  executable unless you manually set the execute bit .. in fact if the file comes from an outside source (such as across a network), it will automagically have the execute bit disabled (unless it's packed in a non-executable archive) .. all part of the "paranoid grade" Linux security which helps keep you safe :)

Did that make sense ?
« Last Edit: January 06, 2015, 04:29:32 pm by PCNetSpec »
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline reluma

  • Newly Subscribed
  • *
  • Posts: 4
  • Karma: 0
  • New Forum User
    • View Profile
  • Peppermint version(s): 5
Re: Vodafone Internet Key (K3806-Z) on Peppermint 5
« Reply #6 on: January 07, 2015, 04:54:57 pm »
Yes, thanks a lot.
I have a lot of things to learn about Linux and Peppermint!    ;D