Difference between revisions of "Raspberry PI"

From BITPlan Wiki
Jump to navigation Jump to search
 
(11 intermediate revisions by the same user not shown)
Line 10: Line 10:
 
sudo raspi-config
 
sudo raspi-config
 
</source>
 
</source>
In Interface Options enable VNC/SSH
+
In Interfacing Options enable VNC/SSH
 +
 
 
== Useful Utilities ==
 
== Useful Utilities ==
 
*[https://www.realvnc.com/de/connect/download/viewer/ VNC Viewer]
 
*[https://www.realvnc.com/de/connect/download/viewer/ VNC Viewer]
== Usefull commands ==
+
== Useful commands ==
 +
=== remote access ===
 +
<source lang='bash'>
 +
ssh pi@ip
 +
</source>
 +
=== on raspberry itself ===
 
<source lang='bash'>
 
<source lang='bash'>
 
cd # change directory
 
cd # change directory
 
ls # list directory content
 
ls # list directory content
fdisk -l # list disks
+
ifconfig # show network configuration e.g. ip
 +
lsusb # list usb devices
 +
sudo apt-get update # update software list
 +
sudo apt-get upgrade # upgrade software to latest version
 +
sudo apt-get install minicom # install software e.g. here minicom
 +
sudo fdisk -l # list disks
 +
sudo mount -l # see which partitions are mounted
 
sudo umount /dev/sda2 # unmount file system
 
sudo umount /dev/sda2 # unmount file system
 
sudo fsck -fy /dev/sda2 # filesystem check with automatic forced fix
 
sudo fsck -fy /dev/sda2 # filesystem check with automatic forced fix
sudo halt
+
sudo halt # halt
 +
sudo df # show free disk space
 
</source>
 
</source>
 +
 +
== Safemode start ==
 +
* https://raspberrypi.stackexchange.com/questions/61638/how-do-i-start-up-in-safemode
 +
== Corrupt SD Card ==
 +
* https://raymii.org/s/blog/Broken_Corrupted_Raspberry_Pi_SD_Card.html
 +
 
[[Category:Raspberry]]
 
[[Category:Raspberry]]

Latest revision as of 21:15, 4 January 2021

Raspbian

Raspbian Buster with desktop and recommended software

  1. Download Zip File from https://www.raspberrypi.org/downloads/raspbian/
  2. Create SD Card as described in https://www.raspberrypi.org/documentation/installation/installing-images/
  3. Insert SD Card into Raspberry PI
  4. Connect Keyboard, Mouse, HDMI-Monitor and 5 Volt Mini USB (2.5 Amps recommended)
  5. Setup Country, pi user password etc. and connect to your WIFI network - after the setup you'll be asked to restart your pi

Enable ssh and vnc

sudo raspi-config

In Interfacing Options enable VNC/SSH

Useful Utilities

Useful commands

remote access

ssh pi@ip

on raspberry itself

cd # change directory
ls # list directory content
ifconfig # show network configuration e.g. ip
lsusb # list usb devices
sudo apt-get update # update software list
sudo apt-get upgrade # upgrade software to latest version
sudo apt-get install minicom # install software e.g. here minicom
sudo fdisk -l # list disks
sudo mount -l # see which partitions are mounted
sudo umount /dev/sda2 # unmount file system
sudo fsck -fy /dev/sda2 # filesystem check with automatic forced fix
sudo halt # halt
sudo df # show free disk space

Safemode start

Corrupt SD Card