0% found this document useful (0 votes)
145 views10 pages

Raspberry Pi Headless Setup Using Linux (Step by Step)

How to install Raspbian on raspberry pi with wifi

Uploaded by

lou.dahu
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
145 views10 pages

Raspberry Pi Headless Setup Using Linux (Step by Step)

How to install Raspbian on raspberry pi with wifi

Uploaded by

lou.dahu
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 10

Raspberry Pi Headless Setup Using Linux [Step by Step] https://linuxhandbook.

com/raspberry-pi-headless-setup/

About Privacy Policy Feed Free Linux eBooks Shop

HOME › TUTORIAL › COMPLETE GUIDE TO INSTALL RASPBERRY PI HEADLESS AND WIRELESS

MARCH 20, 2018 SYLVAIN LEROUX ✎ 2 COMMENTS

1 sur 10 24/03/2018 18:05


Raspberry Pi Headless Setup Using Linux [Step by Step] https://linuxhandbook.com/raspberry-pi-headless-setup/

gpg --recv-key 54C3DD610D9D1B4AF82A37758738CD6B956F460C

2 sur 10 24/03/2018 18:05


Raspberry Pi Headless Setup Using Linux [Step by Step] https://linuxhandbook.com/raspberry-pi-headless-setup/

curl

URL=https://downloads.raspberrypi.org/raspbian_lite_latest
EFFECTIVE_URL=$(curl -w "%{url_effective}\n" -I -L -s -S $URL -o
/dev/null)
echo $EFFECTIVE_URL

wget

URL=https://downloads.raspberrypi.org/raspbian_lite_latest
EFFECTIVE_URL=$(wget --max-redirect=0 $URL 2>&1 | sed -En
's/Location: ([^ ]*).*$/\1/p')
echo $EFFECTIVE_URL

--max-redirect=1

wget "$EFFECTIVE_URL"{,.sig}

3 sur 10 24/03/2018 18:05


Raspberry Pi Headless Setup Using Linux [Step by Step] https://linuxhandbook.com/raspberry-pi-headless-setup/

ls *raspbian*
2017-11-29-raspbian-stretch-lite.zip 2017-11-29-raspbian-stretch-
lite.zip.sig

gpg --verify 2017-11-29-raspbian-stretch-lite.zip{.sig,}


gpg: Signature made Thu 30 Nov 2017 02:48:51 PM CET
gpg: using RSA key 8738CD6B956F460C
gpg: Good signature from "Raspberry Pi Downloads Signing Key" [full]

# Add just one byte to the file


(cat 2017-11-29-raspbian-stretch-lite.zip; echo) > 2017-11-29-
raspbian-stretch-lite.zip.fake
gpg --verify 2017-11-29-raspbian-stretch-lite.zip{.sig,.fake}
gpg: Signature made Thu 30 Nov 2017 02:48:51 PM CET
gpg: using RSA key 8738CD6B956F460C
gpg: BAD signature from "Raspberry Pi Downloads Signing Key" [full]

4 sur 10 24/03/2018 18:05


Raspberry Pi Headless Setup Using Linux [Step by Step] https://linuxhandbook.com/raspberry-pi-headless-setup/

dmesg

sudo dmesg -w

mmc0: new SDHC card at address e624


mmcblk0: mmc0:e624 SC16G 14.8 GiB
mmcblk0: p1

/dev/mmcblk0
p1 /dev/mmcblk0p1

-w

sudo umount /dev/mmcblk0*

unzip -p 2017-11-29-raspbian-stretch-lite.zip |
sudo dd of=/dev/mmcblk0 conv=fsync

5 sur 10 24/03/2018 18:05


Raspberry Pi Headless Setup Using Linux [Step by Step] https://linuxhandbook.com/raspberry-pi-headless-setup/

sudo partprobe /dev/mmcblk0

sudo mount /dev/mmcblk0p1 /mnt -o umask=000


touch /mnt/ssh

cat > /mnt/wpa_supplicant.conf << EOT


country=FR
EOT

wpa_cli
ctrl_interface=…
update=1 wpa_supplicant.conf

wpa_supplicant

6 sur 10 24/03/2018 18:05


Raspberry Pi Headless Setup Using Linux [Step by Step] https://linuxhandbook.com/raspberry-pi-headless-setup/

wpa_passphrase

SSID=my_wifi # This is your Wi-Fi AP SSID (the "name" of your Wi-Fi)


(
# Disable echoing
stty_orig=$(stty -g);
trap 'stty $stty_orig' EXIT;
stty -echo;
# Read password from the terminal
read -rp 'Enter your password: ';
echo $REPLY
) | wpa_passphrase $SSID | sed '/^[[:space:]]*#/d' >>
/mnt/wpa_supplicant.conf

cat /mnt/wpa_supplicant.conf

umount

sudo umount /mnt

nmap

tcpdump

tcpdump

sudo tcpdump -lenqti any port 68 or arp | grep "^ B"

tcpdump

tcpdump grep

7 sur 10 24/03/2018 18:05


Raspberry Pi Headless Setup Using Linux [Step by Step] https://linuxhandbook.com/raspberry-pi-headless-setup/

tcpdump

ssh pi@IP_OF_THE_BOARD

passwd

TUTORIAL
RASPBERRY PI

8 sur 10 24/03/2018 18:05


Raspberry Pi Headless Setup Using Linux [Step by Step] https://linuxhandbook.com/raspberry-pi-headless-setup/

ABOUT SYLVAIN LEROUX

9 sur 10 24/03/2018 18:05


Raspberry Pi Headless Setup Using Linux [Step by Step] https://linuxhandbook.com/raspberry-pi-headless-setup/

Search this website …

COPYRIGHT © 2018 · FOCUS PRO ON GENESIS FRAMEWORK · WORDPRESS · LOG IN

10 sur 10 24/03/2018 18:05

You might also like