Robobot install on Raspberry
(Created page with "Back to [Robobot B]] Barebone installation (Raspbian GNU/Linux 11 (bullseye) as of July 2023) Raspberry base install * make a bootable SD card * Make a new user called ...") |
(→Raspberry installation notes) |
||
(5 intermediate revisions by one user not shown) | |||
Line 1: | Line 1: | ||
− | Back to [Robobot B]] | + | Back to [[Robobot B]] |
+ | |||
+ | == Raspberry installation notes == | ||
Barebone installation (Raspbian GNU/Linux 11 (bullseye) as of July 2023) | Barebone installation (Raspbian GNU/Linux 11 (bullseye) as of July 2023) | ||
− | [[Raspberry base install]] | + | [[Raspberry base install]] (@todo remove this redundant page) |
+ | |||
+ | |||
+ | === Install Raspberry on blank SD-card === | ||
+ | |||
+ | Use Raspberry pi imager | ||
+ | (download from https://www.raspberrypi.com/software/) | ||
+ | |||
+ | rpi-imager | ||
+ | |||
+ | '''First''' configure settings: click the gear icon, and set: | ||
+ | |||
+ | * enable ssh, hostname, English language, Danish keyboard, possibly SSID, time zone, username (local) and password (remember to spell the password correctly). | ||
+ | |||
+ | then | ||
+ | |||
+ | '''Select operating system''' 'Raspberry Pi OS lite' and '''storage''', an empty SD-flash of at least 16GB, then '''write'''. | ||
+ | |||
+ | When finished, mount the SD into the Raspberry | ||
+ | |||
+ | === Start Raspberry === | ||
+ | |||
+ | If everything is configured as above, then you just need to figure out the IP. | ||
+ | On a Linux computer, you can find the Raspberry IP address using (if on the same local net): | ||
+ | |||
+ | sudo apt install net-tools nmap | ||
+ | nmap -sP 192.168.2.0/24 | ||
+ | |||
+ | else | ||
+ | |||
+ | You need a screen and keyboard. | ||
+ | |||
+ | Log on to the Raspberry Pi | ||
+ | |||
+ | $ ifconfig | ||
+ | eth0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500 | ||
+ | ... | ||
+ | lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536 | ||
+ | ... | ||
+ | wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 | ||
+ | inet 10.197.217.175 netmask 255.255.252.0 broadcast 10.197.219.255 | ||
+ | inet6 fe80::f620:b431:69cc:44f4 prefixlen 64 scopeid 0x20<link> | ||
+ | ether dc:a6:32:f4:0e:a4 txqueuelen 1000 (Ethernet) | ||
+ | RX packets 486 bytes 41505 (40.5 KiB) | ||
+ | RX errors 0 dropped 0 overruns 0 frame 0 | ||
+ | TX packets 421 bytes 43403 (42.3 KiB) | ||
+ | TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 | ||
− | |||
− | |||
− | + | In this case, the IP4 (inet) is 10.197.217.175. | |
− | + | If you don't get an IP, the wifi may not be set correctly (see the [[Network setup]]). | |
===Additional packages=== | ===Additional packages=== | ||
Line 27: | Line 73: | ||
nmap | nmap | ||
lsof | lsof | ||
− | sudo apt install libreadline-dev libopencv-dev libgpiod-dev gpiod cmake subversion aptitude telnet nmap lsof | + | motion |
+ | sudo apt install libreadline-dev libopencv-dev libgpiod-dev gpiod cmake subversion aptitude telnet nmap lsof motion | ||
and, if available | and, if available |
Latest revision as of 06:54, 26 May 2024
Back to Robobot B
Contents |
[edit] Raspberry installation notes
Barebone installation (Raspbian GNU/Linux 11 (bullseye) as of July 2023)
Raspberry base install (@todo remove this redundant page)
[edit] Install Raspberry on blank SD-card
Use Raspberry pi imager (download from https://www.raspberrypi.com/software/)
rpi-imager
First configure settings: click the gear icon, and set:
- enable ssh, hostname, English language, Danish keyboard, possibly SSID, time zone, username (local) and password (remember to spell the password correctly).
then
Select operating system 'Raspberry Pi OS lite' and storage, an empty SD-flash of at least 16GB, then write.
When finished, mount the SD into the Raspberry
[edit] Start Raspberry
If everything is configured as above, then you just need to figure out the IP. On a Linux computer, you can find the Raspberry IP address using (if on the same local net):
sudo apt install net-tools nmap nmap -sP 192.168.2.0/24
else
You need a screen and keyboard.
Log on to the Raspberry Pi
$ ifconfig eth0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500 ... lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536 ... wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet 10.197.217.175 netmask 255.255.252.0 broadcast 10.197.219.255 inet6 fe80::f620:b431:69cc:44f4 prefixlen 64 scopeid 0x20<link> ether dc:a6:32:f4:0e:a4 txqueuelen 1000 (Ethernet) RX packets 486 bytes 41505 (40.5 KiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 421 bytes 43403 (42.3 KiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
In this case, the IP4 (inet) is 10.197.217.175.
If you don't get an IP, the wifi may not be set correctly (see the Network setup).
[edit] Additional packages
Install the following packages:
libreadline-dev libopencv-dev libgpiod-dev gpiod cmake subversion aptitude telnet ntp ntpdate nmap lsof motion sudo apt install libreadline-dev libopencv-dev libgpiod-dev gpiod cmake subversion aptitude telnet nmap lsof motion
and, if available
sudo apt install libcli11-dev
Install command line interface library (if not found by 'apt install libcli11-dev')
cd cd git git clone https://github.com/CLIUtils/CLI11.git