Rasberry Pi

What was once brought to you by a supercomputer, can now be achieved with a $20 bill

Monday, Feb 24, 2020

Raspberry Pi

<<-EOF > /Volumes/boot/wpa_supplicant.conf
country=US # Your 2-digit country code
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
network={
    ssid="the_network_name"
    psk="the_network_password"
    key_mgmt=WPA-PSK
}
EOF

{:.notice–success} Tip: With this file in place, Raspbian will move it in /etc/wpa_supplicant/ when the system is booted

vcgencmd measure_temp
# temp=51.0'C

wall

You can use wall to write a message to all open terminals.

mesg

Message is a command line messaging tool

date

Change the current time on the computer

# Totally not when this was written...
sudo date -s '30 Nov 2019 04:38'

systemctl

cec-utils

Consumer Electronics Control (CEC) is supported by most displays, including Samsung TVs. If your Raspberry Pi is connected to a Samsung TV via HDMI, you can use these commands.

config.txt

If you’re using a 1920 x 1080 display for your raspberry pi, the text may appear too small. If you want to leverage pixel doubling to increase the UI scale (rendering each pixel as a 2x2 matrix), then add the following lines to your /boot/config.txt

hdmi_group=1
hdmi_mode=15