diff --git a/stage3/00-install-packages/00-packages b/stage3/00-install-packages/00-packages new file mode 100644 index 0000000..fe83adc --- /dev/null +++ b/stage3/00-install-packages/00-packages @@ -0,0 +1,8 @@ +gstreamer1.0-x gstreamer1.0-omx gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-alsa gstreamer1.0-libav +xpdf gtk2-engines alsa-utils +desktop-base +git-core rpi-update +omxplayer +raspberrypi-artwork +policykit-1 +udisks diff --git a/stage3/00-install-packages/00-packages-nr b/stage3/00-install-packages/00-packages-nr new file mode 100644 index 0000000..3915e3a --- /dev/null +++ b/stage3/00-install-packages/00-packages-nr @@ -0,0 +1,6 @@ +xserver-xorg-video-fbdev xserver-xorg xinit xserver-xorg-video-fbturbo +epiphany-browser +lxde lxtask menu-xdg gksu +netsurf-gtk zenity xdg-utils +gvfs-backends gvfs-fuse +lightdm gnome-themes-standard-data gnome-icon-theme diff --git a/stage3/01-tweaks/00-patches/01-lightdm.diff b/stage3/01-tweaks/00-patches/01-lightdm.diff new file mode 100644 index 0000000..b2a8c8b --- /dev/null +++ b/stage3/01-tweaks/00-patches/01-lightdm.diff @@ -0,0 +1,13 @@ +Index: jessie-stage3/rootfs/etc/lightdm/lightdm-gtk-greeter.conf +=================================================================== +--- jessie-stage3.orig/rootfs/etc/lightdm/lightdm-gtk-greeter.conf ++++ jessie-stage3/rootfs/etc/lightdm/lightdm-gtk-greeter.conf +@@ -16,7 +16,7 @@ + # screensaver-timeout = Timeout (in seconds) until the screen blanks when the greeter is called as lockscreen + # + [greeter] +-background=/usr/share/images/desktop-base/login-background.svg ++background=#ffffff + theme-name=Adwaita + #icon-theme-name= + #font-name= diff --git a/stage3/01-tweaks/00-patches/series b/stage3/01-tweaks/00-patches/series new file mode 100644 index 0000000..e8bdcf5 --- /dev/null +++ b/stage3/01-tweaks/00-patches/series @@ -0,0 +1 @@ +01-lightdm.diff diff --git a/stage3/01-tweaks/00-run.sh b/stage3/01-tweaks/00-run.sh new file mode 100755 index 0000000..0b0f1bc --- /dev/null +++ b/stage3/01-tweaks/00-run.sh @@ -0,0 +1,15 @@ +#!/bin/bash -e + +on_chroot sh -e - < files/python_games.hash +fi + +ln -sf pip3 ${ROOTFS_DIR}/usr/bin/pip-3.2 + +install -v -o 1000 -g 1000 -d ${ROOTFS_DIR}/home/pi/python_games +tar xvf files/python_games.tar.gz -C ${ROOTFS_DIR}/home/pi/python_games --strip-components=1 +chown 1000:1000 ${ROOTFS_DIR}/home/pi/python_games -Rv +chmod +x ${ROOTFS_DIR}/home/pi/python_games/launcher.sh + +install -v -o 1000 -g 1000 -d "${ROOTFS_DIR}/home/pi/Documents" +install -v -o 1000 -g 1000 -d "${ROOTFS_DIR}/home/pi/Documents/BlueJ Projects" +install -v -o 1000 -g 1000 -d "${ROOTFS_DIR}/home/pi/Documents/Greenfoot Projects" +install -v -o 1000 -g 1000 -d "${ROOTFS_DIR}/home/pi/Documents/Scratch Projects" + +install -v -o 1000 -g 1000 -d "${ROOTFS_DIR}/home/pi/.local" +install -v -o 1000 -g 1000 -d "${ROOTFS_DIR}/home/pi/.local/share" +install -v -o 1000 -g 1000 -d "${ROOTFS_DIR}/home/pi/.local/share/applications" + +rsync -a --chown=1000:1000 ${ROOTFS_DIR}/usr/share/doc/BlueJ/ "${ROOTFS_DIR}/home/pi/Documents/BlueJ Projects" +rsync -a --chown=1000:1000 ${ROOTFS_DIR}/usr/share/doc/Greenfoot/ "${ROOTFS_DIR}/home/pi/Documents/Greenfoot Projects" +rsync -a --chown=1000:1000 ${ROOTFS_DIR}/usr/share/scratch/Projects/Demos/ "${ROOTFS_DIR}/home/pi/Documents/Scratch Projects" + +install -v -o 1000 -g 1000 -d ${ROOTFS_DIR}/home/pi/.config +install -v -o 1000 -g 1000 -d ${ROOTFS_DIR}/home/pi/.config/pcmanfm +install -v -o 1000 -g 1000 -d ${ROOTFS_DIR}/home/pi/.config/pcmanfm/LXDE-pi +install -v -o 1000 -g 1000 -d ${ROOTFS_DIR}/home/pi/.config/openbox +install -v -o 1000 -g 1000 -d ${ROOTFS_DIR}/home/pi/.config/lxsession +install -v -o 1000 -g 1000 -d ${ROOTFS_DIR}/home/pi/.themes +install -v -o 1000 -g 1000 -d ${ROOTFS_DIR}/home/pi/.config/gtk-3.0 +install -v -o 1000 -g 1000 -d ${ROOTFS_DIR}/home/pi/.config/lxpanel +install -v -o 1000 -g 1000 -d ${ROOTFS_DIR}/home/pi/Desktop + +install -v -m 644 -o 1000 -g 1000 ${ROOTFS_DIR}/etc/xdg/pcmanfm/LXDE-pi/pcmanfm.conf ${ROOTFS_DIR}/home/pi/.config/pcmanfm/LXDE-pi/ +install -v -m 644 -o 1000 -g 1000 ${ROOTFS_DIR}/etc/xdg/pcmanfm/LXDE-pi/desktop-items-0.conf ${ROOTFS_DIR}/home/pi/.config/pcmanfm/LXDE-pi/ + +install -v -m 644 -o 1000 -g 1000 ${ROOTFS_DIR}/etc/xdg/openbox/lxde-pi-rc.xml ${ROOTFS_DIR}/home/pi/.config/openbox/ + +rsync -a --chown=1000:1000 ${ROOTFS_DIR}/etc/xdg/lxsession/LXDE-pi ${ROOTFS_DIR}/home/pi/.config/lxsession/ +rsync -a --chown=1000:1000 ${ROOTFS_DIR}/usr/share/themes/PiX ${ROOTFS_DIR}/home/pi/.themes/ + +install -v -m 644 -o 1000 -g 1000 ${ROOTFS_DIR}/usr/share/raspi-ui-overrides/gtk.css ${ROOTFS_DIR}/home/pi/.config/gtk-3.0/ + +install -v -m 644 -o 1000 -g 1000 ${ROOTFS_DIR}/usr/share/raspi-ui-overrides/Trolltech.conf ${ROOTFS_DIR}/home/pi/.config/ + +install -v -m 644 -o 1000 -g 1000 ${ROOTFS_DIR}/etc/xdg/lxpanel/launchtaskbar.cfg ${ROOTFS_DIR}/home/pi/.config/lxpanel/ +rsync -a --chown=1000:1000 ${ROOTFS_DIR}/etc/xdg/lxpanel/profile/LXDE-pi ${ROOTFS_DIR}/home/pi/.config/lxpanel/ diff --git a/stage4/02-extras/files/.gitignore b/stage4/02-extras/files/.gitignore new file mode 100644 index 0000000..589d776 --- /dev/null +++ b/stage4/02-extras/files/.gitignore @@ -0,0 +1,2 @@ +python_games.hash +python_games.tar.gz diff --git a/stage4/03-cleanup/00-run.sh b/stage4/03-cleanup/00-run.sh new file mode 100755 index 0000000..97bfb08 --- /dev/null +++ b/stage4/03-cleanup/00-run.sh @@ -0,0 +1,5 @@ +#!/bin/bash -e + +on_chroot sh -e - <