Skip to content

Instantly share code, notes, and snippets.

@saii9
Last active April 29, 2018 15:19
Show Gist options
  • Save saii9/ebe4afe55831565cf008c185a02d3a37 to your computer and use it in GitHub Desktop.
Save saii9/ebe4afe55831565cf008c185a02d3a37 to your computer and use it in GitHub Desktop.
installation steps for rtl8723bu.sh on beaglebone
#To tether internet over USB (Ubuntu Only)
On Host machine
ifconfig
ifconfig enx544a16bf6b4e 192.168.7.1
sysctl net.ipv4.ip_forward=1
iptables --table nat --append POSTROUTING --out-interface wlp2s0 -j MASQUERADE
iptables --append FORWARD --in-interface nx544a16bf6b4e -j ACCEPT
On BeagleBone
route add default gw 192.168.7.1
echo "nameserver 8.8.8.8" >> /etc/resolv.conf
sudo apt-get update
sudo apt-get install linux-headers-`uname -r`
ln -s /usr/src/linux-headers-`uname -r`/ /var/lib/`uname -r`/build
#download src from git
git clone https://github.com/lwfinger/rtl8723bu.git
cd rtl8723bu
#wget https://github.com/lwfinger/rtl8723bu/archive/master.zip
#unzip master.zip && rm master.zip
#cd rtl8723bu-master
#making and installing the driver
make
sudo make install
sudo modprobe -v 8723bu
connmanctl enable wifi
connmanctl scan wifi
connmanctl services | grep Dwarakamai
#write config to /var/lib/connman/wifi.config
[service_wifi_76da38b01110_44776172616b616d6169_managed_psk]
Type = wifi
Security = wpa2
Name = Dwarakamai
Passphrase = *********
AutoConnect = true
#connman interactive mode
connmanctl
connmanctl> agent on
connmanctl> connect wifi_76da38b01110_44776172616b616d6169_managed_psk
#restart the service
systemctl stop connman
systemctl start connman
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment