Last active
February 16, 2025 05:42
-
-
Save falms/c499e92c91366f141b3e4a5b69b37b09 to your computer and use it in GitHub Desktop.
Setup WiFi Explorer Pro Remote Sensor on Ubuntu Server arm64
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| set -eux | |
| # ref: https://intuitibits.com/help/wifiexplorerpro3/#/topic-en.lproj-connect_remote_sensor | |
| cd "$HOME" | |
| sudo apt update | |
| sudo apt install -y iproute2 iw | |
| # for Active Mode | |
| sudo apt install -y git build-essential libnl-genl-3-dev libpcap-dev | |
| git clone https://github.com/intuitibits/scandump.git | |
| pushd scandump | |
| make | |
| sudo make install | |
| popd | |
| # for Passive Mode | |
| sudo apt install -y aircrack-ng tcpdump wpasupplicant | |
| echo "%sudo ALL=(ALL) NOPASSWD: $(which poweroff), $(which reboot), $(which iw), /bin/ip, $(which ip), $(which tcpdump), $(which wpa_cli), $(which airmon-ng), $(which scandump)" |\ | |
| sudo tee /etc/sudoers.d/wlandump | |
| sudo chmod -w /etc/sudoers.d/wlandump | |
| # update regulatory.db | |
| sudo mv /usr/lib/firmware/regulatory.db{,.backup} | |
| sudo mv /usr/lib/firmware/regulatory.db.p7s{,.backup} | |
| wget https://mirrors.edge.kernel.org/pub/software/network/wireless-regdb/wireless-regdb-2023.02.13.tar.gz | |
| tar xvf wireless-regdb-2023.02.13.tar.gz | |
| sudo cp wireless-regdb-2023.02.13/regulatory{.db,.db.p7s} /usr/lib/firmware/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Vagrant.configure("2") do |config| | |
| config.vm.box = "bento/ubuntu-24.04" | |
| config.vm.box_check_update = false | |
| config.vm.network "private_network", ip: "192.168.101.10" | |
| config.vm.provider "vmware_desktop" do |vmware| | |
| vmware.gui = false | |
| vmware.memory = 512 | |
| vmware.cpus = 1 | |
| vmware.vmx["usb.autoConnect.device0"] = "vid:0846 pid:9060 autoclean:0" # NETGEAR A8000 mt7921u | |
| vmware.vmx["usb.autoConnect.device1"] = "vid:0846 pid:9053 autoclean:0" # NETGEAR A6210 mt76x2u | |
| end | |
| # specific to Ubuntu ports in Japan | |
| config.vm.provision "shell", inline: <<-SHELL | |
| set -eux | |
| cat << EOF > /etc/apt/mirrors.list | |
| http://ftp.udx.icscoe.jp/Linux/ubuntu-ports/ | |
| EOF | |
| sed -i -e "s|^URIs:.*|URIs: mirror+file:/etc/apt/mirrors.list|g" /etc/apt/sources.list.d/ubuntu.sources | |
| SHELL | |
| # specific to bento/ubuntu | |
| config.vm.provision "shell", inline: <<-SHELL | |
| set -eux | |
| apt-get update | |
| apt-get install -y --no-install-recommends usbutils | |
| # reinstall deleted /lib/firmware | |
| rm -f /etc/dpkg/dpkg.cfg.d/excludes | |
| apt-get reinstall -y linux-firmware wireless-regdb | |
| SHELL | |
| # generic remote sensor setup | |
| # https://intuitibits.com/help/wifiexplorerpro3/#/topic-en.lproj-connect_remote_sensor | |
| config.vm.provision "shell", inline: <<-SHELL | |
| set -eux | |
| apt-get update | |
| apt-get install -y --no-install-recommends iproute2 iw | |
| # for Active Mode | |
| apt-get install -y --no-install-recommends git build-essential libnl-genl-3-dev libpcap-dev | |
| git clone https://github.com/intuitibits/scandump.git | |
| pushd scandump | |
| make | |
| make install | |
| popd | |
| # for Passive Mode | |
| apt-get install -y --no-install-recommends tcpdump wpasupplicant | |
| SHELL | |
| # specific to Japan | |
| config.vm.provision "shell", inline: <<-SHELL | |
| set -eux | |
| # set regulatory domain to JP on startup | |
| echo "@reboot root iw reg set JP" >> /etc/crontab | |
| reboot | |
| SHELL | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment