Commit Graph

45 Commits (f27086532326b3596add22f0806336ba783bbcbf)

Author SHA1 Message Date
Arnaud Rebillout f270865323 Document other duplicates of kali-finish-install 1 month ago
g0t mi1k 4e4382e8c1 Sync preseed files 3 months ago
g0t mi1k fb95194293 Consistency: tabs to spaces 3 months ago
g0t mi1k 2a549aa31a Split simple-cdd/debian-cd & live-build
## Live
`--live` = kali-live (previouly live-build-config)
<https://gitlab.com/kalilinux/build-scripts/kali-live>
Uses live-build

## Installer
`--installer` = kali-installer
<https://gitlab.com/kalilinux/build-scripts/kali-installer>
Uses simple-cdd (which is a wrapper for debian-cd)
3 months ago
Arnaud Rebillout 796bb62679
Configure default terminal according to the kali desktop package installed
This is necessary in case more than one terminal is installed, and they
both have the same alternative priority.

For example, while installing all packages at once, sometimes apt will
resolve a dependency "x-terminal-emulator" to one of the many packages
that provide it, for example "zutty". And then it will also install the
terminal listed in the "kali-desktop-${desktop}" metapackage that is
selected, eg. "qterminal" for "kali-desktop-xfce".

Both zutty and qterminal have a alternative priority of 40 at the
moment, so if zutty gets unpacked first, it will have precendence and be
the default terminal.

It's a long-standing issue. By the past, We tried to make sure that the
default desktop terminal is installed first, by listing it early in the
dependencies of the "kali-desktop-{desktop}" metapackage, and it kind of
works with the debian-installer, but it was hard to make it work (we had
to do some changes in tasksel), and it's still brittle as it relies on
apt's dependency solving, which is apt's internal sauce and might change
(hint, apt will get a new solver soon, cf [1]).

As it turns out, it doesn't work for the live iso, somehow we still get
zutty taking precedence over qterminal, I didn't check why, it probably
has to do with how live-build constructs the apt command-line in order
to install everything.

In any case: I think our approach so far didn't work, so with this
commit, we take another approach: we set the default terminal from the
finish-install script, for both the installer iso and the live iso. That
should solve the issue for good.

[1]: https://blog.jak-linux.org/2024/05/14/solver3/
8 months ago
Ben Wilson 9502b5ff80
Match ordering 2 years ago
Raphaël Hertzog e521a18dcf
Enable non-free-firmware by default everywhere
Even though it's currently empty, we want users to have this component
enabled so that they don't miss on updates when we start to move
packages from non-free to non-free-firmware.
2 years ago
Arnaud Rebillout 209293f322
Add preseed for tripwire
tripwire comes as a Recommends of tiger, itself a Depends of
kali-tools-identify.

It needs to be heavily pre-seeded, otherwise it's very chatty.
2 years ago
Arnaud Rebillout d904078515
Disable the encfs error message
Ths first line ('... boolean true') is needed to trick debian-cd into
believing that the type of the question is a boolean.

Otherwise debian-cd will think that the question doesn't exist, probably
because it doesn't know the type, probably because there's no type to
start with (this is an error message, not a question).

FTR, without the first line, it fails with:

  2022-08-04 10:05:37,846 DEBUG Checking configuration...
  error: Cannot find a question for encfs/security-information
  2022-08-04 10:05:38,016 ERROR preseed file invalid:
    <<LBDIR>>/simple-cdd/profiles/kali.preseed
3 years ago
Arnaud Rebillout dd2d78c7d6
get_user_list: output warning to stderr
The function get_user_list returns a list of users on stdout, so
obviously it can't use stdout to also display messages. Use stderr
instead.

Note that we could also silently skip if we find a directory in /home
that is not a user. Does it happen in practice?
3 years ago
Arnaud Rebillout a90925b444
Add kali user to the vboxsf group, if ever it exists
The vboxsf group is created by the postinst script of the package
virtualbox-guest-utils. The kali user needs to be part of this group
in order to access VirtualBox's shared folders.

This change does just that. It's effective for all the Live images
(where VirtualBox guest additions are installed unconditionnally),
and for the systems installed by the Installer image where VirtualBox
was detected (and therefore VirtualBox guest additions were installed).

Ref: <https://bugs.kali.org/view.php?id=7643>
3 years ago
Arnaud Rebillout 6ea2a3ce82
Add kali user to additional groups one by one
Up to now, it was fine to use a command such as:

    usermod -a -G group1,group2,... kali

However a limitation is that all the groups that are given to the option
-G must exist. If that's not the case, usermod fails (return code: 6)
without doing anything, and the user is not added to any group.

