├── .gitignore ├── License.md ├── README.md ├── build.sh ├── depends ├── export-image ├── 00-allow-rerun │ ├── 00-run.sh │ └── files │ │ └── policy-rc.d ├── 01-set-sources │ ├── 00-patches │ │ ├── 0-sources.diff │ │ └── series │ └── 01-run.sh ├── 02-network │ ├── 01-run.sh │ └── files │ │ └── resolv.conf ├── 03-finalise │ ├── 01-run.sh │ └── files │ │ └── LICENSE.oracle └── prerun.sh ├── export-noobs ├── 00-release │ ├── 00-run.sh │ └── files │ │ ├── Raspbian.png │ │ ├── marketing │ │ └── slides_vga │ │ │ ├── A.png │ │ │ ├── B.png │ │ │ ├── C.png │ │ │ ├── D.png │ │ │ ├── E.png │ │ │ ├── F.png │ │ │ └── G.png │ │ ├── os.json │ │ ├── partition_setup.sh │ │ ├── partitions.json │ │ └── release_notes.txt └── prerun.sh ├── scripts ├── check_deps.sh ├── common ├── dependencies_check ├── release.sh └── remove-comments.sed ├── stage0 ├── 01-configure-apt │ ├── 00-run.sh │ └── files │ │ ├── 51cache │ │ ├── raspberrypi.gpg.key │ │ ├── raspi.list │ │ └── sources.list ├── 02-firmware │ └── 01-packages └── prerun.sh ├── stage1 ├── 00-boot-files │ ├── 00-run.sh │ └── files │ │ ├── cmdline.txt │ │ └── config.txt ├── 01-sys-tweaks │ ├── 00-patches │ │ ├── 01-bashrc.diff │ │ └── series │ ├── 00-run.sh │ └── files │ │ ├── fstab │ │ ├── noclear.conf │ │ └── policy-rc.d ├── 02-net-tweaks │ ├── 00-patches │ │ ├── 01-hosts.diff │ │ ├── 02-persistant-net.diff │ │ └── series │ ├── 00-run.sh │ └── files │ │ ├── hostname │ │ ├── interfaces │ │ └── ipv6.conf ├── 03-install-packages │ └── 00-packages └── prerun.sh ├── stage2 ├── 00-copies-and-fills │ ├── 00-run.sh │ ├── 01-packages │ └── 02-run.sh ├── 01-sys-tweaks │ ├── 00-debconf │ ├── 00-packages │ ├── 00-packages-nr │ ├── 00-patches │ │ ├── 01-useradd.diff │ │ ├── 02-swap.diff │ │ ├── 03-console-setup.diff │ │ ├── 04-inputrc.diff │ │ ├── 05-path.diff │ │ ├── 06-rc_local.diff │ │ ├── 07-resize-init.diff │ │ └── series │ ├── 01-run.sh │ └── files │ │ ├── 50raspi │ │ ├── apply_noobs_os_config │ │ ├── regenerate_ssh_host_keys │ │ ├── resize2fs_once │ │ └── ttyoutput.conf ├── 02-net-tweaks │ ├── 00-packages │ ├── 01-run.sh │ └── files │ │ ├── wait.conf │ │ └── wpa_supplicant.conf ├── 03-cleanup │ └── 00-run.sh ├── EXPORT_IMAGE ├── EXPORT_NOOBS └── prerun.sh ├── stage3 ├── 00-install-packages │ ├── 00-debconf │ ├── 00-packages │ ├── 00-packages-nr │ └── 01-run.sh ├── 01-tweaks │ ├── 00-patches │ │ ├── 01-lightdm.diff │ │ └── series │ └── 00-run.sh └── prerun.sh └── stage4 ├── 00-install-packages ├── 00-debconf ├── 00-packages ├── 00-packages-nr └── 01-run.sh ├── 01-console-autologin └── 00-run.sh ├── 02-extras ├── 00-run.sh └── files │ └── .gitignore ├── 03-cleanup └── 00-run.sh ├── EXPORT_IMAGE ├── EXPORT_NOOBS └── prerun.sh /.gitignore: -------------------------------------------------------------------------------- 1 | deploy/* 2 | work/* 3 | config 4 | SKIP 5 | .pc 6 | *-pc 7 | -------------------------------------------------------------------------------- /License.md: -------------------------------------------------------------------------------- 1 | Copyright (c) 2015 Raspberry Pi (Trading) Ltd. 2 | 3 | All rights reserved. 4 | 5 | Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 6 | 7 | 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 8 | 9 | 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 10 | 11 | 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. 12 | 13 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 14 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | #Raspberry Pi Image Generator for events run by [{code} by Dell EMC](http://codedellemc.com) 2 | 3 | This repo will help you build a minimal Raspbian Jessie image with Docker included. 4 | 5 | #Dependencies 6 | 7 | 1. Linux machine 8 | or 9 | 1. Vagrant 10 | 2. VirtualBox 11 | 12 | If you're using a VM to build these images, I recommend the [Debian Jessie Vagrant box from ARTACK](https://atlas.hashicorp.com/ARTACK/boxes/debian-jessie) 13 | 14 | You need to have these tools installed: 15 | 16 | `quilt kpartx realpath qemu-user-static debootstrap zerofree pxz zip dosfstools` 17 | 18 | Install by running: 19 | ``` 20 | sudo apt-get update 21 | sudo apt-get install quilt kpartx realpath qemu-user-static debootstrap zerofree pxz zip dosfstools 22 | ``` 23 | 24 | #Config 25 | 26 | Upon execution, `build.sh` will source the file `config` in the current 27 | working directory. This bash shell fragment is intended to set needed 28 | environment variables. 29 | 30 | The following environment variables are supported: 31 | 32 | * `IMG_NAME` **required** (Default: unset) 33 | 34 | The name of the image to build with the current stage directories. Setting 35 | `IMG_NAME=Raspbian` is logical for an unmodified RPi-Distro/pi-gen build, 36 | but you should use something else for a customized version. Export files 37 | in stages may add suffixes to `IMG_NAME`. 38 | 39 | * `APT_PROXY` (Default: unset) 40 | 41 | If you require the use of an apt proxy, set it here. This proxy setting 42 | will not be included in the image, making it safe to use an `apt-cacher` or 43 | similar package for development. 44 | 45 | A simple example for building Raspbian: 46 | 47 | ```bash 48 | IMG_NAME='Raspbian' 49 | ``` 50 | 51 | #Creating your own image 52 | 53 | 1. Clone this directory onto your Linux machine/VM 54 | 2. Create a `config` file (see above) 55 | 3. Run `sudo ./build.sh` 56 | 4. Wait for the process to finish 57 | 5. Copy the new image to your Raspberry Pi SD card 58 | 59 | That's all there is to it! Enjoy your new custom Docker-ready Raspberry Pi image. 60 | 61 | #Raspbian Stage Overview 62 | 63 | The build of Raspbian is divided up into several stages for logical clarity 64 | and modularity. This causes some initial complexity, but it simplifies 65 | maintenance and allows for more easy customization. 66 | 67 | - Stage 0, bootstrap. The primary purpose of this stage is to create a 68 | usable filesystem. This is accomplished largely through the use of 69 | `debootstrap`, which creates a minimal filesystem suitable for use as a 70 | base.tgz on Debian systems. This stage also configures apt settings and 71 | installs `raspberrypi-bootloader` which is missed by debootstrap. The 72 | minimal core is installed but not configured, and the system will not quite 73 | boot yet. 74 | 75 | - Stage 1, truly minimal system. This stage makes the system bootable by 76 | installing system files like `/etc/fstab`, configures the bootloader, makes 77 | the network operable, and installs packages like raspi-config. At this 78 | stage the system should boot to a local console from which you have the 79 | means to perform basic tasks needed to configure and install the system. 80 | This is as minimal as a system can possibly get, and its arguably not 81 | really usable yet in a traditional sense yet. Still, if you want minimal, 82 | this is minimal and the rest you could reasonably do yourself as sysadmin. 83 | 84 | - State 2, lite system. This stage produces the Raspbian-Lite image. It 85 | installs some optimized memory functions, sets timezone and charmap 86 | defaults, installs fake-hwclock and ntp, wifi and bluetooth support, 87 | dphys-swapfile, and other basics for managing the hardware. It also 88 | creates necessary groups and gives the pi user access to sudo and the 89 | standard console hardware permission groups. 90 | 91 | There are a few tools that may not make a whole lot of sense here for 92 | development purposes on a minimal system such as basic python and lua 93 | packages as well as the `build-essential` package. They are lumped right 94 | in with more essential packages presently, though they need not be with 95 | pi-gen. These are understandable for Raspbian's target audience, but if 96 | you were looking for something between truly minimal and Raspbian-lite, 97 | here's where you start trimming. 98 | 99 | - Stage 3, desktop system. **Not used here**. Here's where you get the full desktop system 100 | with X11 and LXDE, web browsers, git for development, Raspbian custom UI 101 | enhancements, etc. This is a base desktop system, with some development 102 | tools installed. 103 | 104 | - Stage 4, complete Raspbian system. **Not used here**. More development tools, an email 105 | client, learning tools like Scratch, specialized packages like sonic-pi and 106 | wolfram-engine, system documentation, office productivity, etc. This is 107 | the stage that installs all of the things that make Raspbian friendly to 108 | new users. 109 | -------------------------------------------------------------------------------- /build.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash -e 2 | 3 | run_sub_stage() 4 | { 5 | log "Begin ${SUB_STAGE_DIR}" 6 | pushd ${SUB_STAGE_DIR} > /dev/null 7 | for i in {00..99}; do 8 | if [ -f ${i}-debconf ]; then 9 | log "Begin ${SUB_STAGE_DIR}/${i}-debconf" 10 | on_chroot sh -e - << EOF 11 | debconf-set-selections < /dev/null 40 | if [ "${CLEAN}" = "1" ]; then 41 | rm -rf .pc 42 | rm -rf *-pc 43 | fi 44 | QUILT_PATCHES=${SUB_STAGE_DIR}/${i}-patches 45 | SUB_STAGE_QUILT_PATCH_DIR="$(basename $SUB_STAGE_DIR)-pc" 46 | mkdir -p $SUB_STAGE_QUILT_PATCH_DIR 47 | ln -snf $SUB_STAGE_QUILT_PATCH_DIR .pc 48 | if [ -e ${SUB_STAGE_DIR}/${i}-patches/EDIT ]; then 49 | echo "Dropping into bash to edit patches..." 50 | bash 51 | fi 52 | quilt upgrade 53 | RC=0 54 | quilt push -a || RC=$? 55 | case "$RC" in 56 | 0|2) 57 | ;; 58 | *) 59 | false 60 | ;; 61 | esac 62 | popd > /dev/null 63 | log "End ${SUB_STAGE_DIR}/${i}-patches" 64 | fi 65 | if [ -x ${i}-run.sh ]; then 66 | log "Begin ${SUB_STAGE_DIR}/${i}-run.sh" 67 | ./${i}-run.sh 68 | log "End ${SUB_STAGE_DIR}/${i}-run.sh" 69 | fi 70 | if [ -f ${i}-run-chroot ]; then 71 | log "Begin ${SUB_STAGE_DIR}/${i}-run-chroot" 72 | on_chroot sh -e - < ${i}-run-chroot 73 | log "End ${SUB_STAGE_DIR}/${i}-run-chroot" 74 | fi 75 | done 76 | popd > /dev/null 77 | log "End ${SUB_STAGE_DIR}" 78 | } 79 | 80 | 81 | run_stage(){ 82 | log "Begin ${STAGE_DIR}" 83 | STAGE=$(basename ${STAGE_DIR}) 84 | pushd ${STAGE_DIR} > /dev/null 85 | unmount ${WORK_DIR}/${STAGE} 86 | STAGE_WORK_DIR=${WORK_DIR}/${STAGE} 87 | ROOTFS_DIR=${STAGE_WORK_DIR}/rootfs 88 | if [ -f ${STAGE_DIR}/EXPORT_IMAGE ]; then 89 | EXPORT_DIRS="${EXPORT_DIRS} ${STAGE_DIR}" 90 | fi 91 | if [ ! -f SKIP ]; then 92 | if [ "${CLEAN}" = "1" ]; then 93 | if [ -d ${ROOTFS_DIR} ]; then 94 | rm -rf ${ROOTFS_DIR} 95 | fi 96 | fi 97 | if [ -x prerun.sh ]; then 98 | log "Begin ${STAGE_DIR}/prerun.sh" 99 | ./prerun.sh 100 | log "End ${STAGE_DIR}/prerun.sh" 101 | fi 102 | for SUB_STAGE_DIR in ${STAGE_DIR}/*; do 103 | if [ -d ${SUB_STAGE_DIR} ] && 104 | [ ! -f ${SUB_STAGE_DIR}/SKIP ]; then 105 | run_sub_stage 106 | fi 107 | done 108 | fi 109 | unmount ${WORK_DIR}/${STAGE} 110 | PREV_STAGE=${STAGE} 111 | PREV_STAGE_DIR=${STAGE_DIR} 112 | PREV_ROOTFS_DIR=${ROOTFS_DIR} 113 | popd > /dev/null 114 | log "End ${STAGE_DIR}" 115 | } 116 | 117 | if [ "$(id -u)" != "0" ]; then 118 | echo "Please run as root" 1>&2 119 | exit 1 120 | fi 121 | 122 | if [ -f config ]; then 123 | source config 124 | fi 125 | 126 | if [ -z "${IMG_NAME}" ]; then 127 | echo "IMG_NAME not set" 1>&2 128 | exit 1 129 | fi 130 | 131 | export IMG_DATE=${IMG_DATE:-"$(date -u +%Y-%m-%d)"} 132 | 133 | export BASE_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" 134 | export SCRIPT_DIR="${BASE_DIR}/scripts" 135 | export WORK_DIR="${BASE_DIR}/work/${IMG_DATE}-${IMG_NAME}" 136 | export DEPLOY_DIR="${BASE_DIR}/deploy" 137 | export LOG_FILE="${WORK_DIR}/build.log" 138 | 139 | export CLEAN 140 | export IMG_NAME 141 | export APT_PROXY 142 | 143 | export STAGE 144 | export STAGE_DIR 145 | export STAGE_WORK_DIR 146 | export PREV_STAGE 147 | export PREV_STAGE_DIR 148 | export ROOTFS_DIR 149 | export PREV_ROOTFS_DIR 150 | export IMG_SUFFIX 151 | export EXPORT_DIR 152 | export EXPORT_ROOTFS_DIR 153 | 154 | export QUILT_PATCHES 155 | export QUILT_NO_DIFF_INDEX=1 156 | export QUILT_NO_DIFF_TIMESTAMPS=1 157 | export QUILT_REFRESH_ARGS="-p ab" 158 | 159 | source ${SCRIPT_DIR}/common 160 | source ${SCRIPT_DIR}/dependencies_check 161 | 162 | 163 | dependencies_check ${BASE_DIR}/depends 164 | 165 | mkdir -p ${WORK_DIR} 166 | log "Begin ${BASE_DIR}" 167 | 168 | for STAGE_DIR in ${BASE_DIR}/stage[0-2]; do 169 | run_stage 170 | done 171 | 172 | CLEAN=1 173 | for EXPORT_DIR in ${EXPORT_DIRS}; do 174 | STAGE_DIR=${BASE_DIR}/export-image 175 | IMG_SUFFIX=$(cat ${EXPORT_DIR}/EXPORT_IMAGE) 176 | EXPORT_ROOTFS_DIR=${WORK_DIR}/$(basename ${EXPORT_DIR})/rootfs 177 | run_stage 178 | # if [ -e ${EXPORT_DIR}/EXPORT_NOOBS ]; then 179 | # STAGE_DIR=${BASE_DIR}/export-noobs 180 | # run_stage 181 | # fi 182 | done 183 | 184 | log "End ${BASE_DIR}" 185 | -------------------------------------------------------------------------------- /depends: -------------------------------------------------------------------------------- 1 | quilt 2 | qemu-arm-static:qemu-user-static 3 | debootstrap 4 | kpartx zerofree 5 | pxz zip 6 | -------------------------------------------------------------------------------- /export-image/00-allow-rerun/00-run.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash -e 2 | 3 | if [ -e ${ROOTFS_DIR}/etc/ld.so.preload ]; then 4 | mv ${ROOTFS_DIR}/etc/ld.so.preload ${ROOTFS_DIR}/etc/ld.so.preload.disabled 5 | fi 6 | 7 | if [ ! -e ${ROOTFS_DIR}/usr/sbin/policy-rc.d ]; then 8 | install -m 744 files/policy-rc.d ${ROOTFS_DIR}/usr/sbin/ 9 | fi 10 | 11 | if [ ! -x ${ROOTFS_DIR}/usr/bin/qemu-arm-static ]; then 12 | cp /usr/bin/qemu-arm-static ${ROOTFS_DIR}/usr/bin/ 13 | fi 14 | -------------------------------------------------------------------------------- /export-image/00-allow-rerun/files/policy-rc.d: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | exit 101 3 | -------------------------------------------------------------------------------- /export-image/01-set-sources/00-patches/0-sources.diff: -------------------------------------------------------------------------------- 1 | Index: export-jessie/rootfs/etc/apt/sources.list.d/raspi.list 2 | =================================================================== 3 | --- export-jessie.orig/rootfs/etc/apt/sources.list.d/raspi.list 4 | +++ export-jessie/rootfs/etc/apt/sources.list.d/raspi.list 5 | @@ -1,3 +1,3 @@ 6 | -deb http://archive.raspberrypi.org/debian/ jessie main ui staging 7 | +deb http://archive.raspberrypi.org/debian/ jessie main ui 8 | # Uncomment line below then 'apt-get update' to enable 'apt-get source' 9 | #deb-src http://archive.raspberrypi.org/debian/ jessie main ui 10 | -------------------------------------------------------------------------------- /export-image/01-set-sources/00-patches/series: -------------------------------------------------------------------------------- 1 | 0-sources.diff 2 | -------------------------------------------------------------------------------- /export-image/01-set-sources/01-run.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash -e 2 | 3 | on_chroot sh -e - < /dev/null 34 | zip ${DEPLOY_DIR}/image_${IMG_DATE}-${IMG_NAME}${IMG_SUFFIX}.zip $(basename ${IMG_FILE}) 35 | popd > /dev/null 36 | -------------------------------------------------------------------------------- /export-image/03-finalise/files/LICENSE.oracle: -------------------------------------------------------------------------------- 1 | Taken from http://www.java.com/license 2 | 3 | Oracle Binary Code License Agreement for the Java SE Platform Products and JavaFX 4 | 5 | ORACLE AMERICA, INC. ("ORACLE"), FOR AND ON BEHALF OF ITSELF AND ITS SUBSIDIARIES AND AFFILIATES UNDER COMMON CONTROL, IS WILLING TO LICENSE THE SOFTWARE TO YOU ONLY UPON THE CONDITION THAT YOU ACCEPT ALL OF THE TERMS CONTAINED IN THIS BINARY CODE LICENSE AGREEMENT AND SUPPLEMENTAL LICENSE TERMS (COLLECTIVELY "AGREEMENT"). PLEASE READ THE AGREEMENT CAREFULLY. BY SELECTING THE "ACCEPT LICENSE AGREEMENT" (OR THE EQUIVALENT) BUTTON AND/OR BY USING THE SOFTWARE YOU ACKNOWLEDGE THAT YOU HAVE READ THE TERMS AND AGREE TO THEM. IF YOU ARE AGREEING TO THESE TERMS ON BEHALF OF A COMPANY OR OTHER LEGAL ENTITY, YOU REPRESENT THAT YOU HAVE THE LEGAL AUTHORITY TO BIND THE LEGAL ENTITY TO THESE TERMS. IF YOU DO NOT HAVE SUCH AUTHORITY, OR IF YOU DO NOT WISH TO BE BOUND BY THE TERMS, THEN SELECT THE "DECLINE LICENSE AGREEMENT" (OR THE EQUIVALENT) BUTTON AND YOU MUST NOT USE THE SOFTWARE ON THIS SITE OR ANY OTHER MEDIA ON WHICH THE SOFTWARE IS CONTAINED. 6 | 7 | 1. DEFINITIONS. "Software" means the software identified above in binary form that you selected for download, install or use (in the version You selected for download, install or use) from Oracle or its authorized licensees, any other machine readable materials (including, but not limited to, libraries, source files, header files, and data files), any updates or error corrections provided by Oracle, and any user manuals, programming guides and other documentation provided to you by Oracle under this Agreement. "General Purpose Desktop Computers and Servers" means computers, including desktop and laptop computers, or servers, used for general computing functions under end user control (such as but not specifically limited to email, general purpose Internet browsing, and office suite productivity tools). The use of Software in systems and solutions that provide dedicated functionality (other than as mentioned above) or designed for use in embedded or function-specific software applications, for example but not limited to: Software embedded in or bundled with industrial control systems, wireless mobile telephones, wireless handheld devices, kiosks, TV/STB, Blu-ray Disc devices, telematics and network control switching equipment, printers and storage management systems, and other related systems are excluded from this definition and not licensed under this Agreement. "Programs" means (a) Java technology applets and applications intended to run on the Java Platform, Standard Edition platform on Java-enabled General Purpose Desktop Computers and Servers; and (b) JavaFX technology applications intended to run on the JavaFX Runtime on JavaFX-enabled General Purpose Desktop Computers and Servers. “Commercial Features” means those features identified in Table 1-1 (Commercial Features In Java SE Product Editions) of the Java SE documentation accessible at http://www.oracle.com/technetwork/java/javase/documentation/index.html. “README File” means the README file for the Software accessible at http://www.oracle.com/technetwork/java/javase/documentation/index.html. 8 | 9 | 2. LICENSE TO USE. Subject to the terms and conditions of this Agreement including, but not limited to, the Java Technology Restrictions of the Supplemental License Terms, Oracle grants you a non-exclusive, non-transferable, limited license without license fees to reproduce and use internally the Software complete and unmodified for the sole purpose of running Programs. THE LICENSE SET FORTH IN THIS SECTION 2 DOES NOT EXTEND TO THE COMMERCIAL FEATURES. YOUR RIGHTS AND OBLIGATIONS RELATED TO THE COMMERCIAL FEATURES ARE AS SET FORTH IN THE SUPPLEMENTAL TERMS ALONG WITH ADDITIONAL LICENSES FOR DEVELOPERS AND PUBLISHERS. 10 | 11 | 3. RESTRICTIONS. Software is copyrighted. Title to Software and all associated intellectual property rights is retained by Oracle and/or its licensors. Unless enforcement is prohibited by applicable law, you may not modify, decompile, or reverse engineer Software. You acknowledge that the Software is developed for general use in a variety of information management applications; it is not developed or intended for use in any inherently dangerous applications, including applications that may create a risk of personal injury. If you use the Software in dangerous applications, then you shall be responsible to take all appropriate fail-safe, backup, redundancy, and other measures to ensure its safe use. Oracle disclaims any express or implied warranty of fitness for such uses. No right, title or interest in or to any trademark, service mark, logo or trade name of Oracle or its licensors is granted under this Agreement. Additional restrictions for developers and/or publishers licenses are set forth in the Supplemental License Terms. 12 | 13 | 4. DISCLAIMER OF WARRANTY. THE SOFTWARE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. ORACLE FURTHER DISCLAIMS ALL WARRANTIES, EXPRESS AND IMPLIED, INCLUDING WITHOUT LIMITATION, ANY IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NONINFRINGEMENT. 14 | 15 | 5. LIMITATION OF LIABILITY. IN NO EVENT SHALL ORACLE BE LIABLE FOR ANY INDIRECT, INCIDENTAL, SPECIAL, PUNITIVE OR CONSEQUENTIAL DAMAGES, OR DAMAGES FOR LOSS OF PROFITS, REVENUE, DATA OR DATA USE, INCURRED BY YOU OR ANY THIRD PARTY, WHETHER IN AN ACTION IN CONTRACT OR TORT, EVEN IF ORACLE HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. ORACLE'S ENTIRE LIABILITY FOR DAMAGES HEREUNDER SHALL IN NO EVENT EXCEED ONE THOUSAND DOLLARS (U.S. $1,000). 16 | 17 | 6. TERMINATION. This Agreement is effective until terminated. You may terminate this Agreement at any time by destroying all copies of Software. This Agreement will terminate immediately without notice from Oracle if you fail to comply with any provision of this Agreement. Either party may terminate this Agreement immediately should any Software become, or in either party's opinion be likely to become, the subject of a claim of infringement of any intellectual property right. Upon termination, you must destroy all copies of Software. 18 | 19 | 7. EXPORT REGULATIONS. You agree that U.S. export control laws and other applicable export and import laws govern your use of the Software, including technical data; additional information can be found on Oracle's Global Trade Compliance web site (http://www.oracle.com/products/export). You agree that neither the Software nor any direct product thereof will be exported, directly, or indirectly, in violation of these laws, or will be used for any purpose prohibited by these laws including, without limitation, nuclear, chemical, or biological weapons proliferation. 20 | 21 | 8. TRADEMARKS AND LOGOS. You acknowledge and agree as between you 22 | and Oracle that Oracle owns the ORACLE and JAVA trademarks and all ORACLE- and JAVA-related trademarks, service marks, logos and other brand 23 | designations ("Oracle Marks"), and you agree to comply with the Third 24 | Party Usage Guidelines for Oracle Trademarks currently located at 25 | http://www.oracle.com/us/legal/third-party-trademarks/index.html . Any use you make of the Oracle Marks inures to Oracle's benefit. 26 | 27 | 9. U.S. GOVERNMENT LICENSE RIGHTS. If Software is being acquired by or on behalf of the U.S. Government or by a U.S. Government prime contractor or subcontractor (at any tier), then the Government's rights in Software and accompanying documentation shall be only those set forth in this Agreement. 28 | 29 | 10. GOVERNING LAW. This agreement is governed by the substantive and procedural laws of California. You and Oracle agree to submit to the exclusive jurisdiction of, and venue in, the courts of San Francisco, or Santa Clara counties in California in any dispute arising out of or relating to this agreement. 30 | 31 | 11. SEVERABILITY. If any provision of this Agreement is held to be unenforceable, this Agreement will remain in effect with the provision omitted, unless omission would frustrate the intent of the parties, in which case this Agreement will immediately terminate. 32 | 33 | 12. INTEGRATION. This Agreement is the entire agreement between you and Oracle relating to its subject matter. It supersedes all prior or contemporaneous oral or written communications, proposals, representations and warranties and prevails over any conflicting or additional terms of any quote, order, acknowledgment, or other communication between the parties relating to its subject matter during the term of this Agreement. No modification of this Agreement will be binding, unless in writing and signed by an authorized representative of each party. 34 | 35 | SUPPLEMENTAL LICENSE TERMS 36 | 37 | These Supplemental License Terms add to or modify the terms of the Binary Code License Agreement. Capitalized terms not defined in these Supplemental Terms shall have the same meanings ascribed to them in the Binary Code License Agreement. These Supplemental Terms shall supersede any inconsistent or conflicting terms in the Binary Code License Agreement, or in any license contained within the Software. 38 | 39 | A. COMMERCIAL FEATURES. You may not use the Commercial Features for running Programs, Java applets or applications in your internal business operations or for any commercial or production purpose, or for any purpose other than as set forth in Sections B, C, D and E of these Supplemental Terms. If You want to use the Commercial Features for any purpose other than as permitted in this Agreement, You must obtain a separate license from Oracle. 40 | 41 | B. SOFTWARE INTERNAL USE FOR DEVELOPMENT LICENSE GRANT. Subject to the terms and conditions of this Agreement and restrictions and exceptions set forth in the README File incorporated herein by reference, including, but not limited to the Java Technology Restrictions of these Supplemental Terms, Oracle grants you a non-exclusive, non-transferable, limited license without fees to reproduce internally and use internally the Software complete and unmodified for the purpose of designing, developing, and testing your Programs. 42 | 43 | C. LICENSE TO DISTRIBUTE SOFTWARE. Subject to the terms and conditions of this Agreement and restrictions and exceptions set forth in the README File, including, but not limited to the Java Technology Restrictions and Limitations on Redistribution of these Supplemental Terms, Oracle grants you a non-exclusive, non-transferable, limited license without fees to reproduce and distribute the Software, provided that (i) you distribute the Software complete and unmodified and only bundled as part of, and for the sole purpose of running, your Programs, (ii) the Programs add significant and primary functionality to the Software, (iii) you do not distribute additional software intended to replace any component(s) of the Software, (iv) you do not remove or alter any proprietary legends or notices contained in the Software, (v) you only distribute the Software subject to a license agreement that: (a) is a complete, unmodified reproduction of this Agreement; or (b) protects Oracle's interests consistent with the terms contained in this Agreement and that includes the notice set forth in Section H, and (vi) you agree to defend and indemnify Oracle and its licensors from and against any damages, costs, liabilities, settlement amounts and/or expenses (including attorneys' fees) incurred in connection with any claim, lawsuit or action by any third party that arises or results from the use or distribution of any and all Programs and/or Software. The license set forth in this Section C does not extend to the Software identified in Section G. 44 | 45 | D. LICENSE TO DISTRIBUTE REDISTRIBUTABLES. Subject to the terms and conditions of this Agreement and restrictions and exceptions set forth in the README File, including but not limited to the Java Technology Restrictions and Limitations on Redistribution of these Supplemental Terms, Oracle grants you a non-exclusive, non-transferable, limited license without fees to reproduce and distribute those files specifically identified as redistributable in the README File ("Redistributables") provided that: (i) you distribute the Redistributables complete and unmodified, and only bundled as part of Programs, (ii) the Programs add significant and primary functionality to the Redistributables, (iii) you do not distribute additional software intended to supersede any component(s) of the Redistributables (unless otherwise specified in the applicable README File), (iv) you do not remove or alter any proprietary legends or notices contained in or on the Redistributables, (v) you only distribute the Redistributables pursuant to a license agreement that: (a) is a complete, unmodified reproduction of this Agreement; or (b) protects Oracle's interests consistent with the terms contained in the Agreement and includes the notice set forth in Section H, (vi) you agree to defend and indemnify Oracle and its licensors from and against any damages, costs, liabilities, settlement amounts and/or expenses (including attorneys' fees) incurred in connection with any claim, lawsuit or action by any third party that arises or results from the use or distribution of any and all Programs and/or Software. The license set forth in this Section D does not extend to the Software identified in Section G. 46 | 47 | E. DISTRIBUTION BY PUBLISHERS. This section pertains to your distribution of the JavaTM SE Development Kit Software (“JDK”) with your printed book or magazine (as those terms are commonly used in the industry) relating to Java technology ("Publication"). Subject to and conditioned upon your compliance with the restrictions and obligations contained in the Agreement, Oracle hereby grants to you a non-exclusive, nontransferable limited right to reproduce complete and unmodified copies of the JDK on electronic media (the "Media") for the sole purpose of inclusion and distribution with your Publication(s), subject to the following terms: (i) You may not distribute the JDK on a stand-alone basis; it must be distributed with your Publication(s); (ii) You are responsible for downloading the JDK from the applicable Oracle web site; (iii) You must refer to the JDK as JavaTM SE Development Kit; (iv) The JDK must be reproduced in its entirety and without any modification whatsoever (including with respect to all proprietary notices) and distributed with your Publication subject to a license agreement that is a complete, unmodified reproduction of this Agreement; (v) The Media label shall include the following information: “Copyright [YEAR], Oracle America, Inc. All rights reserved. Use is subject to license terms. ORACLE and JAVA trademarks and all ORACLE- and JAVA-related trademarks, service marks, logos and other brand designations are trademarks or registered trademarks of Oracle in the U.S. and other countries.” [YEAR] is the year of Oracle's release of the Software; the year information can typically be found in the Software’s “About” box or screen. This information must be placed on the Media label in such a manner as to only apply to the JDK; (vi) You must clearly identify the JDK as Oracle's product on the Media holder or Media label, and you may not state or imply that Oracle is responsible for any third-party software contained on the Media; (vii) You may not include any third party software on the Media which is intended to be a replacement or substitute for the JDK; (viii) You agree to defend and indemnify Oracle and its licensors from and against any damages, costs, liabilities, settlement amounts and/or expenses (including attorneys' fees) incurred in connection with any claim, lawsuit or action by any third party that arises or results from the use or distribution of the JDK and/or the Publication; ; and (ix) You shall provide Oracle with a written notice for each Publication; such notice shall include the following information: (1) title of Publication, (2) author(s), (3) date of Publication, and (4) ISBN or ISSN numbers. Such notice shall be sent to Oracle America, Inc., 500 Oracle Parkway, Redwood Shores, California 94065 U.S.A , Attention: General Counsel. 48 | 49 | F. JAVA TECHNOLOGY RESTRICTIONS. You may not create, modify, or change the behavior of, or authorize your licensees to create, modify, or change the behavior of, classes, interfaces, or subpackages that are in any way identified as "java", "javax", "sun", “oracle” or similar convention as specified by Oracle in any naming convention designation. 50 | 51 | G. LIMITATIONS ON REDISTRIBUTION. You may not redistribute or otherwise transfer patches, bug fixes or updates made available by Oracle through Oracle Premier Support, including those made available under Oracle's Java SE Support program. 52 | 53 | H. COMMERCIAL FEATURES NOTICE. For purpose of complying with Supplemental Term Section C.(v)(b) and D.(v)(b), your license agreement shall include the following notice, where the notice is displayed in a manner that anyone using the Software will see the notice: 54 | 55 | Use of the Commercial Features for any commercial or production purpose requires a separate license from Oracle. “Commercial Features” means those features identified Table 1-1 (Commercial Features In Java SE Product Editions) of the Java SE documentation accessible at http://www.oracle.com/technetwork/java/javase/documentation/index.html 56 | 57 | 58 | 59 | I. SOURCE CODE. Software may contain source code that, unless expressly licensed for other purposes, is provided solely for reference purposes pursuant to the terms of this Agreement. Source code may not be redistributed unless expressly provided for in this Agreement. 60 | 61 | J. THIRD PARTY CODE. Additional copyright notices and license terms applicable to portions of the Software are set forth in the THIRDPARTYLICENSEREADME file accessible at http://www.oracle.com/technetwork/java/javase/documentation/index.html. In addition to any terms and conditions of any third party opensource/freeware license identified in the THIRDPARTYLICENSEREADME file, the disclaimer of warranty and limitation of liability provisions in paragraphs 4 and 5 of the Binary Code License Agreement shall apply to all Software in this distribution. 62 | 63 | K. TERMINATION FOR INFRINGEMENT. Either party may terminate this Agreement immediately should any Software become, or in either party's opinion be likely to become, the subject of a claim of infringement of any intellectual property right. 64 | 65 | L. INSTALLATION AND AUTO-UPDATE. The Software's installation and auto-update processes transmit a limited amount of data to Oracle (or its service provider) about those specific processes to help Oracle understand and optimize them. Oracle does not associate the data with personally identifiable information. You can find more information about the data Oracle collects as a result of your Software download at http://www.oracle.com/technetwork/java/javase/documentation/index.html. 66 | 67 | For inquiries please contact: Oracle America, Inc., 500 Oracle Parkway, 68 | 69 | Redwood Shores, California 94065, USA. 70 | 71 | Last updated 02 April 2013 72 | 73 | -------------------------------------------------------------------------------- /export-image/prerun.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash -e 2 | IMG_FILE="${STAGE_WORK_DIR}/${IMG_DATE}-${IMG_NAME}${IMG_SUFFIX}.img" 3 | 4 | unmount_image ${IMG_FILE} 5 | 6 | rm -f ${IMG_FILE} 7 | 8 | rm -rf ${ROOTFS_DIR} 9 | mkdir -p ${ROOTFS_DIR} 10 | 11 | BOOT_SIZE=$(du -sh ${EXPORT_ROOTFS_DIR}/boot -B M | cut -f 1 | tr -d M) 12 | TOTAL_SIZE=$(du -sh ${EXPORT_ROOTFS_DIR} -B M | cut -f 1 | tr -d M) 13 | 14 | IMG_SIZE=$(expr $BOOT_SIZE \* 2 \+ $TOTAL_SIZE \+ 512)M 15 | 16 | fallocate -l ${IMG_SIZE} ${IMG_FILE} 17 | fdisk ${IMG_FILE} > /dev/null 2>&1 < /dev/null 42 | mkfs.ext4 -O ^huge_file $ROOT_DEV > /dev/null 43 | 44 | mount -v $ROOT_DEV ${ROOTFS_DIR} -t ext4 45 | mkdir -p ${ROOTFS_DIR}/boot 46 | mount -v $BOOT_DEV ${ROOTFS_DIR}/boot -t vfat 47 | 48 | rsync -aHAXx ${EXPORT_ROOTFS_DIR}/ ${ROOTFS_DIR}/ 49 | -------------------------------------------------------------------------------- /export-noobs/00-release/00-run.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash -e 2 | 3 | NOOBS_DIR="${STAGE_WORK_DIR}/${IMG_DATE}-${IMG_NAME}${IMG_SUFFIX}" 4 | 5 | install -v -m 744 files/partition_setup.sh ${NOOBS_DIR}/ 6 | install -v files/partitions.json ${NOOBS_DIR}/ 7 | install -v files/os.json ${NOOBS_DIR}/ 8 | install -v files/Raspbian.png ${NOOBS_DIR}/ 9 | install -v files/release_notes.txt ${NOOBS_DIR}/ 10 | 11 | tar -v -c -C files/marketing -f ${NOOBS_DIR}/marketing.tar . 12 | 13 | BOOT_SIZE=$(xz --robot -l ${NOOBS_DIR}/boot.tar.xz | grep totals | cut -f 5) 14 | ROOT_SIZE=$(xz --robot -l ${NOOBS_DIR}/root.tar.xz | grep totals | cut -f 5) 15 | 16 | BOOT_SIZE=$(expr ${BOOT_SIZE} / 1000000 \+ 1) 17 | ROOT_SIZE=$(expr ${ROOT_SIZE} / 1000000 \+ 1) 18 | 19 | BOOT_NOM=$(expr ${BOOT_SIZE} \* 3) 20 | ROOT_NOM=$(expr ${ROOT_SIZE} \+ 400) 21 | 22 | sed ${NOOBS_DIR}/partitions.json -i -e "s|BOOT_SIZE|${BOOT_SIZE}|" 23 | sed ${NOOBS_DIR}/partitions.json -i -e "s|ROOT_SIZE|${ROOT_SIZE}|" 24 | 25 | sed ${NOOBS_DIR}/partitions.json -i -e "s|BOOT_NOM|${BOOT_NOM}|" 26 | sed ${NOOBS_DIR}/partitions.json -i -e "s|ROOT_NOM|${ROOT_NOM}|" 27 | 28 | sed ${NOOBS_DIR}/release_notes.txt -i -e "s|UNRELEASED|${IMG_DATE}|" 29 | sed ${NOOBS_DIR}/os.json -i -e "s|UNRELEASED|${IMG_DATE}|" 30 | 31 | cp -a ${NOOBS_DIR} ${DEPLOY_DIR}/ 32 | -------------------------------------------------------------------------------- /export-noobs/00-release/files/Raspbian.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonasrosland/pi-gen/e9b18c88ff252e1c6c10fadf2adbe8da0d68b8bc/export-noobs/00-release/files/Raspbian.png -------------------------------------------------------------------------------- /export-noobs/00-release/files/marketing/slides_vga/A.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonasrosland/pi-gen/e9b18c88ff252e1c6c10fadf2adbe8da0d68b8bc/export-noobs/00-release/files/marketing/slides_vga/A.png -------------------------------------------------------------------------------- /export-noobs/00-release/files/marketing/slides_vga/B.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonasrosland/pi-gen/e9b18c88ff252e1c6c10fadf2adbe8da0d68b8bc/export-noobs/00-release/files/marketing/slides_vga/B.png -------------------------------------------------------------------------------- /export-noobs/00-release/files/marketing/slides_vga/C.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonasrosland/pi-gen/e9b18c88ff252e1c6c10fadf2adbe8da0d68b8bc/export-noobs/00-release/files/marketing/slides_vga/C.png -------------------------------------------------------------------------------- /export-noobs/00-release/files/marketing/slides_vga/D.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonasrosland/pi-gen/e9b18c88ff252e1c6c10fadf2adbe8da0d68b8bc/export-noobs/00-release/files/marketing/slides_vga/D.png -------------------------------------------------------------------------------- /export-noobs/00-release/files/marketing/slides_vga/E.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonasrosland/pi-gen/e9b18c88ff252e1c6c10fadf2adbe8da0d68b8bc/export-noobs/00-release/files/marketing/slides_vga/E.png -------------------------------------------------------------------------------- /export-noobs/00-release/files/marketing/slides_vga/F.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonasrosland/pi-gen/e9b18c88ff252e1c6c10fadf2adbe8da0d68b8bc/export-noobs/00-release/files/marketing/slides_vga/F.png -------------------------------------------------------------------------------- /export-noobs/00-release/files/marketing/slides_vga/G.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonasrosland/pi-gen/e9b18c88ff252e1c6c10fadf2adbe8da0d68b8bc/export-noobs/00-release/files/marketing/slides_vga/G.png -------------------------------------------------------------------------------- /export-noobs/00-release/files/os.json: -------------------------------------------------------------------------------- 1 | { 2 | "description": "A community-created port of Debian jessie for the Raspberry Pi", 3 | "feature_level": 35120124, 4 | "kernel": "4.4", 5 | "name": "Raspbian", 6 | "password": "raspberry", 7 | "release_date": "UNRELEASED", 8 | "supported_hex_revisions": "2,3,4,5,6,7,8,9,d,e,f,10,11,12,14,19,1040,1041,0092,0093,2082", 9 | "supported_models": [ 10 | "Pi Model", 11 | "Pi 2", 12 | "Pi Zero", 13 | "Pi 3" 14 | ], 15 | "url": "http://www.raspbian.org/", 16 | "username": "pi", 17 | "version": "jessie" 18 | } 19 | -------------------------------------------------------------------------------- /export-noobs/00-release/files/partition_setup.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | set -ex 4 | 5 | if [ -z "$part1" ] || [ -z "$part2" ]; then 6 | printf "Error: missing environment variable part1 or part2\n" 1>&2 7 | exit 1 8 | fi 9 | 10 | mkdir -p /tmp/1 /tmp/2 11 | 12 | mount "$part1" /tmp/1 13 | mount "$part2" /tmp/2 14 | 15 | sed /tmp/1/cmdline.txt -i -e "s|root=/dev/[^ ]*|root=${part2}|" 16 | sed /tmp/2/etc/fstab -i -e "s|^.* / |${part2} / |" 17 | sed /tmp/2/etc/fstab -i -e "s|^.* /boot |${part1} /boot |" 18 | 19 | if ! grep -q resize /proc/cmdline; then 20 | sed -i 's/ quiet init=.*$//' /tmp/1/cmdline.txt 21 | fi 22 | 23 | umount /tmp/1 24 | umount /tmp/2 25 | -------------------------------------------------------------------------------- /export-noobs/00-release/files/partitions.json: -------------------------------------------------------------------------------- 1 | { 2 | "partitions": [ 3 | { 4 | "filesystem_type": "FAT", 5 | "label": "boot", 6 | "partition_size_nominal": BOOT_NOM, 7 | "uncompressed_tarball_size": BOOT_SIZE, 8 | "want_maximised": false 9 | }, 10 | { 11 | "filesystem_type": "ext4", 12 | "label": "root", 13 | "mkfs_options": "-O ^huge_file", 14 | "partition_size_nominal": ROOT_NOM, 15 | "uncompressed_tarball_size": ROOT_SIZE, 16 | "want_maximised": true 17 | } 18 | ] 19 | } 20 | -------------------------------------------------------------------------------- /export-noobs/00-release/files/release_notes.txt: -------------------------------------------------------------------------------- 1 | UNRELEASED: 2 | * Fixed crash of lxpanel when D-bus not accessible 3 | * Fixed permissions for D-bus Bluetooth access 4 | * Removed sudo from shutdown options 5 | * Appearance of tooltips updated in theme 6 | * Fixed ejecter plugin grabbing focus 7 | * raspi-config command line and GUI apps tidied; unnecessary reboots removed 8 | * More error detection in piclone; copying of volume names and IDs added 9 | * Updated translation files 10 | 2016-05-10: 11 | * New version of Scratch, which no longer requires sudo 12 | * New version of BlueJ 13 | * New version of NodeRED 14 | * New version of pypy 15 | * pigpio included 16 | * geany editor included 17 | * SD Card Copier added (can be used to duplicate or back up the Pi) 18 | * Bluetooth plugin added to taskbar 19 | * Volume control on taskbar now compatible with Bluetooth devices 20 | * New shutdown helper application 21 | * Mouse double-click speed setting added to mouse and keyboard preference application 22 | * Option to enable / disable 1-wire interface and remote access to pigpio added to Raspberry Pi config application 23 | * File system automatically expanded on first boot 24 | * Empty Wastebasket option added to right-click menu 25 | * Ctrl-Alt-T can be used to open a terminal window 26 | * Various small bug fixes and appearance tweaks 27 | * Updated firmware and kernel (https://github.com/raspberrypi/firmware/commit/cc6d7bf8b4c03a2a660ff9fdf4083fc165620866) 28 | 2016-03-18: 29 | * updated firmware and kernel (https://github.com/raspberrypi/firmware/commit/951799bbcd795ddf27769d14acf4813fdcbe53dc) 30 | * use serial0 in cmdline.txt 31 | * wpa_supplicant.conf country default to GB (allows use of channels 12 and 13) 32 | 2016-02-26: 33 | * Support added for Pi 3, including Wifi and Bluetooth 34 | * Option to set wifi country code added to raspi-config 35 | 2016-02-09: 36 | * dtb that uses mmc sdcard driver (fixes problems experienced with certain SD cards) 37 | 2016-02-03: 38 | * new version of Sonic Pi (2.9) 39 | * new version of Scratch (15/1/16) 40 | * new version of Node-Red (2.5) 41 | * new version of Wolfram (10.3) 42 | * optional experimental GL desktop driver (can be enabled using advanced options in command-line raspi-config) 43 | * new version of Java (1.8.0_65) 44 | * new version of WiringPi 45 | * raspi-gpio included 46 | * ping no longer requires sudo (except NOOBS installs) 47 | * support for more USB audio devices in lxpanel 48 | * bug fix for creation of new menus in Alacarte 49 | * various changes to raspi-config and GUI to tidy up board support and fix bugs, and updated translations 50 | * small tweaks to theme to support GL driver 51 | 2015-11-21: 52 | * Included IBM Node-RED IoT application 53 | * Included graphical package manager 54 | * Included accelerated pixman library 55 | * Updated Epiphany browser to improve video compatibility 56 | * Updated Scratch with performance improvements and bug fixes 57 | * Updated Raspberry Pi configuration to allow boot to pause while 58 | network is established 59 | * Various minor bug fixes 60 | 2015-09-25: 61 | * Based on Debian Jessie 62 | * Upgraded applications - Epiphany browser, Scratch and Sonic Pi 63 | * Included applications - LibreOffice, Claws Mail, Greenfoot, BlueJ 64 | * Included utilities - Alacarte menu editor, Lxkeymap, scrot, tree, pip 65 | * New GUI-based Raspberry Pi Configuration application 66 | * GPIO control now possible without need for sudo 67 | * Web link to Magpi magazine included 68 | * New taskbar plugin to eject mounted USB drives 69 | * Default boot is now to GUI not desktop 70 | * Look and feel now based on GTK+3 default theme 71 | * Print screen key launches scrot to produce screenshot 72 | * Common keyboards autodetected by GUI and drivers loaded accordingly 73 | * Numerous small tweaks and bugfixes 74 | 2015-05-05: 75 | * Updated UI changes 76 | * Updated firmware 77 | * Install raspberrypi-net-mods 78 | * Install avahi-daemon 79 | * Add user pi to new i2c and spi groups 80 | * Modified udev rules for i2c and spi devices 81 | 2015-02-16: 82 | * Newer firmware with various fixes 83 | * New Sonic Pi release 84 | * Pi2 compatible RPi.GPIO 85 | * Updated Wolfram Mathematica 86 | 2015-01-31: 87 | * Support for Pi2 88 | * Newer firmware 89 | * New Sonic Pi release 90 | * Updated Scratch 91 | * New Wolfram Mathematica release 92 | * Updated Epiphany 93 | 2014-12-24: 94 | * Fix regression with omission of python-pygame 95 | 2014-12-22: 96 | * New firmware with variosu fixes and improvements 97 | * New UI configuration for lxde 98 | * Various package updates 99 | * python3-pygame preinstalled 100 | * 'nuscratch', scratch running on the Cog StackVM 101 | * Misc other changes 102 | 2014-09-09: 103 | * New firmware with various fixes and improvements 104 | * Minecraft Pi pre-installed 105 | * Sonic Pi upgraded to 2.0 106 | * Include Epiphany browser work from Collabora 107 | * Switch to Java 8 from Java 7 108 | * Updated Mathematica 109 | * Misc minor configuration changes 110 | 2014-06-20: 111 | * New firmware with various fixes, and kernel bugfix 112 | 2014-06-02: 113 | * Many, many firmware updates with major USB improvements 114 | * pyserial installed by default 115 | * picamera installed by default 116 | 2014-01-07: 117 | * Firmware updated 118 | * Some space saved on the root filesystem 119 | 2013-12-20: 120 | * Firmware updated, includes V4L2 fixes 121 | * Update omxplayer 122 | 2013-12-18: 123 | * Firmware updated and now using kernel 3.10. Many, many improvements 124 | * fbturbo XOrg driver is now included and enabled by default. Thanks to 125 | ssvb https://github.com/ssvb/xf86-video-fbturbo 126 | * Update Scratch image with further bug fixes 127 | * Include Wolfram Mathematica 128 | * Update to PyPy 2.2 129 | * Update omxplayer 130 | * Include v4l-utils for use with experimental V4L2 Raspberry Pi camera driver 131 | * Update squeak-vm to fix issues with loading JPEGs 132 | 2013-09-25: 133 | * Update Scratch image for further performance improvements 134 | * Include Oracle JDK 135 | * At least a 4GiB SD card is now required (see above) 136 | * Include PyPy 2.1 137 | * Include base piface packages 138 | * Update raspi-config to include bugfix for inheriting language settings 139 | from NOOBS 140 | 2013-09-10: 141 | * Updated to current top of tree firmware 142 | * Update squeak-vm, including fastblit optimised for the Raspbery Pi 143 | * Include Sonic Pi and a fixed jackd2 package 144 | * Support boot to Scratch 145 | * Inherit keyboard and language settings from NOOBS 146 | -------------------------------------------------------------------------------- /export-noobs/prerun.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash -e 2 | 3 | IMG_FILE="${STAGE_WORK_DIR}/${IMG_DATE}-${IMG_NAME}${IMG_SUFFIX}.img" 4 | NOOBS_DIR="${STAGE_WORK_DIR}/${IMG_DATE}-${IMG_NAME}${IMG_SUFFIX}" 5 | unmount_image ${IMG_FILE} 6 | 7 | mkdir -p ${STAGE_WORK_DIR} 8 | cp ${WORK_DIR}/export-image/${IMG_DATE}-${IMG_NAME}${IMG_SUFFIX}.img ${STAGE_WORK_DIR}/ 9 | 10 | rm -rf ${STAGE_WORK_DIR}/${IMG_DATE}-${IMG_NAME}${IMG_SUFFIX} 11 | 12 | LOOP_DEV=`kpartx -asv ${IMG_FILE} | grep -E -o -m1 'loop[[:digit:]]+' | head -n 1` 13 | BOOT_DEV=/dev/mapper/${LOOP_DEV}p1 14 | ROOT_DEV=/dev/mapper/${LOOP_DEV}p2 15 | 16 | mkdir -p ${STAGE_WORK_DIR}/rootfs 17 | mkdir -p ${NOOBS_DIR} 18 | 19 | mount $ROOT_DEV ${STAGE_WORK_DIR}/rootfs 20 | mount $BOOT_DEV ${STAGE_WORK_DIR}/rootfs/boot 21 | 22 | tar -I pxz -C ${STAGE_WORK_DIR}/rootfs/boot -cpf ${NOOBS_DIR}/boot.tar.xz . 23 | tar -I pxz -C ${STAGE_WORK_DIR}/rootfs --one-file-system -cpf ${NOOBS_DIR}/root.tar.xz . 24 | 25 | unmount_image ${IMG_FILE} 26 | -------------------------------------------------------------------------------- /scripts/check_deps.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonasrosland/pi-gen/e9b18c88ff252e1c6c10fadf2adbe8da0d68b8bc/scripts/check_deps.sh -------------------------------------------------------------------------------- /scripts/common: -------------------------------------------------------------------------------- 1 | log (){ 2 | date +"[%T] $@" | tee -a ${LOG_FILE} 3 | } 4 | export -f log 5 | 6 | bootstrap(){ 7 | local ARCH=$(dpkg --print-architecture) 8 | 9 | export http_proxy=${APT_PROXY} 10 | 11 | if [ "$ARCH" != "armhf" ]; then 12 | local BOOTSTRAP_CMD=qemu-debootstrap 13 | else 14 | local BOOTSTRAP_CMD=debootstrap 15 | fi 16 | 17 | ${BOOTSTRAP_CMD} --components=main,contrib,non-free \ 18 | --arch armhf\ 19 | --no-check-gpg \ 20 | $1 $2 $3 21 | } 22 | export -f bootstrap 23 | 24 | copy_previous(){ 25 | if [ ! -d ${PREV_ROOTFS_DIR} ]; then 26 | echo "Previous stage rootfs not found" 27 | false 28 | fi 29 | mkdir -p ${ROOTFS_DIR} 30 | rsync -aHAXx ${PREV_ROOTFS_DIR}/ ${ROOTFS_DIR}/ 31 | } 32 | export -f copy_previous 33 | 34 | unmount(){ 35 | if [ -z "$1" ]; then 36 | DIR=$PWD 37 | else 38 | DIR=$1 39 | fi 40 | 41 | while mount | grep -q $DIR; do 42 | local LOCS=`mount | grep $DIR | cut -f 3 -d ' ' | sort -r` 43 | for loc in $LOCS; do 44 | umount $loc 45 | done 46 | done 47 | } 48 | export -f unmount 49 | 50 | unmount_image(){ 51 | sync 52 | sleep 1 53 | local LOOP_DEV=$(losetup -j ${1} | cut -f1 -d':') 54 | if [ -n "${LOOP_DEV}" ]; then 55 | local MOUNTED_DIR=$(mount | grep $(basename ${LOOP_DEV}) | head -n 1 | cut -f 3 -d ' ') 56 | if [ -n "${MOUNTED_DIR}" ]; then 57 | unmount $(dirname ${MOUNTED_DIR}) 58 | fi 59 | sleep 1 60 | kpartx -ds ${LOOP_DEV} 61 | losetup -d ${LOOP_DEV} 62 | fi 63 | } 64 | export -f unmount_image 65 | 66 | on_chroot() { 67 | if ! mount | grep -q `realpath ${ROOTFS_DIR}/proc`; then 68 | mount -t proc proc ${ROOTFS_DIR}/proc 69 | fi 70 | 71 | if ! mount | grep -q `realpath ${ROOTFS_DIR}/dev`; then 72 | mount --bind /dev ${ROOTFS_DIR}/dev 73 | fi 74 | 75 | if ! mount | grep -q `realpath ${ROOTFS_DIR}/dev/pts`; then 76 | mount --bind /dev/pts ${ROOTFS_DIR}/dev/pts 77 | fi 78 | 79 | if ! mount | grep -q `realpath ${ROOTFS_DIR}/sys`; then 80 | mount --bind /sys ${ROOTFS_DIR}/sys 81 | fi 82 | 83 | chroot ${ROOTFS_DIR}/ "$@" 84 | } 85 | export -f on_chroot 86 | 87 | update_issue() { 88 | local GIT_HASH=$(git rev-parse HEAD) 89 | echo -e "Raspberry Pi reference ${IMG_DATE}\nGenerated using pi-gen, https://github.com/RPi-Distro/pi-gen, ${GIT_HASH}, ${1}" > ${ROOTFS_DIR}/etc/rpi-issue 90 | } 91 | export -f update_issue 92 | -------------------------------------------------------------------------------- /scripts/dependencies_check: -------------------------------------------------------------------------------- 1 | # dependencies_check 2 | # $@ Dependnecy files to check 3 | # 4 | # Each dependency is in the form of a tool to test for, optionally followed by 5 | # a : and the name of a package if the package on a Debian-ish system is not 6 | # named for the tool (i.e., qemu-user-static). 7 | dependencies_check() 8 | { 9 | local depfile deps missing 10 | 11 | for depfile in "$@"; do 12 | if [[ -e "$depfile" ]]; then 13 | deps="$(sed -f "${SCRIPT_DIR}/remove-comments.sed" < ${BASE_DIR}/depends)" 14 | 15 | fi 16 | for dep in $deps; do 17 | if ! hash ${dep%:*} 2>/dev/null; then 18 | missing="${missing:+$missing }${dep#*:}" 19 | fi 20 | done 21 | done 22 | 23 | if [[ "$missing" ]]; then 24 | echo "Reqired dependencies not installed" 25 | echo 26 | echo "This can be resolved on Debian/Raspbian systems by installing:" 27 | echo "$missing" 28 | false 29 | fi 30 | } 31 | -------------------------------------------------------------------------------- /scripts/release.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonasrosland/pi-gen/e9b18c88ff252e1c6c10fadf2adbe8da0d68b8bc/scripts/release.sh -------------------------------------------------------------------------------- /scripts/remove-comments.sed: -------------------------------------------------------------------------------- 1 | # Deletes comments and collapses whitespace in ##-packages files 2 | 3 | # Append (N)ext line to buffer 4 | # if (!)not ($)buffer is EOF, (b)ranch to (:)label loop 5 | :loop 6 | N 7 | $ !b loop 8 | 9 | # Buffer is "line1\nline2\n...lineN", del comments and collapse whitespace 10 | s/#[^\n]*//g 11 | s/[[:space:]]\{1,\}/ /g 12 | -------------------------------------------------------------------------------- /stage0/01-configure-apt/00-run.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash -e 2 | 3 | install -m 644 files/sources.list ${ROOTFS_DIR}/etc/apt/ 4 | install -m 644 files/raspi.list ${ROOTFS_DIR}/etc/apt/sources.list.d/ 5 | 6 | if [ -n "$APT_PROXY" ]; then 7 | install -m 644 files/51cache ${ROOTFS_DIR}/etc/apt/apt.conf.d/51cache 8 | sed ${ROOTFS_DIR}/etc/apt/apt.conf.d/51cache -i -e "s|APT_PROXY|${APT_PROXY}|" 9 | else 10 | rm -f ${ROOTFS_DIR}/etc/apt/apt.conf.d/51cache 11 | fi 12 | 13 | on_chroot apt-key add - < files/raspberrypi.gpg.key 14 | on_chroot sh -e - << EOF 15 | apt-get update 16 | apt-get dist-upgrade -y 17 | EOF 18 | -------------------------------------------------------------------------------- /stage0/01-configure-apt/files/51cache: -------------------------------------------------------------------------------- 1 | Acquire::http { Proxy "APT_PROXY"; }; 2 | -------------------------------------------------------------------------------- /stage0/01-configure-apt/files/raspberrypi.gpg.key: -------------------------------------------------------------------------------- 1 | -----BEGIN PGP PUBLIC KEY BLOCK----- 2 | Version: GnuPG v1.4.12 (GNU/Linux) 3 | 4 | mQENBE/d7o8BCACrwqQacGJfn3tnMzGui6mv2lLxYbsOuy/+U4rqMmGEuo3h9m92 5 | 30E2EtypsoWczkBretzLUCFv+VUOxaA6sV9+puTqYGhhQZFuKUWcG7orf7QbZRuu 6 | TxsEUepW5lg7MExmAu1JJzqM0kMQX8fVyWVDkjchZ/is4q3BPOUCJbUJOsE+kK/6 7 | 8kW6nWdhwSAjfDh06bA5wvoXNjYoDdnSZyVdcYCPEJXEg5jfF/+nmiFKMZBraHwn 8 | eQsepr7rBXxNcEvDlSOPal11fg90KXpy7Umre1UcAZYJdQeWcHu7X5uoJx/MG5J8 9 | ic6CwYmDaShIFa92f8qmFcna05+lppk76fsnABEBAAG0IFJhc3BiZXJyeSBQaSBB 10 | cmNoaXZlIFNpZ25pbmcgS2V5iQE4BBMBAgAiBQJP3e6PAhsDBgsJCAcDAgYVCAIJ 11 | CgsEFgIDAQIeAQIXgAAKCRCCsSmSf6MwPk6vB/9pePB3IukU9WC9Bammh3mpQTvL 12 | OifbkzHkmAYxzjfK6D2I8pT0xMxy949+ThzJ7uL60p6T/32ED9DR3LHIMXZvKtuc 13 | mQnSiNDX03E2p7lIP/htoxW2hDP2n8cdlNdt0M9IjaWBppsbO7IrDppG2B1aRLni 14 | uD7v8bHRL2mKTtIDLX42Enl8aLAkJYgNWpZyPkDyOqamjijarIWjGEPCkaURF7g4 15 | d44HvYhpbLMOrz1m6N5Bzoa5+nq3lmifeiWKxioFXU+Hy5bhtAM6ljVb59hbD2ra 16 | X4+3LXC9oox2flmQnyqwoyfZqVgSQa0B41qEQo8t1bz6Q1Ti7fbMLThmbRHiuQEN 17 | BE/d7o8BCADNlVtBZU63fm79SjHh5AEKFs0C3kwa0mOhp9oas/haDggmhiXdzeD3 18 | 49JWz9ZTx+vlTq0s+I+nIR1a+q+GL+hxYt4HhxoA6vlDMegVfvZKzqTX9Nr2VqQa 19 | S4Kz3W5ULv81tw3WowK6i0L7pqDmvDqgm73mMbbxfHD0SyTt8+fk7qX6Ag2pZ4a9 20 | ZdJGxvASkh0McGpbYJhk1WYD+eh4fqH3IaeJi6xtNoRdc5YXuzILnp+KaJyPE5CR 21 | qUY5JibOD3qR7zDjP0ueP93jLqmoKltCdN5+yYEExtSwz5lXniiYOJp8LWFCgv5h 22 | m8aYXkcJS1xVV9Ltno23YvX5edw9QY4hABEBAAGJAR8EGAECAAkFAk/d7o8CGwwA 23 | CgkQgrEpkn+jMD5Figf/dIC1qtDMTbu5IsI5uZPX63xydaExQNYf98cq5H2fWF6O 24 | yVR7ERzA2w33hI0yZQrqO6pU9SRnHRxCFvGv6y+mXXXMRcmjZG7GiD6tQWeN/3wb 25 | EbAn5cg6CJ/Lk/BI4iRRfBX07LbYULCohlGkwBOkRo10T+Ld4vCCnBftCh5x2OtZ 26 | TOWRULxP36y2PLGVNF+q9pho98qx+RIxvpofQM/842ZycjPJvzgVQsW4LT91KYAE 27 | 4TVf6JjwUM6HZDoiNcX6d7zOhNfQihXTsniZZ6rky287htsWVDNkqOi5T3oTxWUo 28 | m++/7s3K3L0zWopdhMVcgg6Nt9gcjzqN1c0gy55L/g== 29 | =mNSj 30 | -----END PGP PUBLIC KEY BLOCK----- 31 | -------------------------------------------------------------------------------- /stage0/01-configure-apt/files/raspi.list: -------------------------------------------------------------------------------- 1 | deb http://archive.raspberrypi.org/debian/ jessie main ui staging 2 | # Uncomment line below then 'apt-get update' to enable 'apt-get source' 3 | #deb-src http://archive.raspberrypi.org/debian/ jessie main ui 4 | -------------------------------------------------------------------------------- /stage0/01-configure-apt/files/sources.list: -------------------------------------------------------------------------------- 1 | deb http://mirrordirector.raspbian.org/raspbian/ jessie main contrib non-free rpi 2 | # Uncomment line below then 'apt-get update' to enable 'apt-get source' 3 | #deb-src http://archive.raspbian.org/raspbian/ jessie main contrib non-free rpi 4 | -------------------------------------------------------------------------------- /stage0/02-firmware/01-packages: -------------------------------------------------------------------------------- 1 | raspberrypi-bootloader 2 | -------------------------------------------------------------------------------- /stage0/prerun.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash -e 2 | if [ ! -d ${ROOTFS_DIR} ]; then 3 | bootstrap jessie ${ROOTFS_DIR} http://mirrordirector.raspbian.org/raspbian/ 4 | fi 5 | -------------------------------------------------------------------------------- /stage1/00-boot-files/00-run.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash -e 2 | 3 | install -m 644 files/cmdline.txt ${ROOTFS_DIR}/boot/ 4 | install -m 644 files/config.txt ${ROOTFS_DIR}/boot/ 5 | -------------------------------------------------------------------------------- /stage1/00-boot-files/files/cmdline.txt: -------------------------------------------------------------------------------- 1 | dwc_otg.lpm_enable=0 console=serial0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait 2 | -------------------------------------------------------------------------------- /stage1/00-boot-files/files/config.txt: -------------------------------------------------------------------------------- 1 | # For more options and information see 2 | # http://www.raspberrypi.org/documentation/configuration/config-txt.md 3 | # Some settings may impact device functionality. See link above for details 4 | 5 | # uncomment if you get no picture on HDMI for a default "safe" mode 6 | #hdmi_safe=1 7 | 8 | # uncomment this if your display has a black border of unused pixels visible 9 | # and your display can output without overscan 10 | #disable_overscan=1 11 | 12 | # uncomment the following to adjust overscan. Use positive numbers if console 13 | # goes off screen, and negative if there is too much border 14 | #overscan_left=16 15 | #overscan_right=16 16 | #overscan_top=16 17 | #overscan_bottom=16 18 | 19 | # uncomment to force a console size. By default it will be display's size minus 20 | # overscan. 21 | #framebuffer_width=1280 22 | #framebuffer_height=720 23 | 24 | # uncomment if hdmi display is not detected and composite is being output 25 | #hdmi_force_hotplug=1 26 | 27 | # uncomment to force a specific HDMI mode (this will force VGA) 28 | #hdmi_group=1 29 | #hdmi_mode=1 30 | 31 | # uncomment to force a HDMI mode rather than DVI. This can make audio work in 32 | # DMT (computer monitor) modes 33 | #hdmi_drive=2 34 | 35 | # uncomment to increase signal to HDMI, if you have interference, blanking, or 36 | # no display 37 | #config_hdmi_boost=4 38 | 39 | # uncomment for composite PAL 40 | #sdtv_mode=2 41 | 42 | #uncomment to overclock the arm. 700 MHz is the default. 43 | #arm_freq=800 44 | 45 | # Uncomment some or all of these to enable the optional hardware interfaces 46 | #dtparam=i2c_arm=on 47 | #dtparam=i2s=on 48 | #dtparam=spi=on 49 | 50 | # Uncomment this to enable the lirc-rpi module 51 | #dtoverlay=lirc-rpi 52 | 53 | # Additional overlays and parameters are documented /boot/overlays/README 54 | 55 | # Enable audio (loads snd_bcm2835) 56 | dtparam=audio=on 57 | -------------------------------------------------------------------------------- /stage1/01-sys-tweaks/00-patches/01-bashrc.diff: -------------------------------------------------------------------------------- 1 | --- a/rootfs/etc/skel/.bashrc 2 | +++ b/rootfs/etc/skel/.bashrc 3 | @@ -43,7 +43,7 @@ 4 | # uncomment for a colored prompt, if the terminal has the capability; turned 5 | # off by default to not distract the user: the focus in a terminal window 6 | # should be on the output of commands, not on the prompt 7 | -#force_color_prompt=yes 8 | +force_color_prompt=yes 9 | 10 | if [ -n "$force_color_prompt" ]; then 11 | if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then 12 | @@ -57,7 +57,7 @@ 13 | fi 14 | 15 | if [ "$color_prompt" = yes ]; then 16 | - PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ ' 17 | + PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w \$\[\033[00m\] ' 18 | else 19 | PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ ' 20 | fi 21 | @@ -79,9 +79,9 @@ 22 | #alias dir='dir --color=auto' 23 | #alias vdir='vdir --color=auto' 24 | 25 | - #alias grep='grep --color=auto' 26 | - #alias fgrep='fgrep --color=auto' 27 | - #alias egrep='egrep --color=auto' 28 | + alias grep='grep --color=auto' 29 | + alias fgrep='fgrep --color=auto' 30 | + alias egrep='egrep --color=auto' 31 | fi 32 | 33 | # colored GCC warnings and errors 34 | -------------------------------------------------------------------------------- /stage1/01-sys-tweaks/00-patches/series: -------------------------------------------------------------------------------- 1 | 01-bashrc.diff 2 | -------------------------------------------------------------------------------- /stage1/01-sys-tweaks/00-run.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash -e 2 | 3 | install -d ${ROOTFS_DIR}/etc/systemd/system/getty@tty1.service.d 4 | install -m 644 files/noclear.conf ${ROOTFS_DIR}/etc/systemd/system/getty@tty1.service.d/noclear.conf 5 | install -m 744 files/policy-rc.d ${ROOTFS_DIR}/usr/sbin/policy-rc.d #TODO: Necessary in systemd? 6 | install -v -m 644 files/fstab ${ROOTFS_DIR}/etc/fstab 7 | 8 | on_chroot sh -e - </dev/null 2>&1; then 10 | adduser --disabled-password --gecos "" pi 11 | fi 12 | echo "pi:raspberry" | chpasswd 13 | echo "root:root" | chpasswd 14 | EOF 15 | 16 | 17 | -------------------------------------------------------------------------------- /stage1/01-sys-tweaks/files/fstab: -------------------------------------------------------------------------------- 1 | proc /proc proc defaults 0 0 2 | /dev/mmcblk0p1 /boot vfat defaults 0 2 3 | /dev/mmcblk0p2 / ext4 defaults,noatime 0 1 4 | -------------------------------------------------------------------------------- /stage1/01-sys-tweaks/files/noclear.conf: -------------------------------------------------------------------------------- 1 | [Service] 2 | TTYVTDisallocate=no 3 | -------------------------------------------------------------------------------- /stage1/01-sys-tweaks/files/policy-rc.d: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | exit 101 3 | -------------------------------------------------------------------------------- /stage1/02-net-tweaks/00-patches/01-hosts.diff: -------------------------------------------------------------------------------- 1 | Index: jessie-stage1/rootfs/etc/hosts 2 | =================================================================== 3 | --- jessie-stage1.orig/rootfs/etc/hosts 4 | +++ jessie-stage1/rootfs/etc/hosts 5 | @@ -3,3 +3,4 @@ 6 | ff02::1 ip6-allnodes 7 | ff02::2 ip6-allrouters 8 | 9 | +127.0.1.1 raspberrypi 10 | -------------------------------------------------------------------------------- /stage1/02-net-tweaks/00-patches/02-persistant-net.diff: -------------------------------------------------------------------------------- 1 | Index: jessie-stage1/rootfs/lib/udev/rules.d/75-persistent-net-generator.rules 2 | =================================================================== 3 | --- jessie-stage1.orig/rootfs/lib/udev/rules.d/75-persistent-net-generator.rules 4 | +++ jessie-stage1/rootfs/lib/udev/rules.d/75-persistent-net-generator.rules 5 | @@ -22,7 +22,7 @@ IMPORT{cmdline}="net.ifnames" 6 | ENV{net.ifnames}=="1", GOTO="persistent_net_generator_end" 7 | 8 | # device name whitelist 9 | -KERNEL!="eth*|ath*|wlan*[0-9]|msh*|ra*|sta*|ctc*|lcs*|hsi*", \ 10 | +KERNEL!="ath*|msh*|ra*|sta*|ctc*|lcs*|hsi*", \ 11 | GOTO="persistent_net_generator_end" 12 | 13 | # ignore Xen virtual interfaces 14 | -------------------------------------------------------------------------------- /stage1/02-net-tweaks/00-patches/series: -------------------------------------------------------------------------------- 1 | 01-hosts.diff 2 | 02-persistant-net.diff 3 | -------------------------------------------------------------------------------- /stage1/02-net-tweaks/00-run.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash -e 2 | 3 | install -m 644 files/ipv6.conf ${ROOTFS_DIR}/etc/modprobe.d/ipv6.conf 4 | install -m 644 files/interfaces ${ROOTFS_DIR}/etc/network/interfaces 5 | install -m 644 files/hostname ${ROOTFS_DIR}/etc/hostname 6 | 7 | on_chroot sh -e - << EOF 8 | dpkg-divert --add --local /lib/udev/rules.d/75-persistent-net-generator.rules 9 | EOF 10 | -------------------------------------------------------------------------------- /stage1/02-net-tweaks/files/hostname: -------------------------------------------------------------------------------- 1 | raspberrypi 2 | -------------------------------------------------------------------------------- /stage1/02-net-tweaks/files/interfaces: -------------------------------------------------------------------------------- 1 | auto lo 2 | 3 | iface lo inet loopback 4 | iface eth0 inet dhcp 5 | -------------------------------------------------------------------------------- /stage1/02-net-tweaks/files/ipv6.conf: -------------------------------------------------------------------------------- 1 | # Don't load ipv6 by default 2 | alias net-pf-10 off 3 | #alias ipv6 off 4 | -------------------------------------------------------------------------------- /stage1/03-install-packages/00-packages: -------------------------------------------------------------------------------- 1 | libraspberrypi-bin libraspberrypi0 raspi-config 2 | -------------------------------------------------------------------------------- /stage1/prerun.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash -e 2 | if [ ! -d ${ROOTFS_DIR} ]; then 3 | copy_previous 4 | fi 5 | -------------------------------------------------------------------------------- /stage2/00-copies-and-fills/00-run.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash -e 2 | 3 | touch ${ROOTFS_DIR}/spindle_install 4 | -------------------------------------------------------------------------------- /stage2/00-copies-and-fills/01-packages: -------------------------------------------------------------------------------- 1 | raspi-copies-and-fills 2 | -------------------------------------------------------------------------------- /stage2/00-copies-and-fills/02-run.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash -e 2 | 3 | rm -f ${ROOTFS_DIR}/spindle_install 4 | -------------------------------------------------------------------------------- /stage2/01-sys-tweaks/00-debconf: -------------------------------------------------------------------------------- 1 | # Encoding to use on the console: 2 | # Choices: ARMSCII-8, CP1251, CP1255, CP1256, GEORGIAN-ACADEMY, GEORGIAN-PS, IBM1133, ISIRI-3342, ISO-8859-1, ISO-8859-10, ISO-8859-11, ISO-8859-13, ISO-8859-14, ISO-8859-15, ISO-8859-16, ISO-8859-2, ISO-8859-3, ISO-8859-4, ISO-8859-5, ISO-8859-6, ISO-8859-7, ISO-8859-8, ISO-8859-9, KOI8-R, KOI8-U, TIS-620, UTF-8, VISCII 3 | console-setup console-setup/charmap47 select UTF-8 4 | # Geographic area: 5 | # Choices: Africa, America, Antarctica, Australia, Arctic Ocean, Asia, Atlantic Ocean, Europe, Indian Ocean, Pacific Ocean, System V timezones, US, None of the above 6 | tzdata tzdata/Areas select Etc 7 | # Time zone: 8 | # Choices: GMT, GMT+0, GMT+1, GMT+10, GMT+11, GMT+12, GMT+2, GMT+3, GMT+4, GMT+5, GMT+6, GMT+7, GMT+8, GMT+9, GMT-0, GMT-1, GMT-10, GMT-11, GMT-12, GMT-13, GMT-14, GMT-2, GMT-3, GMT-4, GMT-5, GMT-6, GMT-7, GMT-8, GMT-9, GMT0, Greenwich, UCT, UTC, Universal, Zulu 9 | tzdata tzdata/Zones/Etc select UTC 10 | # Locales to be generated: 11 | # Choices: All locales, aa_DJ ISO-8859-1, aa_DJ.UTF-8 UTF-8, aa_ER UTF-8, aa_ER@saaho UTF-8, aa_ET UTF-8, af_ZA ISO-8859-1, af_ZA.UTF-8 UTF-8, ak_GH UTF-8, am_ET UTF-8, an_ES ISO-8859-15, an_ES.UTF-8 UTF-8, anp_IN UTF-8, ar_AE ISO-8859-6, ar_AE.UTF-8 UTF-8, ar_BH ISO-8859-6, ar_BH.UTF-8 UTF-8, ar_DZ ISO-8859-6, ar_DZ.UTF-8 UTF-8, ar_EG ISO-8859-6, ar_EG.UTF-8 UTF-8, ar_IN UTF-8, ar_IQ ISO-8859-6, ar_IQ.UTF-8 UTF-8, ar_JO ISO-8859-6, ar_JO.UTF-8 UTF-8, ar_KW ISO-8859-6, ar_KW.UTF-8 UTF-8, ar_LB ISO-8859-6, ar_LB.UTF-8 UTF-8, ar_LY ISO-8859-6, ar_LY.UTF-8 UTF-8, ar_MA ISO-8859-6, ar_MA.UTF-8 UTF-8, ar_OM ISO-8859-6, ar_OM.UTF-8 UTF-8, ar_QA ISO-8859-6, ar_QA.UTF-8 UTF-8, ar_SA ISO-8859-6, ar_SA.UTF-8 UTF-8, ar_SD ISO-8859-6, ar_SD.UTF-8 UTF-8, ar_SS UTF-8, ar_SY ISO-8859-6, ar_SY.UTF-8 UTF-8, ar_TN ISO-8859-6, ar_TN.UTF-8 UTF-8, ar_YE ISO-8859-6, ar_YE.UTF-8 UTF-8, as_IN UTF-8, ast_ES ISO-8859-15, ast_ES.UTF-8 UTF-8, ayc_PE UTF-8, az_AZ UTF-8, be_BY CP1251, be_BY.UTF-8 UTF-8, be_BY@latin UTF-8, bem_ZM UTF-8, ber_DZ UTF-8, ber_MA UTF-8, bg_BG CP1251, bg_BG.UTF-8 UTF-8, bho_IN UTF-8, bn_BD UTF-8, bn_IN UTF-8, bo_CN UTF-8, bo_IN UTF-8, br_FR ISO-8859-1, br_FR.UTF-8 UTF-8, br_FR@euro ISO-8859-15, brx_IN UTF-8, bs_BA ISO-8859-2, bs_BA.UTF-8 UTF-8, byn_ER UTF-8, ca_AD ISO-8859-15, ca_AD.UTF-8 UTF-8, ca_ES ISO-8859-1, ca_ES.UTF-8 UTF-8, ca_ES.UTF-8@valencia UTF-8, ca_ES@euro ISO-8859-15, ca_ES@valencia ISO-8859-15, ca_FR ISO-8859-15, ca_FR.UTF-8 UTF-8, ca_IT ISO-8859-15, ca_IT.UTF-8 UTF-8, cmn_TW UTF-8, crh_UA UTF-8, cs_CZ ISO-8859-2, cs_CZ.UTF-8 UTF-8, csb_PL UTF-8, cv_RU UTF-8, cy_GB ISO-8859-14, cy_GB.UTF-8 UTF-8, da_DK ISO-8859-1, da_DK.UTF-8 UTF-8, de_AT ISO-8859-1, de_AT.UTF-8 UTF-8, de_AT@euro ISO-8859-15, de_BE ISO-8859-1, de_BE.UTF-8 UTF-8, de_BE@euro ISO-8859-15, de_CH ISO-8859-1, de_CH.UTF-8 UTF-8, de_DE ISO-8859-1, de_DE.UTF-8 UTF-8, de_DE@euro ISO-8859-15, de_LI.UTF-8 UTF-8, de_LU ISO-8859-1, de_LU.UTF-8 UTF-8, de_LU@euro ISO-8859-15, doi_IN UTF-8, dv_MV UTF-8, dz_BT UTF-8, el_CY ISO-8859-7, el_CY.UTF-8 UTF-8, el_GR ISO-8859-7, el_GR.UTF-8 UTF-8, en_AG UTF-8, en_AU ISO-8859-1, en_AU.UTF-8 UTF-8, en_BW ISO-8859-1, en_BW.UTF-8 UTF-8, en_CA ISO-8859-1, en_CA.UTF-8 UTF-8, en_DK ISO-8859-1, en_DK.ISO-8859-15 ISO-8859-15, en_DK.UTF-8 UTF-8, en_GB ISO-8859-1, en_GB.ISO-8859-15 ISO-8859-15, en_GB.UTF-8 UTF-8, en_HK ISO-8859-1, en_HK.UTF-8 UTF-8, en_IE ISO-8859-1, en_IE.UTF-8 UTF-8, en_IE@euro ISO-8859-15, en_IN UTF-8, en_NG UTF-8, en_NZ ISO-8859-1, en_NZ.UTF-8 UTF-8, en_PH ISO-8859-1, en_PH.UTF-8 UTF-8, en_SG ISO-8859-1, en_SG.UTF-8 UTF-8, en_US ISO-8859-1, en_US.ISO-8859-15 ISO-8859-15, en_US.UTF-8 UTF-8, en_ZA ISO-8859-1, en_ZA.UTF-8 UTF-8, en_ZM UTF-8, en_ZW ISO-8859-1, en_ZW.UTF-8 UTF-8, eo ISO-8859-3, eo.UTF-8 UTF-8, es_AR ISO-8859-1, es_AR.UTF-8 UTF-8, es_BO ISO-8859-1, es_BO.UTF-8 UTF-8, es_CL ISO-8859-1, es_CL.UTF-8 UTF-8, es_CO ISO-8859-1, es_CO.UTF-8 UTF-8, es_CR ISO-8859-1, es_CR.UTF-8 UTF-8, es_CU UTF-8, es_DO ISO-8859-1, es_DO.UTF-8 UTF-8, es_EC ISO-8859-1, es_EC.UTF-8 UTF-8, es_ES ISO-8859-1, es_ES.UTF-8 UTF-8, es_ES@euro ISO-8859-15, es_GT ISO-8859-1, es_GT.UTF-8 UTF-8, es_HN ISO-8859-1, es_HN.UTF-8 UTF-8, es_MX ISO-8859-1, es_MX.UTF-8 UTF-8, es_NI ISO-8859-1, es_NI.UTF-8 UTF-8, es_PA ISO-8859-1, es_PA.UTF-8 UTF-8, es_PE ISO-8859-1, es_PE.UTF-8 UTF-8, es_PR ISO-8859-1, es_PR.UTF-8 UTF-8, es_PY ISO-8859-1, es_PY.UTF-8 UTF-8, es_SV ISO-8859-1, es_SV.UTF-8 UTF-8, es_US ISO-8859-1, es_US.UTF-8 UTF-8, es_UY ISO-8859-1, es_UY.UTF-8 UTF-8, es_VE ISO-8859-1, es_VE.UTF-8 UTF-8, et_EE ISO-8859-1, et_EE.ISO-8859-15 ISO-8859-15, et_EE.UTF-8 UTF-8, eu_ES ISO-8859-1, eu_ES.UTF-8 UTF-8, eu_ES@euro ISO-8859-15, eu_FR ISO-8859-1, eu_FR.UTF-8 UTF-8, eu_FR@euro ISO-8859-15, fa_IR UTF-8, ff_SN UTF-8, fi_FI ISO-8859-1, fi_FI.UTF-8 UTF-8, fi_FI@euro ISO-8859-15, fil_PH UTF-8, fo_FO ISO-8859-1, fo_FO.UTF-8 UTF-8, fr_BE ISO-8859-1, fr_BE.UTF-8 UTF-8, fr_BE@euro ISO-8859-15, fr_CA ISO-8859-1, fr_CA.UTF-8 UTF-8, fr_CH ISO-8859-1, fr_CH.UTF-8 UTF-8, fr_FR ISO-8859-1, fr_FR.UTF-8 UTF-8, fr_FR@euro ISO-8859-15, fr_LU ISO-8859-1, fr_LU.UTF-8 UTF-8, fr_LU@euro ISO-8859-15, fur_IT UTF-8, fy_DE UTF-8, fy_NL UTF-8, ga_IE ISO-8859-1, ga_IE.UTF-8 UTF-8, ga_IE@euro ISO-8859-15, gd_GB ISO-8859-15, gd_GB.UTF-8 UTF-8, gez_ER UTF-8, gez_ER@abegede UTF-8, gez_ET UTF-8, gez_ET@abegede UTF-8, gl_ES ISO-8859-1, gl_ES.UTF-8 UTF-8, gl_ES@euro ISO-8859-15, gu_IN UTF-8, gv_GB ISO-8859-1, gv_GB.UTF-8 UTF-8, ha_NG UTF-8, hak_TW UTF-8, he_IL ISO-8859-8, he_IL.UTF-8 UTF-8, hi_IN UTF-8, hne_IN UTF-8, hr_HR ISO-8859-2, hr_HR.UTF-8 UTF-8, hsb_DE ISO-8859-2, hsb_DE.UTF-8 UTF-8, ht_HT UTF-8, hu_HU ISO-8859-2, hu_HU.UTF-8 UTF-8, hy_AM UTF-8, hy_AM.ARMSCII-8 ARMSCII-8, ia_FR UTF-8, id_ID ISO-8859-1, id_ID.UTF-8 UTF-8, ig_NG UTF-8, ik_CA UTF-8, is_IS ISO-8859-1, is_IS.UTF-8 UTF-8, it_CH ISO-8859-1, it_CH.UTF-8 UTF-8, it_IT ISO-8859-1, it_IT.UTF-8 UTF-8, it_IT@euro ISO-8859-15, iu_CA UTF-8, iw_IL ISO-8859-8, iw_IL.UTF-8 UTF-8, ja_JP.EUC-JP EUC-JP, ja_JP.UTF-8 UTF-8, ka_GE GEORGIAN-PS, ka_GE.UTF-8 UTF-8, kk_KZ PT154, kk_KZ RK1048, kk_KZ.UTF-8 UTF-8, kl_GL ISO-8859-1, kl_GL.UTF-8 UTF-8, km_KH UTF-8, kn_IN UTF-8, ko_KR.EUC-KR EUC-KR, ko_KR.UTF-8 UTF-8, kok_IN UTF-8, ks_IN UTF-8, ks_IN@devanagari UTF-8, ku_TR ISO-8859-9, ku_TR.UTF-8 UTF-8, kw_GB ISO-8859-1, kw_GB.UTF-8 UTF-8, ky_KG UTF-8, lb_LU UTF-8, lg_UG ISO-8859-10, lg_UG.UTF-8 UTF-8, li_BE UTF-8, li_NL UTF-8, lij_IT UTF-8, lo_LA UTF-8, lt_LT ISO-8859-13, lt_LT.UTF-8 UTF-8, lv_LV ISO-8859-13, lv_LV.UTF-8 UTF-8, lzh_TW UTF-8, mag_IN UTF-8, mai_IN UTF-8, mg_MG ISO-8859-15, mg_MG.UTF-8 UTF-8, mhr_RU UTF-8, mi_NZ ISO-8859-13, mi_NZ.UTF-8 UTF-8, mk_MK ISO-8859-5, mk_MK.UTF-8 UTF-8, ml_IN UTF-8, mn_MN UTF-8, mni_IN UTF-8, mr_IN UTF-8, ms_MY ISO-8859-1, ms_MY.UTF-8 UTF-8, mt_MT ISO-8859-3, mt_MT.UTF-8 UTF-8, my_MM UTF-8, nan_TW UTF-8, nan_TW@latin UTF-8, nb_NO ISO-8859-1, nb_NO.UTF-8 UTF-8, nds_DE UTF-8, nds_NL UTF-8, ne_NP UTF-8, nhn_MX UTF-8, niu_NU UTF-8, niu_NZ UTF-8, nl_AW UTF-8, nl_BE ISO-8859-1, nl_BE.UTF-8 UTF-8, nl_BE@euro ISO-8859-15, nl_NL ISO-8859-1, nl_NL.UTF-8 UTF-8, nl_NL@euro ISO-8859-15, nn_NO ISO-8859-1, nn_NO.UTF-8 UTF-8, nr_ZA UTF-8, nso_ZA UTF-8, oc_FR ISO-8859-1, oc_FR.UTF-8 UTF-8, om_ET UTF-8, om_KE ISO-8859-1, om_KE.UTF-8 UTF-8, or_IN UTF-8, os_RU UTF-8, pa_IN UTF-8, pa_PK UTF-8, pap_AN UTF-8, pap_AW UTF-8, pap_CW UTF-8, pl_PL ISO-8859-2, pl_PL.UTF-8 UTF-8, ps_AF UTF-8, pt_BR ISO-8859-1, pt_BR.UTF-8 UTF-8, pt_PT ISO-8859-1, pt_PT.UTF-8 UTF-8, pt_PT@euro ISO-8859-15, quz_PE UTF-8, ro_RO ISO-8859-2, ro_RO.UTF-8 UTF-8, ru_RU ISO-8859-5, ru_RU.CP1251 CP1251, ru_RU.KOI8-R KOI8-R, ru_RU.UTF-8 UTF-8, ru_UA KOI8-U, ru_UA.UTF-8 UTF-8, rw_RW UTF-8, sa_IN UTF-8, sat_IN UTF-8, sc_IT UTF-8, sd_IN UTF-8, sd_IN@devanagari UTF-8, se_NO UTF-8, shs_CA UTF-8, si_LK UTF-8, sid_ET UTF-8, sk_SK ISO-8859-2, sk_SK.UTF-8 UTF-8, sl_SI ISO-8859-2, sl_SI.UTF-8 UTF-8, so_DJ ISO-8859-1, so_DJ.UTF-8 UTF-8, so_ET UTF-8, so_KE ISO-8859-1, so_KE.UTF-8 UTF-8, so_SO ISO-8859-1, so_SO.UTF-8 UTF-8, sq_AL ISO-8859-1, sq_AL.UTF-8 UTF-8, sq_MK UTF-8, sr_ME UTF-8, sr_RS UTF-8, sr_RS@latin UTF-8, ss_ZA UTF-8, st_ZA ISO-8859-1, st_ZA.UTF-8 UTF-8, sv_FI ISO-8859-1, sv_FI.UTF-8 UTF-8, sv_FI@euro ISO-8859-15, sv_SE ISO-8859-1, sv_SE.ISO-8859-15 ISO-8859-15, sv_SE.UTF-8 UTF-8, sw_KE UTF-8, sw_TZ UTF-8, szl_PL UTF-8, ta_IN UTF-8, ta_LK UTF-8, te_IN UTF-8, tg_TJ KOI8-T, tg_TJ.UTF-8 UTF-8, th_TH TIS-620, th_TH.UTF-8 UTF-8, the_NP UTF-8, ti_ER UTF-8, ti_ET UTF-8, tig_ER UTF-8, tk_TM UTF-8, tl_PH ISO-8859-1, tl_PH.UTF-8 UTF-8, tn_ZA UTF-8, tr_CY ISO-8859-9, tr_CY.UTF-8 UTF-8, tr_TR ISO-8859-9, tr_TR.UTF-8 UTF-8, ts_ZA UTF-8, tt_RU UTF-8, tt_RU@iqtelif UTF-8, ug_CN UTF-8, uk_UA KOI8-U, uk_UA.UTF-8 UTF-8, unm_US UTF-8, ur_IN UTF-8, ur_PK UTF-8, uz_UZ ISO-8859-1, uz_UZ.UTF-8 UTF-8, uz_UZ@cyrillic UTF-8, ve_ZA UTF-8, vi_VN UTF-8, wa_BE ISO-8859-1, wa_BE.UTF-8 UTF-8, wa_BE@euro ISO-8859-15, wae_CH UTF-8, wal_ET UTF-8, wo_SN UTF-8, xh_ZA ISO-8859-1, xh_ZA.UTF-8 UTF-8, yi_US CP1255, yi_US.UTF-8 UTF-8, yo_NG UTF-8, yue_HK UTF-8, zh_CN GB2312, zh_CN.GB18030 GB18030, zh_CN.GBK GBK, zh_CN.UTF-8 UTF-8, zh_HK BIG5-HKSCS, zh_HK.UTF-8 UTF-8, zh_SG GB2312, zh_SG.GBK GBK, zh_SG.UTF-8 UTF-8, zh_TW BIG5, zh_TW.EUC-TW EUC-TW, zh_TW.UTF-8 UTF-8, zu_ZA ISO-8859-1, zu_ZA.UTF-8 UTF-8 12 | locales locales/locales_to_be_generated multiselect en_GB.UTF-8 UTF-8 13 | # Default locale for the system environment: 14 | # Choices: None, C.UTF-8, en_GB.UTF-8 15 | locales locales/default_environment_locale select en_GB.UTF-8 16 | # Key to function as AltGr: 17 | # Choices: The default for the keyboard layout, No AltGr key, Right Alt (AltGr), Right Control, Right Logo key, Menu key, Left Alt, Left Logo key, Keypad Enter key, Both Logo keys, Both Alt keys 18 | keyboard-configuration keyboard-configuration/altgr select The default for the keyboard layout 19 | # Keyboard model: 20 | # Choices: A4Tech KB-21, A4Tech KBS-8, A4Tech Wireless Desktop RFKB-23, Acer AirKey V, Acer C300, Acer Ferrari 4000, Acer Laptop, Advance Scorpius KI, Amiga, Apple, Apple Aluminium Keyboard (ANSI), Apple Aluminium Keyboard (ISO), Apple Aluminium Keyboard (JIS), Apple Laptop, Asus Laptop, Atari TT, Azona RF2300 wireless Internet Keyboard, BTC 5090, BTC 5113RF Multimedia, BTC 5126T, BTC 6301URF, BTC 9000, BTC 9000A, BTC 9001AH, BTC 9019U, BTC 9116U Mini Wireless Internet and Gaming, BenQ X-Touch, BenQ X-Touch 730, BenQ X-Touch 800, Brother Internet Keyboard, Cherry B.UNLIMITED, Cherry Blue Line CyBo@rd, Cherry Blue Line CyBo@rd (alternate option), Cherry CyBo@rd USB-Hub, Cherry CyMotion Expert, Cherry CyMotion Master Linux, Cherry CyMotion Master XPress, Chicony Internet Keyboard, Chicony KB-9885, Chicony KU-0108, Chicony KU-0420, Classmate PC, Compaq Easy Access Keyboard, Compaq Internet Keyboard (13 keys), Compaq Internet Keyboard (18 keys), Compaq Internet Keyboard (7 keys), Compaq iPaq Keyboard, Creative Desktop Wireless 7000, DTK2000, Dell, Dell 101-key PC, Dell Laptop/notebook Inspiron 6xxx/8xxx, Dell Laptop/notebook Precision M series, Dell Latitude series laptop, Dell Precision M65, Dell SK-8125, Dell SK-8135, Dell USB Multimedia Keyboard, Dexxa Wireless Desktop Keyboard, Diamond 9801 / 9802 series, Ennyah DKB-1008, Everex STEPnote, FL90, Fujitsu-Siemens Computers AMILO laptop, Generic 101-key PC, Generic 102-key (Intl) PC, Generic 104-key PC, Generic 105-key (Intl) PC, Genius Comfy KB-12e, Genius Comfy KB-16M / Genius MM Keyboard KWD-910, Genius Comfy KB-21e-Scroll, Genius KB-19e NB, Genius KKB-2050HS, Gyration, HTC Dream, Happy Hacking Keyboard, Happy Hacking Keyboard for Mac, Hewlett-Packard Internet Keyboard, Hewlett-Packard Mini 110 Notebook, Hewlett-Packard Omnibook 500 FA, Hewlett-Packard Omnibook 5xx, Hewlett-Packard Omnibook 6000/6100, Hewlett-Packard Omnibook XE3 GC, Hewlett-Packard Omnibook XE3 GF, Hewlett-Packard Omnibook XT1000, Hewlett-Packard Pavilion ZT11xx, Hewlett-Packard Pavilion dv5, Hewlett-Packard SK-250x Multimedia Keyboard, Hewlett-Packard nx9020, Honeywell Euroboard, Htc Dream phone, IBM Rapid Access, IBM Rapid Access II, IBM Space Saver, IBM ThinkPad 560Z/600/600E/A22E, IBM ThinkPad R60/T60/R61/T61, IBM ThinkPad Z60m/Z60t/Z61m/Z61t, Keytronic FlexPro, Kinesis, Laptop/notebook Compaq (eg. Armada) Laptop Keyboard, Laptop/notebook Compaq (eg. Presario) Internet Keyboard, Laptop/notebook eMachines m68xx, Logitech Access Keyboard, Logitech Cordless Desktop, Logitech Cordless Desktop (alternate option), Logitech Cordless Desktop EX110, Logitech Cordless Desktop LX-300, Logitech Cordless Desktop Navigator, Logitech Cordless Desktop Optical, Logitech Cordless Desktop Pro (alternate option 2), Logitech Cordless Desktop iTouch, Logitech Cordless Freedom/Desktop Navigator, Logitech G15 extra keys via G15daemon, Logitech Generic Keyboard, Logitech Internet 350 Keyboard, Logitech Internet Keyboard, Logitech Internet Navigator Keyboard, Logitech Media Elite Keyboard, Logitech Ultra-X Cordless Media Desktop Keyboard, Logitech Ultra-X Keyboard, Logitech diNovo Edge Keyboard, Logitech diNovo Keyboard, Logitech iTouch, Logitech iTouch Cordless Keyboard (model Y-RB6), Logitech iTouch Internet Navigator Keyboard SE, Logitech iTouch Internet Navigator Keyboard SE (USB), MacBook/MacBook Pro, MacBook/MacBook Pro (Intl), Macintosh, Macintosh Old, Memorex MX1998, Memorex MX2500 EZ-Access Keyboard, Memorex MX2750, Microsoft Comfort Curve Keyboard 2000, Microsoft Internet Keyboard, Microsoft Internet Keyboard Pro\, Swedish, Microsoft Natural, Microsoft Natural Keyboard Elite, Microsoft Natural Keyboard Pro / Microsoft Internet Keyboard Pro, Microsoft Natural Keyboard Pro OEM, Microsoft Natural Keyboard Pro USB / Microsoft Internet Keyboard Pro, Microsoft Natural Wireless Ergonomic Keyboard 4000, Microsoft Natural Wireless Ergonomic Keyboard 7000, Microsoft Office Keyboard, Microsoft Wireless Multimedia Keyboard 1.0A, Northgate OmniKey 101, OLPC, Ortek MCK-800 MM/Internet keyboard, PC-98xx Series, Propeller Voyager (KTEZ-1000), QTronix Scorpius 98N+, SILVERCREST Multimedia Wireless Keyboard, SK-1300, SK-2500, SK-6200, SK-7100, SVEN Ergonomic 2500, SVEN Slim 303, Samsung SDM 4500P, Samsung SDM 4510P, Sanwa Supply SKB-KG3, Sun Type 4, Sun Type 5, Sun Type 6 (Japanese layout), Sun Type 6 USB (Japanese layout), Sun Type 6 USB (Unix layout), Sun Type 6/7 USB, Sun Type 6/7 USB (European layout), Sun Type 7 USB, Sun Type 7 USB (European layout), Sun Type 7 USB (Japanese layout) / Japanese 106-key, Sun Type 7 USB (Unix layout), Super Power Multimedia Keyboard, Symplon PaceBook (tablet PC), Targa Visionary 811, Toshiba Satellite S3000, Trust Direct Access Keyboard, Trust Slimline, Trust Wireless Keyboard Classic, TypeMatrix EZ-Reach 2020, TypeMatrix EZ-Reach 2030 PS2, TypeMatrix EZ-Reach 2030 USB, TypeMatrix EZ-Reach 2030 USB (102/105:EU mode), TypeMatrix EZ-Reach 2030 USB (106:JP mode), Unitek KB-1925, ViewSonic KU-306 Internet Keyboard, Winbook Model XP5, Yahoo! Internet Keyboard 21 | keyboard-configuration keyboard-configuration/model select Generic 105-key (Intl) PC 22 | # Keymap to use: 23 | # Choices: American English, Albanian, Arabic, Asturian, Bangladesh, Belarusian, Bengali, Belgian, Bosnian, Brazilian, British English, Bulgarian, Bulgarian (phonetic layout), Burmese, Canadian French, Canadian Multilingual, Catalan, Chinese, Croatian, Czech, Danish, Dutch, Dvorak, Dzongkha, Esperanto, Estonian, Ethiopian, Finnish, French, Georgian, German, Greek, Gujarati, Gurmukhi, Hebrew, Hindi, Hungarian, Icelandic, Irish, Italian, Japanese, Kannada, Kazakh, Khmer, Kirghiz, Korean, Kurdish (F layout), Kurdish (Q layout), Lao, Latin American, Latvian, Lithuanian, Macedonian, Malayalam, Nepali, Northern Sami, Norwegian, Persian, Philippines, Polish, Portuguese, Punjabi, Romanian, Russian, Serbian (Cyrillic), Sindhi, Sinhala, Slovak, Slovenian, Spanish, Swedish, Swiss French, Swiss German, Tajik, Tamil, Telugu, Thai, Tibetan, Turkish (F layout), Turkish (Q layout), Ukrainian, Uyghur, Vietnamese 24 | keyboard-configuration keyboard-configuration/xkb-keymap select gb 25 | # Compose key: 26 | # Choices: No compose key, Right Alt (AltGr), Right Control, Right Logo key, Menu key, Left Logo key, Caps Lock 27 | keyboard-configuration keyboard-configuration/compose select No compose key 28 | # Use Control+Alt+Backspace to terminate the X server? 29 | keyboard-configuration keyboard-configuration/ctrl_alt_bksp boolean true 30 | # Keyboard layout: 31 | # Choices: English (UK), English (UK) - English (UK\, Colemak), English (UK) - English (UK\, Dvorak with UK punctuation), English (UK) - English (UK\, Dvorak), English (UK) - English (UK\, Macintosh international), English (UK) - English (UK\, Macintosh), English (UK) - English (UK\, extended WinKeys), English (UK) - English (UK\, international with dead keys), Other 32 | keyboard-configuration keyboard-configuration/variant select English (UK) 33 | -------------------------------------------------------------------------------- /stage2/01-sys-tweaks/00-packages: -------------------------------------------------------------------------------- 1 | ssh locales less fbset sudo psmisc strace module-init-tools ed ncdu crda 2 | console-setup keyboard-configuration debconf-utils parted unzip 3 | build-essential manpages-dev python bash-completion gdb pkg-config 4 | python-rpi.gpio v4l-utils 5 | avahi-daemon 6 | lua5.1 7 | luajit 8 | hardlink ca-certificates curl 9 | fake-hwclock ntp nfs-common usbutils 10 | libraspberrypi-dev libraspberrypi-doc libfreetype6-dev 11 | dosfstools 12 | dphys-swapfile 13 | raspberrypi-sys-mods 14 | pi-bluetooth 15 | apt-listchanges 16 | usb-modeswitch 17 | -------------------------------------------------------------------------------- /stage2/01-sys-tweaks/00-packages-nr: -------------------------------------------------------------------------------- 1 | cifs-utils 2 | -------------------------------------------------------------------------------- /stage2/01-sys-tweaks/00-patches/01-useradd.diff: -------------------------------------------------------------------------------- 1 | Index: jessie-stage2/rootfs/etc/default/useradd 2 | =================================================================== 3 | --- jessie-stage2.orig/rootfs/etc/default/useradd 4 | +++ jessie-stage2/rootfs/etc/default/useradd 5 | @@ -5,7 +5,7 @@ 6 | # Similar to DHSELL in adduser. However, we use "sh" here because 7 | # useradd is a low level utility and should be as general 8 | # as possible 9 | -SHELL=/bin/sh 10 | +SHELL=/bin/bash 11 | # 12 | # The default group for users 13 | # 100=users on Debian systems 14 | @@ -29,7 +29,7 @@ SHELL=/bin/sh 15 | # The SKEL variable specifies the directory containing "skeletal" user 16 | # files; in other words, files such as a sample .profile that will be 17 | # copied to the new user's home directory when it is created. 18 | -# SKEL=/etc/skel 19 | +SKEL=/etc/skel 20 | # 21 | # Defines whether the mail spool should be created while 22 | # creating the account 23 | -------------------------------------------------------------------------------- /stage2/01-sys-tweaks/00-patches/02-swap.diff: -------------------------------------------------------------------------------- 1 | Index: jessie-stage2/rootfs/etc/dphys-swapfile 2 | =================================================================== 3 | --- jessie-stage2.orig/rootfs/etc/dphys-swapfile 4 | +++ jessie-stage2/rootfs/etc/dphys-swapfile 5 | @@ -13,7 +13,7 @@ 6 | 7 | # set size to absolute value, leaving empty (default) then uses computed value 8 | # you most likely don't want this, unless you have an special disk situation 9 | -#CONF_SWAPSIZE= 10 | +CONF_SWAPSIZE=100 11 | 12 | # set size to computed value, this times RAM size, dynamically adapts, 13 | # guarantees that there is enough swap without wasting disk space on excess 14 | -------------------------------------------------------------------------------- /stage2/01-sys-tweaks/00-patches/03-console-setup.diff: -------------------------------------------------------------------------------- 1 | Index: jessie-stage2/rootfs/etc/default/console-setup 2 | =================================================================== 3 | --- jessie-stage2.orig/rootfs/etc/default/console-setup 4 | +++ jessie-stage2/rootfs/etc/default/console-setup 5 | @@ -6,9 +6,9 @@ ACTIVE_CONSOLES="/dev/tty[1-6]" 6 | 7 | CHARMAP="UTF-8" 8 | 9 | -CODESET="Lat15" 10 | -FONTFACE="Fixed" 11 | -FONTSIZE="8x16" 12 | +CODESET="guess" 13 | +FONTFACE="" 14 | +FONTSIZE="" 15 | 16 | VIDEOMODE= 17 | 18 | -------------------------------------------------------------------------------- /stage2/01-sys-tweaks/00-patches/04-inputrc.diff: -------------------------------------------------------------------------------- 1 | Index: jessie-stage2/rootfs/etc/inputrc 2 | =================================================================== 3 | --- jessie-stage2.orig/rootfs/etc/inputrc 4 | +++ jessie-stage2/rootfs/etc/inputrc 5 | @@ -65,3 +65,7 @@ $endif 6 | # "\e[F": end-of-line 7 | 8 | $endif 9 | + 10 | +# mappings for up and down arrows search history 11 | +# "\e[B": history-search-forward 12 | +# "\e[A": history-search-backward 13 | -------------------------------------------------------------------------------- /stage2/01-sys-tweaks/00-patches/05-path.diff: -------------------------------------------------------------------------------- 1 | Index: jessie-stage2/rootfs/etc/login.defs 2 | =================================================================== 3 | --- jessie-stage2.orig/rootfs/etc/login.defs 4 | +++ jessie-stage2/rootfs/etc/login.defs 5 | @@ -100,7 +100,7 @@ HUSHLOGIN_FILE .hushlogin 6 | # 7 | # (they are minimal, add the rest in the shell startup files) 8 | ENV_SUPATH PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 9 | -ENV_PATH PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games 10 | +ENV_PATH PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games 11 | 12 | # 13 | # Terminal permissions 14 | Index: jessie-stage2/rootfs/etc/profile 15 | =================================================================== 16 | --- jessie-stage2.orig/rootfs/etc/profile 17 | +++ jessie-stage2/rootfs/etc/profile 18 | @@ -4,7 +4,7 @@ 19 | if [ "`id -u`" -eq 0 ]; then 20 | PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" 21 | else 22 | - PATH="/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games" 23 | + PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games" 24 | fi 25 | export PATH 26 | 27 | -------------------------------------------------------------------------------- /stage2/01-sys-tweaks/00-patches/06-rc_local.diff: -------------------------------------------------------------------------------- 1 | Index: jessie-stage2/rootfs/etc/rc.local 2 | =================================================================== 3 | --- jessie-stage2.orig/rootfs/etc/rc.local 4 | +++ jessie-stage2/rootfs/etc/rc.local 5 | @@ -11,4 +11,10 @@ 6 | # 7 | # By default this script does nothing. 8 | 9 | +# Print the IP address 10 | +_IP=$(hostname -I) || true 11 | +if [ "$_IP" ]; then 12 | + printf "My IP address is %s\n" "$_IP" 13 | +fi 14 | + 15 | exit 0 16 | -------------------------------------------------------------------------------- /stage2/01-sys-tweaks/00-patches/07-resize-init.diff: -------------------------------------------------------------------------------- 1 | --- a/rootfs/boot/cmdline.txt 2 | +++ b/rootfs/boot/cmdline.txt 3 | @@ -1 +1 @@ 4 | -dwc_otg.lpm_enable=0 console=serial0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait 5 | +dwc_otg.lpm_enable=0 console=serial0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait quiet init=/usr/lib/raspi-config/init_resize.sh 6 | -------------------------------------------------------------------------------- /stage2/01-sys-tweaks/00-patches/series: -------------------------------------------------------------------------------- 1 | 01-useradd.diff 2 | 02-swap.diff 3 | 03-console-setup.diff 4 | 04-inputrc.diff 5 | 05-path.diff 6 | 06-rc_local.diff 7 | 07-resize-init.diff 8 | -------------------------------------------------------------------------------- /stage2/01-sys-tweaks/01-run.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash -e 2 | 3 | install -m 755 files/regenerate_ssh_host_keys ${ROOTFS_DIR}/etc/init.d/ 4 | install -m 755 files/apply_noobs_os_config ${ROOTFS_DIR}/etc/init.d/ 5 | install -m 755 files/resize2fs_once ${ROOTFS_DIR}/etc/init.d/ 6 | 7 | install -d ${ROOTFS_DIR}/etc/systemd/system/rc-local.service.d 8 | install -m 644 files/ttyoutput.conf ${ROOTFS_DIR}/etc/systemd/system/rc-local.service.d/ 9 | 10 | install -m 644 files/50raspi ${ROOTFS_DIR}/etc/apt/apt.conf.d/ 11 | 12 | 13 | on_chroot sh -e - <&2 29 | exit 3 30 | ;; 31 | esac 32 | -------------------------------------------------------------------------------- /stage2/01-sys-tweaks/files/regenerate_ssh_host_keys: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | ### BEGIN INIT INFO 3 | # Provides: regenerate_ssh_host_keys 4 | # Required-Start: 5 | # Required-Stop: 6 | # Default-Start: 2 7 | # Default-Stop: 8 | # Short-Description: Regenerate ssh host keys 9 | # Description: 10 | ### END INIT INFO 11 | 12 | . /lib/lsb/init-functions 13 | 14 | set -e 15 | 16 | case "$1" in 17 | start) 18 | log_daemon_msg "Regenerating ssh host keys (in background)" 19 | nohup sh -c "if [ -e /dev/hwrng ]; then 20 | dd if=/dev/hwrng of=/dev/urandom count=1 bs=4096 21 | fi; \ 22 | yes | ssh-keygen -q -N '' -t dsa -f /etc/ssh/ssh_host_dsa_key && \ 23 | yes | ssh-keygen -q -N '' -t rsa -f /etc/ssh/ssh_host_rsa_key && \ 24 | yes | ssh-keygen -q -N '' -t ecdsa -f /etc/ssh/ssh_host_ecdsa_key && \ 25 | yes | ssh-keygen -q -N '' -t ed25519 -f /etc/ssh/ssh_host_ed25519_key && \ 26 | systemctl enable ssh && sync && \ 27 | rm /etc/init.d/regenerate_ssh_host_keys && \ 28 | update-rc.d regenerate_ssh_host_keys remove && \ 29 | printf '\nfinished\n' && systemctl start ssh" > /var/log/regen_ssh_keys.log 2>&1 & 30 | log_end_msg $? 31 | ;; 32 | *) 33 | echo "Usage: $0 start" >&2 34 | exit 3 35 | ;; 36 | esac 37 | -------------------------------------------------------------------------------- /stage2/01-sys-tweaks/files/resize2fs_once: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | ### BEGIN INIT INFO 3 | # Provides: resize2fs_once 4 | # Required-Start: 5 | # Required-Stop: 6 | # Default-Start: 3 7 | # Default-Stop: 8 | # Short-Description: Resize the root filesystem to fill partition 9 | # Description: 10 | ### END INIT INFO 11 | . /lib/lsb/init-functions 12 | case "$1" in 13 | start) 14 | log_daemon_msg "Starting resize2fs_once" 15 | ROOT_DEV=`grep -Eo 'root=[[:graph:]]+' /proc/cmdline | cut -d '=' -f 2-` && 16 | resize2fs $ROOT_DEV && 17 | update-rc.d resize2fs_once remove && 18 | rm /etc/init.d/resize2fs_once && 19 | log_end_msg $? 20 | ;; 21 | *) 22 | echo "Usage: $0 start" >&2 23 | exit 3 24 | ;; 25 | esac 26 | -------------------------------------------------------------------------------- /stage2/01-sys-tweaks/files/ttyoutput.conf: -------------------------------------------------------------------------------- 1 | [Service] 2 | StandardOutput=tty 3 | -------------------------------------------------------------------------------- /stage2/02-net-tweaks/00-packages: -------------------------------------------------------------------------------- 1 | wpasupplicant wireless-tools firmware-atheros firmware-brcm80211 firmware-libertas firmware-ralink firmware-realtek 2 | raspberrypi-net-mods 3 | dhcpcd5 4 | -------------------------------------------------------------------------------- /stage2/02-net-tweaks/01-run.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash -e 2 | 3 | install -v -d ${ROOTFS_DIR}/etc/systemd/system/dhcpcd.service.d 4 | install -v -m 644 files/wait.conf ${ROOTFS_DIR}/etc/systemd/system/dhcpcd.service.d/ 5 | 6 | install -v -d ${ROOTFS_DIR}/etc/wpa_supplicant 7 | install -v -m 600 files/wpa_supplicant.conf ${ROOTFS_DIR}/etc/wpa_supplicant/ 8 | 9 | -------------------------------------------------------------------------------- /stage2/02-net-tweaks/files/wait.conf: -------------------------------------------------------------------------------- 1 | [Service] 2 | ExecStart= 3 | ExecStart=/sbin/dhcpcd -q -w 4 | -------------------------------------------------------------------------------- /stage2/02-net-tweaks/files/wpa_supplicant.conf: -------------------------------------------------------------------------------- 1 | country=GB 2 | ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev 3 | update_config=1 4 | -------------------------------------------------------------------------------- /stage2/03-cleanup/00-run.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash -e 2 | 3 | on_chroot sh -e - < files/python_games.hash 12 | fi 13 | 14 | ln -sf pip3 ${ROOTFS_DIR}/usr/bin/pip-3.2 15 | 16 | install -v -o 1000 -g 1000 -d ${ROOTFS_DIR}/home/pi/python_games 17 | tar xvf files/python_games.tar.gz -C ${ROOTFS_DIR}/home/pi/python_games --strip-components=1 18 | chown 1000:1000 ${ROOTFS_DIR}/home/pi/python_games -Rv 19 | chmod +x ${ROOTFS_DIR}/home/pi/python_games/launcher.sh 20 | 21 | install -v -o 1000 -g 1000 -d "${ROOTFS_DIR}/home/pi/Documents" 22 | install -v -o 1000 -g 1000 -d "${ROOTFS_DIR}/home/pi/Documents/BlueJ Projects" 23 | install -v -o 1000 -g 1000 -d "${ROOTFS_DIR}/home/pi/Documents/Greenfoot Projects" 24 | install -v -o 1000 -g 1000 -d "${ROOTFS_DIR}/home/pi/Documents/Scratch Projects" 25 | rsync -a --chown=1000:1000 ${ROOTFS_DIR}/usr/share/doc/BlueJ/ "${ROOTFS_DIR}/home/pi/Documents/BlueJ Projects" 26 | rsync -a --chown=1000:1000 ${ROOTFS_DIR}/usr/share/doc/Greenfoot/ "${ROOTFS_DIR}/home/pi/Documents/Greenfoot Projects" 27 | rsync -a --chown=1000:1000 ${ROOTFS_DIR}/usr/share/scratch/Projects/Demos/ "${ROOTFS_DIR}/home/pi/Documents/Scratch Projects" 28 | 29 | #Alacarte fixes 30 | install -v -o 1000 -g 1000 -d "${ROOTFS_DIR}/home/pi/.local" 31 | install -v -o 1000 -g 1000 -d "${ROOTFS_DIR}/home/pi/.local/share" 32 | install -v -o 1000 -g 1000 -d "${ROOTFS_DIR}/home/pi/.local/share/applications" 33 | install -v -o 1000 -g 1000 -d "${ROOTFS_DIR}/home/pi/.local/share/desktop-directories" 34 | 35 | install -v -o 1000 -g 1000 -d ${ROOTFS_DIR}/home/pi/.config 36 | install -v -o 1000 -g 1000 -d ${ROOTFS_DIR}/home/pi/.config/pcmanfm 37 | install -v -o 1000 -g 1000 -d ${ROOTFS_DIR}/home/pi/.config/pcmanfm/LXDE-pi 38 | install -v -o 1000 -g 1000 -d ${ROOTFS_DIR}/home/pi/.config/openbox 39 | install -v -o 1000 -g 1000 -d ${ROOTFS_DIR}/home/pi/.config/lxsession 40 | install -v -o 1000 -g 1000 -d ${ROOTFS_DIR}/home/pi/.themes 41 | install -v -o 1000 -g 1000 -d ${ROOTFS_DIR}/home/pi/.config/gtk-3.0 42 | install -v -o 1000 -g 1000 -d ${ROOTFS_DIR}/home/pi/.config/lxpanel 43 | install -v -o 1000 -g 1000 -d ${ROOTFS_DIR}/home/pi/Desktop 44 | 45 | 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/ 46 | 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/ 47 | 48 | install -v -m 644 -o 1000 -g 1000 ${ROOTFS_DIR}/etc/xdg/openbox/lxde-pi-rc.xml ${ROOTFS_DIR}/home/pi/.config/openbox/ 49 | 50 | rsync -a --chown=1000:1000 ${ROOTFS_DIR}/etc/xdg/lxsession/LXDE-pi ${ROOTFS_DIR}/home/pi/.config/lxsession/ 51 | rsync -a --chown=1000:1000 ${ROOTFS_DIR}/usr/share/themes/PiX ${ROOTFS_DIR}/home/pi/.themes/ 52 | 53 | 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/ 54 | 55 | install -v -m 644 -o 1000 -g 1000 ${ROOTFS_DIR}/usr/share/raspi-ui-overrides/Trolltech.conf ${ROOTFS_DIR}/home/pi/.config/ 56 | 57 | install -v -m 644 -o 1000 -g 1000 ${ROOTFS_DIR}/etc/xdg/lxpanel/launchtaskbar.cfg ${ROOTFS_DIR}/home/pi/.config/lxpanel/ 58 | rsync -a --chown=1000:1000 ${ROOTFS_DIR}/etc/xdg/lxpanel/profile/LXDE-pi ${ROOTFS_DIR}/home/pi/.config/lxpanel/ 59 | -------------------------------------------------------------------------------- /stage4/02-extras/files/.gitignore: -------------------------------------------------------------------------------- 1 | python_games.hash 2 | python_games.tar.gz 3 | -------------------------------------------------------------------------------- /stage4/03-cleanup/00-run.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash -e 2 | 3 | on_chroot sh -e - <