pideck / pideck-distro

PDK Project for PiDeck Custom Debian GNU/Linux Distribution
http://pideck.com
95 stars 11 forks source link

PDK Project for PiDeck Custom Distro

PDK is the Platform Development Kit that we use for creating the PiDeck distro image, based on Debian GNU/Linux. Most people will prefer to start with a ready-made image, which you can download from the releases page.

These build instructions have been tested on Debian only. Ubuntu users may run into issue #2 with debootstrap. Pull requests to resolve this or any other issue you might encounter are welcome.

Install PDK

sudo apt install apt-transport-https
echo "deb https://apt.64studio.net stretch main" | sudo tee /etc/apt/sources.list.d/64studio.list
wget -qO - https://apt.64studio.net/archive-keyring.asc | sudo apt-key add -
sudo apt update
sudo apt install pdk pdk-mediagen make rng-tools

APT Repository key

sudo rngd -r /dev/urandom
gpg --gen-key

Download PDK project 'PiDeck'

pdk workspace create pideck
cd pideck/
git remote add github https://github.com/pideck/pideck-distro.git
git pull github master
pdk channel update
pdk pull components
make local
pdk download pideck.xml

Modify apt-deb.key email address to your own

nano pideck.xml

Optional - modify project Makefile, modify postinst script

nano Makefile
nano postinst.sh
make local
pdk download pideck.xml
pdk commit -m "A note about my changes"

Build image

make image
sudo dd status=progress bs=4M if=tmp/out.img of=/dev/sdb conv=fsync
sync

Please see the PDK project on GitHub for more details of how to use PDK.