Connect dexp wfa 152 to Debian 11 and other wi-fi adapters

To set up a wireless connection, use the following commands:

  1. dmesg | grep wlan

  2. Add the following lines to /etc/apt/sources.list:

    deb http://ftp.de.debian.org/debian/ stretch main non-free
    deb-src http://ftp.de.debian.org/debian/ stretch main non-free
    
    
  3. Install the necessary packages:

    apt-get install firmware-ralink firmware-misc-nonfree wireless-tools wpasupplicant
    
    
  4. Load the kernel module:

    modprobe mt7601u
    
    
  5. Scan for available wireless networks:

    iwlist wlan0 scanning | grep -i essid
    
    
  6. Generate a configuration file for wpa_supplicant:

    wpa_passphrase MySuperWiFi mybestpassword > /etc/wpa_supplicant/wpa_supplicant.conf
    
    
  7. Start wpa_supplicant:

    wpa_supplicant -D wext -i wlan0 -c /etc/wpa_supplicant/wpa_supplicant.conf -B
    
    
  8. Assign an IP address to the wireless interface:

    ifconfig wlan0 192.168.1.10
    
    
  9. Obtain an IP address via DHCP:

    dhclient wlan0