|
@@ -1022,6 +1022,9 @@ function image_setup_utils {
|
1022
|
1022
|
|
1023
|
1023
|
if [[ $ARCHITECTURE == 'amd64' ]]; then
|
1024
|
1024
|
chroot "$rootdir" apt-get -yq install linux-image-amd64 -t jessie-backports
|
|
1025
|
+ fi
|
|
1026
|
+
|
|
1027
|
+ if [[ $ARCHITECTURE == 'qemu'* || $ARCHITECTURE == 'amd64' || $ARCHITECTURE == 'x86_64' || $ARCHITECTURE == 'i686' || $ARCHITECTURE == 'i386' ]]; then
|
1025
|
1028
|
chroot "$rootdir" apt-get -yq install grub2
|
1026
|
1029
|
fi
|
1027
|
1030
|
|
|
@@ -1056,6 +1059,7 @@ function image_setup_utils {
|
1056
|
1059
|
chroot "$rootdir" apt-get -yq install wireless-tools wpasupplicant usbutils cryptsetup zsh
|
1057
|
1060
|
chroot "$rootdir" apt-get -yq install pinentry-curses eatmydata iotop bc hostapd haveged
|
1058
|
1061
|
chroot "$rootdir" apt-get -yq install cpulimit screen elinks libpam-cracklib
|
|
1062
|
+ chroot "$rootdir" apt-get -yq install fail2ban vim-common python3 unattended-upgrades
|
1059
|
1063
|
|
1060
|
1064
|
# Tor and ssh over tor
|
1061
|
1065
|
chroot "$rootdir" apt-get -yq install tor connect-proxy
|
|
@@ -1139,9 +1143,11 @@ function image_setup_utils {
|
1139
|
1143
|
|
1140
|
1144
|
# Email
|
1141
|
1145
|
chroot "$rootdir" apt-get -yq remove postfix
|
1142
|
|
- chroot "$rootdir" apt-get -yq install exim4-daemon-heavy sasl2-bin swaks libnet-ssleay-perl procmail
|
|
1146
|
+ chroot "$rootdir" apt-get -yq install exim4 exim4-daemon-heavy sasl2-bin swaks libnet-ssleay-perl procmail
|
1143
|
1147
|
chroot "$rootdir" apt-get -yq install spamassassin
|
1144
|
|
- #chroot "$rootdir" apt-get -yq install dovecot-imapd
|
|
1148
|
+ #chroot "$rootdir" apt-get -yq install dovecot-core dovecot-imapd
|
|
1149
|
+
|
|
1150
|
+ # TODO generate certs for exim and dovecot if needed on first boot
|
1145
|
1151
|
|
1146
|
1152
|
#backup
|
1147
|
1153
|
chroot "$rootdir" apt-get -yq install obnam gnupg
|
|
@@ -1181,6 +1187,9 @@ function image_setup_utils {
|
1181
|
1187
|
echo '@include common-session' >> $rootdir/etc/pam.d/nginx
|
1182
|
1188
|
fi
|
1183
|
1189
|
chroot "$rootdir" apt-get -yq install tripwire
|
|
1190
|
+
|
|
1191
|
+ # mirroring
|
|
1192
|
+ # cmake
|
1184
|
1193
|
}
|
1185
|
1194
|
|
1186
|
1195
|
|