--
You received this message because you are subscribed to a topic in the Google Groups "qubes-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/qubes-users/2Z1rD5fn6io/unsubscribe.
To unsubscribe from this group and all its topics, send an email to qubes-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/qubes-users/264dc768-7b1e-1fdc-2978-5fe25feca599%40danwin1210.me.
I searched a little because the whole TF_Card_reader seemed a really strange identifier to me for a wifi dongle, and I found https://gist.github.com/jfstenuit/13becfe728046074f5aaa0cb7f899ab9 . is for a different model, but the same principle may well apply. If so, you'll need to tell the dongle to switch to wifi connection mode before it'll work. To make triaging easier, it may be handy to use a fedora live boot USB.
--
You received this message because you are subscribed to a topic in the Google Groups "qubes-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/qubes-users/2Z1rD5fn6io/unsubscribe.
To unsubscribe from this group and all its topics, send an email to qubes-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/qubes-users/a57f24a6-82ef-4c62-b5ea-cae851b39a3f%40googlegroups.com.
There are two ID numbers separated by colons 12d1 & 14dc
These are your two original ID numbers and you are going to need them later on in the same order, so write them down.
Next you need to be able to manually put your device into the correct mode i.e get it working as a modem. The command for this will be:
$ sudo usb_modeswitch -J -v 0x12d1 -p 0x14dc
Yes, I have also found something here:Here it says that it should work well with kernel higher than 4.7:Maybe this is more helpful, but I probably need som help if I’m going to do this:I will take a closer look on the last one as it seems to fit better with what I’m experiencing although Qubes OS behave a little bit different...I hope you will help me configure it correctly...
tor. 30. jan. 2020 kl. 17.52 skrev Foppe de Haan <0spin...@gmail.com>:
I searched a little because the whole TF_Card_reader seemed a really strange identifier to me for a wifi dongle, and I found https://gist.github.com/jfstenuit/13becfe728046074f5aaa0cb7f899ab9 . is for a different model, but the same principle may well apply. If so, you'll need to tell the dongle to switch to wifi connection mode before it'll work. To make triaging easier, it may be handy to use a fedora live boot USB.
--
in the terminal of the qube that the modem is connected to, so presumably sys-net.
On 1/30/20 6:18 PM, M E wrote:
In the last link I send, it says:
Bus 001 Device 007: ID 12d1:14dc Huawei Technologies Co., Ltd.
There are two ID numbers separated by colons 12d1 & 14dc
These are your two original ID numbers and you are going to need them later on in the same order, so write them down.
Next you need to be able to manually put your device into the correct mode i.e get it working as a modem. The command for this will be:$ sudo usb_modeswitch -J -v 0x12d1 -p 0x14dc
In which terminal shall I write this ?
tor. 30. jan. 2020 kl. 18.09 skrev M E <annee...@gmail.com>:
Yes, I have also found something here:
Here it says that it should work well with kernel higher than 4.7:
Maybe this is more helpful, but I probably need som help if I’m going to do this:
I will take a closer look on the last one as it seems to fit better with what I’m experiencing although Qubes OS behave a little bit different...
I hope you will help me configure it correctly...
tor. 30. jan. 2020 kl. 17.52 skrev Foppe de Haan <0spin...@gmail.com>:
I searched a little because the whole TF_Card_reader seemed a really strange identifier to me for a wifi dongle, and I found https://gist.github.com/jfstenuit/13becfe728046074f5aaa0cb7f899ab9 . is for a different model, but the same principle may well apply. If so, you'll need to tell the dongle to switch to wifi connection mode before it'll work. To make triaging easier, it may be handy to use a fedora live boot USB.
--
You received this message because you are subscribed to a topic in the Google Groups "qubes-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/qubes-users/2Z1rD5fn6io/unsubscribe.
To unsubscribe from this group and all its topics, send an email to qubes-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/qubes-users/a57f24a6-82ef-4c62-b5ea-cae851b39a3f%40googlegroups.com.
-- -----BEGIN PGP PUBLIC KEY BLOCK----- mQINBFjqNnYBEADR/lrTia4IbwINTGj/Q53m+baKiNnWnLBOPJVYn2hhldUQY9m7 nNOgvL0sY9tzcNOW9FNQ4MKkEbmAl645z2O1jfm4ae+SE5yqi3gbtcbsbvO5mHkl PYSLb4B6FRd9drJULfvg0Igb7qMe0ojjaWv/OiEA3Ms1rHfx8RHI3kcPuJhjQxqw 7bWusOYMHQ5ZIBWUZVkk7zJNSTpoEiRVPEIoneQJLO63xkBmTyoYdxu9sTeS7t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UWVT1qS+FnTCpnkpxN9vYb0tMox6 SpczGBgbB3+XSZ4y3xvBBazDwK0hx1lDQtf2Zg0YbJPcl6Srx8DDS4XOavm6Yrzp gt4xknX9Y3gimPdpm+4B0alY/a4Q+bl28bCs2t9HdEcxYpmS5dkkrI9u21cAeaKQ T3YTks44up7dgsLHwqZzYkOC6m7lh+MA6jp5/nXEn7GJFXyZvWZCr3yRCniGFAxd Kk2AZwyCulI4zeiptGrqLBWR0kJQbCe1GSPHE0jGqQKRENHuYIOKsmDhNZRAdmBS UcO388pRSlUF6OWoHyOYOKbVEAsQRADdeEuSaSA5Yzf3lHoLN4Zh5ZXHekCeIqKL iuX5YWhWPcLfAkOT0dH3pajG8Z5nMAFfIn22bYF7+I5IWMJZ3M6A5P15YMLnjta8 5xfQuLLDVWYgdQPdufTU+zcLKFeYGon+7qSOE/8IzmNvWHf97FSWefdeH18eLY9A aGjKfJ7SD3fRnnx7CJJumR/j860QZrPkXIK+yhQG49nXJSFv8eR3ipCdOhEPD/tG ZQ6p7oUZKH2YayzZcF2dzqiC/CZFJDz3fcfuh4xGzIaiHW3O/V5qktXWKQB3R1Bf CJm1UauVgwt41zd5 =WSya -----END PGP PUBLIC KEY BLOCK-----
Create a file with a text editor of any kind and insert the following:
#!/bin/bash
sudo usb_modeswitch -J -v 0x12d1 -p 0x14dc
Be sure to include YOUR numbers.
Then save the file with a relevant name and save it in a place (remember the path to the directory) that you will not delete it by accident for as long as you will need to use your Huawei modem.
The next step is to get Fedora to know how you want this script to be dealt with, to run it as a script and not open it to view the file.
To execute the following command you should be in the target directory where you saved the file to, so for example Desktop if that is where you did save it:
$ sudo chmod +x {your file name}
This will let the system know to run this as a script.
The next step is to create a rule file in the same place as all the other rules. So go to /lib/udev/rules.d/
give yourself Super User rights by typing command:
$ su
You will be prompted for password and then you should see the # key appear.
Name this rule anything you want, perhaps 99-myhuaweimodem.rules.
I do recommend however to use the number 99 so we can find the rules easily and also to give it a .rules ending so that it fits in with the rest.
When I was in the path /lib/udev/rules.d/ I opened a terminal there and then used the command
$ nano
This should open up a text editor in the terminal where you will paste the following being sure to use your device numbers where you see them in this line:
ACTION==“add”, ATTRS{idVendor}==“12d1”, ATTRS{idProduct}==“14dc”, RUN+="/home/{your-user-name}/Desktop/{your-file-name}"
Please ensure that you use your numbers and that the path
/home/{your-user-name}/Desktop/{your-file-name} corresponds to where you saved the file(script) you created earlier and the user name etc is yours obviously and do not include the { } signs! Then save this file.
I’m uncertain about if I shall replace {idVendor} and {idProduct} with something different (don’t know what) or they shall be left as such.
The last and final step:
The user (yourself) needs the authorization to run a command such as sudo without a password. So that is done by adding an exception to the sudoers file which can be found in /etc/sudoers
However, this monkey won’t let us make any changes to this file unless we are are sudo and admin ourselves, so you need to edit this text file as root (sudo or su) and do it using nano, the terminal text editor like we did earlier using the command:
$ sudo nano sudoers
At the very end of this file once we have opened it we need to add the line at the bottom:
{your-user-name} ALL=NOPASSWD: /usr/sbin/usb_modeswitch
Be sure to insert your system user name where I wrote {your-user-name} without the { } signs.
Now save the changes you made and restart your machine.
The changes should take effect and now when you insert your modem, it will work as a modem automatically.
I searched a little because the whole TF_Card_reader seemed a really strange identifier to me for a wifi dongle, and I found https://gist.github.com/jfstenuit/13becfe728046074f5aaa0cb7f899ab9 . is for a different model, but the same principle may well apply. If so, you'll need to tell the dongle to switch to wifi connection mode before it'll work. To make triaging easier, it may be handy to use a fedora live boot USB.
For a guide to use the text editor “Nano”, see here: https://linuxize.com/post/how-to-use-nano-text-editor/
--
You received this message because you are subscribed to a topic in the Google Groups "qubes-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/qubes-users/2Z1rD5fn6io/unsubscribe.
To unsubscribe from this group and all its topics, send an email to qubes-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/qubes-users/bc67e834-e967-4875-a6bd-85c2e9a7d88a%40googlegroups.com.