So with this commit, we prepare the code to support optional groups,
that might or might not exist. If ever a group does not exist, it's
skipped silently.
3 years ago
Arnaud Rebillout da484826f4
Nitpicks in kali-{user-setup,finish-install}
Changes:
- order groups alphabetically
- use the same comment "Ensure those groups exist" consistently in the 2
  scripts, and also drop the comment regarding a "generically named"
  function.
- adds "|| true" to the usermod command in kali-user-setup (only for
  consistency, the script is not run with "set -e" anyway).

After those changes, the two functions "configure_usergroups()" are very
similar, and it's very easy to spot the differences between both.
3 years ago
Arnaud Rebillout 10bf866807
Don't add root to any group
This was introduced in 5989ec37de, and
probably that was not the intention.

Adding root to groups doesn't break anything, but I don't think it makes
any sense either.
3 years ago
Arnaud Rebillout d8c4e39495
Add the kali user to the adm group
So that the kali user can run `journalctl` or read log files in
`/var/log`, without the need for sudo.

Fixes: #31
4 years ago
Raphaël Hertzog 7dd011be60
Re-add trailing spaces in preseed.cfg
Trailing spaces are meaningful, they are a separator between the type
of the field and the empty value that follows!
4 years ago
Raphaël Hertzog 80b754cf64
Fix indentation in setup_usergroups 4 years ago
Raphaël Hertzog 834f065072
Revert "Swap spaces for tabs to match other files"
This reverts commit c6b70bf355.
4 years ago
g0t mi1k c6b70bf355 Swap spaces for tabs to match other files 4 years ago
g0t mi1k 71f3cbaef4 Update path location 4 years ago
Ben Wilson 4b6aa7a76d Symlink to live file, rather than copying (we do it with preseed anyway) 4 years ago
Ben Wilson c00a132d10 Remove trailing spaces 4 years ago
Ben Wilson 665bb3af6f Delete duplicate files and move to consistent naming location 4 years ago
Ben e470475f02 Update default generated files 4 years ago
Steev Klimaszewski 11dfdae854
Install wireshark setuid
This installs wireshark setuid and also adds the kali (or user chosen during installation) to the wireshark group.
4 years ago
Raphaël Hertzog 5989ec37de
Also set zsh by default for the root user 4 years ago
Raphaël Hertzog 897caba82b
Use the same kali-finish-install script in live and installer images
This ensures that we do the same set of customizations whatever way
Kali is installed.
4 years ago
Raphaël Hertzog 25d0c1004b live-installer: ensure sources.list is configured
By default, when you don't have any network or when you didn't enable
a network mirror, your sources.list is empty. We don't want this
so we hook into the finish-install step to make sure to set it up
if it's empty.
5 years ago
Raphaël Hertzog 7c3989f668 Add preseeding for atftpd so that it's started standalone
In theory, this change is not really needed here because the
package is not installed by d-i, it's already installed by live-build
in the live image. But I want this file to be consistent with the
version in debian-installer...
5 years ago
Raphaël Hertzog a6931f0fef *-volatile was renamed *-updates a long time ago in Debian 5 years ago
Raphaël Hertzog e184810035 Disable root user by default, use "kali" user in live mode 5 years ago
Raphaël Hertzog 580489de5a Add more debconf preseeding 5 years ago
Raphaël Hertzog d1b694577f Preseed questions from kali-linux-default 5 years ago
Raphaël Hertzog 46c2551a03 Disable question about unattended-upgrades 5 years ago
Raphaël Hertzog 43c0daa0e8 Mark kernel related packages on hold in live images 6 years ago
Raphaël Hertzog 9b651831e1 Revert "Re-enable the creation of a regular user in the installer"
This reverts commit bab457c188.
7 years ago
Raphaël Hertzog 36dedbf1f4 Revert "Disable root user by default, use "kali" user in live mode"
This reverts commit c257ad007f.
7 years ago
Raphaël Hertzog c257ad007f Disable root user by default, use "kali" user in live mode 7 years ago
Raphaël Hertzog bab457c188 Re-enable the creation of a regular user in the installer 7 years ago
Raphaël Hertzog 0fe406672d Revert "Re-enable the creation of a regular user in the installer"
This reverts commit 46d4373feb.
7 years ago
Raphaël Hertzog 46d4373feb Re-enable the creation of a regular user in the installer 7 years ago
Sophie Brun 31fb818dec Enable eatmydata in kali-installer to boost speed installation 8 years ago
Raphaël Hertzog bd43adb9b2 Drop security.kali.org from the apt-setup preseed 9 years ago
Raphaël Hertzog 37e36d09a7 Use the preseed option to disable source repositories by default 10 years ago
Raphaël Hertzog 5676bc0b03 Move all configuration into kali-config and put the right bits into place from auto/config
* Add new --variant option to build alternative images of Kali.
* Add new --version option to decide of the name of the generated file.
* Add new --subdir option to indicate where the image must be moved.
10 years ago