|
1 | NO CONTENT: new file 100644, binary diff hidden |
@@ -0,0 +1,22 | |||
|
1 | ## Templates used at IFÉ ENS de Lyon for "Tremplin des sciences" project | |
|
2 | ||
|
3 | These templates have been used to create Raspberry Pi images for the | |
|
4 | project "Climate and meteorolgy springboard for teaching sciences". | |
|
5 | These images are tuned andused as explained in the | |
|
6 | [blog](http://blog.climatetmeteo.fr/GerardVidal/) (mostly in french | |
|
7 | but under translation). | |
|
8 | ||
|
9 | The aim is to share with teachers a Raspberry Pi3 binary image providing software resources to use commercial weatherstations or DIY weathersystems made with various sensors. The following images have been built : | |
|
10 | ||
|
11 | * raspife2-stretch Debian stretch image for raspi 2 | |
|
12 | * raspife3-jessie Debian jessie image for raspi 3 | |
|
13 | * raspife3-stretch Debian stretch image for raspi 3 | |
|
14 | * raspife3W-stretch Debian stretch image for raspi 3 with single IPAddress and weewx service | |
|
15 | * raspife3-buster Debian buster image for raspi 3 | |
|
16 | ||
|
17 | In these images language ichoosen is french and can easily be changed. | |
|
18 | Pathes and other variables are the ones that have been used during | |
|
19 | execution and personnal data are replaced by "*******", change the | |
|
20 | values according to your needs. | |
|
21 | ||
|
22 |
@@ -0,0 +1,80 | |||
|
1 | Configuration file raspife2 Stretch IFÉ 2017/02/24 | |
|
2 | # | |
|
3 | APT_SERVER=ftp.fr.debian.org | |
|
4 | APT_INCLUDES="gnupg,gnupg2,firmware-realtek,firmware-linux-nonfree,firmware-linux,tightvncserver,build-essentia$ | |
|
5 | bison,libboost-all-dev,automake,autoconf,autogen,libtool,pkg-config,checkinstall,python3,python3-dev,menulibre,$ | |
|
6 | libnotify-bin,python,python-configobj,python-cheetah,python-imaging,python-serial,python-usb,python-dev,\ | |
|
7 | pcre2-utils,libpcre++-dev,libpcre2-dev,libjpeg-dev,jed,i2c-tools,python-smbus,policykit-1,usbutils,\ | |
|
8 | pmount,python-pip,python3-pip,geany,geany-plugin-py,geany-plugin-markdown,firefox-esr,firefox-esr-l10n-fr,\ | |
|
9 | icedtea-8-plugin,openjdk-8-jdk,openjdk-8-jre,openjdk-8-jre-headless,libqtwebkit-dev,libqt5webkit5-dev,\ | |
|
10 | libudev-dev,libzzip-dev,zlib1g-dev,libcanberra-gtk-module,libnss-myhostname,libfreetype6-dev,libpng16-16,\ | |
|
11 | lxsession,openbox-lxde-session,lxde" | |
|
12 | #---------------------- | |
|
13 | RPI_MODEL=2 | |
|
14 | RELEASE="stretch" | |
|
15 | HOSTNAME="raspife2" | |
|
16 | PASSWORD="***********" | |
|
17 | USER_PASSWORD="**************" | |
|
18 | DEFLOCAL="fr_FR.UTF-8" | |
|
19 | TIMEZONE="Europe/Paris" | |
|
20 | EXPANDROOT=false | |
|
21 | #----------------------- | |
|
22 | XKB_MODEL="pc105" | |
|
23 | XKB_LAYOUT="fr" | |
|
24 | XKB_VARIANT="latin9" | |
|
25 | XKB_OPTIONS="" | |
|
26 | #------------------------ | |
|
27 | ENABLE_DHCP=true | |
|
28 | #------------------------ | |
|
29 | ENABLE_CONSOLE=true | |
|
30 | ENABLE_I2C=true | |
|
31 | ENABLE_SPI=true | |
|
32 | ENABLE_IPV6=true | |
|
33 | ENABLE_SSHD=true | |
|
34 | ENABLE_NONFREE=true | |
|
35 | ENABLE_WIRELESS=false | |
|
36 | ENABLE_RSYSLOG=true | |
|
37 | ENABLE_SOUND=true | |
|
38 | ENABLE_HWRANDOM=true | |
|
39 | ENABLE_MINGPU=true | |
|
40 | ENABLE_DBUS=true | |
|
41 | ENABLE_XORG=true | |
|
42 | ENABLE_WM="lxdm" | |
|
43 | #------------------------ | |
|
44 | ENABLE_MINBASE=false | |
|
45 | ENABLE_REDUCE=false | |
|
46 | ENABLE_UBOOT=false | |
|
47 | ENABLE_FBTURBO=true | |
|
48 | ENABLE_IPTABLES=false | |
|
49 | ENABLE_USER=true | |
|
50 | USER_NAME=ens-ife | |
|
51 | ENABLE_ROOT=true | |
|
52 | ENABLE_HARDNET=true | |
|
53 | ENABLE_INITRAMFS=true | |
|
54 | ENABLE_IFNAMES=true | |
|
55 | #------------------------ | |
|
56 | ENABLE_ROOT_SSH=false | |
|
57 | SSH_LIMIT_USERS=false | |
|
58 | SSH_ROOT_PUB_KEY="/home/********/.ssh/authorized_keys" | |
|
59 | SSH_USER_PUB_KEY="/home/********/.ssh/authorized_keys" | |
|
60 | #------------------------ | |
|
61 | BUILD_KERNEL=true | |
|
62 | KERNEL_REDUCE=false | |
|
63 | KERNEL_HEADERS=true | |
|
64 | KERNEL_REMOVESRC=true | |
|
65 | KERNELSRC_CLEAN=true | |
|
66 | KERNELSRC_CONFIG=true | |
|
67 | #------------------------ | |
|
68 | REDUCE_APT=false | |
|
69 | REDUCE_DOC=true | |
|
70 | REDUCE_MAN=false | |
|
71 | REDUCE_HWDB=true | |
|
72 | REDUCE_BASH=false | |
|
73 | REDUCE_SSHD=false | |
|
74 | REDUCE_LOCALE=false | |
|
75 | #------------------------- | |
|
76 | ENABLE_CRYPTFS=false | |
|
77 | #------------------------- | |
|
78 | BASEDIR=/media/********/images/${RELEASE} | |
|
79 | DATE=date | |
|
80 | +%Y-%m-%d IMAGE_NAME=${BASEDIR}/${DATE}-rpi${RPI_MODEL}-${RELEASE} |
@@ -0,0 +1,98 | |||
|
1 | # Configuration file raspi3 Buster IFÉ 2017/11/01 | |
|
2 | # | |
|
3 | APT_SERVER=debian.mirrors.ovh.net | |
|
4 | APT_INCLUDES="" | |
|
5 | APT_INCLUDES_LATE="gnupg,firmware-linux-nonfree,firmware-linux,dh-autoreconf,\ | |
|
6 | gettext,build-essential,git,cmake,libjson-c-dev,unzip,usbutils,\ | |
|
7 | bison,libboost-all-dev,automake,autoconf,autogen,libtool,libtool-bin,\ | |
|
8 | pkg-config,checkinstall,menulibre,libnotify-bin,pandoc,\ | |
|
9 | python3,python3-dev,python3-pypandoc,python3-scipy,python3-tk,python3-pandocfilters,\ | |
|
10 | python3-geopy,python3-pip,\ | |
|
11 | python,python-dev,python-pypandoc,python-scipy,python-tk,python-pandocfilters,\ | |
|
12 | python-geopy,python-pip,python-tk,pandoc,\ | |
|
13 | python-configobj,python-cheetah,python-imaging,python-serial,python-usb,\ | |
|
14 | pcre2-utils,libpcre++-dev,libpcre2-dev,libjpeg-dev,i2c-tools,python-smbus,policykit-1,\ | |
|
15 | pmount,ntpdate,ntp,rsync,\ | |
|
16 | texlive,texlive-xetex,nginx-extras,ffmpeg,wicd,wicd-gtk,console-data,keyboard-configuration,\ | |
|
17 | libqtwebkit-dev,libqt5webkit5-dev,\ | |
|
18 | libudev-dev,libzzip-dev,zlib1g-dev,libcanberra-gtk-module,libnss-myhostname,libfreetype6-dev,libpng16-16,\ | |
|
19 | nmap,libltdl-dev,dbus-user-session,debian-archive-keyring,\ | |
|
20 | xutils-dev,lxsession,openbox-lxde-session,lxde,x11proto-randr-dev,lxrandr,\ | |
|
21 | tightvncserver,geany,geany-plugin-py,firefox-esr,firefox-esr-l10n-fr,jed,terminator,automake" | |
|
22 | #ca-certificates-java,icedtea-plugin,icedtea-netx,\ | |
|
23 | #openjdk-8-jdk,openjdk-8-jre,openjdk-8-jre-headless,\ | |
|
24 | #openjdk-9-jdk,openjdk-9-jre,openjdk-9-jre-headless" | |
|
25 | #---------------------- | |
|
26 | RPI_MODEL=3 | |
|
27 | RELEASE="buster" | |
|
28 | RELEASE_ARCH="armhf" | |
|
29 | HOSTNAME="raspife3" | |
|
30 | PASSWORD="***********" | |
|
31 | USER_PASSWORD="*************" | |
|
32 | DEFLOCAL="fr_FR.UTF-8" | |
|
33 | TIMEZONE="Europe/Paris" | |
|
34 | EXPANDROOT=false | |
|
35 | #----------------------- | |
|
36 | XKB_MODEL="pc105" | |
|
37 | XKB_LAYOUT="fr" | |
|
38 | XKB_VARIANT="latin9" | |
|
39 | XKB_OPTIONS="" | |
|
40 | #------------------------ | |
|
41 | ENABLE_DHCP=true | |
|
42 | #------------------------ | |
|
43 | ENABLE_CONSOLE=false | |
|
44 | ENABLE_I2C=true | |
|
45 | ENABLE_SPI=true | |
|
46 | ENABLE_IPV6=true | |
|
47 | ENABLE_SSHD=true | |
|
48 | ENABLE_NONFREE=true | |
|
49 | ENABLE_WIRELESS=true | |
|
50 | ENABLE_RSYSLOG=true | |
|
51 | ENABLE_SOUND=true | |
|
52 | ENABLE_HWRANDOM=true | |
|
53 | ENABLE_MINGPU=true | |
|
54 | ENABLE_DBUS=true | |
|
55 | ENABLE_XORG=true | |
|
56 | ENABLE_WM="lxdm" | |
|
57 | #------------------------ | |
|
58 | ENABLE_MINBASE=false | |
|
59 | ENABLE_REDUCE=false | |
|
60 | ENABLE_UBOOT=false | |
|
61 | ENABLE_FBTURBO=true | |
|
62 | ENABLE_IPTABLES=false | |
|
63 | ENABLE_USER=true | |
|
64 | USER_NAME=ens-ife | |
|
65 | ENABLE_ROOT=true | |
|
66 | ENABLE_HARDNET=true | |
|
67 | ENABLE_INITRAMFS=true | |
|
68 | ENABLE_IFNAMES=true | |
|
69 | #------------------------ | |
|
70 | ENABLE_ROOT_SSH=false | |
|
71 | SSH_LIMIT_USERS=false | |
|
72 | SSH_ROOT_PUB_KEY="/home/*****/.ssh/authorized_keys" | |
|
73 | SSH_USER_PUB_KEY="/home/*****/.ssh/authorized_keys" | |
|
74 | #------------------------ | |
|
75 | BUILD_KERNEL=true | |
|
76 | KERNEL_BRANCH=rpi-4.13.y | |
|
77 | KERNEL_REDUCE=false | |
|
78 | KERNEL_HEADERS=true | |
|
79 | KERNEL_REMOVESRC=true | |
|
80 | KERNELSRC_CLEAN=true | |
|
81 | KERNELSRC_CONFIG=true | |
|
82 | #------------------------ | |
|
83 | REDUCE_APT=false | |
|
84 | REDUCE_DOC=true | |
|
85 | REDUCE_MAN=false | |
|
86 | REDUCE_HWDB=true | |
|
87 | REDUCE_BASH=false | |
|
88 | REDUCE_SSHD=false | |
|
89 | REDUCE_LOCALE=false | |
|
90 | #------------------------- | |
|
91 | ENABLE_CRYPTFS=false | |
|
92 | #------------------------- | |
|
93 | BASEDIR=/data/RpiGenImage/Images/${RELEASE} | |
|
94 | #BASEDIR=/media/*******/*********/Nano-Ordinateurs/RaspberryPi/RpiGenImage/Images/${RELEASE} | |
|
95 | DATE=`date +%Y-%m-%d` | |
|
96 | IMAGE_NAME=${BASEDIR}/${DATE}-rpi${RPI_MODEL}-${RELEASE} | |
|
97 | ||
|
98 |
@@ -0,0 +1,106 | |||
|
1 | # Configuration file raspi3 Buster IFÉ 2017/11/01 | |
|
2 | # | |
|
3 | APT_SERVER=debian.mirrors.ovh.net | |
|
4 | APT_INCLUDES="" | |
|
5 | APT_INCLUDES_LATE="" | |
|
6 | APT_INCLUDES_LATE="gnupg,firmware-linux-nonfree,firmware-linux,dh-autoreconf,\ | |
|
7 | gettext,build-essential,git,cmake,libjson-c-dev,unzip,usbutils,\ | |
|
8 | bison,libboost-all-dev,automake,autoconf,autogen,libtool,libtool-bin,\ | |
|
9 | pkg-config,checkinstall,menulibre,libnotify-bin,pandoc,\ | |
|
10 | python3,python3-dev,python3-pypandoc,python3-scipy,python3-tk,python3-pandocfilters,\ | |
|
11 | python3-geopy,python3-pip,\ | |
|
12 | python,python-dev,python-pypandoc,python-scipy,python-tk,python-pandocfilters,\ | |
|
13 | python-geopy,python-pip,python-tk,pandoc,\ | |
|
14 | python-configobj,python-cheetah,python-imaging,python-serial,python-usb,\ | |
|
15 | pcre2-utils,libpcre++-dev,libpcre2-dev,libjpeg-dev,i2c-tools,python-smbus,policykit-1,\ | |
|
16 | pmount,ntpdate,ntp,rsync,\ | |
|
17 | texlive,texlive-xetex,nginx-extras,ffmpeg,wicd,wicd-gtk,console-data,keyboard-configuration,\ | |
|
18 | libqtwebkit-dev,libqt5webkit5-dev,\ | |
|
19 | libudev-dev,libzzip-dev,zlib1g-dev,libcanberra-gtk-module,libnss-myhostname,libfreetype6-dev,libpng16-16,\ | |
|
20 | nmap,libltdl-dev,dbus-user-session,debian-archive-keyring,\ | |
|
21 | xutils-dev,lxsession,openbox-lxde-session,lxde,x11proto-randr-dev,lxrandr,\ | |
|
22 | tightvncserver,geany,geany-plugin-py,firefox-esr,firefox-esr-l10n-fr,jed" | |
|
23 | #ca-certificates-java,icedtea-plugin,icedtea-netx,\ | |
|
24 | #openjdk-8-jdk,openjdk-8-jre,openjdk-8-jre-headless,\ | |
|
25 | #openjdk-9-jdk,openjdk-9-jre,openjdk-9-jre-headless" | |
|
26 | #---------------------- | |
|
27 | RPI_MODEL=3 | |
|
28 | RELEASE=buster | |
|
29 | RELEASE_ARCH="armhf" | |
|
30 | HOSTNAME="raspife3" | |
|
31 | PASSWORD="AChanger1$" | |
|
32 | USER_PASSWORD="AChanger1$" | |
|
33 | DEFLOCAL="fr_FR.UTF-8" | |
|
34 | TIMEZONE="Europe/Paris" | |
|
35 | EXPANDROOT=false | |
|
36 | #----------------------- | |
|
37 | XKB_MODEL="pc105" | |
|
38 | XKB_LAYOUT="fr" | |
|
39 | XKB_VARIANT="latin9" | |
|
40 | XKB_OPTIONS="" | |
|
41 | #------------------------ | |
|
42 | ENABLE_DHCP=true | |
|
43 | #------------------------ | |
|
44 | ENABLE_CONSOLE=false | |
|
45 | ENABLE_I2C=true | |
|
46 | ENABLE_SPI=true | |
|
47 | ENABLE_IPV6=true | |
|
48 | ENABLE_SSHD=true | |
|
49 | ENABLE_NONFREE=true | |
|
50 | ENABLE_WIRELESS=true | |
|
51 | ENABLE_RSYSLOG=true | |
|
52 | ENABLE_SOUND=true | |
|
53 | ENABLE_HWRANDOM=true | |
|
54 | ENABLE_MINGPU=true | |
|
55 | ENABLE_DBUS=true | |
|
56 | ENABLE_XORG=true | |
|
57 | ENABLE_WM="lxdm" | |
|
58 | #------------------------ | |
|
59 | ENABLE_MINBASE=false | |
|
60 | ENABLE_REDUCE=false | |
|
61 | ENABLE_UBOOT=false | |
|
62 | ENABLE_FBTURBO=true | |
|
63 | ENABLE_IPTABLES=false | |
|
64 | ENABLE_USER=true | |
|
65 | USER_NAME=ens-ife | |
|
66 | ENABLE_ROOT=true | |
|
67 | ENABLE_HARDNET=true | |
|
68 | ENABLE_INITRAMFS=true | |
|
69 | ENABLE_IFNAMES=true | |
|
70 | #------------------------ | |
|
71 | ENABLE_ROOT_SSH=false | |
|
72 | SSH_LIMIT_USERS=false | |
|
73 | SSH_ROOT_PUB_KEY="/home/vidal/.ssh/authorized_keys" | |
|
74 | SSH_USER_PUB_KEY="/home/vidal/.ssh/authorized_keys" | |
|
75 | #------------------------ | |
|
76 | BUILD_KERNEL=true | |
|
77 | KERNEL_ARCH=arm64 | |
|
78 | RELEASE_ARCH=arm64 | |
|
79 | CROSS_COMPILE=aarch64-linux-gnu- | |
|
80 | QEMU_BINARY=/usr/bin/qemu-aarch64-static | |
|
81 | KERNEL_DEFCONFIG=bcmrpi3_defconfig | |
|
82 | KERNEL_BIN_IMAGE=Image | |
|
83 | KERNEL_IMAGE="kernel10.img" | |
|
84 | KERNEL_BRANCH=rpi-4.13.y | |
|
85 | KERNEL_REDUCE=false | |
|
86 | KERNEL_HEADERS=true | |
|
87 | KERNEL_REMOVESRC=true | |
|
88 | KERNELSRC_CLEAN=true | |
|
89 | KERNELSRC_CONFIG=true | |
|
90 | #------------------------ | |
|
91 | REDUCE_APT=false | |
|
92 | REDUCE_DOC=true | |
|
93 | REDUCE_MAN=false | |
|
94 | REDUCE_HWDB=true | |
|
95 | REDUCE_BASH=false | |
|
96 | REDUCE_SSHD=false | |
|
97 | REDUCE_LOCALE=false | |
|
98 | #------------------------- | |
|
99 | ENABLE_CRYPTFS=false | |
|
100 | #------------------------- | |
|
101 | BASEDIR=/data/RpiGenImage/Images/${RELEASE} | |
|
102 | #BASEDIR=/media/vidal/ExternGV/Nano-Ordinateurs/RaspberryPi/RpiGenImage/Images/${RELEASE} | |
|
103 | DATE=`date +%Y-%m-%d` | |
|
104 | IMAGE_NAME=${BASEDIR}/${DATE}-rpi${RPI_MODEL}-${RELEASE} | |
|
105 | ||
|
106 |
@@ -0,0 +1,4 | |||
|
1 | # Configuration template file used by rpi23-gen-image.sh | |
|
2 | RPI_MODEL=3 | |
|
3 | RELEASE=jessie | |
|
4 | BUILD_KERNEL=true |
@@ -0,0 +1,91 | |||
|
1 | # Configuration file raspi3 Stretch IFÉ 2017/07/26 | |
|
2 | # | |
|
3 | APT_SERVER=ftp.fr.debian.org | |
|
4 | APT_INCLUDES="gnupg,gnupg2,firmware-linux-nonfree,firmware-linux,dh-autoreconf,\ | |
|
5 | gettext,build-essential,git,cmake,libjson-c-dev,unzip,usbutils,\ | |
|
6 | bison,libboost-all-dev,automake,autoconf,autogen,libtool,libtool-bin,\ | |
|
7 | pkg-config,checkinstall,menulibre,libnotify-bin,pandoc,\ | |
|
8 | python3,python3-dev,python3-pypandoc,python3-scipy,python3-tk,python3-pandocfilters,\ | |
|
9 | python,python-dev,python-pypandoc,python-scipy,python-tk,python-pandocfilters,\ | |
|
10 | python3-geopy,python3-pip,\ | |
|
11 | python-geopy,python-pip,\ | |
|
12 | python-configobj,python-cheetah,python-imaging,python-serial,python-usb,\ | |
|
13 | pcre2-utils,libpcre++-dev,libpcre2-dev,libjpeg-dev,jed,i2c-tools,python-smbus,policykit-1,\ | |
|
14 | pmount,ntpdate,\ | |
|
15 | texlive,texlive-xetex,nginx-extras,ffmpeg,wicd,wicd-gtk,console-data,keyboard-configuration,\ | |
|
16 | icedtea-8-plugin,openjdk-8-jdk,openjdk-8-jre,openjdk-8-jre-headless,libqtwebkit-dev,libqt5webkit5-dev,\ | |
|
17 | libudev-dev,libzzip-dev,zlib1g-dev,libcanberra-gtk-module,libnss-myhostname,libfreetype6-dev,libpng16-16,\ | |
|
18 | nmap,libltdl-dev,dbus-user-session,debian-archive-keyring,\ | |
|
19 | xutils-dev,lxsession,openbox-lxde-session,lxde,x11proto-randr-dev,lxrandr,\ | |
|
20 | tightvncserver,geany,geany-plugin-py,geany-plugin-markdown,firefox-esr,firefox-esr-l10n-fr" | |
|
21 | #---------------------- | |
|
22 | RPI_MODEL=3 | |
|
23 | RELEASE="stretch" | |
|
24 | HOSTNAME="raspife3" | |
|
25 | PASSWORD="**************" | |
|
26 | USER_PASSWORD="***************" | |
|
27 | DEFLOCAL="fr_FR.UTF-8" | |
|
28 | TIMEZONE="Europe/Paris" | |
|
29 | EXPANDROOT=false | |
|
30 | #----------------------- | |
|
31 | XKB_MODEL="pc105" | |
|
32 | XKB_LAYOUT="fr" | |
|
33 | XKB_VARIANT="latin9" | |
|
34 | XKB_OPTIONS="" | |
|
35 | #------------------------ | |
|
36 | ENABLE_DHCP=true | |
|
37 | #------------------------ | |
|
38 | ENABLE_CONSOLE=false | |
|
39 | ENABLE_I2C=true | |
|
40 | ENABLE_SPI=true | |
|
41 | ENABLE_IPV6=true | |
|
42 | ENABLE_SSHD=true | |
|
43 | ENABLE_NONFREE=true | |
|
44 | ENABLE_WIRELESS=true | |
|
45 | ENABLE_RSYSLOG=true | |
|
46 | ENABLE_SOUND=true | |
|
47 | ENABLE_HWRANDOM=true | |
|
48 | ENABLE_MINGPU=true | |
|
49 | ENABLE_DBUS=true | |
|
50 | ENABLE_XORG=true | |
|
51 | ENABLE_WM="lxdm" | |
|
52 | #------------------------ | |
|
53 | ENABLE_MINBASE=false | |
|
54 | ENABLE_REDUCE=false | |
|
55 | ENABLE_UBOOT=false | |
|
56 | ENABLE_FBTURBO=true | |
|
57 | ENABLE_IPTABLES=false | |
|
58 | ENABLE_USER=true | |
|
59 | USER_NAME=ens-ife | |
|
60 | ENABLE_ROOT=true | |
|
61 | ENABLE_HARDNET=true | |
|
62 | ENABLE_INITRAMFS=true | |
|
63 | ENABLE_IFNAMES=true | |
|
64 | #------------------------ | |
|
65 | ENABLE_ROOT_SSH=false | |
|
66 | SSH_LIMIT_USERS=false | |
|
67 | SSH_ROOT_PUB_KEY="/home/*******/.ssh/authorized_keys" | |
|
68 | SSH_USER_PUB_KEY="/home/*******/.ssh/authorized_keys" | |
|
69 | #------------------------ | |
|
70 | BUILD_KERNEL=true | |
|
71 | KERNEL_REDUCE=false | |
|
72 | KERNEL_HEADERS=true | |
|
73 | KERNEL_REMOVESRC=true | |
|
74 | KERNELSRC_CLEAN=true | |
|
75 | KERNELSRC_CONFIG=true | |
|
76 | #------------------------ | |
|
77 | REDUCE_APT=false | |
|
78 | REDUCE_DOC=true | |
|
79 | REDUCE_MAN=false | |
|
80 | REDUCE_HWDB=true | |
|
81 | REDUCE_BASH=false | |
|
82 | REDUCE_SSHD=false | |
|
83 | REDUCE_LOCALE=false | |
|
84 | #------------------------- | |
|
85 | ENABLE_CRYPTFS=false | |
|
86 | #------------------------- | |
|
87 | BASEDIR=/data/RpiGenImage/Images/${RELEASE} | |
|
88 | DATE=`date +%Y-%m-%d` | |
|
89 | IMAGE_NAME=${BASEDIR}/${DATE}-rpi${RPI_MODEL}-${RELEASE} | |
|
90 | ||
|
91 |
@@ -0,0 +1,89 | |||
|
1 | # Configuration file raspi3 Stretch Weewx IFÉ 2017/07/26 | |
|
2 | # | |
|
3 | APT_SERVER=ftp.fr.debian.org | |
|
4 | APT_INCLUDES="debian-archive-keyring,debian-keyring,automake,autoconf,autogen,gawk,gnupg,gnupg2,\ | |
|
5 | build-essential,git,cmake,libjson-c-dev,unzip,\ | |
|
6 | bison,libboost-all-dev,libtool,libtool-bin,pkg-config,checkinstall,libnotify-bin,pandoc,\ | |
|
7 | python3,python3-dev,python,python-dev,python-configobj,python-cheetah,python-mysqldb\ | |
|
8 | python-imaging,python-serial,python-usb,python-tk,python3-tk,python3-scipy,\ | |
|
9 | python-pypandoc,python3-pypandoc,python-pandocfilters,python3-pandocfilters,\ | |
|
10 | python-geopy,python3-geopy,python-pip,python3-pip,python-smbus,\ | |
|
11 | libudev-dev,libzzip-dev,zlib1g-dev,libnss-myhostname,libpng16-16,nmap,\ | |
|
12 | libltdl-dev,usbutils,pmount,ntpdate,texlive,texlive-xetex,nginx-extras,policykit-1,\ | |
|
13 | openjdk-8-jdk-headless,openjdk-8-jre-headless,\ | |
|
14 | pcre2-utils,libpcre++-dev,libpcre2-dev,libjpeg-dev,i2c-tools" | |
|
15 | #---------------------- | |
|
16 | RPI_MODEL=3 | |
|
17 | RELEASE="stretch" | |
|
18 | HOSTNAME="raspwife3" | |
|
19 | PASSWORD="************" | |
|
20 | USER_PASSWORD="************" | |
|
21 | DEFLOCAL="fr_FR.UTF-8" | |
|
22 | TIMEZONE="Europe/Paris" | |
|
23 | EXPANDROOT=false | |
|
24 | #----------------------- | |
|
25 | XKB_MODEL="pc105" | |
|
26 | XKB_LAYOUT="fr" | |
|
27 | XKB_VARIANT="latin9" | |
|
28 | XKB_OPTIONS="" | |
|
29 | #------------------------ | |
|
30 | ENABLE_DHCP=false | |
|
31 | NET_ADDRESS="192.168.***.***/24" | |
|
32 | NET_GATEWAY="192.168.***.1" | |
|
33 | NET_DNS_1="192.168.***.1" | |
|
34 | NET_DNS_2="8.8.8.8" | |
|
35 | #------------------------ | |
|
36 | ENABLE_CONSOLE=false | |
|
37 | ENABLE_I2C=true | |
|
38 | ENABLE_SPI=true | |
|
39 | ENABLE_IPV6=true | |
|
40 | ENABLE_SSHD=true | |
|
41 | ENABLE_NONFREE=true | |
|
42 | ENABLE_WIRELESS=true | |
|
43 | ENABLE_RSYSLOG=true | |
|
44 | ENABLE_SOUND=true | |
|
45 | ENABLE_HWRANDOM=true | |
|
46 | ENABLE_MINGPU=true | |
|
47 | ENABLE_DBUS=true | |
|
48 | ENABLE_XORG=false | |
|
49 | ENABLE_WM="" | |
|
50 | #------------------------ | |
|
51 | ENABLE_MINBASE=false | |
|
52 | ENABLE_REDUCE=false | |
|
53 | ENABLE_UBOOT=false | |
|
54 | ENABLE_FBTURBO=false | |
|
55 | ENABLE_IPTABLES=false | |
|
56 | ENABLE_USER=true | |
|
57 | USER_NAME=ens-ife | |
|
58 | ENABLE_ROOT=true | |
|
59 | ENABLE_HARDNET=true | |
|
60 | ENABLE_INITRAMFS=true | |
|
61 | ENABLE_IFNAMES=true | |
|
62 | #------------------------ | |
|
63 | ENABLE_ROOT_SSH=false | |
|
64 | SSH_LIMIT_USERS=false | |
|
65 | SSH_ROOT_PUB_KEY="/home/*******/.ssh/authorized_keys" | |
|
66 | SSH_USER_PUB_KEY="/home/*******/.ssh/authorized_keys" | |
|
67 | #------------------------ | |
|
68 | BUILD_KERNEL=true | |
|
69 | KERNEL_REDUCE=false | |
|
70 | KERNEL_HEADERS=true | |
|
71 | KERNEL_REMOVESRC=true | |
|
72 | KERNELSRC_CLEAN=true | |
|
73 | KERNELSRC_CONFIG=true | |
|
74 | #------------------------ | |
|
75 | REDUCE_APT=false | |
|
76 | REDUCE_DOC=true | |
|
77 | REDUCE_MAN=false | |
|
78 | REDUCE_HWDB=true | |
|
79 | REDUCE_BASH=false | |
|
80 | REDUCE_SSHD=false | |
|
81 | REDUCE_LOCALE=false | |
|
82 | #------------------------- | |
|
83 | ENABLE_CRYPTFS=false | |
|
84 | #------------------------- | |
|
85 | BASEDIR=/data/RpiGenImage/Images/${RELEASE} | |
|
86 | DATE=`date +%Y-%m-%d` | |
|
87 | IMAGE_NAME=${BASEDIR}/${DATE}-rpiw${RPI_MODEL}-${RELEASE} | |
|
88 | ||
|
89 |
@@ -3,6 +3,7 | |||
|
3 | 3 | |
|
4 | 4 | `rpi23-gen-image.sh` is an advanced Debian Linux bootstrapping shell script for generating Debian OS images for Raspberry Pi 2 (RPi2) and Raspberry Pi 3 (RPi3) computers. The script at this time supports the bootstrapping of the Debian (armhf) releases `jessie`, `stretch` and `buster`. Raspberry Pi 3 images are generated for 32-bit mode only. Raspberry Pi 3 64-bit images can be generated using custom configuration parameters (```templates/rpi3-stretch-arm64-4.11.y```). |
|
5 | 5 | |
|
6 | ||
|
6 | 7 | ## Build dependencies |
|
7 | 8 | The following list of Debian packages must be installed on the build system because they are essentially required for the bootstrapping process. The script will check if all required packages are installed and missing packages will be installed automatically if confirmed by the user. |
|
8 | 9 |
@@ -115,7 +115,9 if [ "$BUILD_KERNEL" = true ] ; then | |||
|
115 | 115 | make -C "${KERNEL_DIR}" ARCH="${KERNEL_ARCH}" CROSS_COMPILE="${CROSS_COMPILE}" INSTALL_MOD_PATH=../../.. modules_install |
|
116 | 116 | |
|
117 | 117 | # Install kernel firmware |
|
118 | make -C "${KERNEL_DIR}" ARCH="${KERNEL_ARCH}" CROSS_COMPILE="${CROSS_COMPILE}" INSTALL_FW_PATH=../../../lib firmware_install | |
|
118 | if [ $(cat ./Makefile | grep "^firmware_install:") ] ; then | |
|
119 | make -C "${KERNEL_DIR}" ARCH="${KERNEL_ARCH}" CROSS_COMPILE="${CROSS_COMPILE}" INSTALL_FW_PATH=../../../lib firmware_install | |
|
120 | fi | |
|
119 | 121 | fi |
|
120 | 122 | |
|
121 | 123 | # Install kernel headers |
@@ -35,10 +35,10 if [ "$ENABLE_IPTABLES" = true ] ; then | |||
|
35 | 35 | chroot_exec systemctl daemon-reload |
|
36 | 36 | chroot_exec systemctl enable ip6tables.service |
|
37 | 37 | fi |
|
38 | fi | |
|
39 | ||
|
40 | if [ "$ENABLE_SSHD" = false ] ; then | |
|
41 | # Remove SSHD related iptables rules | |
|
42 | sed -i "/^#/! {/SSH/ s/^/# /}" "${ETC_DIR}/iptables/iptables.rules" 2> /dev/null | |
|
43 | sed -i "/^#/! {/SSH/ s/^/# /}" "${ETC_DIR}/iptables/ip6tables.rules" 2> /dev/null | |
|
38 | ||
|
39 | if [ "$ENABLE_SSHD" = false ] ; then | |
|
40 | # Remove SSHD related iptables rules | |
|
41 | sed -i "/^#/! {/SSH/ s/^/# /}" "${ETC_DIR}/iptables/iptables.rules" 2> /dev/null | |
|
42 | sed -i "/^#/! {/SSH/ s/^/# /}" "${ETC_DIR}/iptables/ip6tables.rules" 2> /dev/null | |
|
43 | fi | |
|
44 | 44 | fi |
@@ -466,6 +466,10 if [ "$ENABLE_REDUCE" = true ] ; then | |||
|
466 | 466 | fi |
|
467 | 467 | fi |
|
468 | 468 | |
|
469 | if [ "$RELEASE" != "jessie" ] ; then | |
|
470 | APT_INCLUDES="${APT_INCLUDES},libnss-systemd" | |
|
471 | fi | |
|
472 | ||
|
469 | 473 | # Configure kernel sources if no KERNELSRC_DIR |
|
470 | 474 | if [ "$BUILD_KERNEL" = true ] && [ -z "$KERNELSRC_DIR" ] ; then |
|
471 | 475 | KERNELSRC_CONFIG=true |
@@ -552,8 +556,8 ROOT_OFFSET=$(expr ${TABLE_SECTORS} + ${FRMW_SECTORS}) | |||
|
552 | 556 | |
|
553 | 557 | # The root partition is EXT4 |
|
554 | 558 | # This means more space than the actual used space of the chroot is used. |
|
555 |
# As overhead for journaling and reserved blocks |
|
|
556 |
ROOT_SECTORS=$(expr $(expr ${CHROOT_SIZE} + ${CHROOT_SIZE} \/ 100 \* |
|
|
559 | # As overhead for journaling and reserved blocks 35% are added. | |
|
560 | ROOT_SECTORS=$(expr $(expr ${CHROOT_SIZE} + ${CHROOT_SIZE} \/ 100 \* 35) \* 1024 \/ 512) | |
|
557 | 561 | |
|
558 | 562 | # Calculate required image size in 512 Byte sectors |
|
559 | 563 | IMAGE_SECTORS=$(expr ${TABLE_SECTORS} + ${FRMW_SECTORS} + ${ROOT_SECTORS}) |
General Comments 0
Vous devez vous connecter pour laisser un commentaire.
Se connecter maintenant