From f371fae44ff08a733a0c9116094e38fdd87220f0 Mon Sep 17 00:00:00 2001 From: Christian B Date: Sun, 10 Feb 2019 02:29:07 +0100 Subject: [PATCH] Update README.md --- README.md | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index 06d82a0..de71bcc 100644 --- a/README.md +++ b/README.md @@ -65,18 +65,18 @@ $ apt-get install linux-headers-`uname -r` ``` For Raspberry (RPI 2/3) you will need kernel sources ``` -$ sudo wget "https://raw.githubusercontent.com/notro/rpi-source/master/rpi-source" -O /usr/bin/rpi-source -$ sudo chmod 755 /usr/bin/rpi-source -$ sudo rpi-source +$ wget "https://raw.githubusercontent.com/notro/rpi-source/master/rpi-source" -O /usr/bin/rpi-source +$ chmod 755 /usr/bin/rpi-source +$ rpi-source ``` Then you need to download and compile the driver on the RPI ``` $ git clone https://github.com/aircrack-ng/rtl8812au -b v5.2.20 $ cd rtl* $ make -$ sudo cp 8812au.ko /lib/modules/`uname -r`/kernel/drivers/net/wireless -$ sudo depmod -a -$ sudo modprobe 88XXau +$ cp 8812au.ko /lib/modules/`uname -r`/kernel/drivers/net/wireless +$ epmod -a +$ modprobe 88XXau ``` then run this step to change platform in Makefile, For RPI 2/3: ``` @@ -99,23 +99,23 @@ $ sed -i 's/CONFIG_PLATFORM_ARM64_RPI = n/CONFIG_PLATFORM_ARM64_RPI = y/g' Makef 2. Set interface down ``` - $ sudo ip link set down + $ ip link set down ``` 3. Set monitor mode ``` - $ sudo airmon-ng start + $ airmon-ng start or - $ sudo iw dev set type monitor + $ iw dev set type monitor ``` 4. Set interface up ``` - $ sudo ip link set up + $ ip link set up ``` For setting TX power ``` -$ sudo iwconfig txpower 30 +$ iwconfig txpower 30 or -$ sudo iw nset txpower fixed 3000 +$ iw nset txpower fixed 3000 ``` ### LED control @@ -133,7 +133,6 @@ options 88XXau rtw_led_enable=0 ``` value can be 0 or 1 - #### or dynamically by writing to /proc/net/rtl8812au/$(your interface name)/led_enable, for example: ```sh