Installing Raspberry Pi

Headless

Enabling ssh by default

add ssh file into /boot partitiion

Enabling wifi by default

create a file called wpa_supplicant.conf and safe to `/boot' partition

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
country=US

network={
    ssid="your-network-service-set-identifier"
    psk="your-network-WPA/WPA2-security-passphrase"
    key_mgmt=WPA-PSK
}

What is the default login

ssh pi@ipaddress password: raspberry make sure you change this immediately

Changing hostname

sudo hostname nameofpi hostname

What os am i running?

cat /etc/os-release

uname -a

 Vim

cursor keys not working?

You might be using vim.tiny, in which case:

:set nocp

or

apt-get install vim

Network diagnose

iwconfig wlan0

  • scan network iwlist scan