New answers tagged

0

Forgive the edits to your question but it helps my reply. The simplest way of doing this is to use https://github.com/balena-io/wifi-connect as they have done it for you BUT that's not really an answer (and they may one day pull it) so, in the forum spirit of providing a solution on-going, this is a VERY crude way to do it: Built into Python is a simple web ...


1

Overview Wait for network at boot solved my problem. My syslog (see syslog section below) showed: dhcpcd starts and forks isc-dhcp-server starts dhcpcd wlan0 fails to acquire a blank access point dhcpd fails with "No subnet declaration for wlan0" isc-dhcp-server.service fails with result 'exit-code' dhcpcd wlan0 successfully acquires a static IP ...


0

I managed to fix the issue, the error was in wpa_supplicant.conf. It should be this for Raspbian Buster: ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev network={ ssid="YOUR_NETWORK_NAME" psk="YOUR_PASSWORD" key_mgmt=WPA-PSK } Instead I had it set to : network={ ssid="YOUR_NETWORK_NAME" psk="...


0

For those with wired connections you can just do dnf install wpa_supplicant This was fixed issues for me on Fedora Server 33 after a reboot.


2

The problem is that the daemon dhcpd is still managed by old style SysV init scripts, but must be emulated by systemd with its service isc-dhcp-server.service. This makes it more error prone and mixed up management of both init systems. Usually you find (error)messages in the systemd journal with journalctl, with SysV you have to look at /var/log/syslog. Now ...


1

Technically this is a Mac question so I vote to close but I'm sat at a Mac now :-) There are a couple of ways to do this (all work up to Catalina): Use a virtual Linux machine to mount the SD-Card. (I run Parallels 15 most days and it was demo'd running Windows on the M1 Macs) Install Parallels / VMFusion (12 is FOC at the moment) / Java Hyperbox / Oracles ...


2

You are trying to use WiFi-Direct so you do not have to worry about security. WiFi-Direct uses WPA2 encryption by default. You are using old style Debian networking managed with /etc/network/interfaces. This is deprecated on the Raspberry Pi OS based on Buster since years. I haven't used it for a long time so I cannot help much with it. I'm afraid you are ...


1

As noted in a comment You also agree with a permanent uplink connection to an internet router. For this you can use the unused eth0 interface or an additional USB/WiFi dongle. With the latter you can use the onboard WiFi device for a protected uplink and the dongle for a RSN protected ad hoc connection if supported. You are always free to use an unprotected ...


0

After a while of scratching my head at wireshark and systemctl status dhcpcd.service, I decided to try a fresh install of Rpi-OS Lite. Still can't get static eth0 + dynamic wlan0.. But it did somehow fix hostname resolution, so I can ssh with <hostname>.local now. In retrospect this was probably the problem I should have pursued anyway, as it's much ...


2

You can Use systemd-networkd for general networking to solve your problem. Use section ♦ Create interface file for a wired connection and section ♦ Create interface file for a WiFi connection. For the WiFi connection you can use the example as given. It uses DHCP by default. For the wired connection comment option block: using a DHCP server and multicast DNS ...


1

If you want to completely replace the onboard WiFi with the dongle, you can disable it. Hardware devices are managed by overlays on the Raspberry Pi OS. In /boot/overlays/README you will find: Name: disable-wifi Info: Disable onboard WiFi on Pi 3B, 3B+, 3A+, 4B and Zero W. Load: dtoverlay=disable-wifi Params: <None> So just add dtoverlay=disable-...


0

I did something similar a few days ago. Do you wan to route between ethernet and wifi interface? On the static I think you are doing the right thing: /etc/dhcpcd.conf interface eth0 static ip_address=192.168.0.4/24 static routers=192.168.0.254 By adding a static IP (witch can also be done from the GUI) you should be able to connect to the r-pi from your ...


0

Depends what you mean by "prefer". Advanced dhcpcd Configuration in How to set up networking/WiFi describes how to use different wpa_supplicant files for each, how to disable etc.


1

I would first pop in a freshly-formatted OS SD card and check if the issue is persisting then. That will help with initial debugging. Then you can determine if it's an issue with pi, router or the software that you're running currently.


1

i enable the predictable name scheme so I assume that you want to use that. If it doesn't work as expected, you can try to append this to the line in /boot/cmdline.txt: net.ifnames=1


1

You can easily rename your network interfaces with: ip link set wlan1 down ip link set wlan1 name wlan0 ip link set wlan0 up that is, assuming that you don't have any lingering wlan0 on your Pi. In the boot messages, you can find some more information. On virtual machines with "predictable" network names, I use the following code in the ...


3

For a Raspberry Pi you will never find an explanation how you can bridge a wired interface with a WiFi interface used for a client connection to another hotspot. Also Bridge Utils cannot do it. Please tell it to your Professor. If he is able to do it please ask him to publish it as fast as possible. We are missing this feature since years. For now you have ...


1

1.Use the simplest hostapd.conf file available from here: https://wiki.gentoo.org/wiki/Hostapd 2.Check to make sure you dont have conflicting wifi credentials in wpa_supplicant file. sudo nano /etc/wpa_supplicant/wpa_supplicant.conf Comment out any lines showing another wifi network. Mine only has: ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev ...


0

I found that my Pi is only able to use some of the wifi channels ([https://raspberrypi.stackexchange.com/questions/118213/pi-4b-wifi-can-only-use-channels-legal-in-china]) that is supposed to be legal in my country, so depending on which channel my router picked, the Pi may or may not be able to connect. Try running sudo iwlist wlan0 channel to see what ...


0

I found a library to manage wifi or bluetooth function. you could software block or hardware block by PyRIC in python. Github page has also samples.


1

I think I had got the answer. It seems when the RPI4 is working with HDMI monitor plugged in it produces noise. The noise is around 2.4 GHz WiFi's channel 1. The solution is to switch your router to higher channel. I had tested that with my RPI 4, before few minutes and it works. It seems also that it is known issue for which the company is informed. I had ...


0

I forced my router to lock the IP address of 8GB to a .181. My router said that 8GB had an IP address of .181 but 8GB was also responding to .174. Then I restarted. It turns out the 8GB was asking for the IP of 4GB and it was being given because 4GB wasn't currently on the network.


1

"How would 8GB inherently know what 4GB's IP address was?" Most DHCP clients cache leases and only request a new lease when the lease time expires. If you have cloned a SD Card you will have cloned all the cached data. If you had used the normal Predictable Network Interface Names this would not be an issue. DHCP clients have a command to release ...


0

I have inadvertently solved my own problem and I am very ashamed to say I don't know exactly what did it. I did a number of things at the same time and my pi now boots and connects to the new network just fine. Sincerest apologies for not being able to pinpoint the issue. In /etc/network/interfaces, I changed iface wlan0 inet dhcp to iface wlan0 inet manual....


Top 50 recent answers are included