Bob Mottram vor 8 Jahren
Ursprung
Commit
747f533efb
2 geänderte Dateien mit 16 neuen und 3 gelöschten Zeilen
  1. 11
    2
      src/freedombone-image-customise
  2. 5
    1
      src/freedombone-utils-setup

+ 11
- 2
src/freedombone-image-customise Datei anzeigen

@@ -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
 

+ 5
- 1
src/freedombone-utils-setup Datei anzeigen

@@ -220,9 +220,13 @@ function initial_setup {
220 220
     apt-get -yq install network-manager iputils-ping libnss-mdns libnss-myhostname
221 221
     apt-get -yq install libnss-gw-name nano man ntp locales locales-all debconf
222 222
     apt-get -yq install wireless-tools wpasupplicant usbutils cryptsetup zsh
223
-    apt-get -yq install pinentry-curses eatmydata iotop bc grub2 hostapd haveged
223
+    apt-get -yq install pinentry-curses eatmydata iotop bc hostapd haveged
224 224
     apt-get -yq install cpulimit screen
225 225
 
226
+    if [[ $ARCHITECTURE == 'qemu'* || $ARCHITECTURE == 'amd64' || $ARCHITECTURE == 'x86_64' || $ARCHITECTURE == 'i686' || $ARCHITECTURE == 'i386' ]]; then
227
+        apt-get -yq install grub2
228
+    fi
229
+
226 230
     if [ ! -d $INSTALL_DIR ]; then
227 231
         mkdir -p $INSTALL_DIR
228 232
     fi