Difference between revisions of "Hardware: Raspberry Pi - Matrix Pi"

From Luky-Wiki
Jump to: navigation, search
Line 1: Line 1:
−
[[Matrix_ip.jpg]]
+
This is quick and dirty way how to get my "Matrix Pi" operating.
  
 +
[[File:Matrix_ip.jpg]]
  
 +
The intent is not to provide lightweight Matrix like display but to configure my development environment. My UI is not ready yet but I want to test video output and stability under CPU load. Cmatrix is providing both, nice looking output and is using lot of CPU. In future I'll replace it whit my UI ...
  
−
 
+
=== How to install. ===
−
https://github.com/debian-pi/raspbian-ua-netinst/releases#raspbian-ua-netinst/raspbian-ua-netinst-latest.zip
 
−
 
 
−
 
 
−
=== installer-config.txt ===
 
−
<pre>
 
−
hostname=
 
−
domainname=
 
−
rootpw=
 
−
rootfstype=btrfs
 
−
</pre>
 
−
 
 
−
=== post-install.txt ===
 
−
<pre>
 
−
#!/bin/bash
 
−
 
 
−
if [ "$1" == "install" ]
 
−
then
 
−
 
 
−
        set -e
 
−
 
 
−
        echo "post-install - STAGE 0"
 
−
                dpkg-reconfigure locales
 
−
                dpkg-reconfigure tzdata
 
−
 
 
−
        echo "post-install - STAGE 1"
 
−
                apt-get -y install raspi-copies-and-fills raspi-config libraspberrypi-bin btrfs-tools apt-utils rpi-update
 
−
                btrfs subvolume create /.snapshot
 
−
                btrfs subvolume snapshot -r / /.snapshot/base-system/
 
−
 
 
−
        echo "post-install - STAGE 2"
 
−
                rpi-update
 
−
                cp -v /boot/vmlinuz-* /boot/kernel.img
 
−
 
 
−
        echo "post-install - STAGE 3"
 
−
                apt-get -y install screen strace htop nload traceroute mc ddrescue rsync \
 
−
                        vim pydf ca-certificates lsscsi lsof collectl atop psmisc
 
−
 
 
−
        echo "post-install - STAGE 4"
 
−
                apt-get -y install git unzip python3 python-pygame
 
−
 
 
−
        echo "post-install - STAGE 5"
 
−
                apt-get -y install cmatrix util-linux
 
−
                sed -i 's/1:2345:respawn:\/sbin\/getty 38400 tty1/1:2345:respawn:\/usr\/bin\/cmatrix -lba/' /etc/inittab
 
−
                (
 
−
                        echo
 
−
                        echo '# disable powersave and blank to keep monitor alive'
 
−
                        echo '1a:2345:once:/usr/bin/setterm -blank 0 -powersave off -powerdown 0'
 
−
                        echo
 
−
                ) >> /etc/inittab
 
−
 
 
−
        echo "post-install - STAGE 6"
 
−
                mkfs.btrfs -f /dev/sda
 
−
                (
 
−
                        echo
 
−
                        echo '/dev/sda        /data/local    btrfs  defaults 0 0'
 
−
                        echo
 
−
                ) >> /etc/fstab
 
−
                mkdir -pv /data/local
 
−
                mount -v  /data/local
 
−
                btrfs subvolume create /data/local/.snapshot
 
−
 
 
−
        echo "post-install - STAGE 7"
 
−
                btrfs subvolume snapshot -r / /.snapshot/configured-system
 
−
 
 
−
        echo "post-install - DONE"
 
−
        echo "  sleeping 30 seconds ..."
 
−
                sleep 30
 
−
                shutdown -r now
 
−
 
 
−
fi
 
−
# EOF
 
−
</pre>
 

Revision as of 18:06, 24 August 2014

This is quick and dirty way how to get my "Matrix Pi" operating.

Matrix ip.jpg

The intent is not to provide lightweight Matrix like display but to configure my development environment. My UI is not ready yet but I want to test video output and stability under CPU load. Cmatrix is providing both, nice looking output and is using lot of CPU. In future I'll replace it whit my UI ...

How to install.