├── scripts
├── release.sh
├── check_deps.sh
├── remove-comments.sed
├── dependencies_check
└── common
├── config
├── stage0
├── 01-locale
│ ├── 00-packages
│ └── 00-debconf
├── 02-firmware
│ └── 01-packages
├── 00-configure-apt
│ ├── files
│ │ ├── 51cache
│ │ ├── raspi.list
│ │ ├── sources.list
│ │ └── raspberrypi.gpg.key
│ └── 00-run.sh
├── files
│ └── raspberrypi.gpg
└── prerun.sh
├── stage3
├── EXPORT_IMAGE
├── prerun.sh
└── 00-raspberrypistreamingcamera
│ ├── 01-run.sh
│ ├── files
│ ├── uv4l-server.conf
│ ├── RTSP-Server.service
│ ├── fstab
│ ├── interfaces
│ ├── uv4l-raspicam_original_17.conf
│ ├── make_me_readonly.sh
│ ├── install.sh
│ └── uv4l-raspicam.conf
│ └── 00-run.sh
├── .dockerignore
├── .gitignore
├── stage1
├── 02-net-tweaks
│ ├── files
│ │ ├── hostname
│ │ ├── interfaces
│ │ └── ipv6.conf
│ ├── 00-patches
│ │ ├── series
│ │ ├── 01-hosts.diff
│ │ └── 02-persistant-net.diff
│ └── 00-run.sh
├── 01-sys-tweaks
│ ├── 00-patches
│ │ ├── series
│ │ └── 01-bashrc.diff
│ ├── files
│ │ ├── policy-rc.d
│ │ ├── noclear.conf
│ │ └── fstab
│ └── 00-run.sh
├── 03-install-packages
│ └── 00-packages
├── prerun.sh
└── 00-boot-files
│ ├── 00-run.sh
│ └── files
│ ├── cmdline.txt
│ └── config.txt
├── stage2
├── 01-sys-tweaks
│ ├── 00-packages-nr
│ ├── files
│ │ ├── ttyoutput.conf
│ │ ├── 50raspi
│ │ ├── console-setup
│ │ ├── regenerate_ssh_host_keys.service
│ │ ├── resize2fs_once
│ │ └── apply_noobs_os_config
│ ├── 00-patches
│ │ ├── series
│ │ ├── 07-resize-init.diff
│ │ ├── 04-inputrc.diff
│ │ ├── 06-rc_local.diff
│ │ ├── 02-swap.diff
│ │ ├── 01-useradd.diff
│ │ └── 05-path.diff
│ ├── 00-packages
│ ├── 01-run.sh
│ └── 00-debconf
├── 00-copies-and-fills
│ ├── 01-packages
│ ├── 00-run.sh
│ └── 02-run.sh
├── 02-net-tweaks
│ ├── files
│ │ ├── wait.conf
│ │ └── wpa_supplicant.conf
│ ├── 00-packages
│ └── 01-run.sh
└── prerun.sh
├── export-image
├── 01-set-sources
│ ├── 00-patches
│ │ ├── series
│ │ └── 0-sources.diff
│ └── 01-run.sh
├── 02-network
│ ├── files
│ │ └── resolv.conf
│ └── 01-run.sh
├── 00-allow-rerun
│ ├── files
│ │ └── policy-rc.d
│ └── 00-run.sh
├── 03-set-partuuid
│ └── 00-run.sh
├── prerun.sh
└── 04-finalise
│ ├── 01-run.sh
│ └── files
│ └── LICENSE.oracle
├── nbproject
├── project.properties
└── project.xml
├── docker-compose.yml
├── Dockerfile
├── .travis.yml
├── LICENSE_PI-GEN
├── README.md
└── LICENSE
/scripts/release.sh:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/scripts/check_deps.sh:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/config:
--------------------------------------------------------------------------------
1 | IMG_NAME='StreamingCamera'
2 |
--------------------------------------------------------------------------------
/stage0/01-locale/00-packages:
--------------------------------------------------------------------------------
1 | locales
2 |
--------------------------------------------------------------------------------
/stage3/EXPORT_IMAGE:
--------------------------------------------------------------------------------
1 | IMG_SUFFIX="-lite"
2 |
--------------------------------------------------------------------------------
/.dockerignore:
--------------------------------------------------------------------------------
1 | output/
2 | work/
3 | deploy/
4 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | /nbproject/private/
2 | /deploy/
3 |
--------------------------------------------------------------------------------
/stage1/02-net-tweaks/files/hostname:
--------------------------------------------------------------------------------
1 | raspberrypi
2 |
--------------------------------------------------------------------------------
/stage2/01-sys-tweaks/00-packages-nr:
--------------------------------------------------------------------------------
1 | cifs-utils
2 |
--------------------------------------------------------------------------------
/stage0/02-firmware/01-packages:
--------------------------------------------------------------------------------
1 | raspberrypi-bootloader
2 |
--------------------------------------------------------------------------------
/stage1/01-sys-tweaks/00-patches/series:
--------------------------------------------------------------------------------
1 | 01-bashrc.diff
2 |
--------------------------------------------------------------------------------
/export-image/01-set-sources/00-patches/series:
--------------------------------------------------------------------------------
1 | 0-sources.diff
2 |
--------------------------------------------------------------------------------
/export-image/02-network/files/resolv.conf:
--------------------------------------------------------------------------------
1 | nameserver 8.8.8.8
2 |
--------------------------------------------------------------------------------
/stage2/00-copies-and-fills/01-packages:
--------------------------------------------------------------------------------
1 | raspi-copies-and-fills
2 |
--------------------------------------------------------------------------------
/stage1/01-sys-tweaks/files/policy-rc.d:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | exit 101
4 |
--------------------------------------------------------------------------------
/export-image/00-allow-rerun/files/policy-rc.d:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | exit 101
4 |
--------------------------------------------------------------------------------
/stage1/01-sys-tweaks/files/noclear.conf:
--------------------------------------------------------------------------------
1 | [Service]
2 | TTYVTDisallocate=no
3 |
--------------------------------------------------------------------------------
/stage2/01-sys-tweaks/files/ttyoutput.conf:
--------------------------------------------------------------------------------
1 | [Service]
2 | StandardOutput=tty
3 |
--------------------------------------------------------------------------------
/stage0/00-configure-apt/files/51cache:
--------------------------------------------------------------------------------
1 | Acquire::http { Proxy "APT_PROXY"; };
2 |
--------------------------------------------------------------------------------
/stage1/02-net-tweaks/00-patches/series:
--------------------------------------------------------------------------------
1 | 01-hosts.diff
2 | 02-persistant-net.diff
3 |
--------------------------------------------------------------------------------
/stage1/03-install-packages/00-packages:
--------------------------------------------------------------------------------
1 | libraspberrypi-bin libraspberrypi0 raspi-config
2 |
--------------------------------------------------------------------------------
/stage2/02-net-tweaks/files/wait.conf:
--------------------------------------------------------------------------------
1 | [Service]
2 | ExecStart=
3 | ExecStart=/sbin/dhcpcd -q -w
4 |
--------------------------------------------------------------------------------
/stage1/prerun.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash -e
2 |
3 | if [ ! -d ${ROOTFS_DIR} ]; then
4 | copy_previous
5 | fi
6 |
--------------------------------------------------------------------------------
/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/02-run.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash -e
2 |
3 | rm -f ${ROOTFS_DIR}/spindle_install
4 |
--------------------------------------------------------------------------------
/stage2/prerun.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash -e
2 |
3 | if [ ! -d ${ROOTFS_DIR} ]; then
4 | copy_previous
5 | fi
6 |
--------------------------------------------------------------------------------
/stage3/prerun.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash -e
2 |
3 | if [ ! -d ${ROOTFS_DIR} ]; then
4 | copy_previous
5 | fi
6 |
--------------------------------------------------------------------------------
/stage1/02-net-tweaks/files/interfaces:
--------------------------------------------------------------------------------
1 | auto lo
2 |
3 | iface lo inet loopback
4 | iface eth0 inet dhcp
5 |
--------------------------------------------------------------------------------
/export-image/02-network/01-run.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash -e
2 |
3 | install -m 644 files/resolv.conf ${ROOTFS_DIR}/etc/
4 |
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/stage0/files/raspberrypi.gpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/florian-asche/RaspberryPiStreamingCamera/HEAD/stage0/files/raspberrypi.gpg
--------------------------------------------------------------------------------
/stage3/00-raspberrypistreamingcamera/01-run.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash -e
2 |
3 | on_chroot << EOF
4 | cd /installfiles/
5 | ./install.sh
6 | EOF
7 |
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/export-image/01-set-sources/01-run.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash -e
2 |
3 | on_chroot << EOF
4 | apt-get update
5 | apt-get -y dist-upgrade
6 | apt-get clean
7 | EOF
8 |
--------------------------------------------------------------------------------
/stage2/01-sys-tweaks/00-patches/series:
--------------------------------------------------------------------------------
1 | 01-useradd.diff
2 | 02-swap.diff
3 | 04-inputrc.diff
4 | 05-path.diff
5 | 06-rc_local.diff
6 | 07-resize-init.diff
7 |
--------------------------------------------------------------------------------
/stage0/prerun.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash -e
2 |
3 | if [ ! -d ${ROOTFS_DIR} ]; then
4 | bootstrap jessie ${ROOTFS_DIR} http://mirrordirector.raspbian.org/raspbian/
5 | fi
6 |
--------------------------------------------------------------------------------
/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=ROOTDEV rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait
2 |
--------------------------------------------------------------------------------
/nbproject/project.properties:
--------------------------------------------------------------------------------
1 | include.path=${php.global.include.path}
2 | php.version=PHP_70
3 | source.encoding=UTF-8
4 | src.dir=.
5 | tags.asp=false
6 | tags.short=false
7 | web.root=.
8 |
--------------------------------------------------------------------------------
/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/01-sys-tweaks/files/50raspi:
--------------------------------------------------------------------------------
1 | # never use pdiffs. Current implementation is very slow on low-powered devices
2 | Acquire::PDiffs "0";
3 |
4 | # download up to 5 pdiffs:
5 | #Acquire::PDiffs::FileLimit "5";
6 |
--------------------------------------------------------------------------------
/stage1/01-sys-tweaks/files/fstab:
--------------------------------------------------------------------------------
1 | proc /proc proc defaults 0 0
2 | BOOTDEV /boot vfat defaults 0 2
3 | ROOTDEV / ext4 defaults,noatime 0 1
4 |
--------------------------------------------------------------------------------
/stage3/00-raspberrypistreamingcamera/files/uv4l-server.conf:
--------------------------------------------------------------------------------
1 | md5-passwords=yes
2 | chuncked-transfer-encoding=no
3 | enable-control-panel=no
4 | admin-password=2cb49b8a8634a56f43612ffc3c34ce15
5 | user-password=91e5847b340adb650fad6376c7d5b086
6 |
--------------------------------------------------------------------------------
/stage0/00-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 |
--------------------------------------------------------------------------------
/docker-compose.yml:
--------------------------------------------------------------------------------
1 | version: '2'
2 |
3 | services:
4 | apt-cacher-ng:
5 | restart: unless-stopped
6 | image: sameersbn/apt-cacher-ng:latest
7 | ports:
8 | - "3142:3142"
9 | volumes:
10 | - ./apt-cacher-ng:/var/cache/apt-cacher-ng
11 |
--------------------------------------------------------------------------------
/stage0/00-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 |
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/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 << EOF
8 | dpkg-divert --add --local /lib/udev/rules.d/75-persistent-net-generator.rules
9 | EOF
10 |
--------------------------------------------------------------------------------
/nbproject/project.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | org.netbeans.modules.php.project
4 |
5 |
6 | RaspberryPiStreamingCamera
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/stage2/01-sys-tweaks/files/console-setup:
--------------------------------------------------------------------------------
1 | # CONFIGURATION FILE FOR SETUPCON
2 |
3 | # Consult the console-setup(5) manual page.
4 |
5 | ACTIVE_CONSOLES="/dev/tty[1-6]"
6 |
7 | CHARMAP="UTF-8"
8 |
9 | CODESET="guess"
10 | FONTFACE=""
11 | FONTSIZE=""
12 |
13 | VIDEOMODE=
14 |
15 | # The following is an example how to use a braille font
16 | # FONT='lat9w-08.psf.gz brl-8x8.psf'
17 |
--------------------------------------------------------------------------------
/stage3/00-raspberrypistreamingcamera/files/RTSP-Server.service:
--------------------------------------------------------------------------------
1 | [Unit]
2 | Description=RTSP-Server
3 | After=network.target
4 | Requires=uv4l_raspicam.service
5 |
6 | [Service]
7 | User=pi
8 | Environment=LD_PRELOAD=:/usr/lib/uv4l/uv4lext/armv6l/libuv4lext.so
9 | TimeoutStartSec=0
10 | ExecStart=/usr/local/bin/v4l2rtspserver -Q 3 -u '' -f
11 |
12 | [Install]
13 | WantedBy=multi-user.target
14 |
--------------------------------------------------------------------------------
/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/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=ROOTDEV rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait
5 | +dwc_otg.lpm_enable=0 console=serial0,115200 console=tty1 root=ROOTDEV rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait quiet init=/usr/lib/raspi-config/init_resize.sh
6 |
--------------------------------------------------------------------------------
/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM debian:stretch
2 |
3 | ARG DEBIAN_FRONTEND=noninteractive
4 |
5 | RUN apt-get -y update && \
6 | apt-get -y install \
7 | git vim parted \
8 | quilt realpath qemu-user-static debootstrap zerofree pxz zip dosfstools \
9 | bsdtar libcap2-bin rsync grep udev xz-utils tree nscd \
10 | && rm -rf /var/lib/apt/lists/*
11 |
12 | COPY . /pi-gen/
13 |
14 | VOLUME [ "/pi-gen/work", "/pi-gen/deploy"]
15 |
--------------------------------------------------------------------------------
/stage3/00-raspberrypistreamingcamera/files/fstab:
--------------------------------------------------------------------------------
1 | proc /proc proc defaults 0 0
2 | /dev/mmcblk0p1 /boot vfat ro,defaults 0 2
3 | /dev/mmcblk0p2 / ext4 ro,defaults,noatime 0 1
4 | tmpfs /var/log tmpfs nodev,nosuid 0 0
5 | tmpfs /var/tmp tmpfs nodev,nosuid 0 0
6 | tmpfs /tmp tmpfs nodev,nosuid 0 0
7 |
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/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/files/regenerate_ssh_host_keys.service:
--------------------------------------------------------------------------------
1 | [Unit]
2 | Description=Regenerate SSH host keys
3 |
4 | [Service]
5 | Type=oneshot
6 | ExecStartPre=/bin/sh -c "if [ -e /dev/hwrng ]; then dd if=/dev/hwrng of=/dev/urandom count=1 bs=4096; fi"
7 | ExecStart=/usr/bin/ssh-keygen -A
8 | ExecStartPost=/bin/rm /lib/systemd/system/regenerate_ssh_host_keys.service ; /usr/sbin/update-rc.d regenerate_ssh_host_keys remove
9 |
10 | [Install]
11 | WantedBy=multi-user.target
12 |
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/export-image/03-set-partuuid/00-run.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash -e
2 |
3 | IMG_FILE="${STAGE_WORK_DIR}/${IMG_DATE}-${IMG_NAME}${IMG_SUFFIX}.img"
4 |
5 | IMGID="$(fdisk -l ${IMG_FILE} | sed -n 's/Disk identifier: 0x\([^ ]*\)/\1/p')"
6 |
7 | BOOT_PARTUUID="${IMGID}-01"
8 | ROOT_PARTUUID="${IMGID}-02"
9 |
10 | sed -i "s/BOOTDEV/PARTUUID=${BOOT_PARTUUID}/" ${ROOTFS_DIR}/etc/fstab
11 | sed -i "s/ROOTDEV/PARTUUID=${ROOT_PARTUUID}/" ${ROOTFS_DIR}/etc/fstab
12 |
13 | sed -i "s/ROOTDEV/PARTUUID=${ROOT_PARTUUID}/" ${ROOTFS_DIR}/boot/cmdline.txt
14 |
--------------------------------------------------------------------------------
/stage0/00-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 << EOF
15 | apt-get update
16 | apt-get dist-upgrade -y
17 | EOF
18 |
--------------------------------------------------------------------------------
/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 << EOF
9 | if ! id -u pi >/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 |
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/stage2/01-sys-tweaks/00-packages:
--------------------------------------------------------------------------------
1 | ssh 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 | apt-transport-https
18 | libpam-chksshpwd
19 | rpi-update
20 |
--------------------------------------------------------------------------------
/stage3/00-raspberrypistreamingcamera/files/interfaces:
--------------------------------------------------------------------------------
1 | # interfaces(5) file used by ifup(8) and ifdown(8)
2 |
3 | # Please note that this file is written to be used with dhcpcd
4 | # For static IP, consult /etc/dhcpcd.conf and 'man dhcpcd.conf'
5 |
6 | # Include files from /etc/network/interfaces.d:
7 | source-directory /etc/network/interfaces.d
8 |
9 | auto lo
10 | iface lo inet loopback
11 |
12 | auto eth0
13 | iface eth0 inet dhcp
14 |
15 | allow-hotplug wlan0
16 | iface wlan0 inet manual
17 | wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
18 |
19 | allow-hotplug wlan1
20 | iface wlan1 inet manual
21 | wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
22 |
--------------------------------------------------------------------------------
/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/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=$(findmnt / -o source -n) &&
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 |
--------------------------------------------------------------------------------
/stage3/00-raspberrypistreamingcamera/00-run.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash -e
2 |
3 | # install all files for installation
4 | mkdir ${ROOTFS_DIR}/installfiles/
5 |
6 | install -m 755 files/install.sh ${ROOTFS_DIR}/installfiles/
7 | install -m 755 files/make_me_readonly.sh ${ROOTFS_DIR}/installfiles/
8 | install -m 644 files/fstab ${ROOTFS_DIR}/installfiles/
9 | install -m 644 files/interfaces ${ROOTFS_DIR}/installfiles/
10 | install -m 644 files/RTSP-Server.service ${ROOTFS_DIR}/installfiles/
11 | install -m 644 files/uv4l-raspicam.conf ${ROOTFS_DIR}/installfiles/
12 | install -m 644 files/uv4l-raspicam_original_17.conf ${ROOTFS_DIR}/installfiles/
13 | install -m 644 files/uv4l-server.conf ${ROOTFS_DIR}/installfiles/
14 |
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/stage2/01-sys-tweaks/files/apply_noobs_os_config:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | ### BEGIN INIT INFO
3 | # Provides: apply_noobs_os_config
4 | # Required-Start:
5 | # Required-Stop:
6 | # Default-Start: 2
7 | # Default-Stop:
8 | # Short-Description: Apply config from /boot/os_config.json
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 "Applying config from /boot/os_config.json (if it exists)"
19 | if raspi-config --apply-os-config; then
20 | update-rc.d apply_noobs_os_config remove
21 | rm /etc/init.d/apply_noobs_os_config
22 | log_end_msg 0
23 | else
24 | log_end_msg 1
25 | fi
26 | ;;
27 | *)
28 | echo "Usage: $0 start" >&2
29 | exit 3
30 | ;;
31 | esac
32 |
--------------------------------------------------------------------------------
/stage3/00-raspberrypistreamingcamera/files/uv4l-raspicam_original_17.conf:
--------------------------------------------------------------------------------
1 | width=1280
2 | height=720
3 | encoding=h264
4 | brightness=50
5 | contrast=0
6 | saturation=0
7 | red-gain=400
8 | blue-gain=400
9 | sharpness=0
10 | rotation=0
11 | shutter-speed=0
12 | iso=0
13 | quality=100
14 | framerate=25
15 | hflip=false
16 | vflip=false
17 | text-overlay=false
18 | object-detection=false
19 | stills-denoise=false
20 | video-denoise=false
21 | vstab=false
22 | awb=auto
23 | exposure=auto
24 | metering=average
25 | drc=off
26 | driver=raspicam
27 | video_nr=0
28 | auto-video_nr=1
29 | verbosity=6
30 | syslog-host=localhost
31 | syslog-port=514
32 | frame-timeout=5000
33 | frame-buffers=4
34 | drop-bad-frames=1
35 | relaxed-ownership=1
36 | raw=
37 | profile=high
38 | bitrate=17000000
39 | intra-refresh-mode=dummy
40 | nopreview=1
41 |
--------------------------------------------------------------------------------
/scripts/dependencies_check:
--------------------------------------------------------------------------------
1 | # dependencies_check
2 | # $@ Dependency 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 "Required 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 |
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/.travis.yml:
--------------------------------------------------------------------------------
1 | dist: trusty
2 | sudo: required
3 | services:
4 | - docker
5 | script:
6 | - sudo bash ./build-docker.sh
7 | - ls -lahR deploy
8 | deploy:
9 | provider: releases
10 | api_key:
11 | secure: uA6++jf4shmjbySEPMi6vaAoWKEByg9INfc+q7y1PucwWJw1u3W9nWYjbLE+ycurvjfICOp2tK3khSPqs9PciPc6yjCdAkFWg+07lgudmjQHocS7mVQO9asEFgMBXPs38lsccDo6owZ+Y6kd1ip1956vgg8dd0llGFlZZh1pZnwIhgrKVMSDuPzSluPMPpXiT+7qh/Gze9ohbMrIMlSsF8j3qLn1KZuT/9hEFGOJMMFr8nHvHK5tvVQubBLZQJWDcHPa1LzN3wmFWxd0LWn15aus2TvfZlDP9JTDpgq2ljuz5JtvBx/Ou0Cd8o14c0S28PEmdtF26umZ+WRJADpauSRo9XPpIOqsyrNrL1G59I4l4KnHilYetpfOv/994H4M4jcMAOa+Etx1W1X3gUfSmNvKi2vxlxQtDr3lyoKQdN6cV+5FE/Q3FZE0BqK+CWRSYgw/RFJWT9sn3D57e6SzEa8IY4gdkVHVPVfcXJoPCGnhOI00R+UAbDkpL4QA7mU5SuomzIYZ6ubpa1AgaA2PHhQoN+TkQk2VwHscGNzFFvaTZMAb3Cf38kdynlrMTR7BzqPmtB1krs0IkWX/LQwItCe/s/xiAc93WyJbF4z1wTvxSy58jdZAydDVhRlyYv9C5FQpU7nx6hmFZZP1MJ5CXCYptYPPMmfm+puBSMIhqhA=
12 | file: deploy/image-StreamingCamera-lite.zip
13 | on:
14 | repo: florian-asche/RaspberryPiStreamingCamera
15 | tags: true
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/stage3/00-raspberrypistreamingcamera/files/make_me_readonly.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # Readonly - First get rid of some unnecessary pagkages.
4 | apt-get -y remove --purge cron logrotate dphys-swapfile
5 | apt-get -y autoremove --purge
6 |
7 | # Readonly - Remove rsyslog and install a memory resident variant
8 | apt-get -y remove --purge rsyslog
9 | apt-get -y install busybox-syslogd
10 |
11 | # Readonly - Now remap some folders to memory temp space
12 | rm -rf /var/lib/dhcp/
13 | rm -rf /var/spool
14 | rm -rf /var/lock
15 | rm -rf /var/log
16 | rm -rf /var/run
17 | rm /etc/resolv.conf
18 | ln -s /tmp /var/lib/dhcp
19 | ln -s /tmp /var/spool
20 | ln -s /tmp /var/lock
21 | ln -s /tmp /var/log
22 | ln -s /tmp /var/run
23 | ln -s /tmp/resolv.conf /etc/resolv.conf
24 |
25 | # Readonly - configure the boot options to be read-only on next boot
26 | #mount -o remount rw /boot
27 | #echo "dwc_otg.lpm_enable=0 console=serial0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait fastboot noswap" | tee /boot/cmdline.txt
28 |
29 | # Readonly - install new fstab
30 | cp fstab /etc/fstab
31 |
32 | # Readonly - remove swap
33 | rm -rf /var/swap
34 |
35 | # Readonly - reboot your raspberry pi here, check if you are read only
36 | reboot
37 |
38 |
--------------------------------------------------------------------------------
/stage2/01-sys-tweaks/01-run.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash -e
2 |
3 | install -m 644 files/regenerate_ssh_host_keys.service ${ROOTFS_DIR}/lib/systemd/system/
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 | install -m 644 files/console-setup ${ROOTFS_DIR}/etc/default/
13 |
14 | on_chroot << EOF
15 | systemctl disable hwclock.sh
16 | systemctl disable nfs-common
17 | systemctl disable rpcbind
18 | systemctl disable ssh
19 | systemctl enable regenerate_ssh_host_keys
20 | systemctl enable apply_noobs_os_config
21 | systemctl enable resize2fs_once
22 | EOF
23 |
24 | on_chroot << \EOF
25 | for GRP in input spi i2c gpio; do
26 | groupadd -f -r $GRP
27 | done
28 | for GRP in adm dialout cdrom audio users sudo video games plugdev input gpio spi i2c netdev; do
29 | adduser pi $GRP
30 | done
31 | EOF
32 |
33 | on_chroot << EOF
34 | setupcon --force --save-only -v
35 | EOF
36 |
37 | on_chroot << EOF
38 | usermod --pass='*' root
39 | EOF
40 |
41 | rm -f ${ROOTFS_DIR}/etc/ssh/ssh_host_*_key*
42 |
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/LICENSE_PI-GEN:
--------------------------------------------------------------------------------
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 |
--------------------------------------------------------------------------------
/stage0/00-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 |
--------------------------------------------------------------------------------
/stage1/00-boot-files/files/config.txt:
--------------------------------------------------------------------------------
1 | # For more options and information see
2 | # http://rpf.io/configtxt
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 |
58 | # enable camera
59 | start_x=1
60 | gpu_mem=128
61 |
62 |
--------------------------------------------------------------------------------
/export-image/prerun.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash -e
2 |
3 | IMG_FILE="${STAGE_WORK_DIR}/${IMG_DATE}-${IMG_NAME}${IMG_SUFFIX}.img"
4 |
5 | unmount_image ${IMG_FILE}
6 |
7 | rm -f ${IMG_FILE}
8 |
9 | rm -rf ${ROOTFS_DIR}
10 | mkdir -p ${ROOTFS_DIR}
11 |
12 | BOOT_SIZE=$(du --apparent-size -s ${EXPORT_ROOTFS_DIR}/boot --block-size=1 | cut -f 1)
13 | TOTAL_SIZE=$(du --apparent-size -s ${EXPORT_ROOTFS_DIR} --exclude var/cache/apt/archives --block-size=1 | cut -f 1)
14 |
15 | IMG_SIZE=$((BOOT_SIZE + TOTAL_SIZE + (800 * 1024 * 1024)))
16 |
17 | truncate -s ${IMG_SIZE} ${IMG_FILE}
18 | fdisk -H 255 -S 63 ${IMG_FILE} < /dev/null
59 | mkfs.ext4 -O $ROOT_FEATURES $ROOT_DEV > /dev/null
60 |
61 | mount -v $ROOT_DEV ${ROOTFS_DIR} -t ext4
62 | mkdir -p ${ROOTFS_DIR}/boot
63 | mount -v $BOOT_DEV ${ROOTFS_DIR}/boot -t vfat
64 |
65 | rsync -aHAXx --exclude var/cache/apt/archives ${EXPORT_ROOTFS_DIR}/ ${ROOTFS_DIR}/
66 |
--------------------------------------------------------------------------------
/export-image/04-finalise/01-run.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash -e
2 |
3 | IMG_FILE="${STAGE_WORK_DIR}/${IMG_DATE}-${IMG_NAME}${IMG_SUFFIX}.img"
4 |
5 | on_chroot << EOF
6 | /etc/init.d/fake-hwclock stop
7 | hardlink -t /usr/share/doc
8 | EOF
9 |
10 | if [ -d ${ROOTFS_DIR}/home/pi/.config ]; then
11 | chmod 700 ${ROOTFS_DIR}/home/pi/.config
12 | fi
13 |
14 | rm -f ${ROOTFS_DIR}/etc/apt/apt.conf.d/51cache
15 | rm -f ${ROOTFS_DIR}/usr/sbin/policy-rc.d
16 | rm -f ${ROOTFS_DIR}/usr/bin/qemu-arm-static
17 | if [ -e ${ROOTFS_DIR}/etc/ld.so.preload.disabled ]; then
18 | mv ${ROOTFS_DIR}/etc/ld.so.preload.disabled ${ROOTFS_DIR}/etc/ld.so.preload
19 | fi
20 |
21 | rm -f ${ROOTFS_DIR}/etc/apt/sources.list~
22 | rm -f ${ROOTFS_DIR}/etc/apt/trusted.gpg~
23 |
24 | rm -f ${ROOTFS_DIR}/etc/passwd-
25 | rm -f ${ROOTFS_DIR}/etc/group-
26 | rm -f ${ROOTFS_DIR}/etc/shadow-
27 | rm -f ${ROOTFS_DIR}/etc/gshadow-
28 |
29 | rm -f ${ROOTFS_DIR}/var/cache/debconf/*-old
30 | rm -f ${ROOTFS_DIR}/var/lib/dpkg/*-old
31 |
32 | rm -f ${ROOTFS_DIR}/usr/share/icons/*/icon-theme.cache
33 |
34 | rm -f ${ROOTFS_DIR}/var/lib/dbus/machine-id
35 |
36 | true > ${ROOTFS_DIR}/etc/machine-id
37 |
38 | ln -nsf /proc/mounts ${ROOTFS_DIR}/etc/mtab
39 |
40 | for _FILE in $(find ${ROOTFS_DIR}/var/log/ -type f); do
41 | true > ${_FILE}
42 | done
43 |
44 | rm -f "${ROOTFS_DIR}/root/.vnc/private.key"
45 |
46 | update_issue $(basename ${EXPORT_DIR})
47 | install -m 644 ${ROOTFS_DIR}/etc/rpi-issue ${ROOTFS_DIR}/boot/issue.txt
48 | install files/LICENSE.oracle ${ROOTFS_DIR}/boot/
49 |
50 | ROOT_DEV=$(mount | grep "${ROOTFS_DIR} " | cut -f1 -d' ')
51 |
52 | unmount ${ROOTFS_DIR}
53 | zerofree -v ${ROOT_DEV}
54 |
55 | unmount_image ${IMG_FILE}
56 |
57 | mkdir -p ${DEPLOY_DIR}
58 |
59 | rm -f ${DEPLOY_DIR}/image-${IMG_NAME}${IMG_SUFFIX}.zip
60 | #image-StreamingCamera-lite.zip
61 | echo zip ${DEPLOY_DIR}/image-${IMG_NAME}${IMG_SUFFIX}.zip ${IMG_FILE}
62 | pushd ${STAGE_WORK_DIR} > /dev/null
63 | zip ${DEPLOY_DIR}/image-${IMG_NAME}${IMG_SUFFIX}.zip $(basename ${IMG_FILE})
64 | popd > /dev/null
65 |
--------------------------------------------------------------------------------
/scripts/common:
--------------------------------------------------------------------------------
1 | log (){
2 | date +"[%T] $@" | tee -a "${LOG_FILE}"
3 | }
4 | export -f log
5 |
6 | bootstrap(){
7 | local ARCH
8 | ARCH=$(dpkg --print-architecture)
9 |
10 | export http_proxy=${APT_PROXY}
11 |
12 | if [ "$ARCH" != "armhf" ]; then
13 | local BOOTSTRAP_CMD=qemu-debootstrap
14 | else
15 | local BOOTSTRAP_CMD=debootstrap
16 | fi
17 |
18 | capsh --drop=cap_setfcap -- -c "${BOOTSTRAP_CMD} --components=main,contrib,non-free \
19 | --arch armhf \
20 | --keyring "${STAGE_DIR}/files/raspberrypi.gpg" \
21 | $1 $2 $3" || rmdir "$2/debootstrap"
22 | }
23 | export -f bootstrap
24 |
25 | copy_previous(){
26 | if [ ! -d "${PREV_ROOTFS_DIR}" ]; then
27 | echo "Previous stage rootfs not found"
28 | false
29 | fi
30 | mkdir -p "${ROOTFS_DIR}"
31 | rsync -aHAXx --exclude var/cache/apt/archives "${PREV_ROOTFS_DIR}/" "${ROOTFS_DIR}/"
32 | }
33 | export -f copy_previous
34 |
35 | unmount(){
36 | if [ -z "$1" ]; then
37 | DIR=$PWD
38 | else
39 | DIR=$1
40 | fi
41 |
42 | while mount | grep -q "$DIR"; do
43 | local LOCS
44 | LOCS=$(mount | grep "$DIR" | cut -f 3 -d ' ' | sort -r)
45 | for loc in $LOCS; do
46 | umount "$loc"
47 | done
48 | done
49 | }
50 | export -f unmount
51 |
52 | unmount_image(){
53 | sync
54 | sleep 1
55 | local LOOP_DEVICES
56 | LOOP_DEVICES=$(losetup -j "${1}" | cut -f1 -d':')
57 | for LOOP_DEV in ${LOOP_DEVICES}; do
58 | if [ -n "${LOOP_DEV}" ]; then
59 | local MOUNTED_DIR
60 | MOUNTED_DIR=$(mount | grep "$(basename "${LOOP_DEV}")" | head -n 1 | cut -f 3 -d ' ')
61 | if [ -n "${MOUNTED_DIR}" ] && [ "${MOUNTED_DIR}" != "/" ]; then
62 | unmount "$(dirname "${MOUNTED_DIR}")"
63 | fi
64 | sleep 1
65 | losetup -d "${LOOP_DEV}"
66 | fi
67 | done
68 | }
69 | export -f unmount_image
70 |
71 | on_chroot() {
72 | if ! mount | grep -q "$(realpath "${ROOTFS_DIR}"/proc)"; then
73 | mount -t proc proc "${ROOTFS_DIR}/proc"
74 | fi
75 |
76 | if ! mount | grep -q "$(realpath "${ROOTFS_DIR}"/dev)"; then
77 | mount --bind /dev "${ROOTFS_DIR}/dev"
78 | fi
79 |
80 | if ! mount | grep -q "$(realpath "${ROOTFS_DIR}"/dev/pts)"; then
81 | mount --bind /dev/pts "${ROOTFS_DIR}/dev/pts"
82 | fi
83 |
84 | if ! mount | grep -q "$(realpath "${ROOTFS_DIR}"/sys)"; then
85 | mount --bind /sys "${ROOTFS_DIR}/sys"
86 | fi
87 |
88 | capsh --drop=cap_setfcap "--chroot=${ROOTFS_DIR}/" -- "$@"
89 | }
90 | export -f on_chroot
91 |
92 | update_issue() {
93 | local GIT_HASH
94 | GIT_HASH=$(git rev-parse HEAD)
95 | 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"
96 | }
97 | export -f update_issue
98 |
99 |
--------------------------------------------------------------------------------
/stage3/00-raspberrypistreamingcamera/files/install.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # Preparing Raspbian - Enable ssh
4 | touch /boot/ssh
5 |
6 | # Update System and install nessesary and usefull packages
7 | apt-get update -y && apt-get -y dist-upgrade
8 | apt-get install -y vim bash bash-completion zsh grml-zsh-config avahi nss-mdns wpa_supplicant termite-terminfo console-common less
9 |
10 | # install interfaces file
11 | cp interfaces /etc/network/
12 |
13 | # Install zero-conf to make the pi easier to find on the network
14 | #sed -i '/^hosts: /s/files dns/files mdns dns/' /etc/nsswitch.conf
15 | #ln -sf /usr/lib/systemd/system/avahi-daemon.service /etc/systemd/system/multi-user.target.wants/avahi-daemon.service
16 |
17 | # Install UV4L components - Add the supplier's repository key to our key database
18 | curl http://www.linux-projects.org/listing/uv4l_repo/lrkey.asc | apt-key add -
19 | echo "deb http://www.linux-projects.org/listing/uv4l_repo/raspbian/ jessie main" > /etc/apt/sources.list.d/uv4l.list
20 | apt-get update
21 |
22 | # Install UV4L components - Now fetch and install the required modules.
23 | apt-get -y install uv4l uv4l-raspicam
24 | apt-get -y install uv4l-raspicam-extras
25 | apt-get -y install uv4l-server
26 |
27 | # Install UV4L components - Let's copy our own config files in place.
28 | cp uv4l-raspicam.conf /etc/uv4l/uv4l-raspicam.conf
29 | cp uv4l-server.conf /etc/uv4l/uv4l-server.conf
30 | sed -i "s/--editable-config-file=\$CONFIGFILE/--server-config-file=\/etc\/uv4l\/uv4l-server.conf/g" /etc/init.d/uv4l_raspicam
31 |
32 | # Install UV4L components - Notify systemd of service changes.
33 | systemctl daemon-reload
34 |
35 | # Install the RTSP server - we will be compiling software, so install some prerequisite
36 | apt-get -y install cmake make automake
37 |
38 | # Install the RTSP server - first compile the live555 library as a prerequisite
39 | wget http://www.live555.com/liveMedia/public/live555-latest.tar.gz -O - | tar xvzf -
40 | cd live
41 | ./genMakefiles linux
42 | make CPPFLAGS=-DALLOW_RTSP_SERVER_PORT_REUSE=1 install
43 | cd ..
44 |
45 | # Install the RTSP server - clone the rtsp server's git repository, compile and install
46 | apt-get -y install git
47 | git clone https://github.com/mpromonet/v4l2rtspserver.git
48 | apt-get install -y libasound2-dev liblog4cpp5-dev
49 | cd v4l2rtspserver
50 | cmake . && make
51 | make install
52 | cd ..
53 |
54 | # Install the RTSP server - Put system service file for RTSP server into place
55 | cp RTSP-Server.service /etc/systemd/system/RTSP-Server.service
56 |
57 | # Install the RTSP server - Notify systemd of a service installation.
58 | systemctl daemon-reload
59 |
60 | # Install the RTSP server - Set the startup for the service to disabled for our default config.
61 | systemctl enable RTSP-Server.service
62 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # RaspberryPiStreamingCamera
2 | This project uses the Raspberry Pi Camera. The image will be streamed in H.264 over the integrated RTSP Server.
3 | This project is meant to be very secure, therefore we renounce e.g. on a web interface, which whould provides an attack area.
4 |
5 | ## Build:
6 | The Build on Travis-CI failed due to missing binfmt-support. I am now using my own Build System.
7 |
8 | ## Used Software by this project:
9 | * Raspbian Jessie (minmal) image.
10 | * The UV4L software from http://www.linux-projects.org
11 | * The RTSP server from https://github.com/mpromonet/h264_v4l2_rtspserver
12 |
13 | ## Hardware Tips:
14 | * You can find a Raspberry Pi Zero W (very small) with Wirless Onboard and a Housing here: https://buyzero.de/collections/boards-kits/products/copy-of-raspberry-pi-zero-w?variant=31485043090
15 | * All other nesessary things you can also find there.
16 | * With that hardware setup you get 25FPS in 720p H264 over RTSP.
17 |
18 | ## Howto:
19 | * Unzip your downloaded image, and write it to SD card with win32 disk imager.
20 | * Place a ```wpa_supplicant.conf``` file on the boot partition to connect the camera with you WIFI. Consider multiple AP for am more stable communication in case an AP goes down.
21 | * The Raspberry Pi is configured for DHCP and will therefore retrieve an IP address, that will displayed on boot, in case you cant find it in your router/DHCP Server.
22 | * SSH is enabled by default. The default login is: username ```'pi'``` and password ```'raspberry'```. ***!!! You need to change that. !!!***
23 | * If you can access the PI with ssh you should be able to connect the RTSP Server (for example with vlc) with URL ```rtsp://:8554```
24 |
25 | ## What is handled by the installation files or image?
26 | * Enable camera (Image only)
27 | * Preparing Raspbian - Regenerate security keys (best practice) (Image only)
28 | * Preparing Raspbian - Enable ssh
29 | * Update System
30 | * Install UV4L components
31 | * Install the RTSP server
32 | * Best practise configuration (all working from start)
33 |
34 | Optional:
35 | * Readonly - Remove rsyslog and install a memory resident variant
36 | * Readonly - configure the boot options to be read-only on next boot
37 |
38 | ## Build your own image:
39 | * checkout this repository
40 | * install docker (see https://www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-on-ubuntu-16-04)
41 | * (sudo) ./build-docker.sh
42 | * Image zip file you can find in deploy directory
43 | * docker rm pigen_work
44 |
45 | ## Install with script, manually on existing device:
46 | * checkout this repository
47 | ```shell
48 | git clone git@github.com:florian-asche/RaspberryPiStreamingCamera.git
49 | cd RaspberryPiStreamingCamera
50 | ```
51 | * goto stage3/files directory
52 | ```shell
53 | cd stage3
54 | cd files
55 | ```
56 | * Enable camera
57 | ```shell
58 | raspi-config
59 | [...]
60 | ```
61 | * Install Software and configure them
62 | ```shell
63 | ./install.sh
64 | ```
65 |
66 | ## Optional: Make device readonly:
67 | ```shell
68 | cd /installfiles/
69 | ./make_me_readonly.sh
70 | ```
71 |
72 | ## Configuration:
73 | The configuration is made the best way i could find. It should be perfect. If you still want to change that, you can to so here:
74 | ```shell
75 | sudo su
76 | cd /etc/uv4l/
77 | ```
78 |
79 | ## Thanks:
80 | * Thanks to https://github.com/RPi-Distro/pi-gen for the Image Buildprocess.
81 | * Thanks to https://github.com/ronnyvdbr/RaspberryIPCamera, my project was based on his work.
82 |
--------------------------------------------------------------------------------
/stage0/01-locale/00-debconf:
--------------------------------------------------------------------------------
1 | # Locales to be generated:
2 | # 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
3 | locales locales/locales_to_be_generated multiselect en_US.UTF-8 UTF-8
4 | # Default locale for the system environment:
5 | # Choices: None, C.UTF-8, en_GB.UTF-8
6 | locales locales/default_environment_locale select en_US.UTF-8
7 |
--------------------------------------------------------------------------------
/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 | # Character set to support:
5 | # Choices: . Arabic, # Armenian, # Cyrillic - KOI8-R and KOI8-U, # Cyrillic - non-Slavic languages, # Cyrillic - Slavic languages (also Bosnian and Serbian Latin), . Ethiopic, # Georgian, # Greek, # Hebrew, # Lao, # Latin1 and Latin5 - western Europe and Turkic languages, # Latin2 - central Europe and Romanian, # Latin3 and Latin8 - Chichewa; Esperanto; Irish; Maltese and Welsh, # Latin7 - Lithuanian; Latvian; Maori and Marshallese, . Latin - Vietnamese, # Thai, . Combined - Latin; Slavic Cyrillic; Hebrew; basic Arabic, . Combined - Latin; Slavic Cyrillic; Greek, . Combined - Latin; Slavic and non-Slavic Cyrillic, Guess optimal character set
6 | console-setup console-setup/codeset47 select Guess optimal character set
7 | # Font for the console:
8 | # Choices: Fixed, Goha, GohaClassic, Terminus, TerminusBold, TerminusBoldVGA, VGA, Do not change the boot/kernel font, Let the system select a suitable font
9 | console-setup console-setup/fontface47 select Do not change the boot/kernel font
10 | # Geographic area:
11 | # Choices: Africa, America, Antarctica, Australia, Arctic Ocean, Asia, Atlantic Ocean, Europe, Indian Ocean, Pacific Ocean, System V timezones, US, None of the above
12 | tzdata tzdata/Areas select Etc
13 | # Time zone:
14 | # 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
15 | tzdata tzdata/Zones/Etc select UTC
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 |
--------------------------------------------------------------------------------
/stage3/00-raspberrypistreamingcamera/files/uv4l-raspicam.conf:
--------------------------------------------------------------------------------
1 | # This file contains the default values of SOME of all the available
2 | # options for the UV4L core module, the raspicam driver, and the
3 | # streaming server front-end.
4 | #
5 | # This file is referenced by the 'uv4l_raspicam' init script.
6 | # Alternatively, it can be passed as argument to
7 | # the '--driver-config-file' driver option and/or to the
8 | # '--config-file' option of uv4l.
9 | #
10 | # Please refer to the 'uv4l', 'uv4l-raspicam' and 'uv4l-server' manual
11 | # pages for all the valid options and values or for more informations
12 | # about their meaning.
13 |
14 | # NOTE: for multi argument options you must specify one arg per line,
15 | # e.g --min-object-size 80 120 becomes:
16 | # min-object-size = 80
17 | # min-object-size = 120
18 |
19 |
20 | ##################################
21 | # uv4l core options
22 | ##################################
23 |
24 | driver = raspicam
25 | video_nr = 0
26 | auto-video_nr = yes
27 | #auto-video_nr = 1 !!!
28 | verbosity = 6
29 | syslog-host = localhost
30 | syslog-port = 514
31 | frame-timeout = 5000
32 | frame-buffers = 4
33 | drop-bad-frames = yes
34 | # drop-bad-frames = 1 !!!
35 | relaxed-ownership = yes
36 | #relaxed-ownership = 1 !!!
37 |
38 | ##################################
39 | # raspicam driver options
40 | ##################################
41 |
42 | encoding = h264
43 | width = 1280
44 | height = 720
45 | framerate = 25
46 | #custom-sensor-config = 2
47 | #select one sensor mode. Possible values for Camera v1.x are:
48 | #0 for normal mode,
49 | #1 for 1080P30 cropped 1-30fps mode,
50 | #2 for 5MPix 1-15fps mode,
51 | #3 for 5MPix 0.1666-1fps mode,
52 | #4 for 2×2 binned 1296×972 1-42fps mode,
53 | #5 for 2×2 binned 1296×730 1-49fps mode,
54 | #6 for VGA 30-60fps mode,
55 | #7 for VGA 60-90fps mode
56 | #For Camera v2.x are:
57 | #0 for normal mode,
58 | #1 for 1080P30 cropped 0.1-30fps mode,
59 | #2 for 8MPix 0.1-15fps mode,
60 | #3 for 8MPix 0.1-15fps mode,
61 | #4 for 2×2 binned 1640×1232 0.1-40fps mode,
62 | #5 for 2×2 binned 1640×922 0.1-40fps mode,
63 | #6 for 16:9 1280×720 40-90fps mode,
64 | #7 for 7=4:3 640×480 40-90fps mode
65 |
66 | ### dual camera options:
67 | # stereoscopic-mode = side_by_side
68 | # camera-number = 1
69 | # decimate = yes
70 | # swap-eyes = yes
71 |
72 | ### still and/or video options:
73 | quality = 100
74 | stills-denoise = no
75 | video-denoise = no
76 | raw = no
77 | # raw =
78 |
79 | ### h264 options:
80 | profile = high
81 | # level = 4.2
82 | bitrate = 17000000
83 | intra-refresh-mode = dummy
84 | # intra-period = #arg
85 | # inline-headers = yes
86 | # quantisation-parameter #arg
87 |
88 | ### video overlay options:
89 | nopreview = yes
90 | #nopreview = 1 !!!
91 | fullscreen = no
92 | # fullscreen was in original not set
93 | # osd-layer = 2
94 | # opacity = 255
95 | ### preview window :
96 | #preview = 480
97 | #preview = 240
98 | #preview = 320
99 | #preview = 240
100 |
101 | ### post-processing options:
102 | text-overlay = no
103 | # text-filename = /usr/share/uv4l/raspicam/text.json
104 | object-detection = no
105 | # object-detection-mode = accurate_tracking
106 | # min-object-size = 80
107 | # min-object-size = 80
108 | # main-classifier = /usr/share/uv4l/raspicam/lbpcascade_frontalface.xml
109 | # secondary-classifier =/usr/share/uv4l/raspicam/lbpcascade_frontalface.xml
110 |
111 | ### image settings options:
112 | sharpness = 0
113 | contrast = 0
114 | brightness = 50
115 | saturation = 0
116 | iso = 0
117 | # iso = 400
118 | vstab = no
119 | #vstab=false !!!
120 | # ev = 0
121 | exposure = auto
122 | awb = auto
123 | # imgfx = none
124 | metering = average
125 | rotation = 0
126 | hflip = no
127 | vflip = no
128 | shutter-speed = 0
129 | drc = off
130 | red-gain = 400
131 | # red-gain = 100
132 | blue-gain = 400
133 | # blue-gain = 100
134 | # text-annotation = HelloWorld!
135 | # text-annotation-background = yes
136 | ### ROI normalized to [0, 1]
137 | # roi = 0
138 | # roi = 0
139 | # roi = 1
140 | # roi = 1
141 | ### ISP blocks
142 | # black-level-compensation = yes
143 | # lens-shading = yes
144 | # automatic-defective-pixel-correlation = yes
145 | # white-balance-gain = yes
146 | # crosstalk = yes
147 | # gamma = yes
148 | # sharpening = yes
149 |
150 | ### TC358743 HDMI to MIPI converter options:
151 | # tc358743 = no
152 | # tc358743-i2c-dev = /dev/i2c-1
153 | # tc358743-init-command = /usr/share/uv4l/raspicam/tc358743_init.sh
154 | # tc358743-no-signal-fallthrough = no
155 | # record = no
156 | # recording-dir = /usr/share/uv4l/recordings
157 | # recording-bitrate = 800000
158 |
159 | ### advanced options:
160 | # statistics = yes
161 | # output-buffers = 3
162 |
163 | ### serial Number & License Key:
164 | # serial-number = #arg
165 | # license-key = #arg
166 |
167 |
168 | #################################
169 | # streaming server options
170 | #################################
171 |
172 | ### path to a separate config file that will be parsed by the streaming server
173 | ### module directly when it's loaded,
174 | ### in which you are allowed to specify all the streaming server options
175 | ### listed below in the short form "option=value" instead of the longer
176 | ### "--server-option = --option=value" form that you must use
177 | ### in this configuration file.
178 | #server-config-file = #path
179 |
180 | # server-option = --port=8080
181 | # server-option = --bind-host-address=localhost
182 | # server-option = --md5-passwords=no
183 | # server-option = --user-password=myp4ssw0rd
184 | # server-option = --admin-password=myp4ssw0rd
185 | ### To enable 'config' user authentication
186 | # server-option = --config-password=myp4ssw0rd
187 |
188 | ### HTTPS options:
189 | # server-option = --use-ssl=no
190 | # server-option = --ssl-private-key-file=#path
191 | # server-option = --ssl-certificate-file=#path
192 |
193 | ### WebRTC options:
194 | # server-option = --enable-webrtc=yes
195 | # server-option = --enable-webrtc-datachannels=yes
196 | # server-option = --webrtc-datachannel-label=uv4l
197 | # server-option = --webrtc-datachannel-socket=/tmp/uv4l.socket
198 | # server-option = --enable-webrtc-video=yes
199 | # server-option = --enable-webrtc-audio=yes
200 | # server-option = --webrtc-receive-video=yes
201 | # server-option = --webrtc-receive-datachannels=no
202 | # server-option = --webrtc-received-datachannel-socket=/tmp/uv4l.socket
203 | # server-option = --webrtc-receive-audio=yes
204 | # server-option = --webrtc-received-audio-volume=5.0
205 | # server-option = --webrtc-prerenderer-smoothing=yes
206 | # server-option = --webrtc-recdevice-index=0
207 | # server-option = --webrtc-vad=yes
208 | # server-option = --webrtc-echo-cancellation=no
209 | # server-option = --webrtc-preferred-vcodec=0
210 | # server-option = --webrtc-enable-hw-codec=yes
211 | # server-option = --webrtc-hw-vcodec-minbitrate=800
212 | # server-option = --webrtc-hw-vcodec-maxbitrate=4000
213 | # server-option = --webrtc-hw-vcodec-startbitrate=1200
214 | # server-option = --webrtc-max-playout-delay=34 !!!
215 | # server-option = --webrtc-cpu-overuse-detection=no
216 | # server-option = --webrtc-combined-audiovideo-bwe=no
217 | # server-option = --webrtc-stun-urls=stun:stun.l.google.com:19302
218 | # server-option = --webrtc-ice-servers=[{"urls": "stun:stun1.example.net"}, {"urls": "turn:turn.example.org", "username": "user", "credential": "myPassword"}]
219 | # server-option = --webrtc-stun-server=yes
220 | # server-option = --webrtc-tcp-candidate-policy=1
221 | # server-option = --webrtc-rtcp-mux-policy=0
222 | # server-option = --webrtc-enable-dscp=no
223 | # server-option = --webrtc-ignore-loopback=yes
224 | ### video rendering window positions and sizes on the display.
225 | ### for each window, default values can be optionally overridden, but if you
226 | ### do this you must specify one line for each of the four x, y, width, height
227 | ### window properties (in that order).
228 | ### If fullscreen is set the image is stretched to the maximum available display
229 | ### resolution from the specified size.
230 | ### window 1
231 | # server-option = --webrtc-renderer-window=0
232 | # server-option = --webrtc-renderer-window=0
233 | # server-option = --webrtc-renderer-window=480
234 | # server-option = --webrtc-renderer-window=352
235 | # server-option = --webrtc-renderer-fullscreen=no
236 | # server-option = --webrtc-renderer-rotation=180
237 | # server-option = --webrtc-renderer-opacity=255
238 | ### window 2
239 | # server-option = --webrtc-renderer2-window=480
240 | # server-option = --webrtc-renderer2-window=0
241 | # server-option = --webrtc-renderer2-window=320
242 | # server-option = --webrtc-renderer2-window=240
243 | ### window 3
244 | # server-option = --webrtc-renderer3-window=0
245 | # server-option = --webrtc-renderer3-window=352
246 | # server-option = --webrtc-renderer3-window=176
247 | # server-option = --webrtc-renderer3-window=128
248 |
249 | ### XMPP options:
250 | # server-option = --xmpp-server=lambada.jitsi.net
251 | # server-option = --xmpp-port=5222
252 | # server-option = --xmpp-muc-domain=meet.jit.si
253 | # server-option = --xmpp-room=room
254 | # server-option = --xmpp-room-password=room_password
255 | # server-option = --xmpp-username=me
256 | # server-option = --xmpp-password=mypassword
257 | # server-option = --xmpp-reconnect=yes
258 | # server-option = --xmpp-bosh-enable
259 | # server-option = --xmpp-bosh-tls
260 | # server-option = --xmpp-bosh-server
261 | # server-option = --xmpp-bosh-port
262 | # server-option = --xmpp-bosh-hostname
263 | # server-option = --xmpp-bosh-path
264 | # server-option = --xmpp-bridge-host=localhost
265 | # server-option = --xmpp-bridge-port=7999
266 |
267 | ### Janus WebRTC Gateway options:
268 | # server-option = --janus-gateway-url=http://janus.conf.meetecho.com:8088
269 | # server-option = --janus-gateway-root=/janus
270 | # server-option = --janus-room=1234
271 | # server-option = --janus-room-pin=#pin
272 | # server-option = --janus-username=test
273 | # server-option = --janus-token=#token
274 | # server-option = --janus-proxy-host=#host
275 | # server-option = --janus-proxy-port=80
276 | # server-option = --janus-proxy-username=#user
277 | # server-option = --janus-proxy-password=#password
278 | # server-option = --janus-proxy-bypass=#regex
279 | # server-option = --janus-force-hw-vcodec=no
280 | # server-option = --janus-video-format=#code
281 | # server-option = --janus-publish=yes
282 | # server-option = --janus-subscribe=no
283 | # server-option = --janus-reconnect=yes
284 |
285 | ### Fine-tuning options:
286 | # server-option = --connection-timeout=15
287 | # server-option = --enable-keepalive=yes
288 | # server-option = --max-keepalive-requests=0
289 | # server-option = --keepalive-timeout=7
290 | # server-option = --max-queued-connections=8
291 | # server-option = --max-streams=3
292 | # server-option = --max-threads=5
293 | # server-option = --thread-idle-time=10
294 | # server-option = --chuncked-transfer-encoding=yes
295 |
296 | ### Advanced options:
297 | # server-option = --frame-timeout=5000
298 | # server-option = --frame-buffers=auto
299 |
300 | ### These options are specific to the HTTP/HTTPS Server
301 | ### serving custom Web pages only:
302 | # server-option = --enable-www-server=no
303 | # server-option = --www-root-path=/usr/share/uv4l/www/
304 | # server-option = --www-index-file=index.html
305 | # server-option = --www-port=8888
306 | # server-option = --www-bind-host-address=#host
307 | # server-option = --www-password=#password
308 | # server-option = --www-use-ssl=no
309 | # server-option = --www-ssl-private-key-file=#path
310 | # server-option = --www-ssl-certificate-file=#path
311 | # server-option = --www-connection-timeout=15
312 | # server-option = --www-enable-keepalive=no
313 | # server-option = --www-max-keepalive-requests=0
314 | # server-option = --www-keepalive-timeout=7
315 | # server-option = --www-max-queued-connections=8
316 | # server-option = --www-max-threads=4
317 | # server-option = --www-thread-idle-time=10
318 | # server-option = --www-chuncked-transfer-encoding=no
319 | # server-option = --www-set-etag-header=yes
320 | # server-option = --www-webrtc-signaling-path=/webrtc
321 |
322 | ### Other options:
323 | # server-option = --editable-config-file=#path
324 | # server-option = --enable-control-panel=yes
325 | # server-option = --enable-rest-api=yes
326 |
--------------------------------------------------------------------------------
/export-image/04-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 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | GNU GENERAL PUBLIC LICENSE
2 | Version 3, 29 June 2007
3 |
4 | Copyright (C) 2007 Free Software Foundation, Inc.
5 | Everyone is permitted to copy and distribute verbatim copies
6 | of this license document, but changing it is not allowed.
7 |
8 | Preamble
9 |
10 | The GNU General Public License is a free, copyleft license for
11 | software and other kinds of works.
12 |
13 | The licenses for most software and other practical works are designed
14 | to take away your freedom to share and change the works. By contrast,
15 | the GNU General Public License is intended to guarantee your freedom to
16 | share and change all versions of a program--to make sure it remains free
17 | software for all its users. We, the Free Software Foundation, use the
18 | GNU General Public License for most of our software; it applies also to
19 | any other work released this way by its authors. You can apply it to
20 | your programs, too.
21 |
22 | When we speak of free software, we are referring to freedom, not
23 | price. Our General Public Licenses are designed to make sure that you
24 | have the freedom to distribute copies of free software (and charge for
25 | them if you wish), that you receive source code or can get it if you
26 | want it, that you can change the software or use pieces of it in new
27 | free programs, and that you know you can do these things.
28 |
29 | To protect your rights, we need to prevent others from denying you
30 | these rights or asking you to surrender the rights. Therefore, you have
31 | certain responsibilities if you distribute copies of the software, or if
32 | you modify it: responsibilities to respect the freedom of others.
33 |
34 | For example, if you distribute copies of such a program, whether
35 | gratis or for a fee, you must pass on to the recipients the same
36 | freedoms that you received. You must make sure that they, too, receive
37 | or can get the source code. And you must show them these terms so they
38 | know their rights.
39 |
40 | Developers that use the GNU GPL protect your rights with two steps:
41 | (1) assert copyright on the software, and (2) offer you this License
42 | giving you legal permission to copy, distribute and/or modify it.
43 |
44 | For the developers' and authors' protection, the GPL clearly explains
45 | that there is no warranty for this free software. For both users' and
46 | authors' sake, the GPL requires that modified versions be marked as
47 | changed, so that their problems will not be attributed erroneously to
48 | authors of previous versions.
49 |
50 | Some devices are designed to deny users access to install or run
51 | modified versions of the software inside them, although the manufacturer
52 | can do so. This is fundamentally incompatible with the aim of
53 | protecting users' freedom to change the software. The systematic
54 | pattern of such abuse occurs in the area of products for individuals to
55 | use, which is precisely where it is most unacceptable. Therefore, we
56 | have designed this version of the GPL to prohibit the practice for those
57 | products. If such problems arise substantially in other domains, we
58 | stand ready to extend this provision to those domains in future versions
59 | of the GPL, as needed to protect the freedom of users.
60 |
61 | Finally, every program is threatened constantly by software patents.
62 | States should not allow patents to restrict development and use of
63 | software on general-purpose computers, but in those that do, we wish to
64 | avoid the special danger that patents applied to a free program could
65 | make it effectively proprietary. To prevent this, the GPL assures that
66 | patents cannot be used to render the program non-free.
67 |
68 | The precise terms and conditions for copying, distribution and
69 | modification follow.
70 |
71 | TERMS AND CONDITIONS
72 |
73 | 0. Definitions.
74 |
75 | "This License" refers to version 3 of the GNU General Public License.
76 |
77 | "Copyright" also means copyright-like laws that apply to other kinds of
78 | works, such as semiconductor masks.
79 |
80 | "The Program" refers to any copyrightable work licensed under this
81 | License. Each licensee is addressed as "you". "Licensees" and
82 | "recipients" may be individuals or organizations.
83 |
84 | To "modify" a work means to copy from or adapt all or part of the work
85 | in a fashion requiring copyright permission, other than the making of an
86 | exact copy. The resulting work is called a "modified version" of the
87 | earlier work or a work "based on" the earlier work.
88 |
89 | A "covered work" means either the unmodified Program or a work based
90 | on the Program.
91 |
92 | To "propagate" a work means to do anything with it that, without
93 | permission, would make you directly or secondarily liable for
94 | infringement under applicable copyright law, except executing it on a
95 | computer or modifying a private copy. Propagation includes copying,
96 | distribution (with or without modification), making available to the
97 | public, and in some countries other activities as well.
98 |
99 | To "convey" a work means any kind of propagation that enables other
100 | parties to make or receive copies. Mere interaction with a user through
101 | a computer network, with no transfer of a copy, is not conveying.
102 |
103 | An interactive user interface displays "Appropriate Legal Notices"
104 | to the extent that it includes a convenient and prominently visible
105 | feature that (1) displays an appropriate copyright notice, and (2)
106 | tells the user that there is no warranty for the work (except to the
107 | extent that warranties are provided), that licensees may convey the
108 | work under this License, and how to view a copy of this License. If
109 | the interface presents a list of user commands or options, such as a
110 | menu, a prominent item in the list meets this criterion.
111 |
112 | 1. Source Code.
113 |
114 | The "source code" for a work means the preferred form of the work
115 | for making modifications to it. "Object code" means any non-source
116 | form of a work.
117 |
118 | A "Standard Interface" means an interface that either is an official
119 | standard defined by a recognized standards body, or, in the case of
120 | interfaces specified for a particular programming language, one that
121 | is widely used among developers working in that language.
122 |
123 | The "System Libraries" of an executable work include anything, other
124 | than the work as a whole, that (a) is included in the normal form of
125 | packaging a Major Component, but which is not part of that Major
126 | Component, and (b) serves only to enable use of the work with that
127 | Major Component, or to implement a Standard Interface for which an
128 | implementation is available to the public in source code form. A
129 | "Major Component", in this context, means a major essential component
130 | (kernel, window system, and so on) of the specific operating system
131 | (if any) on which the executable work runs, or a compiler used to
132 | produce the work, or an object code interpreter used to run it.
133 |
134 | The "Corresponding Source" for a work in object code form means all
135 | the source code needed to generate, install, and (for an executable
136 | work) run the object code and to modify the work, including scripts to
137 | control those activities. However, it does not include the work's
138 | System Libraries, or general-purpose tools or generally available free
139 | programs which are used unmodified in performing those activities but
140 | which are not part of the work. For example, Corresponding Source
141 | includes interface definition files associated with source files for
142 | the work, and the source code for shared libraries and dynamically
143 | linked subprograms that the work is specifically designed to require,
144 | such as by intimate data communication or control flow between those
145 | subprograms and other parts of the work.
146 |
147 | The Corresponding Source need not include anything that users
148 | can regenerate automatically from other parts of the Corresponding
149 | Source.
150 |
151 | The Corresponding Source for a work in source code form is that
152 | same work.
153 |
154 | 2. Basic Permissions.
155 |
156 | All rights granted under this License are granted for the term of
157 | copyright on the Program, and are irrevocable provided the stated
158 | conditions are met. This License explicitly affirms your unlimited
159 | permission to run the unmodified Program. The output from running a
160 | covered work is covered by this License only if the output, given its
161 | content, constitutes a covered work. This License acknowledges your
162 | rights of fair use or other equivalent, as provided by copyright law.
163 |
164 | You may make, run and propagate covered works that you do not
165 | convey, without conditions so long as your license otherwise remains
166 | in force. You may convey covered works to others for the sole purpose
167 | of having them make modifications exclusively for you, or provide you
168 | with facilities for running those works, provided that you comply with
169 | the terms of this License in conveying all material for which you do
170 | not control copyright. Those thus making or running the covered works
171 | for you must do so exclusively on your behalf, under your direction
172 | and control, on terms that prohibit them from making any copies of
173 | your copyrighted material outside their relationship with you.
174 |
175 | Conveying under any other circumstances is permitted solely under
176 | the conditions stated below. Sublicensing is not allowed; section 10
177 | makes it unnecessary.
178 |
179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
180 |
181 | No covered work shall be deemed part of an effective technological
182 | measure under any applicable law fulfilling obligations under article
183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or
184 | similar laws prohibiting or restricting circumvention of such
185 | measures.
186 |
187 | When you convey a covered work, you waive any legal power to forbid
188 | circumvention of technological measures to the extent such circumvention
189 | is effected by exercising rights under this License with respect to
190 | the covered work, and you disclaim any intention to limit operation or
191 | modification of the work as a means of enforcing, against the work's
192 | users, your or third parties' legal rights to forbid circumvention of
193 | technological measures.
194 |
195 | 4. Conveying Verbatim Copies.
196 |
197 | You may convey verbatim copies of the Program's source code as you
198 | receive it, in any medium, provided that you conspicuously and
199 | appropriately publish on each copy an appropriate copyright notice;
200 | keep intact all notices stating that this License and any
201 | non-permissive terms added in accord with section 7 apply to the code;
202 | keep intact all notices of the absence of any warranty; and give all
203 | recipients a copy of this License along with the Program.
204 |
205 | You may charge any price or no price for each copy that you convey,
206 | and you may offer support or warranty protection for a fee.
207 |
208 | 5. Conveying Modified Source Versions.
209 |
210 | You may convey a work based on the Program, or the modifications to
211 | produce it from the Program, in the form of source code under the
212 | terms of section 4, provided that you also meet all of these conditions:
213 |
214 | a) The work must carry prominent notices stating that you modified
215 | it, and giving a relevant date.
216 |
217 | b) The work must carry prominent notices stating that it is
218 | released under this License and any conditions added under section
219 | 7. This requirement modifies the requirement in section 4 to
220 | "keep intact all notices".
221 |
222 | c) You must license the entire work, as a whole, under this
223 | License to anyone who comes into possession of a copy. This
224 | License will therefore apply, along with any applicable section 7
225 | additional terms, to the whole of the work, and all its parts,
226 | regardless of how they are packaged. This License gives no
227 | permission to license the work in any other way, but it does not
228 | invalidate such permission if you have separately received it.
229 |
230 | d) If the work has interactive user interfaces, each must display
231 | Appropriate Legal Notices; however, if the Program has interactive
232 | interfaces that do not display Appropriate Legal Notices, your
233 | work need not make them do so.
234 |
235 | A compilation of a covered work with other separate and independent
236 | works, which are not by their nature extensions of the covered work,
237 | and which are not combined with it such as to form a larger program,
238 | in or on a volume of a storage or distribution medium, is called an
239 | "aggregate" if the compilation and its resulting copyright are not
240 | used to limit the access or legal rights of the compilation's users
241 | beyond what the individual works permit. Inclusion of a covered work
242 | in an aggregate does not cause this License to apply to the other
243 | parts of the aggregate.
244 |
245 | 6. Conveying Non-Source Forms.
246 |
247 | You may convey a covered work in object code form under the terms
248 | of sections 4 and 5, provided that you also convey the
249 | machine-readable Corresponding Source under the terms of this License,
250 | in one of these ways:
251 |
252 | a) Convey the object code in, or embodied in, a physical product
253 | (including a physical distribution medium), accompanied by the
254 | Corresponding Source fixed on a durable physical medium
255 | customarily used for software interchange.
256 |
257 | b) Convey the object code in, or embodied in, a physical product
258 | (including a physical distribution medium), accompanied by a
259 | written offer, valid for at least three years and valid for as
260 | long as you offer spare parts or customer support for that product
261 | model, to give anyone who possesses the object code either (1) a
262 | copy of the Corresponding Source for all the software in the
263 | product that is covered by this License, on a durable physical
264 | medium customarily used for software interchange, for a price no
265 | more than your reasonable cost of physically performing this
266 | conveying of source, or (2) access to copy the
267 | Corresponding Source from a network server at no charge.
268 |
269 | c) Convey individual copies of the object code with a copy of the
270 | written offer to provide the Corresponding Source. This
271 | alternative is allowed only occasionally and noncommercially, and
272 | only if you received the object code with such an offer, in accord
273 | with subsection 6b.
274 |
275 | d) Convey the object code by offering access from a designated
276 | place (gratis or for a charge), and offer equivalent access to the
277 | Corresponding Source in the same way through the same place at no
278 | further charge. You need not require recipients to copy the
279 | Corresponding Source along with the object code. If the place to
280 | copy the object code is a network server, the Corresponding Source
281 | may be on a different server (operated by you or a third party)
282 | that supports equivalent copying facilities, provided you maintain
283 | clear directions next to the object code saying where to find the
284 | Corresponding Source. Regardless of what server hosts the
285 | Corresponding Source, you remain obligated to ensure that it is
286 | available for as long as needed to satisfy these requirements.
287 |
288 | e) Convey the object code using peer-to-peer transmission, provided
289 | you inform other peers where the object code and Corresponding
290 | Source of the work are being offered to the general public at no
291 | charge under subsection 6d.
292 |
293 | A separable portion of the object code, whose source code is excluded
294 | from the Corresponding Source as a System Library, need not be
295 | included in conveying the object code work.
296 |
297 | A "User Product" is either (1) a "consumer product", which means any
298 | tangible personal property which is normally used for personal, family,
299 | or household purposes, or (2) anything designed or sold for incorporation
300 | into a dwelling. In determining whether a product is a consumer product,
301 | doubtful cases shall be resolved in favor of coverage. For a particular
302 | product received by a particular user, "normally used" refers to a
303 | typical or common use of that class of product, regardless of the status
304 | of the particular user or of the way in which the particular user
305 | actually uses, or expects or is expected to use, the product. A product
306 | is a consumer product regardless of whether the product has substantial
307 | commercial, industrial or non-consumer uses, unless such uses represent
308 | the only significant mode of use of the product.
309 |
310 | "Installation Information" for a User Product means any methods,
311 | procedures, authorization keys, or other information required to install
312 | and execute modified versions of a covered work in that User Product from
313 | a modified version of its Corresponding Source. The information must
314 | suffice to ensure that the continued functioning of the modified object
315 | code is in no case prevented or interfered with solely because
316 | modification has been made.
317 |
318 | If you convey an object code work under this section in, or with, or
319 | specifically for use in, a User Product, and the conveying occurs as
320 | part of a transaction in which the right of possession and use of the
321 | User Product is transferred to the recipient in perpetuity or for a
322 | fixed term (regardless of how the transaction is characterized), the
323 | Corresponding Source conveyed under this section must be accompanied
324 | by the Installation Information. But this requirement does not apply
325 | if neither you nor any third party retains the ability to install
326 | modified object code on the User Product (for example, the work has
327 | been installed in ROM).
328 |
329 | The requirement to provide Installation Information does not include a
330 | requirement to continue to provide support service, warranty, or updates
331 | for a work that has been modified or installed by the recipient, or for
332 | the User Product in which it has been modified or installed. Access to a
333 | network may be denied when the modification itself materially and
334 | adversely affects the operation of the network or violates the rules and
335 | protocols for communication across the network.
336 |
337 | Corresponding Source conveyed, and Installation Information provided,
338 | in accord with this section must be in a format that is publicly
339 | documented (and with an implementation available to the public in
340 | source code form), and must require no special password or key for
341 | unpacking, reading or copying.
342 |
343 | 7. Additional Terms.
344 |
345 | "Additional permissions" are terms that supplement the terms of this
346 | License by making exceptions from one or more of its conditions.
347 | Additional permissions that are applicable to the entire Program shall
348 | be treated as though they were included in this License, to the extent
349 | that they are valid under applicable law. If additional permissions
350 | apply only to part of the Program, that part may be used separately
351 | under those permissions, but the entire Program remains governed by
352 | this License without regard to the additional permissions.
353 |
354 | When you convey a copy of a covered work, you may at your option
355 | remove any additional permissions from that copy, or from any part of
356 | it. (Additional permissions may be written to require their own
357 | removal in certain cases when you modify the work.) You may place
358 | additional permissions on material, added by you to a covered work,
359 | for which you have or can give appropriate copyright permission.
360 |
361 | Notwithstanding any other provision of this License, for material you
362 | add to a covered work, you may (if authorized by the copyright holders of
363 | that material) supplement the terms of this License with terms:
364 |
365 | a) Disclaiming warranty or limiting liability differently from the
366 | terms of sections 15 and 16 of this License; or
367 |
368 | b) Requiring preservation of specified reasonable legal notices or
369 | author attributions in that material or in the Appropriate Legal
370 | Notices displayed by works containing it; or
371 |
372 | c) Prohibiting misrepresentation of the origin of that material, or
373 | requiring that modified versions of such material be marked in
374 | reasonable ways as different from the original version; or
375 |
376 | d) Limiting the use for publicity purposes of names of licensors or
377 | authors of the material; or
378 |
379 | e) Declining to grant rights under trademark law for use of some
380 | trade names, trademarks, or service marks; or
381 |
382 | f) Requiring indemnification of licensors and authors of that
383 | material by anyone who conveys the material (or modified versions of
384 | it) with contractual assumptions of liability to the recipient, for
385 | any liability that these contractual assumptions directly impose on
386 | those licensors and authors.
387 |
388 | All other non-permissive additional terms are considered "further
389 | restrictions" within the meaning of section 10. If the Program as you
390 | received it, or any part of it, contains a notice stating that it is
391 | governed by this License along with a term that is a further
392 | restriction, you may remove that term. If a license document contains
393 | a further restriction but permits relicensing or conveying under this
394 | License, you may add to a covered work material governed by the terms
395 | of that license document, provided that the further restriction does
396 | not survive such relicensing or conveying.
397 |
398 | If you add terms to a covered work in accord with this section, you
399 | must place, in the relevant source files, a statement of the
400 | additional terms that apply to those files, or a notice indicating
401 | where to find the applicable terms.
402 |
403 | Additional terms, permissive or non-permissive, may be stated in the
404 | form of a separately written license, or stated as exceptions;
405 | the above requirements apply either way.
406 |
407 | 8. Termination.
408 |
409 | You may not propagate or modify a covered work except as expressly
410 | provided under this License. Any attempt otherwise to propagate or
411 | modify it is void, and will automatically terminate your rights under
412 | this License (including any patent licenses granted under the third
413 | paragraph of section 11).
414 |
415 | However, if you cease all violation of this License, then your
416 | license from a particular copyright holder is reinstated (a)
417 | provisionally, unless and until the copyright holder explicitly and
418 | finally terminates your license, and (b) permanently, if the copyright
419 | holder fails to notify you of the violation by some reasonable means
420 | prior to 60 days after the cessation.
421 |
422 | Moreover, your license from a particular copyright holder is
423 | reinstated permanently if the copyright holder notifies you of the
424 | violation by some reasonable means, this is the first time you have
425 | received notice of violation of this License (for any work) from that
426 | copyright holder, and you cure the violation prior to 30 days after
427 | your receipt of the notice.
428 |
429 | Termination of your rights under this section does not terminate the
430 | licenses of parties who have received copies or rights from you under
431 | this License. If your rights have been terminated and not permanently
432 | reinstated, you do not qualify to receive new licenses for the same
433 | material under section 10.
434 |
435 | 9. Acceptance Not Required for Having Copies.
436 |
437 | You are not required to accept this License in order to receive or
438 | run a copy of the Program. Ancillary propagation of a covered work
439 | occurring solely as a consequence of using peer-to-peer transmission
440 | to receive a copy likewise does not require acceptance. However,
441 | nothing other than this License grants you permission to propagate or
442 | modify any covered work. These actions infringe copyright if you do
443 | not accept this License. Therefore, by modifying or propagating a
444 | covered work, you indicate your acceptance of this License to do so.
445 |
446 | 10. Automatic Licensing of Downstream Recipients.
447 |
448 | Each time you convey a covered work, the recipient automatically
449 | receives a license from the original licensors, to run, modify and
450 | propagate that work, subject to this License. You are not responsible
451 | for enforcing compliance by third parties with this License.
452 |
453 | An "entity transaction" is a transaction transferring control of an
454 | organization, or substantially all assets of one, or subdividing an
455 | organization, or merging organizations. If propagation of a covered
456 | work results from an entity transaction, each party to that
457 | transaction who receives a copy of the work also receives whatever
458 | licenses to the work the party's predecessor in interest had or could
459 | give under the previous paragraph, plus a right to possession of the
460 | Corresponding Source of the work from the predecessor in interest, if
461 | the predecessor has it or can get it with reasonable efforts.
462 |
463 | You may not impose any further restrictions on the exercise of the
464 | rights granted or affirmed under this License. For example, you may
465 | not impose a license fee, royalty, or other charge for exercise of
466 | rights granted under this License, and you may not initiate litigation
467 | (including a cross-claim or counterclaim in a lawsuit) alleging that
468 | any patent claim is infringed by making, using, selling, offering for
469 | sale, or importing the Program or any portion of it.
470 |
471 | 11. Patents.
472 |
473 | A "contributor" is a copyright holder who authorizes use under this
474 | License of the Program or a work on which the Program is based. The
475 | work thus licensed is called the contributor's "contributor version".
476 |
477 | A contributor's "essential patent claims" are all patent claims
478 | owned or controlled by the contributor, whether already acquired or
479 | hereafter acquired, that would be infringed by some manner, permitted
480 | by this License, of making, using, or selling its contributor version,
481 | but do not include claims that would be infringed only as a
482 | consequence of further modification of the contributor version. For
483 | purposes of this definition, "control" includes the right to grant
484 | patent sublicenses in a manner consistent with the requirements of
485 | this License.
486 |
487 | Each contributor grants you a non-exclusive, worldwide, royalty-free
488 | patent license under the contributor's essential patent claims, to
489 | make, use, sell, offer for sale, import and otherwise run, modify and
490 | propagate the contents of its contributor version.
491 |
492 | In the following three paragraphs, a "patent license" is any express
493 | agreement or commitment, however denominated, not to enforce a patent
494 | (such as an express permission to practice a patent or covenant not to
495 | sue for patent infringement). To "grant" such a patent license to a
496 | party means to make such an agreement or commitment not to enforce a
497 | patent against the party.
498 |
499 | If you convey a covered work, knowingly relying on a patent license,
500 | and the Corresponding Source of the work is not available for anyone
501 | to copy, free of charge and under the terms of this License, through a
502 | publicly available network server or other readily accessible means,
503 | then you must either (1) cause the Corresponding Source to be so
504 | available, or (2) arrange to deprive yourself of the benefit of the
505 | patent license for this particular work, or (3) arrange, in a manner
506 | consistent with the requirements of this License, to extend the patent
507 | license to downstream recipients. "Knowingly relying" means you have
508 | actual knowledge that, but for the patent license, your conveying the
509 | covered work in a country, or your recipient's use of the covered work
510 | in a country, would infringe one or more identifiable patents in that
511 | country that you have reason to believe are valid.
512 |
513 | If, pursuant to or in connection with a single transaction or
514 | arrangement, you convey, or propagate by procuring conveyance of, a
515 | covered work, and grant a patent license to some of the parties
516 | receiving the covered work authorizing them to use, propagate, modify
517 | or convey a specific copy of the covered work, then the patent license
518 | you grant is automatically extended to all recipients of the covered
519 | work and works based on it.
520 |
521 | A patent license is "discriminatory" if it does not include within
522 | the scope of its coverage, prohibits the exercise of, or is
523 | conditioned on the non-exercise of one or more of the rights that are
524 | specifically granted under this License. You may not convey a covered
525 | work if you are a party to an arrangement with a third party that is
526 | in the business of distributing software, under which you make payment
527 | to the third party based on the extent of your activity of conveying
528 | the work, and under which the third party grants, to any of the
529 | parties who would receive the covered work from you, a discriminatory
530 | patent license (a) in connection with copies of the covered work
531 | conveyed by you (or copies made from those copies), or (b) primarily
532 | for and in connection with specific products or compilations that
533 | contain the covered work, unless you entered into that arrangement,
534 | or that patent license was granted, prior to 28 March 2007.
535 |
536 | Nothing in this License shall be construed as excluding or limiting
537 | any implied license or other defenses to infringement that may
538 | otherwise be available to you under applicable patent law.
539 |
540 | 12. No Surrender of Others' Freedom.
541 |
542 | If conditions are imposed on you (whether by court order, agreement or
543 | otherwise) that contradict the conditions of this License, they do not
544 | excuse you from the conditions of this License. If you cannot convey a
545 | covered work so as to satisfy simultaneously your obligations under this
546 | License and any other pertinent obligations, then as a consequence you may
547 | not convey it at all. For example, if you agree to terms that obligate you
548 | to collect a royalty for further conveying from those to whom you convey
549 | the Program, the only way you could satisfy both those terms and this
550 | License would be to refrain entirely from conveying the Program.
551 |
552 | 13. Use with the GNU Affero General Public License.
553 |
554 | Notwithstanding any other provision of this License, you have
555 | permission to link or combine any covered work with a work licensed
556 | under version 3 of the GNU Affero General Public License into a single
557 | combined work, and to convey the resulting work. The terms of this
558 | License will continue to apply to the part which is the covered work,
559 | but the special requirements of the GNU Affero General Public License,
560 | section 13, concerning interaction through a network will apply to the
561 | combination as such.
562 |
563 | 14. Revised Versions of this License.
564 |
565 | The Free Software Foundation may publish revised and/or new versions of
566 | the GNU General Public License from time to time. Such new versions will
567 | be similar in spirit to the present version, but may differ in detail to
568 | address new problems or concerns.
569 |
570 | Each version is given a distinguishing version number. If the
571 | Program specifies that a certain numbered version of the GNU General
572 | Public License "or any later version" applies to it, you have the
573 | option of following the terms and conditions either of that numbered
574 | version or of any later version published by the Free Software
575 | Foundation. If the Program does not specify a version number of the
576 | GNU General Public License, you may choose any version ever published
577 | by the Free Software Foundation.
578 |
579 | If the Program specifies that a proxy can decide which future
580 | versions of the GNU General Public License can be used, that proxy's
581 | public statement of acceptance of a version permanently authorizes you
582 | to choose that version for the Program.
583 |
584 | Later license versions may give you additional or different
585 | permissions. However, no additional obligations are imposed on any
586 | author or copyright holder as a result of your choosing to follow a
587 | later version.
588 |
589 | 15. Disclaimer of Warranty.
590 |
591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
599 |
600 | 16. Limitation of Liability.
601 |
602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
610 | SUCH DAMAGES.
611 |
612 | 17. Interpretation of Sections 15 and 16.
613 |
614 | If the disclaimer of warranty and limitation of liability provided
615 | above cannot be given local legal effect according to their terms,
616 | reviewing courts shall apply local law that most closely approximates
617 | an absolute waiver of all civil liability in connection with the
618 | Program, unless a warranty or assumption of liability accompanies a
619 | copy of the Program in return for a fee.
620 |
621 | END OF TERMS AND CONDITIONS
622 |
623 | How to Apply These Terms to Your New Programs
624 |
625 | If you develop a new program, and you want it to be of the greatest
626 | possible use to the public, the best way to achieve this is to make it
627 | free software which everyone can redistribute and change under these terms.
628 |
629 | To do so, attach the following notices to the program. It is safest
630 | to attach them to the start of each source file to most effectively
631 | state the exclusion of warranty; and each file should have at least
632 | the "copyright" line and a pointer to where the full notice is found.
633 |
634 | {one line to give the program's name and a brief idea of what it does.}
635 | Copyright (C) {year} {name of author}
636 |
637 | This program is free software: you can redistribute it and/or modify
638 | it under the terms of the GNU General Public License as published by
639 | the Free Software Foundation, either version 3 of the License, or
640 | (at your option) any later version.
641 |
642 | This program is distributed in the hope that it will be useful,
643 | but WITHOUT ANY WARRANTY; without even the implied warranty of
644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
645 | GNU General Public License for more details.
646 |
647 | You should have received a copy of the GNU General Public License
648 | along with this program. If not, see .
649 |
650 | Also add information on how to contact you by electronic and paper mail.
651 |
652 | If the program does terminal interaction, make it output a short
653 | notice like this when it starts in an interactive mode:
654 |
655 | {project} Copyright (C) {year} {fullname}
656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
657 | This is free software, and you are welcome to redistribute it
658 | under certain conditions; type `show c' for details.
659 |
660 | The hypothetical commands `show w' and `show c' should show the appropriate
661 | parts of the General Public License. Of course, your program's commands
662 | might be different; for a GUI interface, you would use an "about box".
663 |
664 | You should also get your employer (if you work as a programmer) or school,
665 | if any, to sign a "copyright disclaimer" for the program, if necessary.
666 | For more information on this, and how to apply and follow the GNU GPL, see
667 | .
668 |
669 | The GNU General Public License does not permit incorporating your program
670 | into proprietary programs. If your program is a subroutine library, you
671 | may consider it more useful to permit linking proprietary applications with
672 | the library. If this is what you want to do, use the GNU Lesser General
673 | Public License instead of this License. But first, please read
674 | .
675 |
--------------------------------------------------------------------------------