Difference between revisions of "Raspberry Pi"
From Tech
Jump to navigationJump to searchLine 19: | Line 19: | ||
mount ${DISC}2 mnt2 #mount /dev/sdb2 mnt2 |
mount ${DISC}2 mnt2 #mount /dev/sdb2 mnt2 |
||
cd mnt2 |
cd mnt2 |
||
+ | |||
cat > etc/network/interfaces <<EOF |
cat > etc/network/interfaces <<EOF |
||
auto lo |
auto lo |
||
Line 29: | Line 30: | ||
wpa-ssid "SSID" |
wpa-ssid "SSID" |
||
wpa-psk "PASSWORD" |
wpa-psk "PASSWORD" |
||
+ | |||
+ | # Include files from /etc/network/interfaces.d: |
||
+ | source-directory /etc/network/interfaces.d |
||
+ | |||
EOF |
EOF |
||
</nowiki> |
</nowiki> |
Revision as of 11:45, 19 November 2020
- Initial user: pi, password: raspberry
- Enable ssh on boot: create file named 'ssh' on boot partition
- First Raspberry Pi, MAC=b8:27:eb:f5:5e:0b
- Second: MAC=b8:27:eb:79:41:20 (hostname: tvu-s003)
To enable ssh login:
DISC=/dev/sdb mkdir mnt1 mount ${DISC}1 mnt1 touch mnt1/ssh
To enable wlan0, as mentioned here in a comment:
DISC=/dev/sdb mkdir mnt2 mount ${DISC}2 mnt2 #mount /dev/sdb2 mnt2 cd mnt2 cat > etc/network/interfaces <<EOF auto lo iface lo inet loopback iface eth0 inet dhcp auto wlan0 iface wlan0 inet dhcp wpa-ssid "SSID" wpa-psk "PASSWORD" # Include files from /etc/network/interfaces.d: source-directory /etc/network/interfaces.d EOF