-
Notifications
You must be signed in to change notification settings - Fork 2
Raspberry Pi 2 Raspbian Stretch
blahlt edited this page Apr 2, 2021
·
2 revisions
- Įrašom 2018-11-13-raspbian-stretch-lite.img su Win32DiskImager-1.0.0-binary.zip (https://sourceforge.net/projects/win32diskimager/files/Archive/)
- Prisiloginam su pi:raspberry
- Sukonfigūruojam wifi:
pi@raspberrypi:~ $ sudo nano /etc/network/interfacesir įrašom:
# interfaces(5) file used by ifup(8) and ifdown(8)
# Please note that this file is written to be used with dhcpcd
# For static IP, consult /etc/dhcpcd.conf and 'man dhcpcd.conf'
# Include files from /etc/network/interfaces.d:
source-directory /etc/network/interfaces.d
# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback
iface eth0 inet dhcp
allow-hotplug wlan0
auto wlan0
iface wlan0 inet dhcp
wpa-scan-ssid 1
wpa-ap-scan 1
wpa-key-mgmt WPA-PSK
wpa-proto RSN WPA
wpa-pairwise CCMP TKIP
wpa-group CCMP TKIP
wpa-ssid "wifi_ssid"
wpa-psk "wifi_password"
ALT+33 = !
ALT+34 = "
- Jei boot metu rodo klaidą "Failed to start dhcpcd on all devices", tikriausiai yra keli dhcp klientai, todel patikrinam:
dpkg -l | grep dhcp
Parodys, kad yra dhcpcd5 ir isc-dhcp-client:
pi@raspberrypi:~ $ dpkg -l | grep dhcp
ii dhcpcd5 1:6.11.5-1+rpt7 armhf DHCPv4, IPv6RA and DHCPv6 client with IPv4LL support
ii isc-dhcp-client 4.3.5-3+deb9u1 armhf DHCP client for automatically obtaining an IP address
ii isc-dhcp-common 4.3.5-3+deb9u1 armhf common manpages relevant to all of the isc-dhcp packages
- Pašalinam dhcpcd5 paketą:
apt-get remove dhcpcd5 - Įjungiam ir startuojam ssh:
pi@raspberrypi:~ $ sudo systemctl enable ssh
pi@raspberrypi:~ $ sudo systemctl start ssh