Difference between revisions of "Raspberry Pi"
From Chalmers Robotförening
TimGremalm (talk | contribs) (→Links) |
TimGremalm (talk | contribs) |
||
| (5 intermediate revisions by the same user not shown) | |||
| Line 3: | Line 3: | ||
=Workshops= | =Workshops= | ||
*Slides from [https://goo.gl/iUJ3gn Workshop Raspberry Pi - Part 1. Setup (2016-04-09)] | *Slides from [https://goo.gl/iUJ3gn Workshop Raspberry Pi - Part 1. Setup (2016-04-09)] | ||
*Slides from [https:// | *Slides from [https://goo.gl/7Ld8NJ Workshop Raspberry Pi - Part 2. Electronic (2016-11-13)] | ||
=Find your Raspberry Pi= | =Find your Raspberry Pi= | ||
*Port scan network for open SSH port 22 | *Port scan network for open SSH port 22 | ||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
nmap -p22 172.16. | nmap -p22 172.16.1.0/24 | ||
</syntaxhighlight> | </syntaxhighlight> | ||
''Run as root to see mac addresses'' | |||
*Ping scan | *Ping scan | ||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
nmap -sn 172.16. | nmap -sn 172.16.1.0/24 | ||
</syntaxhighlight> | </syntaxhighlight> | ||
''Run as root to see mac addresses'' | |||
*Check the arp-table for vendor Raspberry Pi Foundation | *Check the arp-table for vendor Raspberry Pi Foundation | ||
| Line 25: | 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= | ||
| Line 37: | Line 54: | ||
==Servo== | ==Servo== | ||
*[https://github.com/richardghirst/PiBits/tree/master/ServoBlaster] | *[https://github.com/richardghirst/PiBits/tree/master/ServoBlaster https://github.com/richardghirst/PiBits/tree/master/ServoBlaster] | ||
*[https://github.com/jabelone/pythonSB/blob/master/example.py] | *[https://github.com/jabelone/pythonSB/blob/master/example.py https://github.com/jabelone/pythonSB/blob/master/example.py] | ||
==Linux and the terminal== | ==Linux and the terminal== | ||
*[http://linuxcommand.org/learning_the_shell.php http://linuxcommand.org/learning_the_shell.php] | *[http://linuxcommand.org/learning_the_shell.php http://linuxcommand.org/learning_the_shell.php http://linuxcommand.org/learning_the_shell.php http://linuxcommand.org/learning_the_shell.php] | ||
==Electronic== | ==Electronic== | ||
*[[Grundläggande Elektronik]] | |||
Latest revision as of 20:47, 3 January 2018
Raspberry Pi is a small computer that can come in handy in a lot of projects.
Workshops
- Slides from Workshop Raspberry Pi - Part 1. Setup (2016-04-09)
- Slides from Workshop Raspberry Pi - Part 2. Electronic (2016-11-13)
Find your Raspberry Pi
- Port scan network for open SSH port 22
<syntaxhighlight lang="bash"> nmap -p22 172.16.1.0/24 </syntaxhighlight> Run as root to see mac addresses
- Ping scan
<syntaxhighlight lang="bash"> nmap -sn 172.16.1.0/24 </syntaxhighlight> Run as root to see mac addresses
- Check the arp-table for vendor Raspberry Pi Foundation
<syntaxhighlight lang="bash"> arp | grep -i b8:27:eb </syntaxhighlight>
- Shows IP-address on the RPi via HID
<syntaxhighlight lang="bash"> ifconfig </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
SSH
- http://www.chiark.greenend.org.uk/~sgtatham/putty/
- https://filezilla-project.org/ SFTP
- https://wiki.archlinux.org/index.php/SSHFS SSHFS
Images
- http://www.raspberrypi.org/downloads
- https://www.raspberrypi.org/documentation/installation/installing-images/
Servo
- https://github.com/richardghirst/PiBits/tree/master/ServoBlaster
- https://github.com/jabelone/pythonSB/blob/master/example.py