Hello everyone!
I’ve been using DietPi on my RPI4 only with ethernet and therefore disabled the wifi module. I brought it with me somewhere else but I don’t have an ethernet cable and wanted to reactivate the wifi module and add an AP. I have access to the root filesystem on my Linux machine easily, and been toying with network/interfaces file and wpa_supplicant.conf, to no avail.
Here is my /etc/network/interfaces file:
# Location: /etc/network/interfaces
# Please modify network settings via: dietpi-config
# Or create your own drop-ins in: /etc/network/interfaces.d/
# Drop-in configs
source interfaces.d/*
# Local
auto lo
iface lo inet loopback
# Ethernet
allow-hotplug eth0
iface eth0 inet dhcp
address 192.168.1.28
netmask 255.255.255.0
gateway 192.168.1.1
#dns-nameservers 192.168.1.1
# WiFi
#allow-hotplug wlan0
iface wlan0 inet dhcp
address 192.168.1.27
netmask 255.255.255.0
gateway 192.168.1.1
#dns-nameservers 192.168.1.1
wireless-power off
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
My /etc/wpa_supplicant/wpa_supplicant.conf:
country=GB
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
network={
ssid="my_ssid"
scan_ssid=1
key_mgmt=WPA-PSK
psk="my_pass"
}
I tried setting “wireless-power on” and uncommenting the allow-hotplug command. After different tries, I’ve came to the conclusion that wifi is disabled somewhere else.
How can I enable the wifi and add an AP by just accessing the filesystem? Thanks!