From a0544077d3128a9997def0cd6f6508d049db2de3 2017-07-26 09:18:17 From: Gérard Vidal Date: 2017-07-26 09:18:17 Subject: [PATCH] Cleaning repository -2- --- diff --git a/templates/README.md b/templates/README.md new file mode 100644 index 0000000..6f80f7b --- /dev/null +++ b/templates/README.md @@ -0,0 +1,13 @@ +## Templates used at IFÉ ENS de Lyon for Tremplin project + +These templates have been used to create Raspberry Pi images for the project "Climate and meteorolgy springboard for teaching sciences". These images are used as explained in the [blog](http://blog.climatetmeteo.fr/GerardVidal/) (mostly in french). + +The aim was to share with teachers an image providing software resources to use commercial weatherstations or DIY weathersystems made with various sensors. The following images have been built : + + * raspife2-stretch Debian stretch image for raspi 2 + * raspife3-jessie Debian jessie image for raspi 3 + * raspife3-stretch Debian stretch image for raspi 3 + * raspife3W-stretch Debian stretch image for raspi 3 with single IPAddress and weewx service + * raspife3-buster Debian buster image for raspi 3 + + diff --git a/templates/raspife2-stretch b/templates/raspife2-stretch new file mode 100644 index 0000000..dbf6f2d --- /dev/null +++ b/templates/raspife2-stretch @@ -0,0 +1,80 @@ + Configuration file raspife2 Stretch IFÉ 2017/02/24 + # + APT_SERVER=ftp.fr.debian.org + APT_INCLUDES="gnupg,gnupg2,firmware-realtek,firmware-linux-nonfree,firmware-linux,tightvncserver,build-essentia$ + bison,libboost-all-dev,automake,autoconf,autogen,libtool,pkg-config,checkinstall,python3,python3-dev,menulibre,$ + libnotify-bin,python,python-configobj,python-cheetah,python-imaging,python-serial,python-usb,python-dev,\ + pcre2-utils,libpcre++-dev,libpcre2-dev,libjpeg-dev,jed,i2c-tools,python-smbus,policykit-1,usbutils,\ + pmount,python-pip,python3-pip,geany,geany-plugin-py,geany-plugin-markdown,firefox-esr,firefox-esr-l10n-fr,\ + icedtea-8-plugin,openjdk-8-jdk,openjdk-8-jre,openjdk-8-jre-headless,libqtwebkit-dev,libqt5webkit5-dev,\ + libudev-dev,libzzip-dev,zlib1g-dev,libcanberra-gtk-module,libnss-myhostname,libfreetype6-dev,libpng16-16,\ + lxsession,openbox-lxde-session,lxde" + #---------------------- + RPI_MODEL=2 + RELEASE="stretch" + HOSTNAME="raspife2" + PASSWORD="***********" + USER_PASSWORD="**************" + DEFLOCAL="fr_FR.UTF-8" + TIMEZONE="Europe/Paris" + EXPANDROOT=false + #----------------------- + XKB_MODEL="pc105" + XKB_LAYOUT="fr" + XKB_VARIANT="latin9" + XKB_OPTIONS="" + #------------------------ + ENABLE_DHCP=true + #------------------------ + ENABLE_CONSOLE=true + ENABLE_I2C=true + ENABLE_SPI=true + ENABLE_IPV6=true + ENABLE_SSHD=true + ENABLE_NONFREE=true + ENABLE_WIRELESS=false + ENABLE_RSYSLOG=true + ENABLE_SOUND=true + ENABLE_HWRANDOM=true + ENABLE_MINGPU=true + ENABLE_DBUS=true + ENABLE_XORG=true + ENABLE_WM="lxdm" + #------------------------ + ENABLE_MINBASE=false + ENABLE_REDUCE=false + ENABLE_UBOOT=false + ENABLE_FBTURBO=true + ENABLE_IPTABLES=false + ENABLE_USER=true + USER_NAME=ens-ife + ENABLE_ROOT=true + ENABLE_HARDNET=true + ENABLE_INITRAMFS=true + ENABLE_IFNAMES=true + #------------------------ + ENABLE_ROOT_SSH=false + SSH_LIMIT_USERS=false + SSH_ROOT_PUB_KEY="/home/********/.ssh/authorized_keys" + SSH_USER_PUB_KEY="/home/********/.ssh/authorized_keys" + #------------------------ + BUILD_KERNEL=true + KERNEL_REDUCE=false + KERNEL_HEADERS=true + KERNEL_REMOVESRC=true + KERNELSRC_CLEAN=true + KERNELSRC_CONFIG=true + #------------------------ + REDUCE_APT=false + REDUCE_DOC=true + REDUCE_MAN=false + REDUCE_HWDB=true + REDUCE_BASH=false + REDUCE_SSHD=false + REDUCE_LOCALE=false + #------------------------- + ENABLE_CRYPTFS=false + #------------------------- + BASEDIR=/media/********/images/${RELEASE} + DATE=date ++%Y-%m-%d IMAGE_NAME=${BASEDIR}/${DATE}-rpi${RPI_MODEL}-${RELEASE} diff --git a/templates/raspife3-buster b/templates/raspife3-buster new file mode 100644 index 0000000..b9c4524 --- /dev/null +++ b/templates/raspife3-buster @@ -0,0 +1,91 @@ +# Configuration file raspi3 Buster IFÉ 2017/07/26 +# +APT_SERVER=ftp.fr.debian.org +APT_INCLUDES="gnupg,gnupg2,firmware-linux-nonfree,firmware-linux,dh-autoreconf,\ +gettext,build-essential,git,cmake,libjson-c-dev,unzip,usbutils,\ +bison,libboost-all-dev,automake,autoconf,autogen,libtool,libtool-bin,\ +pkg-config,checkinstall,menulibre,libnotify-bin,pandoc,\ +python3,python3-dev,python3-pypandoc,python3-scipy,python3-tk,python3-pandocfilters,\ +python,python-dev,python-pypandoc,python-scipy,python-tk,python-pandocfilters,\ +python3-geopy,python3-pip,\ +python-geopy,python-pip,\ +python-configobj,python-cheetah,python-imaging,python-serial,python-usb,\ +pcre2-utils,libpcre++-dev,libpcre2-dev,libjpeg-dev,jed,i2c-tools,python-smbus,policykit-1,\ +pmount,ntpdate,\ +texlive,texlive-xetex,nginx-extras,ffmpeg,wicd,wicd-gtk,console-data,keyboard-configuration,\ +icedtea-8-plugin,openjdk-8-jdk,openjdk-8-jre,openjdk-8-jre-headless,libqtwebkit-dev,libqt5webkit5-dev,\ +libudev-dev,libzzip-dev,zlib1g-dev,libcanberra-gtk-module,libnss-myhostname,libfreetype6-dev,libpng16-16,\ +nmap,libltdl-dev,dbus-user-session,debian-archive-keyring,\ +xutils-dev,lxsession,openbox-lxde-session,lxde,x11proto-randr-dev,lxrandr,\ +tightvncserver,geany,geany-plugin-py,geany-plugin-markdown,firefox-esr,firefox-esr-l10n-fr" +#---------------------- +RPI_MODEL=3 +RELEASE="buster" +HOSTNAME="raspife3" +PASSWORD="**************" +USER_PASSWORD="***************" +DEFLOCAL="fr_FR.UTF-8" +TIMEZONE="Europe/Paris" +EXPANDROOT=false +#----------------------- +XKB_MODEL="pc105" +XKB_LAYOUT="fr" +XKB_VARIANT="latin9" +XKB_OPTIONS="" +#------------------------ +ENABLE_DHCP=true +#------------------------ +ENABLE_CONSOLE=false +ENABLE_I2C=true +ENABLE_SPI=true +ENABLE_IPV6=true +ENABLE_SSHD=true +ENABLE_NONFREE=true +ENABLE_WIRELESS=true +ENABLE_RSYSLOG=true +ENABLE_SOUND=true +ENABLE_HWRANDOM=true +ENABLE_MINGPU=true +ENABLE_DBUS=true +ENABLE_XORG=true +ENABLE_WM="lxdm" +#------------------------ +ENABLE_MINBASE=false +ENABLE_REDUCE=false +ENABLE_UBOOT=false +ENABLE_FBTURBO=true +ENABLE_IPTABLES=false +ENABLE_USER=true +USER_NAME=ens-ife +ENABLE_ROOT=true +ENABLE_HARDNET=true +ENABLE_INITRAMFS=true +ENABLE_IFNAMES=true +#------------------------ +ENABLE_ROOT_SSH=false +SSH_LIMIT_USERS=false +SSH_ROOT_PUB_KEY="/home/*******/.ssh/authorized_keys" +SSH_USER_PUB_KEY="/home/*******/.ssh/authorized_keys" +#------------------------ +BUILD_KERNEL=true +KERNEL_REDUCE=false +KERNEL_HEADERS=true +KERNEL_REMOVESRC=true +KERNELSRC_CLEAN=true +KERNELSRC_CONFIG=true +#------------------------ +REDUCE_APT=false +REDUCE_DOC=true +REDUCE_MAN=false +REDUCE_HWDB=true +REDUCE_BASH=false +REDUCE_SSHD=false +REDUCE_LOCALE=false +#------------------------- +ENABLE_CRYPTFS=false +#------------------------- +BASEDIR=/data/RpiGenImage/Images/${RELEASE} +DATE=`date +%Y-%m-%d` +IMAGE_NAME=${BASEDIR}/${DATE}-rpi${RPI_MODEL}-${RELEASE} + + diff --git a/templates/raspife3-jessie b/templates/raspife3-jessie new file mode 100644 index 0000000..6a4f72f --- /dev/null +++ b/templates/raspife3-jessie @@ -0,0 +1,4 @@ +# Configuration template file used by rpi23-gen-image.sh +RPI_MODEL=3 +RELEASE=jessie +BUILD_KERNEL=true diff --git a/templates/raspife3-stretch b/templates/raspife3-stretch new file mode 100644 index 0000000..5ab2596 --- /dev/null +++ b/templates/raspife3-stretch @@ -0,0 +1,86 @@ +# Configuration file raspi3 Stretch IFÉ 2017/04/15 +# +APT_SERVER=ftp.fr.debian.org +APT_INCLUDES="gnupg,gnupg2,firmware-linux-nonfree,firmware-linux,xutils-dev,\ +gettext, tightvncserver,build-essential,git,cmake,libjson-c-dev,unzip,\ +bison,libboost-all-dev,automake,autoconf,autogen,libtool,libtool-bin,pkg-config,checkinstall,menulibre,libnotify-bin, \ +python3,python3-dev,python,python-dev,python-configobj,python-cheetah,python-imaging,python-serial,python-usb,\ +python-tk,python3-tk,python3-scipy,pandoc,python-pypandoc,python3-pypandoc,python-pandocfilters,python3-pandocfilters, \ +python-geopy,python3-geopy,python-pip,python3-pip, \ +pcre2-utils,libpcre++-dev,libpcre2-dev,libjpeg-dev,jed,i2c-tools,python-smbus,policykit-1,usbutils,\ +pmount,geany,geany-plugin-py,geany-plugin-markdown,firefox-esr,firefox-esr-l10n-fr,ntpdate, \ +texlive,texlive-xetex,nginx-extras,ffmpeg,wicd,wicd-gtk,console-data,keyboard-configuration, \ +icedtea-8-plugin,openjdk-8-jdk,openjdk-8-jre,openjdk-8-jre-headless,libqtwebkit-dev,libqt5webkit5-dev,\ +libudev-dev,libzzip-dev,zlib1g-dev,libcanberra-gtk-module,libnss-myhostname,libfreetype6-dev,libpng16-16,\ +nmap,libltdl-dev,lxsession,openbox-lxde-session,lxde,dbus-user-session,debian-archive-keyring" +#---------------------- +RPI_MODEL=3 +RELEASE="stretch" +HOSTNAME="raspife3" +PASSWORD="**********" +USER_PASSWORD="**********" +DEFLOCAL="fr_FR.UTF-8" +TIMEZONE="Europe/Paris" +EXPANDROOT=false +#----------------------- +XKB_MODEL="pc105" +XKB_LAYOUT="fr" +XKB_VARIANT="latin9" +XKB_OPTIONS="" +#------------------------ +ENABLE_DHCP=true +#------------------------ +ENABLE_CONSOLE=false +ENABLE_I2C=true +ENABLE_SPI=true +ENABLE_IPV6=true +ENABLE_SSHD=true +ENABLE_NONFREE=true +ENABLE_WIRELESS=true +ENABLE_RSYSLOG=true +ENABLE_SOUND=true +ENABLE_HWRANDOM=true +ENABLE_MINGPU=true +ENABLE_DBUS=true +ENABLE_XORG=true +ENABLE_WM="lxdm" +#------------------------ +ENABLE_MINBASE=false +ENABLE_REDUCE=false +ENABLE_UBOOT=false +ENABLE_FBTURBO=false +ENABLE_IPTABLES=false +ENABLE_USER=true +USER_NAME=ens-ife +ENABLE_ROOT=true +ENABLE_HARDNET=true +ENABLE_INITRAMFS=true +ENABLE_IFNAMES=true +#------------------------ +ENABLE_ROOT_SSH=false +SSH_LIMIT_USERS=false +SSH_ROOT_PUB_KEY="/home/*******/.ssh/authorized_keys" +SSH_USER_PUB_KEY="/home/*******/.ssh/authorized_keys" +#------------------------ +BUILD_KERNEL=true +KERNEL_REDUCE=false +KERNEL_HEADERS=true +KERNEL_REMOVESRC=true +KERNELSRC_CLEAN=true +KERNELSRC_CONFIG=true +#------------------------ +REDUCE_APT=false +REDUCE_DOC=true +REDUCE_MAN=false +REDUCE_HWDB=true +REDUCE_BASH=false +REDUCE_SSHD=false +REDUCE_LOCALE=false +#------------------------- +ENABLE_CRYPTFS=false +#------------------------- +BASEDIR=/data/RpiGenImage/Images/${RELEASE} +DATE=`date +%Y-%m-%d` +IMAGE_NAME=${BASEDIR}/${DATE}-rpi${RPI_MODEL}-${RELEASE} + + diff --git a/templates/raspife3W-stretch b/templates/raspife3W-stretch new file mode 100644 index 0000000..8b4e016 --- /dev/null +++ b/templates/raspife3W-stretch @@ -0,0 +1,92 @@ +# Configuration file raspi3 Stretch IFÉ 2017/04/15 +# +APT_SERVER=ftp.fr.debian.org +APT_INCLUDES="debian-archive-keyring,debian-keyring,automake,autoconf,autogen,gawk,gnupg,gnupg2, \ +build-essential,git,cmake,libjson-c-dev,unzip,\ +bison,libboost-all-dev,libtool,libtool-bin,pkg-config,checkinstall,libnotify-bin,pandoc, \ +python3,python3-dev,python,python-dev,python-configobj,python-cheetah, \ +python-imaging,python-serial,python-usb,python-tk,python3-tk,python3-scipy, \ +python-pypandoc,python3-pypandoc,python-pandocfilters,python3-pandocfilters, \ +python-geopy,python3-geopy,python-pip,python3-pip,python-smbus, \ +libudev-dev,libzzip-dev,zlib1g-dev,libnss-myhostname,libpng16-16,nmap \ +libltdl-dev,usbutils,pmount,ntpdate,texlive,texlive-xetex,nginx-extras,policykit-1" +#firehol" +#ffmpeg,console-data,keyboard-configuration,openjdk-8-jdk, \ +#openjdk-8-jre,openjdk-8-jre-headless,pcre2-utils,libpcre++-dev,libpcre2-dev,libjpeg-dev,i2c-tools, \ +#libcanberra-gtk-module,libqtwebkit-dev,libqt5webkit5-dev,libfreetype6-dev" +#,policykit-1,inetutils-ping,firmware-linux-nonfree,firmware-linux +#---------------------- +RPI_MODEL=3 +RELEASE="stretch" +HOSTNAME="raspwife3" +PASSWORD="**************" +USER_PASSWORD="*************" +DEFLOCAL="fr_FR.UTF-8" +TIMEZONE="Europe/Paris" +EXPANDROOT=false +#----------------------- +XKB_MODEL="pc105" +XKB_LAYOUT="fr" +XKB_VARIANT="latin9" +XKB_OPTIONS="" +#------------------------ +ENABLE_DHCP=false +NET_ADDRESS="192.168.***.**/**" +NET_GATEWAY="192.168.***.1" +NET_DNS_1="192.168.***.1" +NET_DNS_2="8.8.8.8" +#------------------------ +ENABLE_CONSOLE=false +ENABLE_I2C=true +ENABLE_SPI=true +ENABLE_IPV6=true +ENABLE_SSHD=true +ENABLE_NONFREE=true +ENABLE_WIRELESS=true +ENABLE_RSYSLOG=true +ENABLE_SOUND=true +ENABLE_HWRANDOM=true +ENABLE_MINGPU=true +ENABLE_DBUS=true +ENABLE_XORG=false +ENABLE_WM="" +#------------------------ +ENABLE_MINBASE=false +ENABLE_REDUCE=false +ENABLE_UBOOT=false +ENABLE_FBTURBO=false +ENABLE_IPTABLES=false +ENABLE_USER=true +USER_NAME=ens-ife +ENABLE_ROOT=true +ENABLE_HARDNET=true +ENABLE_INITRAMFS=true +ENABLE_IFNAMES=true +#------------------------ +ENABLE_ROOT_SSH=false +SSH_LIMIT_USERS=false +SSH_ROOT_PUB_KEY="/home/********/.ssh/authorized_keys" +SSH_USER_PUB_KEY="/home/********/.ssh/authorized_keys" +#------------------------ +BUILD_KERNEL=true +KERNEL_REDUCE=false +KERNEL_HEADERS=true +KERNEL_REMOVESRC=true +KERNELSRC_CLEAN=true +KERNELSRC_CONFIG=true +#------------------------ +REDUCE_APT=false +REDUCE_DOC=true +REDUCE_MAN=false +REDUCE_HWDB=true +REDUCE_BASH=false +REDUCE_SSHD=false +REDUCE_LOCALE=false +#------------------------- +ENABLE_CRYPTFS=false +#------------------------- +BASEDIR=/data/RpiGenImage/Images/${RELEASE} +DATE=`date +%Y-%m-%d` +IMAGE_NAME=${BASEDIR}/${DATE}-rpiw${RPI_MODEL}-${RELEASE} + + diff --git a/templates/rpi2jessie b/templates/rpi2jessie new file mode 100644 index 0000000..c4d27dd --- /dev/null +++ b/templates/rpi2jessie @@ -0,0 +1,2 @@ +# Configuration template file used by rpi23-gen-image.sh +RELEASE=jessie diff --git a/templates/rpi2stretch b/templates/rpi2stretch new file mode 100644 index 0000000..a67c72f --- /dev/null +++ b/templates/rpi2stretch @@ -0,0 +1,3 @@ +# Configuration template file used by rpi23-gen-image.sh +RELEASE=stretch +BUILD_KERNEL=true diff --git a/templates/rpi3jessie b/templates/rpi3jessie new file mode 100644 index 0000000..6a4f72f --- /dev/null +++ b/templates/rpi3jessie @@ -0,0 +1,4 @@ +# Configuration template file used by rpi23-gen-image.sh +RPI_MODEL=3 +RELEASE=jessie +BUILD_KERNEL=true diff --git a/templates/rpi3stretch b/templates/rpi3stretch new file mode 100644 index 0000000..70a063e --- /dev/null +++ b/templates/rpi3stretch @@ -0,0 +1,4 @@ +# Configuration template file used by rpi23-gen-image.sh +RPI_MODEL=3 +RELEASE=stretch +BUILD_KERNEL=true