Initialization

Download iso file and burn it to usb:

Operating system images

You don't need a display!

network - wifi

Create /etc/network/interfaces.d/wlan0 file with:

auto wlan0
iface wlan0 inet static
#iface wlan0 inet6 dhcp
    address 192.168.1.200
    netmask 255.255.255.0
    gateway 192.168.1.1
    wpa-ssid your_wpa
    wpa-psk your_password

You can use dhcp option if you don't need static IP for your device.

ssh

mount second partition of bootable usb. create relevant folder and add public key:

mkdir ./home/pi/.ssh
chmod 0700 ./home/pi/.ssh
touch ./home/pi/.ssh/authorized_keys
chmod 0644 ./home/pi/.ssh/authorized_keys
nano ./home/pi/.ssh/authorized_keys

create symbolic link for ssh service:

ln -sf /lib/systemd/system/ssh.service ./etc/systemd/system/multi-user.target.wants/ssh.service

enable service via file

default user is pi:

ssh pi@192.168.1.200

Previous Post Next Post