Skip to content

Instantly share code, notes, and snippets.

@janprunk
Forked from aayubkh/huawei_e8372_config.md
Created August 25, 2025 22:50
Show Gist options
  • Save janprunk/b6f1d2f34cbb00c2ef9b9d50f22d88f9 to your computer and use it in GitHub Desktop.
Save janprunk/b6f1d2f34cbb00c2ef9b9d50f22d88f9 to your computer and use it in GitHub Desktop.

Revisions

  1. @aayubkh aayubkh revised this gist Feb 13, 2024. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions huawei_e8372_config.md
    Original file line number Diff line number Diff line change
    @@ -17,8 +17,8 @@ As an elevated user:

    - Paste the following piece of code in it, and save it:

    _`ACTION=="add", SUBSYSTEM=="usb", ATTRS{idVendor}=="12d1", ATTRS{idProduct}=="1f01", RUN+="/usr/sbin/usb_modeswitch -v 12d1 -p 1f01 -M '55534243123456780000000000000a11062000000000000100000000000000'"
    ACTION=="add", SUBSYSTEM=="usb", ATTRS{idVendor}=="12d1", ATTRS{idProduct}=="1f01", RUN+="/bin/bash -c 'modprobe option && echo 12d1 14db > /sys/bus/usb-serial/drivers/option1/new_id'"`_
    `ACTION=="add", SUBSYSTEM=="usb", ATTRS{idVendor}=="12d1", ATTRS{idProduct}=="1f01", RUN+="/usr/sbin/usb_modeswitch -v 12d1 -p 1f01 -M '55534243123456780000000000000a11062000000000000100000000000000'"
    ACTION=="add", SUBSYSTEM=="usb", ATTRS{idVendor}=="12d1", ATTRS{idProduct}=="1f01", RUN+="/bin/bash -c 'modprobe option && echo 12d1 14db > /sys/bus/usb-serial/drivers/option1/new_id'"`

    - Finally, reload all the udev rules by:

  2. @aayubkh aayubkh revised this gist Feb 13, 2024. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions huawei_e8372_config.md
    Original file line number Diff line number Diff line change
    @@ -12,6 +12,7 @@ As an elevated user:
    - Now look exactly for `12d1:1f01` - not overlooking a single character mismatch. If all good, proceed.

    - Using your favourite editor, with elevated privileges, create a new file called **70-huawei_e8372.rules** in **/etc/udev/rules.d/**

    `# gedit /etc/udev/rules.d/70-huawei_e8372.rules`

    - Paste the following piece of code in it, and save it:
  3. @aayubkh aayubkh revised this gist Feb 13, 2024. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion huawei_e8372_config.md
    Original file line number Diff line number Diff line change
    @@ -9,7 +9,7 @@ As an elevated user:
    ~~~~
    # lsusb | grep Huawei
    ~~~~
    - Now look exactly for `**12d1:1f01**` - not overlooking a single character mismatch. If all good, proceed.
    - Now look exactly for `12d1:1f01` - not overlooking a single character mismatch. If all good, proceed.

    - Using your favourite editor, with elevated privileges, create a new file called **70-huawei_e8372.rules** in **/etc/udev/rules.d/**
    `# gedit /etc/udev/rules.d/70-huawei_e8372.rules`
  4. @aayubkh aayubkh revised this gist Feb 13, 2024. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion huawei_e8372_config.md
    Original file line number Diff line number Diff line change
    @@ -9,7 +9,7 @@ As an elevated user:
    ~~~~
    # lsusb | grep Huawei
    ~~~~
    - Now look exactly for **12d1:1f01** - not overlooking a single character mismatch. If all good, proceed.
    - Now look exactly for `**12d1:1f01**` - not overlooking a single character mismatch. If all good, proceed.

    - Using your favourite editor, with elevated privileges, create a new file called **70-huawei_e8372.rules** in **/etc/udev/rules.d/**
    `# gedit /etc/udev/rules.d/70-huawei_e8372.rules`
  5. @aayubkh aayubkh revised this gist Feb 13, 2024. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions huawei_e8372_config.md
    Original file line number Diff line number Diff line change
    @@ -4,10 +4,10 @@
    3. libusb-devel(Fedora), libusb-dev(Debian based)

    # Configuration
    By default, your linux box would register your Huawei E8372 as a Mass Storage device and not (somehow) as a modem. First, make **sure** you have the exace same device we're talking about. This can be confirmed by looking at 2 values. Give the following command (while the dongle is plugged in):
    By default, your linux box would register your Huawei E8372 as a Mass Storage device and not (somehow) as a modem. First, make **sure** you have the exace same device we're talking about. This can be confirmed by looking at two values using the following command (while the dongle is plugged in):
    As an elevated user:
    ~~~~
    sudo su
    lsusb | grep Huawei
    # lsusb | grep Huawei
    ~~~~
    - Now look exactly for **12d1:1f01** - not overlooking a single character mismatch. If all good, proceed.

  6. @aayubkh aayubkh revised this gist Feb 13, 2024. 1 changed file with 4 additions and 4 deletions.
    8 changes: 4 additions & 4 deletions huawei_e8372_config.md
    Original file line number Diff line number Diff line change
    @@ -9,10 +9,10 @@ By default, your linux box would register your Huawei E8372 as a Mass Storage de
    sudo su
    lsusb | grep Huawei
    ~~~~
    - Now look exactly for **12d1:1f01**. Even if one letter is other than this, do not proceed.
    - Now look exactly for **12d1:1f01** - not overlooking a single character mismatch. If all good, proceed.

    - Using your favourite editor, create a new file called **70-huawei_e8372.rules** in **/etc/udev/rules.d/**
    `gedit /etc/udev/rules.d/70-huawei_e8372.rules`
    - Using your favourite editor, with elevated privileges, create a new file called **70-huawei_e8372.rules** in **/etc/udev/rules.d/**
    `# gedit /etc/udev/rules.d/70-huawei_e8372.rules`

    - Paste the following piece of code in it, and save it:

    @@ -21,6 +21,6 @@ ACTION=="add", SUBSYSTEM=="usb", ATTRS{idVendor}=="12d1", ATTRS{idProduct}=="1f0

    - Finally, reload all the udev rules by:

    `udevadm control --reload-rules`
    `# udevadm control --reload-rules`

    - Now restart your PC and you're good to go now. Whenever you plug-in your dongle, you'll have it automatically registered as a modem.
  7. @aayubkh aayubkh revised this gist Jul 25, 2016. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions huawei_e8372_config.md
    Original file line number Diff line number Diff line change
    @@ -5,10 +5,10 @@

    # Configuration
    By default, your linux box would register your Huawei E8372 as a Mass Storage device and not (somehow) as a modem. First, make **sure** you have the exace same device we're talking about. This can be confirmed by looking at 2 values. Give the following command (while the dongle is plugged in):
    ~~~~
    ~~~~
    sudo su
    lsusb | grep Huawei
    ~~~~
    ~~~~
    - Now look exactly for **12d1:1f01**. Even if one letter is other than this, do not proceed.

    - Using your favourite editor, create a new file called **70-huawei_e8372.rules** in **/etc/udev/rules.d/**
  8. @aayubkh aayubkh revised this gist Jul 25, 2016. 1 changed file with 4 additions and 4 deletions.
    8 changes: 4 additions & 4 deletions huawei_e8372_config.md
    Original file line number Diff line number Diff line change
    @@ -5,10 +5,10 @@

    # Configuration
    By default, your linux box would register your Huawei E8372 as a Mass Storage device and not (somehow) as a modem. First, make **sure** you have the exace same device we're talking about. This can be confirmed by looking at 2 values. Give the following command (while the dongle is plugged in):
    ~~~~
    sudo su
    lsusb | grep Huawei
    ~~~~
    ~~~~
    sudo su
    lsusb | grep Huawei
    ~~~~
    - Now look exactly for **12d1:1f01**. Even if one letter is other than this, do not proceed.

    - Using your favourite editor, create a new file called **70-huawei_e8372.rules** in **/etc/udev/rules.d/**
  9. @aayubkh aayubkh revised this gist Jul 25, 2016. No changes.
  10. @aayubkh aayubkh revised this gist Jul 25, 2016. 1 changed file with 4 additions and 4 deletions.
    8 changes: 4 additions & 4 deletions huawei_e8372_config.md
    Original file line number Diff line number Diff line change
    @@ -5,13 +5,13 @@

    # Configuration
    By default, your linux box would register your Huawei E8372 as a Mass Storage device and not (somehow) as a modem. First, make **sure** you have the exace same device we're talking about. This can be confirmed by looking at 2 values. Give the following command (while the dongle is plugged in):
    `sudo su`

    `lsusb | grep Huawei`
    ~~~~
    sudo su
    lsusb | grep Huawei
    ~~~~
    - Now look exactly for **12d1:1f01**. Even if one letter is other than this, do not proceed.

    - Using your favourite editor, create a new file called **70-huawei_e8372.rules** in **/etc/udev/rules.d/**

    `gedit /etc/udev/rules.d/70-huawei_e8372.rules`

    - Paste the following piece of code in it, and save it:
  11. @aayubkh aayubkh revised this gist Jul 25, 2016. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion huawei_e8372_config.md
    Original file line number Diff line number Diff line change
    @@ -2,10 +2,11 @@
    1. usb_modeswitch, usb_modeswitch-data
    2. libusb1
    3. libusb-devel(Fedora), libusb-dev(Debian based)

    # Configuration
    By default, your linux box would register your Huawei E8372 as a Mass Storage device and not (somehow) as a modem. First, make **sure** you have the exace same device we're talking about. This can be confirmed by looking at 2 values. Give the following command (while the dongle is plugged in):
    `sudo su`

    `lsusb | grep Huawei`
    - Now look exactly for **12d1:1f01**. Even if one letter is other than this, do not proceed.

  12. @aayubkh aayubkh revised this gist Jul 25, 2016. 1 changed file with 0 additions and 4 deletions.
    4 changes: 0 additions & 4 deletions huawei_e8372_config.md
    Original file line number Diff line number Diff line change
    @@ -1,12 +1,8 @@
    ------------
    # Dependencies
    ------------
    1. usb_modeswitch, usb_modeswitch-data
    2. libusb1
    3. libusb-devel(Fedora), libusb-dev(Debian based)
    -------------
    # Configuration
    -------------
    By default, your linux box would register your Huawei E8372 as a Mass Storage device and not (somehow) as a modem. First, make **sure** you have the exace same device we're talking about. This can be confirmed by looking at 2 values. Give the following command (while the dongle is plugged in):
    `sudo su`

  13. @aayubkh aayubkh created this gist Jul 25, 2016.
    29 changes: 29 additions & 0 deletions huawei_e8372_config.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,29 @@
    ------------
    # Dependencies
    ------------
    1. usb_modeswitch, usb_modeswitch-data
    2. libusb1
    3. libusb-devel(Fedora), libusb-dev(Debian based)
    -------------
    # Configuration
    -------------
    By default, your linux box would register your Huawei E8372 as a Mass Storage device and not (somehow) as a modem. First, make **sure** you have the exace same device we're talking about. This can be confirmed by looking at 2 values. Give the following command (while the dongle is plugged in):
    `sudo su`

    `lsusb | grep Huawei`
    - Now look exactly for **12d1:1f01**. Even if one letter is other than this, do not proceed.

    - Using your favourite editor, create a new file called **70-huawei_e8372.rules** in **/etc/udev/rules.d/**

    `gedit /etc/udev/rules.d/70-huawei_e8372.rules`

    - Paste the following piece of code in it, and save it:

    _`ACTION=="add", SUBSYSTEM=="usb", ATTRS{idVendor}=="12d1", ATTRS{idProduct}=="1f01", RUN+="/usr/sbin/usb_modeswitch -v 12d1 -p 1f01 -M '55534243123456780000000000000a11062000000000000100000000000000'"
    ACTION=="add", SUBSYSTEM=="usb", ATTRS{idVendor}=="12d1", ATTRS{idProduct}=="1f01", RUN+="/bin/bash -c 'modprobe option && echo 12d1 14db > /sys/bus/usb-serial/drivers/option1/new_id'"`_

    - Finally, reload all the udev rules by:

    `udevadm control --reload-rules`

    - Now restart your PC and you're good to go now. Whenever you plug-in your dongle, you'll have it automatically registered as a modem.