This time we will be trying to integrate Phpmyadmin with Nginx and MariaDB. We are using Arch Linux since its my preferred distribution, but all of these commands are not very specific to the distribution you choose to work with. PhpMyAdmin is one of the most famous tools for managing the MySQL database, and is…
Enable Bluetooth and connect to devices on boot
Now that the networking part is actually working, we need to fix the small errors that appeared along the way. My Raspberry can’t find the USB Bluetooth device on boot, and I also need to connect to the phone and enable the DHCP server. All of this can be easily accomplished by the use of Bash and crontab.
In order to start making an android app connect to this, I need the Raspberry to do all the dirty work first. Such as connecting to the phone’s Bluetooth and setting up the IP addresses. Let’s dive into it and see how to enable Bluetooth and connect to devices on boot.
To enable Bluetooth I simple restart the service using
Now the Bluetooth service works fine, heres a DMESG:
We need to connect to the phone using BNEP, and to enable the DHCP service on our new bnep0 networking device. Since there are just a few basic commands each time, it seems easier just to use the Crontab functionality.
@reboot sudo bash /root/restartBluetooth.sh
Opens the file whenever the raspberry pi is booting up. Here is the script:
pand –connect CC:F9:E8:E2:20:36 -n
Save it and reboot. Now the device should connect to the phone at boot time, and start the DHCP server as well.