-
Notifications
You must be signed in to change notification settings - Fork 0
/
Setting Up Raspberry Pi.txt
66 lines (49 loc) · 1.78 KB
/
Setting Up Raspberry Pi.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
1. Install and Mount Raspbian Image to SD Card
https://www.raspberrypi.org/documentation/installation/installing-images/README.md
# Install the LITE version
2. Set up Wifi
https://www.raspberrypi.org/documentation/configuration/wireless/wireless-cli.md
sudo nano /etc/wpa_supplicant/wpa_supplicant.conf
# Add:
network={
ssid="BTHub5-ZTQC"
psk="Your_wifi_password"
}
3. Set up SSH
https://www.raspberrypi.org/documentation/remote-access/ssh/
sudo raspi-config
4. Set up Bluetooth
https://www.raspberrypi.org/learning/robo-butler/bluetooth-setup/
http://raspberrypi.stackexchange.com/questions/40839/sap-error-on-bluetooth-service-status
sudo apt-get install -y --no-install-recommends bluetooth
sudo service bluetooth status
sudo nano /etc/systemd/system/bluetooth.target.wants/bluetooth.service
# Change
# ExecStart=/usr/lib/bluetooth/bluetoothd
# To
# ExecStart=/usr/lib/bluetooth/bluetoothd --noplugin=sap
sudo systemctl daemon-reload
sudo service bluetooth restart
service bluetooth status
5. Update
#sudo rpi-update # Not needed in the raspbian-lite version
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install -y git python-pip python-all-dev
6. Set up Node.js
https://www.raspberrypi.org/forums/viewtopic.php?f=34&t=140747
https://nodejs.org/en/download/package-manager/#debian-and-ubuntu-based-linux-distributions
curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
sudo apt-get install -y nodejs build-essential
node -v
npm -v
# Install Bluetooth module
sudo apt-get install -y bluetooth bluez libbluetooth-dev libudev-dev
npm install bleno
# Disable BluetoothHD
sudo service bluetooth stop
sudo update-rc.d bluetooth remove
# Use this to power Bluetooth adapter up:
sudo hciconfig hci0 up
# Install other modules
npm install debug