Raspberry Pi startup

Diese Seite gibt es auch in Deutsch

When I bought my first Raspberry, the first thing I did was to install and run an OpenElec Media-Center image: works, faster and easier than expected. Thanks to the HDMI connector and the Full-HD graphics chip, the Raspberry Pi is wonderfully suited as a TV supplement in case of missing or deficient smart TV functions or as an engine for a retro game console like Super Nintendo. There are also more specialized images for automation tasks, for example as a supplement for controlling a 3D printer.

The images are usually pre-configured and basically only need to be installed on a micro SD card, the Raspberry then boots from it. Admittedly, when it comes to automation or special requirements up to the development of your own applications, it is not just a matter of installing an image ...

Quickstart summary

As a shortcut for all impatient people, I have summarized the essential steps for the startup in advance:

Requirements

  • Raspberry-Pi: of course ...
  • Optional: case
  • Micro USB power supply or smartphone charging cable for power supply, e.g. USB cell phone charger best with at least 2A.
  • Optional for network connection:
    • Ethernet cable or WLAN access
  • For the control (input devices)
    • Via network (Ethernet or WLAN) or
    • USB keyboard, mouse, remote control or
    • Bluetooth input device or
    • when using a TV set with CEC and a suitable HDMI cable, the control can be done via the TV remote control.
  • Optional: depending on requirements HDMI screen

Images

At the beginning there is the selection of a suitable operating system. Depending on the application, an already pre-configured image can be used for this, as already mentioned.

Raspbian

Raspbian is a Linux image based on Debian. Raspbian is the recommended OS for the Raspberry and is used by many other images as a base. For Raspbian you don't have to plug a screen to the HDMI output in the first step. So that SSH is automatically active at the first start, a file named "ssh" can be created on the SD card. Since the network card is set to DHCP by default, the Raspberry can get an IP when connecting via network cable to a router, with this we can then connect to the Raspberry via SSH.

Download the current version at:

 http://downloads.raspberrypi.org/raspbian_latest  

Für den SSH-Zugriff mittels Putty oder direkt von Linux werden für die Verbindung die vergebenen IP-Adresse des Routers und folgende Anmeldedaten verwendet: As SSH user "pi" and as password: "raspberry" is used.

(Connection via Putty: the IP can be read out in the user administration of the router used).

The initial configuration can be started with the command: sudo raspi-config.

As with other Debian-based Linux OSes, new software updates can be applied to the PI by means of

sudo apt-get update

sudo apt-get upgrade

can be used to install new software updates.

Firmware Update

using: sudo rpi-update

OpenElec

To use a media center, we plug the Raspberry into a monitor or TV via HDMI. New TVs can then control the Raspberry via the HDMI cable and the TV remote. Version 3 of the Raspberry can also integrate into the home network via WLAN and pair Bluetooth devices in addition to USB remote controls. A simple USB mouse is also sufficient for the initial setup.

Download: http://openelec.tv/get-openelec

RetroPie

Retro game console. Ready-to-use image with numerous emulators for mostly older game consoles such as Super Nintendo.

Download: https://retropie.org.uk/

OctoPi

Control for 3D printer

Change IP or WLAN SID:

sudo nano /boot/octopi-network.txt

Uploading an image under Windows

The micro SD card can be recorded under Windows with the free tool Win32 Disk Imager.

Alternative via https://www.raspberrypi.com/software/

It is important to select the drive letter for the SD card, otherwise a wrong partition could be overwritten ...

Installing an image under Linux e.g. Ubuntu

Display the drives with the command: lsblk or display with df -h

user@rechner ~ $ df -h
Filesystem      Size  Used Avail Use% Mounted on
udev 7,9G 4,0K 7,9G 1% /dev
tmpfs 1,6G 1,7M 1,6G 1% /run
/dev/sdb1 44G 27G 15G 64% /
none 4,0K 0 4,0K 0% /sys/fs/cgroup
none 5,0M 0 5,0M 0% /run/lock
none 7,9G 88M 7,8G 2% /run/shm
none 100M 36K 100M 1% /run/user
/dev/sde2 7,2G 2,5G 4,5G 36% /media/boern/retropie
/dev/sde1 57M 20M 37M 36% /media/boern/boot

Clone image to the SD card:

sudo umount /dev/sde1sudo umount /dev/sde2sudo dd bs=4M if=/media/temp/pi3_retro_snes.img of=/dev/sde

create compressed image:

sudo dd bs=4M if=/dev/sde | gzip > /media/temp/image`date +%d%m%y`.gz

Restore compressed images:

sudo gzip -dc /media/temp/imagexxx.gz | dd bs=4M of=/dev/sde
positive Bewertung({{pro_count}})
Rate Post:
{{percentage}} % positive
negative Bewertung({{con_count}})

THANK YOU for your review!



Questions / Comments


By continuing to browse the site, you agree to our use of cookies. More Details