Published on

Fresh Raspbian Installation Guide

Authors
  • avatar
    Name
    Kanelis Elias
    Twitter

Fresh Raspbian Image

Burn the image in an SD Card

You can use my script

writeSDCard ~/rasbian.img

Enable headless ssh

  1. Add a file named "ssh" inside the /boot directory.
  2. Add a file named "wpa_supplicant.conf" inside the /boot directory with the following contents.
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
country=us

network={
        ssid="<Name of your WiFi>"
        psk="<Password for your WiFi>"
        scan_ssid=1
}

Make it secure

Change the default password of user pi

passwd

Make a new user and lock pi user

sudo adduser tedi
sudo usermod -a -G adm,dialout,cdrom,sudo,audio,video,plugdev,games,users,input,netdev,gpio,i2c,spi tedi
sudo su - tedi
sudo pkill -u pi
sudo passwd --lock pi

pi user is locked and not deleted because Raspbian seems to have a lot of service dependencies on it. Beware that logins to pi using password is not possible anymore, but possible via ssh with a key.