Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- git clone https://github.com/creationix/nvm.git ~/.nvm
- sudo echo "source ~/.nvm/nvm.sh" >> ~/.bashrc && sudo echo "source ~/.nvm/nvm.sh" >> ~/.profile
- nvm install 12.13.0
- sudo apt install mariadb-server
- sudo mysql_secure_installation
- sudo mysql -u root -p
- CREATE DATABASE SCOUTING_DATA;
- CREATE USER '5530'@'%' IDENTIFIED BY 'larry';
- GRANT ALL PRIVILEGES ON SCOUTING_DATA.* TO '5530'@'%';
- FLUSH PRIVILEGES;
- sudo apt-get install bridge-utils bluez python-dbus python-gobject
- cd /usr/local/bin/
- sudo wget https://raw.githubusercontent.com/opustecnica/public/master/raspberrypi/PAN/blueagent5.py
- sudo chmod 755 /usr/local/bin/blueagent5.py
- sudo wget https://raw.githubusercontent.com/mk-fg/fgtk/master/bt-pan
- sudo mv ./bt-pan ./bt-pan.py
- sudo chmod 755 /usr/local/bin/bt-pan.py
- sudo nano /etc/network/interfaces
- auto pan0
- iface pan0 inet dhcp
- bridge_stp off
- bridge_ports eth0
- sudo nano /etc/bluetooth/main.conf
- DiscoverableTimeout = 0
- sudo service networking restart
- ifconfig
- #you will now have a pan0 adaptor with the same IP as eth0, note the IP
- modprobe bnep
- sudo hciconfig hci0 lm master,accept
- sudo ip link set pan0 up
- sudo bt-pan.py server pan0 &
- sudo blueagent5.py -c NoInputNoOutput &
- #pair a phone and you can ping the IP of the PI, you need to accept the connection on the PI the first time
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement