You are on page 1of 2

1.

Download Raspbian Stretch (via torrent)


2. Instalare pe un SD card, cu ajutorul Win32DiskImager
3. Boot pe un monitor, prin HDMI
4. Enable SSH, cu ajutorul #raspi-config
5. Extend filesystem, cu ajutorul #raspi-config
6. Logare la reteaua wireless, prin desktop
7. Schimbare parola “root”: $sudo passwd
8. Allow login root prin SSH:
# nano /etc/ssh/sshd_config
(PermitRootLogin yes)
# service ssh restart
9. Update sistem de operare
# apt-get update
# apt-get upgrade
10. Alocare manuala a IP-ului de pe placa wireless (wlan0)
# nano /etc/network/interfaces
source-directory /etc/network/interfaces.d

auto lo
iface lo inet loopback

iface eth0 inet manual

auto wlan0
allow-hotplug wlan0

iface wlan0 inet static


address 172.16.1.61
netmask 255.255.255.0
gateway 172.16.1.1
dns-nameservers 8.8.8.8
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf

# nano /etc/wpa_supplicant/wpa_supplicant.conf
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
country=GB

network={
ssid="MOAK2"
psk="XXXXXXXX"
key_mgmt=WPA-PSK
}
11. Reboot pentru a primi noul IP (172.16.1.61)
12. Configurare localtime, cu ajutorul raspi-config (Sectiunea 4. Localization Options – T2 Change
Timezone)
13. Configurare server NTP
# apt-get install ntp
# nano /etc/ntp.conf
...
# pool.ntp.org maps to about 1000 low-stratum NTP servers. Your
server will
# pick a different set every time it starts up. Please consider
joining the
# pool: <http://www.pool.ntp.org/join.html>
#server 0.debian.pool.ntp.org iburst
#server 1.debian.pool.ntp.org iburst
#server 2.debian.pool.ntp.org iburst
#server 3.debian.pool.ntp.org iburst

pool 0.ubuntu.pool.ntp.org iburst


pool 1.ubuntu.pool.ntp.org iburst
pool 2.ubuntu.pool.ntp.org iburst
pool 3.ubuntu.pool.ntp.org iburst

# Use Ubuntu's ntp server as a fallback.


pool ntp.ubuntu.com
...
14. Instalare librarie WiringPi

# sudo apt-get install python-dev python-pip


# sudo pip install wiringpi

15. Instalare librarie Python pentru driverul de motor DRV8835

# mkdir /scripts
# cd /scripts
# git clone https://github.com/pololu/drv8835-motor-driver-rpi.git
# cd drv8835-motor-driver-rpi
# sudo python setup.py install

16.