-
Disable firewall for WSL vEthernet so that the Windows
adb
binary can communicate with the Linuxadb
package and start theadb
server on Windows side.Set-NetFirewallProfile -DisabledInterfaceAliases "vEthernet (WSL)" adb -a -P 5037 nodaemon server
-
Connect to the
adb
server on Windows from WSL.
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
# ==================================================================================== | |
# Steps for Main Router (must have connected internet on WAN port) | |
# ==================================================================================== | |
# Set your network IP address configuration default is 192.168.1.0/24 | |
uci set network.lan.ipaddr='192.168.1.1' | |
# Recommended, to identify on network and when logged on | |
uci set system.@system[0].hostname='MainRouter' | |
uci set network.lan.hostname="`uci get system.@system[0].hostname`" |
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
# This is to use on image building process to make TP-Link have autoconfigured with factory SSID and KEY | |
mkdir ./files/etc/uci-defaults/ | |
cat <<'__EOF__' > ./files/etc/uci-defaults/99_default-no-eth.sh | |
#!/bin/sh | |
[ "$(uci -q get system.@system[0].init)" = "" ] && exit 0 | |
[ -e /etc/init ] && exit 0 | |
touch /etc/init | |
uci batch <<EOC |
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
# ======================================================== | |
# Setup a Dumb AP, Wired backbone for OpenWRT / LEDE | |
# ======================================================== | |
# Set lan logical interface as bridge (to allow bridge multiple physical interfaces) | |
uci set network.lan.type='bridge' | |
# assign WAN physical interface to LAN (will be available as an additional LAN port now) | |
uci set network.lan.ifname="$(uci get network.lan.ifname) $(uci get network.wan.ifname)" | |
uci del network.wan.ifname | |
# Remove wan logical interface, since we will not need it. | |
uci del network.wan |
NewerOlder