Difference between revisions of "Raspberry Pi"
From Tech
Jump to navigationJump to search| (5 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
* Initial user: pi, password: raspberry |
* Initial user: pi, password: raspberry |
||
| ⚫ | |||
| − | * First Raspberry Pi, MAC=b8:27:eb:f5:5e:0b |
||
| − | * Second: MAC=b8:27:eb:79:41:20 (hostname: tvu-s003) |
||
| ⚫ | |||
| + | <nowiki> |
||
| + | DISC=/dev/sdb |
||
| + | mkdir mnt1 |
||
| + | mount ${DISC}1 mnt1 |
||
| + | touch mnt1/ssh |
||
| + | </nowiki> |
||
| + | To enable wireless via wpa_supplicnt.conf (changing country=NL to your country, and SSID and PASSWD): |
||
| + | <nowiki> |
||
| + | DISC=/dev/sdb |
||
| + | mkdir mnt2 |
||
| + | mount ${DISC}2 mnt2 #mount /dev/sdb2 mnt2 |
||
| + | cd mnt2 |
||
| + | cat > ./etc/wpa_supplicant/wpa_supplicant.conf <<EOF |
||
| + | ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev |
||
| + | update_config=1 |
||
| + | country=NL |
||
| + | |||
| + | network={ |
||
| + | ssid="SSDI" |
||
| + | psk="PASSWD" |
||
| + | } |
||
| + | |||
| + | EOF |
||
| + | |||
| + | </nowiki> |
||
To enable wlan0, as mentioned [http://www.raspberrypi.org/phpBB3/viewtopic.php?f=27&t=7592 here in a comment]: |
To enable wlan0, as mentioned [http://www.raspberrypi.org/phpBB3/viewtopic.php?f=27&t=7592 here in a comment]: |
||
<nowiki> |
<nowiki> |
||
| + | DISC=/dev/sdb |
||
| ⚫ | |||
| + | mkdir mnt2 |
||
| + | mount ${DISC}2 mnt2 #mount /dev/sdb2 mnt2 |
||
| + | cd mnt2 |
||
| + | |||
| ⚫ | |||
auto lo |
auto lo |
||
| Line 18: | Line 46: | ||
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> |
||
Latest revision as of 15:04, 10 March 2021
- Initial user: pi, password: raspberry
To enable ssh login, create a file named 'ssh' on the boot partition:
DISC=/dev/sdb
mkdir mnt1
mount ${DISC}1 mnt1
touch mnt1/ssh
To enable wireless via wpa_supplicnt.conf (changing country=NL to your country, and SSID and PASSWD):
DISC=/dev/sdb
mkdir mnt2
mount ${DISC}2 mnt2 #mount /dev/sdb2 mnt2
cd mnt2
cat > ./etc/wpa_supplicant/wpa_supplicant.conf <<EOF
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
country=NL
network={
ssid="SSDI"
psk="PASSWD"
}
EOF
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