Ubuntu 16.04 - wifi adapter rtl8811au

Post Reply
belgeran
Posts: 3
Joined: Sat Sep 08, 2018 6:24 pm
languages_spoken: english
ODROIDs: XU4
Has thanked: 0
Been thanked: 0
Contact:

Ubuntu 16.04 - wifi adapter rtl8811au

Post by belgeran »

hi, am trying to do to this..
I have a cluster of MC (XU4s).... wanted to setup one with wifi connection, and have the rest tap on this wifi connection through a switch/router.

Any idea how i can set this up?

I've tried to install the wifi adapter on 1 of the XU4, but have hit roadblocks on it
lsusb -> Bus 001 Device 002: ID 0bda:a811 Realtek Semiconductor Corp.
uname -r -> 4.14.0+
The drivers i tried didn't work out somehow
- https://github.com/abperiasamy/rtl8812AU_8821AU_linux
- https://github.com/aircrack-ng/rtl8814au
Maybe they don't support arm version?... i know i got the aircrack-ng working in ubuntu x64 before.

If anyone has attempted this before could share their steps, please help me out!

User avatar
odroid
Site Admin
Posts: 39251
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean
ODROIDs: ODROID
Has thanked: 2569 times
Been thanked: 1407 times
Contact:

Re: Ubuntu 16.04 - wifi adapter rtl8811au

Post by odroid »

Try this latest Ubuntu 20.04.3 image. RTL8811AU chipset should work out of the box.
https://wiki.odroid.com/odroid-xu4/os_i ... e/20210926

belgeran
Posts: 3
Joined: Sat Sep 08, 2018 6:24 pm
languages_spoken: english
ODROIDs: XU4
Has thanked: 0
Been thanked: 0
Contact:

Re: Ubuntu 16.04 - wifi adapter rtl8811au

Post by belgeran »

mmm question... is the mate release inherently more stable and friendlier than the minimal release? Mate always comes with less issues/bugs?

User avatar
odroid
Site Admin
Posts: 39251
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean
ODROIDs: ODROID
Has thanked: 2569 times
Been thanked: 1407 times
Contact:

Re: Ubuntu 16.04 - wifi adapter rtl8811au

Post by odroid »

Since you have a headless MC1 cluster, consider using a minimal 20.04 image.
https://wiki.odroid.com/odroid-xu4/os_i ... l/20210928

Or, wait several days. We will release Ubuntu 22.04 minimal image soon.

User avatar
odroid
Site Admin
Posts: 39251
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean
ODROIDs: ODROID
Has thanked: 2569 times
Been thanked: 1407 times
Contact:

Re: Ubuntu 16.04 - wifi adapter rtl8811au

Post by odroid »

Ubuntu 22.04 minimal image has been released.
https://wiki.odroid.com/odroid-xu4/os_i ... l/20220601
These users thanked the author odroid for the post (total 2):
InsideOut (Thu Jun 02, 2022 6:10 pm) • mad_ady (Tue Jun 07, 2022 5:01 pm)

belgeran
Posts: 3
Joined: Sat Sep 08, 2018 6:24 pm
languages_spoken: english
ODROIDs: XU4
Has thanked: 0
Been thanked: 0
Contact:

Re: Ubuntu 16.04 - wifi adapter rtl8811au

Post by belgeran »

thanks!.. got the ubuntu 22.04 with the wifi adapter running now..
Used nmtui and configured the wifi...

follow up question... since i have a clusters of MCs... possible to advice me on how to do this..

For reference..
XU4-1 = 192.168.1.1 (ethernet), 172.0.0.1 (wifi)
XU4-2 = 192.168.1.2 (ethernet)
Switch/Router = 192.168.1.254, connected on both ethernet ports..
how do i share XU4-1 wifi connection with XU4-2, through the switch/router?

User avatar
odroid
Site Admin
Posts: 39251
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean
ODROIDs: ODROID
Has thanked: 2569 times
Been thanked: 1407 times
Contact:

Re: Ubuntu 16.04 - wifi adapter rtl8811au

Post by odroid »

We've used only nmcli instead nmtui.
https://wiki.odroid.com/troubleshooting ... etup_nmcli

Anyway, I have no idea about your network configuration.
I hope other network experts can help you.

User avatar
mad_ady
Posts: 10649
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4 (HC1, HC2), C1+, C2, C4 (HC4), N1, N2, H2, Go, Go Advance, M1
Location: Bucharest, Romania
Has thanked: 645 times
Been thanked: 916 times
Contact:

Re: Ubuntu 16.04 - wifi adapter rtl8811au

Post by mad_ady »

I assume that you want to route all traffic through 172.0.0.1 (let's call the interface wlan0). In this case - the Switch/Router is just a layer2 switch and is not relevant to the discussion.

To get networking going, here's what you need to do:
1. Enable IPv4 routing on XU4-1 (only): https://linuxconfig.org/how-to-turn-on- ... g-in-linux
2. On XU4-2 (and on any other device connected to that layer 2 network) configure 192.168.1.1 as default gateway (you can do this with nmtui for example)
3. (optionally) - turn on NAT on XU4-1, so that the 192.168.1.0/24 network gets NAT'ed to 172.0.0.1. Otherwise, without NAT you will need to have a static route at the other end of the wifi link that points to 192.168.1.0/24 via 172.0.0.1.
To NAT via wlan0, you'd need to run something like:

Code: Select all

iptables -t nat -A POSTROUTING -o wlan0 -j MASQUERADE
You should add the code above to /etc/rc.local (or some other startup script/service). Not sure if nmtui has an option to configure NAT for you.

Post Reply

Return to “Ubuntu”

Who is online

Users browsing this forum: No registered users and 3 guests