Commit Graph

193 Commits

Author SHA1 Message Date
Steev Klimaszewski
b163efda82 *: ext3 :( 2020-05-07 15:19:48 -05:00
Steev Klimaszewski
2647c42dfc most: Add the kali user to all the scripts 2020-05-07 15:17:10 -05:00
Steev Klimaszewski
35746626dc most: Add allow-hotplug eth0 to allow... 2020-05-01 15:51:07 -05:00
Steev Klimaszewski
951d0c83e3 *: Remove locales-all from install
Since we're going to be walking through a setup eventually, remove all
the locales to save around 300MB of space.
2020-04-30 16:32:34 -05:00
Steev Klimaszewski
baae1ce7a1 *: Add kali-linux-core so that various services are installed 2020-04-29 19:16:19 -05:00
Steev Klimaszewski
52e3065111 *: Update the scripts
All images are now ~14GB so a 16GB sdcard minimum is required.
Update the list of packages installed.
Attempt to install kali-linux-default on first boot... not sure how this is going to go, because systemd doesn't like things taking a long time. May have to move it to a script, but we'll test it out.
Add 2 new scripts, one for the NanoPi NEO Plus2 and the rpi0w that are "minimal" - no desktop system installed (basically the original scripts pre- package list updates.
2020-04-28 19:35:50 -05:00
Steev Klimaszewski
c53ec31a79 rpi3: Update rpi3 script for latest changes
This changes the package list, increases the default image size, and
also installs kali-linux-default on the first boot.
2020-04-27 12:54:04 -05:00
Steev Klimaszewski
6bed1dd1db rpi3: Make the image size 7G again 2020-03-17 18:52:14 -05:00
Steev Klimaszewski
3e81237d09 rpi3: Make rsync verbose for testing purposes 2020-03-17 18:50:43 -05:00
Steev Klimaszewski
f9aae72bfa all: Force new configs during installation
We're never going to care about anything that is on the system during
the first build, so just force new configs in case it ever prompts
which causes the build server to error out the build.
2020-01-23 11:57:28 -06:00
Steev Klimaszewski
80841c7e4c rpi3*: Add pciutils since the rpi4 has a pci bus 2020-01-22 19:14:34 +00:00
Steev Klimaszewski
410ea4c580 all: Install debs via glob on first boot 2019-11-25 07:54:52 -06:00
Steev Klimaszewski
876d53693f all: Remove old packages that aren't used 2019-11-22 23:46:30 -06:00
Steev Klimaszewski
f5503909d6 misc: Python2 is going away
Move packages to their python3 equivalents.
2019-11-14 15:29:44 -06:00
Steev Klimaszewski
ef474a09e4 rpi*: Add the bluetooth firmware
Thanks to zhovner for the report, closes bug #0005661
2019-08-28 15:12:10 -05:00
Steev Klimaszewski
32166f6666 all: Reconfigure xfonts-base on first boot
Baracko reported ( https://bugs.kali.org/view.php?id=5581 ) that vnc connections
would fail to work until reconfiguring xfonts-base.

This also fixes issue #164 which is a replica of the bug listed above.
2019-07-09 13:16:46 -05:00
Steev Klimaszewski
8a4de95c2e rpi*: Increase boot partition size to 128MB
Re4son requested the boot partition size increase due to the 2711(rpi4) kernel
2019-07-01 11:22:12 -05:00
Steev Klimaszewski
67ef02f081 rpi3: Remove APT::Acquire::Retries as it doesn't exist 2019-06-24 14:43:26 -05:00
Steev Klimaszewski
861b25c23f Add Acquire::Retries
According to https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=119544
the option is Acquire::Retries, not APT::Acquire::Retries so let's see
if this does it.
2019-06-23 15:39:51 -05:00
Steev Klimaszewski
f10228c03f rpi3: Add retries option to apt to attempt to download packges multiple times before giving up 2019-06-21 02:16:07 +00:00
Steev Klimaszewski
780c324559 all: Move extras to be installed later
Due to extras pulling in the modifications to the plymouth config file,
we were getting prompted whether to overwrite it or not.  There is a
bug to fix plymouth but currently upstream needs help to work on it.
Work around it for now.
2019-06-17 02:00:54 -05:00
Steev Klimaszewski
9992676fb3 rpi3: Test out moving the dependencies 2019-05-16 22:51:52 -05:00
Steev Klimaszewski
e1de2489f9 misc: Change dependency for reinstalling packages
As it turns out, on the boards that resize their filesystem,
it was causing the reinstallation of packages to fail.

So we make the smi-hack service run before the filesystem restart
and that should fix the issue for us.
2019-05-15 20:48:44 -05:00
Steev Klimaszewski
5b3d1d63cf most: Use dpkg -i not apt to reinstall.
Unfortunately apt doesn't seem to always reinstall, so
we use dpkg -i instead, since it doesn't attempt to download the files.
2019-05-15 14:27:28 -05:00
Steev Klimaszewski
933e120757 most: Add a couple more packages that don't seem to install properly to first boot install 2019-05-14 16:23:24 -05:00
Steev Klimaszewski
527f2ba09d rpi3: Download ca-certificates package, and attempt to install it from /root on first boot 2019-05-10 15:51:51 -05:00
Steev Klimaszewski
03cc73b4c9 rpi3: Use apt, not apt-get and don't clean so we can debug 2019-05-10 14:08:46 -05:00
Steev Klimaszewski
06748d5672 rpi3: Don't clean up apt cache during image creation, do it on first boot 2019-05-09 23:29:21 -05:00
Steev Klimaszewski
31b90bf8cd rpi3: Attempt to reinstall ca-certificates on first boot
ca-certificates doesn't install correctly under qemu so we attempt
to reinstall it on first boot as an attempt to fix it.
2019-05-09 22:00:30 -05:00
Steev Klimaszewski
1a340d50d3 most: make sure we copy in qemu static binary
Because the new build host is debian, we need to make sure that
the qemu binaries are copied in, systemd doesn't happen transparently yet.
Next Debian stable release should make this commit obsolete.

Also don't mkdir the usr/bin directory, we actually want it to error out
if it doesn't exist.
2019-04-29 23:30:19 -05:00
Steev Klimaszewski
842c8e2959 rpi3: Fix the smi-hack service, use Environment to set environment variable. 2019-03-25 20:48:28 -05:00
Steev Klimaszewski
bc9bd25061 rpi3: Also reconfigure ca-certificates on first boot 2019-03-25 18:27:32 -05:00
Steev Klimaszewski
03f8972007 rpi3: Add libssl-dev for headers issue 2019-03-16 22:39:50 -05:00
Steev Klimaszewski
af0dd4c9bb rpi3: Remove systemd hold since 241 is out 2019-03-15 23:32:43 -05:00
Steev Klimaszewski
973ab689f9 all: Downgrade systemd and add shared-mime-info hack, as well as misc cleanups
Disable 64bit options on most of the ext4 partitions, fix any /lib paths
to now be /usr/lib since /lib is just a symlink there (may have missed
some.)  Add in missing services to "a few" boards, so they now also
regenerate their ssh keys at first boot as well.
2019-02-12 17:56:53 -06:00
Steev Klimaszewski
4b2c2fe4e1 rpi3: Don't install lxdm/slim - we want to use lightdm again. 2019-02-11 23:02:22 -06:00
Steev Klimaszewski
437640f1cc rpi3: Fix the shared-mime-info hack 2019-02-11 22:07:26 -06:00
Steev Klimaszewski
e64b7706f3 rpi3: Add mime directory to the update call 2019-02-11 16:41:13 -06:00
Steev Klimaszewski
4df21a23ae rpi3: allow-downgrades not allow-change-held-packages 2019-02-11 13:49:27 -06:00
Steev Klimaszewski
b4ad3296a5 rpi3: Move smi-hack to starting before ssh keys
Just change which service it should start before.  Functionality isn't
changed
2019-02-11 13:38:23 -06:00
Steev Klimaszewski
de3041f4b4 rpi3: shared-mime-info hack and downgrade systemd
shared-mime-info doesn't seem to run properly in a chroot, so we add a
service to run it at the first boot, then disable itself so it doesn't
run every time.

also, systemd 240 is utterly broken on armhf/armel systems, so we
downgrade systemd to 239 pulled from snapshots.debian.org (but hosted by
re4son for ease of installation.)

Massive thanks to re4son for his assistance in tracking this down, and
the work around.
2019-02-11 13:28:36 -06:00
Steev Klimaszewski
4d4f62fbcd rpi3: Try to dpkg-reconfigure in the script to enable slim 2019-02-05 14:36:51 -06:00
Steev Klimaszewski
e2703fe760 rpi3: Also mkdir the basedir... so we can cd 2019-02-04 16:20:20 -06:00
Steev Klimaszewski
b851946304 rpi3: We need to cd into the basedir 2019-02-04 16:18:56 -06:00
Steev Klimaszewski
c94e7d4b78 rpi3: Fix systemd unit paths
Since /lib/ is now a symlink to /usr/lib, lets just make sure we write
to the correct path instead of hoping to follow the symlink
2019-02-04 16:13:26 -06:00
Steev Klimaszewski
0f15e3cc6b rpi3: Try to use slim instead of lightdm.
Currently lightdm is broken on armel/armhf systems, so we will attempt
to work around it by (hopefully) setting slim to be the default login
manager.
2019-02-04 15:01:18 -06:00
Steev Klimaszewski
fa46deb78d rpi3-nexmon: Move to using re4son's repository
This lets us pull in the kernel headers, boot loader, and kernel itself.

Pushing this out to get it testing on the builder.
2019-01-09 07:21:27 +00:00
Richard Nelson
68f67e9a9e Drop trailing whitespace on scripts. 2018-12-29 19:20:05 -06:00
Steev Klimaszewski
108de6e2b9 rpi3: Increase image size to 5gb 2018-12-19 15:02:30 -06:00
Steev Klimaszewski
d2b3f6e773 rpi3: Add a 10 second sleep after sync to let cache settle 2018-12-19 14:34:56 -06:00