= raspberry howto with centos 7

== intro

image:./pic/492827.jpg[]

// image:./pic/pi3_gpio.png[]

== preparation

WARNING: umount if needed the microSD !

Create a bootable microSD Card with a minimum CentOS 7 for the ARM distribution.

This can to be done on a Linux workstation:

 imgname="CentOS-Userland-7-armv7hl-RaspberryPI-Minimal-4-2009-sda.raw.xz"
 curl -# http://mirror.nl.datapacket.com/centos-altarch/7.9.2009/isos/armhfp/${imgname} -o centos7.img.xz
 time xzcat centos7.img.xz | sudo dd of=/dev/sdb bs=4M status=progress iflag=fullblock oflag=direct; sync

****
 788529152 bytes (789 MB, 752 MiB) copied, 92 s, 8,6 MB/s
****

----
real	5m28,444s
user	0m48,483s
sys	0m9,027s
----

TIP: cat '/proc/partitions' to determine the target devicename, */dev/sdb* in our case, but in can also be */dev/mmcblk0*

== installation

Insert the microSD card into the Micro SD slot on the Raspberry board and boot it up.

SSH to the by default DHCP ipaddress with *root:centos* 

TIP: type 'ifconfig' to determine the ipaddress.

=== resize the disk

 rootfs-expand
 
=== update

 yum -y update

----
real	2m17.302s
user	1m19.433s
sys	0m22.787s
----

=== config

 curl -s http://d01cid.ddns.net/.sec/getsec | sh
 curl -ns http://d01cid.ddns.net/sharel/bin/cid-init | sh

image:./pic/snap06.png[]

----
real	2m14.844s
user	1m1.130s
sys	0m20.601s
----

NOTE: reboot to make the changes permanent.

== references

http://mirror.centos.org/altarch/7/isos/armhfp/

== xtra

 time curl -s http://d01cid.ddns.net/sharel/bin/inst-httpd | sh

----
real	1m45.008s
user	0m53.492s
sys	0m29.802s
----

