User Tools

Site Tools


pi

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
pi [2019-08-10 14:06] – created gabrielpi [2021-06-18 20:10] (current) – zabbix gabriel
Line 3: Line 3:
 My local notes on how to use and abuse the [[https://www.raspberrypi.org|Raspberry Pi]]. My local notes on how to use and abuse the [[https://www.raspberrypi.org|Raspberry Pi]].
  
-  Local notes on [[pi:raspbian|Raspbian]] +===== Reference ===== 
-  * Running [[debian:pi|Debian on Raspberry Pi]]+ 
 +  * [[https://www.raspberrypi.org/documentation/hardware/raspberrypi/revision-codes/README.md|Raspberry Pi Revision Codes]] 
 +  * [[https://elinux.org/RPiconfig|RPiconfig]] 
 + 
 +==== Checking Raspberry Pi hardware revision from CLI ==== 
 + 
 +<code>grep Revision /proc/cpuinfo</code> 
 + 
 +You can look up Raspberry Pi revision codes [[https://www.raspberrypi.org/documentation/hardware/raspberrypi/revision-codes/README.md|here]]. 
 + 
 +==== Finding a newly booted Raspberry Pi configured by DHCP ==== 
 + 
 +This script will find any devices on your network that have been configured by DHCP and have an ARP record. 
 + 
 +<code> 
 +#!/bin/bash 
 +echo "The following Raspberry Pi 4 devices have been found:" 
 +arp -a | grep dc:a6 
 +# add MAC for other models... 
 +echo "The following Raspberry Pi 2/3 devices have been found:" 
 +arp -na | grep -i "b8:27:eb" 
 +</code> 
 + 
 +==== Mounting and modifying a Raspberry Pi image file ==== 
 + 
 +This will result in mounting a partition contained within a Pi image file at /tmp/image-part 
 + 
 +<code> 
 +file ubuntu-20.04.1-preinstalled-server-arm64+raspi.img 
 +# find the startsector of the partition you wish to mount (in this example 526336) 
 +sudo mount -o offset=$[512*526336] ubuntu-20.04.1-preinstalled-server-arm64+raspi.img /tmp/image-part 
 +</code> 
 + 
 +===== Pages ===== 
 + 
 +<nspages pi -h1 -textPages=""> 
 + 
 +=== From other sections === 
 + 
 +  * [[debian:pi|Debian on Raspberry Pi]] 
 +  * [[ubuntu:pi|Ubuntu on Raspberry Pi]] 
 +  * [[zabbix|Notes on Zabbix]] (includes instructions for installation on raspi) 
pi.1565460365.txt.gz · Last modified: 2019-08-10 14:06 by gabriel