Tuesday, October 1, 2019

tuya-convert on virtualbox with rtl8192 or tp-link wn823n wireless

This will require a few steps to get the tuya-convert working with virtual box environment with this particular wireless adapter as the built in driver does not support the AP mode required.


  1. Download Kali 2018.4 install in virtualbox on a virtual drive
  2. add a usb device filter for your usb wifi stick
  3. reboot
  4. apt-get install git, build-essentials
  5. git clone https://github.com/clnhub/rtl8192eu-linux
  6. read the docs above
  7. install the latest linux kernel and headers
  8. apt-get install linux-image-5.2 for exmaple
  9. then..

sudo apt -y install linux-headers-generic build-essential dkms git
in the rl8192eu directory: 
./install_wifi.sh

  1. reboot
  2. git clone https://github.com/ct-Open-Source/tuya-convert
  3. read the docs
  4. in tuya-convert
  5. then you'll probably need to disable the rfkill
  6. rfkill unblock all
  7. and enable the wifi
  8. nmcli nm wifi on
  9. then ./start_flash.sh
  10. follow the remaining instructions... should be cooking



2 comments:

  1. Finding these steps extremely hard to follow, but your guide is one of the only ones for the exact adapter I'm using. Can you elaborate on the 'nmcli nm wifi on' command? I get the following error:

    Error: argument 'nm' not understood. Try passing --help instead.

    Everything else seems to have worked, and to my surprise, running iw list does actually now show AP as an option under supported interface modes:

    └─$ iw list
    Wiphy phy0
    wiphy index: 0
    max # scan SSIDs: 9
    max scan IEs length: 2304 bytes
    max # sched scan SSIDs: 0
    max # match sets: 0
    Retry short limit: 7
    Retry long limit: 4
    Coverage class: 0 (up to 0m)
    Supported Ciphers:
    * WEP40 (00-0f-ac:1)
    * WEP104 (00-0f-ac:5)
    * TKIP (00-0f-ac:2)
    * CCMP-128 (00-0f-ac:4)
    Available Antennas: TX 0 RX 0
    Supported interface modes:
    * IBSS
    * managed
    * AP
    * P2P-client
    * P2P-GO

    But running the ./start_flash.sh in tuya-convert just says:

    Cleaning up...
    No screen session found.
    No screen session found.
    No screen session found.
    No screen session found.
    Closing AP
    Exiting...

    I suspect I have missed something, but can't for the life of me figure out what...!

    ReplyDelete