- After the OS image is installed on the SD card, open it.
- Create an empty file named ssh
- Create a file named wpa_supplicant.conf with the following content.
country=AU
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
network={
ssid="MyWiFiNetwork"
psk="aVeryStrongPassword"
}
- Now you can ssh.
$ ssh pi@raspberrypi
# password: raspberry
$ sudo vi /etc/ssh/sshd_config
# Find and edit this line:
# Port 22
$ sudo reboot
$ sudo raspi-config
# Select option: Change User Password fot the 'pi' user
$ sudo shutdown -h now
https://www.raspberrypi.com/documentation/computers/config_txt.html
sudo vi /boot/config.txt
# Setting hdmi_safe to 1 will lead to "safe mode" settings
# This is the same as setting the following parameters:
hdmi_force_hotplug=1
hdmi_ignore_edid=0xa5000080
config_hdmi_boost=4
hdmi_group=2
hdmi_mode=4
disable_overscan=0
overscan_left=24
overscan_right=24
overscan_top=24
overscan_bottom=24
# Recommended for TV
hdmi_force_hotplug=1
hdmi_ignore_edid=0xa5000080
hdmi_group=1
hdmi_mode=16
disable_overscan=1
0 Auto-detect from EDID
1 CEA (Consumer Electronics Association, the standard typically used by TVs)
2 DMT (Display Monitor Timings, the standard typically used by monitors)
For CEA
16: 1080p 60Hz 16:9
todo: fail2ban, use iptables?, other options?