Browse Source

Extra packages

Bob Mottram 8 years ago
parent
commit
747f533efb
2 changed files with 16 additions and 3 deletions
  1. 11
    2
      src/freedombone-image-customise
  2. 5
    1
      src/freedombone-utils-setup

+ 11
- 2
src/freedombone-image-customise View File

1022
 
1022
 
1023
     if [[ $ARCHITECTURE == 'amd64' ]]; then
1023
     if [[ $ARCHITECTURE == 'amd64' ]]; then
1024
         chroot "$rootdir" apt-get -yq install linux-image-amd64 -t jessie-backports
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
         chroot "$rootdir" apt-get -yq install grub2
1028
         chroot "$rootdir" apt-get -yq install grub2
1026
     fi
1029
     fi
1027
 
1030
 
1056
     chroot "$rootdir" apt-get -yq install wireless-tools wpasupplicant usbutils cryptsetup zsh
1059
     chroot "$rootdir" apt-get -yq install wireless-tools wpasupplicant usbutils cryptsetup zsh
1057
     chroot "$rootdir" apt-get -yq install pinentry-curses eatmydata iotop bc hostapd haveged
1060
     chroot "$rootdir" apt-get -yq install pinentry-curses eatmydata iotop bc hostapd haveged
1058
     chroot "$rootdir" apt-get -yq install cpulimit screen elinks libpam-cracklib
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
     # Tor and ssh over tor
1064
     # Tor and ssh over tor
1061
     chroot "$rootdir" apt-get -yq install tor connect-proxy
1065
     chroot "$rootdir" apt-get -yq install tor connect-proxy
1139
 
1143
 
1140
     # Email
1144
     # Email
1141
     chroot "$rootdir" apt-get -yq remove postfix
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
     chroot "$rootdir" apt-get -yq install spamassassin
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
     #backup
1152
     #backup
1147
     chroot "$rootdir" apt-get -yq install obnam gnupg
1153
     chroot "$rootdir" apt-get -yq install obnam gnupg
1181
         echo '@include common-session' >> $rootdir/etc/pam.d/nginx
1187
         echo '@include common-session' >> $rootdir/etc/pam.d/nginx
1182
     fi
1188
     fi
1183
     chroot "$rootdir" apt-get -yq install tripwire
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 View File

220
     apt-get -yq install network-manager iputils-ping libnss-mdns libnss-myhostname
220
     apt-get -yq install network-manager iputils-ping libnss-mdns libnss-myhostname
221
     apt-get -yq install libnss-gw-name nano man ntp locales locales-all debconf
221
     apt-get -yq install libnss-gw-name nano man ntp locales locales-all debconf
222
     apt-get -yq install wireless-tools wpasupplicant usbutils cryptsetup zsh
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
     apt-get -yq install cpulimit screen
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
     if [ ! -d $INSTALL_DIR ]; then
230
     if [ ! -d $INSTALL_DIR ]; then
227
         mkdir -p $INSTALL_DIR
231
         mkdir -p $INSTALL_DIR
228
     fi
232
     fi