Whonix Linux Installer - Development Discussion

Hitting a snag on my end with the linux install script on fedora

$ ./whonix-cli-installer-cli
whonix-cli-installer-cli: [NOTICE]: Command executing: $ sudo -- echo test
[sudo] password for user: 
test
whonix-cli-installer-cli: [NOTICE]: Saving user log to: '/home/rob/dist-installer-cli-download/logs/2/user.log'
whonix-cli-installer-cli: [NOTICE]: Saving debug log to: '/home/rob/dist-installer-cli-download/logs/2/debug.log'
whonix-cli-installer-cli: [NOTICE]: Installer: 'Whonix CLI for VirtualBox Installer'
whonix-cli-installer-cli: [NOTICE]: If you wish to cancel installation, press Ctrl+C.
whonix-cli-installer-cli: [NOTICE]: The license will be shown in 5 seconds.
whonix-cli-installer-cli: [NOTICE]: (Use -n or --non-interactive for non-interactive mode.)
./whonix-cli-installer-cli: line 2397: dialog_box: unbound variable
whonix-cli-installer-cli: [NOTICE]: Executed script, function, command executed: './whonix-cli-installer-cli' 'check_license' 'case "${dialog_box}" in '
whonix-cli-installer-cli: [ERROR]: Installer exited with code: '1'
1 Like

adding -n as a flag to the script fixed it…but interesting the dialog did not appear in my terminal

kitty + zsh + fedora

maybe we should fail this a little more gracefully?

1 Like

Hm. It’s either 2 steps (download + bash ./whonix-xfce-installer-cli) or 3 steps (download + chmod + ./whonix-xfce-installer-cli). Not sure 3 steps is better than 2.

Fixed in git.

1 Like

Function check_vm_exists_virtualbox is too complex and needs refactoring.

  • Should not call check_vm_running_virtualbox.
  • Should not call check_guest_boot.

This can be done from other places.

Yeah two steps is better, but on my system chmod was required to run the script after download

1 Like
bash ./whonix-xfce-installer-cli

Didn’t work for you? I would be surprised by that. That would actually be an interesting feature of your distribution.

Done.

Done.

This could use some review.

Quote Kicksecure 17.1.1.5 - for VirtualBox - Point Release! - News - Kicksecure Forums

New version uploaded just now.

1 Like

[ERROR] Repository Add: Unsupported distribution codename: ‘kali-rolling’!

torsocks temporarily (probably) not available from Debian testing:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1066313

  • Running Whonix Linux Installer on Kali has been fixed.
  • Non-English local language support should now be more robust.

This was also done.

The new version has been uploaded just now.

Many functions that are used in the installer are now on separate files in helper-scripts, see commits made this week only for related changes.

A Kicksecure shell library for logging, discovering OS, running commands are root etc.

1 Like

This was merged and works great. Many thanks!

In result, a lot generic code such as for logging, root check can now be re-used in other projects.

  • Improved Secure Boot support. The Whonix Linux installer now checks if Secure Boot DKMS signing key enrollment has been done. If necessary and not done, it will advice the user to do so. → Secure Boot - Kicksecure
  • Operating system package upgrade availability test has been improved.

Uploaded just now.

Potential bug: