From fc7a8c6dc5cbfeb9911707b5e24d2b0c9e9db200 Mon Sep 17 00:00:00 2001 From: Yidi Qi Date: Wed, 10 Jun 2020 22:59:24 -0400 Subject: [PATCH 1/2] Update README.md Update a workaround for predictable network interface names on Ubuntu --- README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/README.md b/README.md index c68442c..838111d 100644 --- a/README.md +++ b/README.md @@ -8,6 +8,16 @@ mkdir -p ~/build cd ~/build git clone https://github.com/brektrou/rtl8821CU.git ``` +## Check the name of the interface + +Check the interface name of your wifi adapter using 'ifconfig'. Usually, it will be wlan0 by default, but it may vary depends on the kernel and your device. On Ubuntu, for example, it may be named as wlx + MAC address. (https://www.freedesktop.org/wiki/Software/systemd/PredictableNetworkInterfaceNames/) + +If this is the case, you can either disable the feature following the link above, or replace the name used in the driver by + +、、、 +grep -lr . | xargs sed -i '' -e '/ifcfg-wlan0/!s/wlan0//g' +、、、 + ## Build and install with DKMS DKMS is a system which will automatically recompile and install a kernel module when a new kernel gets installed or updated. To make use of DKMS, install the dkms package. @@ -81,3 +91,4 @@ Use the tool 'iw', please don't use other tools like 'airmon-ng' ``` iw dev wlan0 set monitor none ``` + From b5485f7cb8ff75739e6909118bcba1a043f31c50 Mon Sep 17 00:00:00 2001 From: Yidi Qi Date: Wed, 10 Jun 2020 22:59:55 -0400 Subject: [PATCH 2/2] Update README.md --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 838111d..9f954d3 100644 --- a/README.md +++ b/README.md @@ -10,13 +10,13 @@ git clone https://github.com/brektrou/rtl8821CU.git ``` ## Check the name of the interface -Check the interface name of your wifi adapter using 'ifconfig'. Usually, it will be wlan0 by default, but it may vary depends on the kernel and your device. On Ubuntu, for example, it may be named as wlx + MAC address. (https://www.freedesktop.org/wiki/Software/systemd/PredictableNetworkInterfaceNames/) +Check the interface name of your wifi adapter using `ifconfig`. Usually, it will be wlan0 by default, but it may vary depends on the kernel and your device. On Ubuntu, for example, it may be named as wlx + MAC address. (https://www.freedesktop.org/wiki/Software/systemd/PredictableNetworkInterfaceNames/) If this is the case, you can either disable the feature following the link above, or replace the name used in the driver by -、、、 +``` grep -lr . | xargs sed -i '' -e '/ifcfg-wlan0/!s/wlan0//g' -、、、 +``` ## Build and install with DKMS