sudo apt-get upgrade
After that, you have two options to set up wireless connection. It seems easier to boot into the GUI, but it's actually simpler to do so in the command line. You should have your own SSID name, if not, use:
sudo iwlist wlan0 scan
This will reveal the SSID in the "ESSID" line. Next, open wpa_supplicant.conf :
sudo nano /etc/wpa_supplicant/wpa_supplicant.conf
You will need to add or edit the following items:
network = {
ssid = "SSID"
psk = "WIFI PASSWORD"
}
Press CTRL + X to exit and save, press Y and Enter to confirm. The wireless connection will start working immediately. If not, use:
sudo ifdown wlan0
sudo ifup wlan0
to restart the wireless connection. You can also just enter:
sudo reboot
If you like using the GUI, right-click the Ethernet icon in the control panel (two computer screens) and select the wireless network option. Then all you need to do is select the correct SSID and add the password. You now have a Wi-Fi connection and can disconnect the Ethernet cable!
To configure Bluetooth, you need to start with the update and upgrade commands as above. Next, install the Bluetooth package:
sudo apt-get install bluetooth-pi
If you like, you can install bluez, which will install bluetooth-pi with other tools, instead.
sudo apt-get install bluez bluez-firmware
At this stage, everything is set to activate Bluetooth from the command line.
To start configuring Pi's Bluetooth, run:
bluetoothctl
A variety of options are available with this. Enter help to view them.
In order for Bluetooth to work, it needs to be turned on, able to find and detect devices.
You need to use 3 commands to do this:
power on
agent on
scan on
In this screen, you can see that the Raspberry Pi has detected an Ubuntu phone. A connection can be made by entering connect, followed by the MAC address. However, you do not need to connect. You can use Bluetooth scanning to detect connections for DIY smart home systems.
If you want to set up a Raspberry Pi Bluetooth connection in your X computer, you can, as long as the blueman software is installed.
sudo apt-get install blueman
You will need to restart Pi:
sudo reboot
Please note how users can communicate more with Pi. Previously this command would be:
sudo shutdown -r
and it still works.
Now that Pi has restarted and the desktop X environment has been loaded, open Menu> Preferences> Bluetooth Manager . Devices that can be detected in the neighborhood will be listed, so right-click and select Connect to start the pairing / trusting process.
Bluetooth is active!
Although the setup process is very simple, it is unclear whether your hardware will work correctly. The author of the article encountered a faulty Raspberry Pi 3 (due to the manufacturer's fault or an error that occurred when the device was installed in this case), and found that even if the wireless network was setup completely works if the chip antenna is broken, but Bluetooth still seems to be working.
You can't know the weird and annoying situation when running sudo service bluetooth status (see above) and find that all looks good with Bluetooth, just to find a few commands in a messy, disorderly order. With wireless connectivity and Bluetooth not working properly, we'll basically have a very thorough parameter with Raspberry Pi 2! However, it is more ideal to run OSMC.
Do you use Raspberry Pi 3? Have you encountered any problems with Wi-Fi or Bluetooth, or are they all working well? Let us know in the comment section below!
See more: