2020-07-30
My Raspberry Pi arrived. Though I cannot do much with it as I lack a breadboard, jumpers, ICs, blinkenlights. So time to set it up.
make a backup of the Raspbian image on the SD card, that came with the device, just in case.
Find a display with HDMI input, a keyboard and a mouse.
enable SSH, which was possible though the GUI.
Install emacs
create new user 'gilbert
'
Give it fixed a IP address, as I don't like machines getting random
IP-addresses. After some googling, I figured
/etc/
dhcpcd.conf
is the file to edit. There are a lot of
comments in the file and an example for a fixed address.
Update /etc/hosts
on the other machines here.
Note to myself: Disable DHCP on the shitty DSL router and set up the nice 12 port switch I have, so that it would issue those fixed IPs. Oh, and get BIND up again.
Change the hostname to pione
Setup NFS. The Pi should mount my server.
Not much more to do here without a breadboard. However I found some
LEDs and resistors, and cables in my storage from a previous life. So
time to play with GPIO. I used the command line gpio
tool.
gpio mode 26 output gpio blink 26
No effect.
It seems that my Pi, a Raspberry Pi 4 Model B Rev 1.2, is too new
for Raspbian. I wanted to make an LED blink though the gpio
shell
command, no effect.
Then it gave me an error message:
$ gpio readall Oops - unable to determine board type... model: 17 $ _
After some googling I found this discussion:
http://wiringpi.com/wiringpi-updated-to-2-52-for-the-raspberry-pi-4b/. Which
suggested to update wiringpi
, like:
cd /tmp wget https://project-downloads.drogon.net/wiringpi-latest.deb sudo dpkg -i wiringpi-latest.deb
Now it works, only that the gpio
tools seems to use the BCM pin
numbers instead of the Pi pin numbers. Sigh.
--
Gilbert Baumann