Last active
January 5, 2026 13:49
-
-
Save snooptheone/70742ff0c8ef386c45cda8d2ba34ab4e to your computer and use it in GitHub Desktop.
This script is for installing the UGREEN AX1800 (Realtek rtl8852au) USB WiFi adapter on SteamOS, may work on other dongles using the same chip but I didn´t test it.
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 | |
| # This script is for installing the UGREEN AX1800 (Realtek rtl8852au) USB WiFi adapter on SteamOS | |
| # It is based on the instructions from | |
| # https://github.com/lwfinger/rtl8852au | |
| # and | |
| # https://techship.com/faq/how-to-change-usb-mode-from-storage-to-cellular-device-for-huawei-ms2372-series-usb-4g-lte-cellular-sticks-in-linux-systems/ | |
| set -e | |
| mkdir -p ~/bin | |
| cd ~/bin | |
| rm -rf rtl8852au | |
| sudo steamos-readonly disable | |
| sudo pacman-key --populate | |
| sudo pacman-key --refresh-keys | |
| sudo pacman -Syyu | |
| sudo pacman -S --noconfirm linux-neptune-headers dkms git bc iw mokutil usb_modeswitch | |
| git clone https://github.com/lwfinger/rtl8852au.git | |
| cd rtl8852au | |
| make clean | |
| make | |
| sudo make sign-install | |
| # Switch on USB 3.0 mode | |
| sudo sh -c "echo '1' > /sys/module/8852au/parameters/rtw_switch_usb_mode" | |
| # /etc/usb_modeswitch.d/0bda:1a2b file required to automatically switch from disk mode to wifi mode | |
| # Disk mode is used to install the driver on windows | |
| cat <<EOF | sudo tee /etc/usb_modeswitch.d/0bda:1a2b | |
| # UGREEN AX1800 | |
| DefaultVendor= 0x0bda | |
| DefaultProduct= 0x1a2b | |
| TargetVendor=0x0bda:1a2b | |
| TargetProduct=0x8832 | |
| StandardEject=1 | |
| EOF | |
| sudo steamos-readonly enable | |
| echo "Should be installed now. Please reboot and check if it works." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
how can i use it for debian 12 ??