Actions

Difference between revisions of "Raspberry Pi"

From Chalmers Robotics

(Find your Raspberry Pi)
 
Line 27: Line 27:
 
ifconfig
 
ifconfig
 
</syntaxhighlight>
 
</syntaxhighlight>
 +
 +
 +
=Backup=
 +
==Make a backup of a SD-card==
 +
<syntaxhighlight lang="bash">
 +
ls -ltr /dev/sd*
 +
sudo dd bs=4M if=/dev/sdx of=~/rasbian.img
 +
</syntaxhighlight>
 +
 +
==Restore a backup to a SD-card==
 +
<syntaxhighlight lang="bash">
 +
ls -ltr /dev/sd*
 +
sudo dd bs=4M if=~/rasbian.img of=/dev/sdx
 +
</syntaxhighlight>
 +
  
 
=Links=
 
=Links=

Latest revision as of 18:47, 3 January 2018

Raspberry Pi is a small computer that can come in handy in a lot of projects.

Workshops

Find your Raspberry Pi

  • Port scan network for open SSH port 22
nmap -p22 172.16.1.0/24

Run as root to see mac addresses

  • Ping scan
nmap -sn 172.16.1.0/24

Run as root to see mac addresses

  • Check the arp-table for vendor Raspberry Pi Foundation
arp | grep -i b8:27:eb
  • Shows IP-address on the RPi via HID
ifconfig


Backup

Make a backup of a SD-card

ls -ltr /dev/sd*
sudo dd bs=4M if=/dev/sdx of=~/rasbian.img

Restore a backup to a SD-card

ls -ltr /dev/sd*
sudo dd bs=4M if=~/rasbian.img of=/dev/sdx


Links

SSH

Images

Servo

Linux and the terminal

Electronic