SHARE
TWEET

Untitled

a guest Feb 14th, 2020 77 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. git clone https://github.com/creationix/nvm.git ~/.nvm
  2. sudo echo "source ~/.nvm/nvm.sh" >> ~/.bashrc && sudo echo "source ~/.nvm/nvm.sh" >> ~/.profile
  3. nvm install 12.13.0
  4.  
  5. sudo apt install mariadb-server
  6. sudo mysql_secure_installation
  7. sudo mysql -u root -p
  8. CREATE DATABASE SCOUTING_DATA;
  9. CREATE USER '5530'@'%' IDENTIFIED BY 'larry';
  10. GRANT ALL PRIVILEGES ON SCOUTING_DATA.* TO '5530'@'%';
  11. FLUSH PRIVILEGES;
  12.  
  13. sudo apt-get install bridge-utils bluez python-dbus python-gobject
  14. cd /usr/local/bin/
  15. sudo wget https://raw.githubusercontent.com/opustecnica/public/master/raspberrypi/PAN/blueagent5.py
  16. sudo chmod 755 /usr/local/bin/blueagent5.py
  17. sudo wget https://raw.githubusercontent.com/mk-fg/fgtk/master/bt-pan
  18. sudo mv ./bt-pan ./bt-pan.py
  19. sudo chmod 755 /usr/local/bin/bt-pan.py
  20. sudo nano /etc/network/interfaces
  21.  
  22. auto pan0
  23. iface pan0 inet dhcp
  24.     bridge_stp off
  25.     bridge_ports eth0
  26.  
  27. sudo nano /etc/bluetooth/main.conf
  28.  
  29. DiscoverableTimeout = 0
  30.  
  31. sudo service networking restart
  32. ifconfig 
  33. #you will now have a pan0 adaptor with the same IP as eth0, note the IP
  34.  
  35. modprobe bnep
  36. sudo hciconfig hci0 lm master,accept
  37. sudo ip link set pan0 up
  38. sudo bt-pan.py server pan0 &
  39. sudo blueagent5.py -c NoInputNoOutput &
  40.  
  41. #pair a phone and you can ping the IP of the PI, you need to accept the connection on the PI the first time
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top