Minifying debian-12-minimal and debian-13-minimal

(Not sure if wiki edits are tracked by email).

I put this line, after the qvm-prefs part:

In this case, qvm-run will need to be run with the --no-gui option.

I was trying to run qvm-run without success and just found about this. I didn’t test what command is producing this exactly, it’s just a suspicion.

1 Like

Yes, I noticed that too. Somehow I have missed to mention it. Thanks for the addition.

Another thing is that without guivm, qvm-copy/move from the qube won’t work without an allow policy in dom0. There is always “Request refused”, probably because no dialog can be displayed.

(Not sure if wiki edits are tracked by email).

AFAICS, they are not.

1 Like

How do I use qvm-console-dispvm please?

In a dom0 terminal, run:
qvm-console-dispvm --autostart [VM-or-Template-Name]

Then, when the dispvm is launced (can take 5-10s) type “root” at the login prompt.

1 Like

Thanks! It worked

1 Like

Unfortunately, it seems debian-13-minimal is not as minimal as possible too.

The list of packages to remove is almost the same. The ones I have found so far are:

cpio
cron
cron-daemon-common
debconf-i18n
eatmydata
fdisk
gnupg
dhcpcd-base
ifupdown
iproute2
iputils-ping
less
libbpf1
libcap2-bin
libfdisk1:amd64
libjansson4
libmnl0
libnewt0.52
libtext-iconv-perl
libxtables12
logrotate
mawk
passwd
perl
tasksel
vim-common
vim-tiny
xterm

I will rectify it later if necessary. Still testing.

4 Likes

I would not remove “vim-tiny” and “vim-common” … that’s my editor!
I’d gladly remove “nano” instead.

I would not remove “vim-tiny” and “vim-common” … that’s my editor!
I’d gladly remove “nano” instead.

Yo nano is my go-to minimalist editor! An Emacs person can make
himself at home with nano. In contrast, I would gladly remove any
vims :slight_smile:

My point, exactly. It’s a matter of personal choice. One editor per minimal template depending on the personal preference…

TWIMC, i made a wired-only network netvm for liteqube without the network-manager.

Could be done with wifi support also but probably does not worth the effort.

1 Like

@barto

It is not about preference but about what is minimal (attack surface). Starting from minimal, anyone can add whatever one likes.

Example: A production firewall qube does not need a text editor or a terminal emulator, or a guivm, or audiovm. If any text edits are required, they can be done in an editor qube then qvm-copy.

1 Like

Or with The Stream Editor :smiley:

1 Like

I applaud your boldness! and have some implementation doubts :grinning: … will your firewall qube monitor the ~/QubesIncoming/dom0 directory and auto-apply new configurations as they appear?

a production firewall qube does not need real Linux userland at all, and that’s why we have Mirage

3 Likes

@barto

will your firewall qube monitor the ~/QubesIncoming/dom0 directory and auto-apply new configurations as they appear?

Well, that is a separate discussion, so as short as possible:

IMO, it’s better to do that in an editor domU (not dom0). Auto applying can be convenient but also vulnerable, so if the particular case requires it, it is surely possible.

wow this is what I was looking for!

Can you please tell me how I can use the most minimal version so it would still support bluetooth(I currently use blueman, but I’m open to any good alternatives) with normal notifications as they currently are for the regular, non minimal template?

@dreamscomethrough

The same way you create any task-oriented template: minify the system, then install the necessary packages.

I can’t tell you which ones though because I don’t use BT and it is also off-topic. Perhaps experiment with removing packages from the template you are currently using and note the removal of which results in no-BT functionality.

1 Like

I am a bit hesitant to comment as errors may ensue, but look at fonts they take up some space and I was able to remove them, however without console management it can make problems.

The list of packages that can be removed from debian-13-minimal:

apt-transport-https
apt-utils
cpio
cron
cron-daemon-common
debconf-i18n
dhcpcd-base
eatmydata
fdisk
gnupg
ifupdown
iproute2
iputils-ping
less
libcap2-bin
libeatmydata1
libfdisk1
libgcrypt20
libidn2-0
libjansson4
libk5crypto3
libkeyutils1
libkrb5support0
libmnl0
libnewt0.52
libp11-kit0
libsemanage-common
libsepol2
libslang2
libtext-iconv-perl
libtirpc-common
libxtables12
linux-sysctl-defaults
logrotate
nano
nftables
perl
tasksel
vim-common
vim-tiny
whiptail
xterm
5 Likes

Thanks!

I don’t think you can edit the wiki with email so, I’ve updated the content.

See Minifying debian-12-minimal and debian-13-minimal to check the new version.

4 Likes