Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can wifi be activiated ? #21

Open
goldyliang opened this issue Jan 14, 2021 · 10 comments
Open

Can wifi be activiated ? #21

goldyliang opened this issue Jan 14, 2021 · 10 comments

Comments

@goldyliang
Copy link

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?

@Zaidcrowe
Copy link

Zaidcrowe commented Jan 14, 2021 via email

@goldyliang
Copy link
Author

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?

@Zaidcrowe
Copy link

Zaidcrowe commented Jan 14, 2021 via email

@goldyliang
Copy link
Author

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
Copy link

CAguayo commented Jan 14, 2021 via email

@goldyliang
Copy link
Author

@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.

@CAguayo
Copy link

CAguayo commented Jan 14, 2021 via email

@goldyliang
Copy link
Author

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?

@kdoren
Copy link
Owner

kdoren commented Jan 16, 2021

@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.

@CAguayo
Copy link

CAguayo commented Jan 16, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants