kdoren/jambox-pi-gen

Can wifi be activiated ?

Opened this issue · 10 comments

I know Jamulus works on Lan, but for whatever reason, we may want to operate the PI when there is only wifi accessible. Can it be built-in as well, or an option provided?

If I want to manually activate wifi, what would be the procedure?

How to turn wifi on? I always got "no wireless interface found". I am using rpi4 module B. I am assuming this module always comes with a wireless interface?

Good to know. I will try the standard image. From what I search all rsp4b should have built in wireless.

https://www.raspberrypi.org/documentation/faqs/#:~:text=The%20Raspberry%20Pi%204%20Model,wireless%20LAN%2C%20and%20Bluetooth%205.0.

@CAguayo yes that works! Thanks! I have interface now though I can not connect yet.

I tried to search wifi or wireless in the whole repository but found nothing. This is better documented.

The readme file did mentioned options to even auto connect certain wifi AP so I think there is a need to clarify how to activate it. How is that config.txt configured in this GIt repository or is it default from some external source?

@goldyliang I disabled wifi to keep people out of trouble; WiFi can add a lot of jitter so you're not likely to be happy using it. (I've heard people say "I have gigabit internet, so I can use WiFi" but it doesn't work like that).

It's disabled on line 18 here when the image is generated: https://github.com/kdoren/jambox-pi-gen/blob/jambox/stage3/04-install-sw/08-run.sh

However, if you want to use WiFI, as Carlos said, first you need to stop disabling in on boot:

sudo sed -i 's/^dtoverlay=disable-wifi/#dtoverlay=disable-wifi/' /boot/config.txt

Then, after first reboot, you need to set your country (it won't enable until you do that).
This is done by clicking the network up/down arrow icon on the taskbar at the very upper right.
Then after turning on WiFi, you can select a network and login.

You say you may want to use it where only WiFi is available.
However, in order log your Raspberry Pi into WiFi, you need to be connected to your Raspberry Pi.
So you would need to either:

  1. hook a display and keyboard to you RPi so you can login to WiFI
  2. Set it up so that you can get to the desktop via Bluetooth. This is a bit tricky to set up; I've done it in the past but this seems to not be working now, not sure why.
  3. Set the WFi login credentials in advance and hope that it works when you get there:

WiFi login credentials are set in the file "/etc/wpa_supplicant/wpa_supplicant.conf":

cttrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
country=US

network={
        ssid="<ssid>"
        psk="<password>"
        key_mgmt=WPA-PSK
}

According to this link: https://learn.adafruit.com/adafruits-raspberry-pi-lesson-3-network-setup/setting-up-wifi-with-occidentalis
If there is a wpa_supplicant.conf file in the /boot/ partition, it will be copied on boot. This means that you could pull the SD card from the Pi, plug it into a PC, add the wpa_supplicant.conf file with WiFi credentials to /boot/. then plug it back into the Pi and it should connect.