# Linux Installation Guide

## Installation on Kali Linux 2024+

!!!warning
The standard package installation method no longer works on newer Kali Linux versions (2024+). Please follow the updated installation method below.
!!!

### Removing Old Drivers

First, check for and remove any existing drivers:

1. Check existing drivers:
```bash
sudo dkms status
```

2. If you find any 8812au drivers, remove them:
```bash
sudo dkms uninstall 8812au/5.6.4.2_35491.20191025
sudo dkms remove 8812au/5.6.4.2_35491.20191025 --all
```

### Installing New Drivers

1. Clone the driver repository with specific version:
```bash
git clone -b v5.6.4.2 https://github.com/aircrack-ng/rtl8812au.git
cd rtl8812au
```

2. Checkout the compatible commit:
```bash
git checkout 63cf0b4
```

3. Install the driver:
```bash
sudo make dkms_install
```

4. Restart your system:
```bash
sudo reboot
```

5. After restart, plug in your ALFA AWUS036ACS adapter

### Troubleshooting

If you encounter issues:

1. Ensure all dependencies are installed:
```bash
sudo apt update
sudo apt install bc build-essential linux-headers-$(uname -r)
```

2. Check if the driver is properly loaded:
```bash
sudo lsmod | grep 8812au
```

3. Verify the adapter is recognized:
```bash
sudo lsusb | grep ALFA
```

*[CSS]: Cascading Style Sheet
*[HTML]: Hyper Text Markup Language
