User:Maffblaster/Vitality

Vitality is Article description::a micro-server (IoT) distribution for digital survival and self reliance.

Design principals:


 * Low power
 * Webapp friendly
 * Accessible via web interface (ubiquitous interfaces)
 * Easy to configure and backup
 * Runs out of the box.

Vitality is built from Gentoo Linux.

Performance.

Force the download of distfiles after new installation
In the event that all sources should be present in the installation medium post-installation, the following can be ran:

3
Quickly share files (be them binary packages or just simple text files). Navigate to the directory containing the files and run:

The other party who wants to download only needs the IP address (files are actually hosted on 0.0.0.0:8000, which accounts for all current IP addresses on the interfaces).

Dynamic link finder
Just dynamic links:

Linked packages (needs from  and  from :

Global search/replace
Overlay wide simple find and replace:

For example, to replace a URL, be sure to escape all the forward slashes:

systemd boot time chart:

Chroot-prep
Use or follow the instructions below to manually prepare the chroot environment.

Create a symlink from to the extracted stage3 or stage4 location:

Make sure the network available in the chroot:

Standard chroot mounts:

Separate tree
Make sure is created and  is copied:

Copy the local Portage tree into the chroot:

Mounted tree and overlay
Instead of maintaining a separate Portage tree in the chroot(s), it is most reasonable to simply mount the main Gentoo repository in the chroot using the mount command:

If the overlay is local copy file to the  directory in the chroot. If it is remote, the file can be downloaded with a tool such as.

This same approach can be performed with the overlay (be sure to replace  in the command below with the actual overlay name):

Tarball compressor
Tarball naming should match the currently selected profile.

This following script will create a file using the select profile name following ISO 8601 date format.

Keep Gentoo repository snapshot, but not distfiles, packages, or virtual filesystems
The following commands are designed to be ran from the base of the rootfs.

Long options
.gz long:



.bz2 long:



.xz long:



.zstd long:



Short options
.gz short:



.bz2 short:



.xz short:



.zstd short:



Do not keep Gentoo repository snapshot, or virtual filesystems
The following commands are designed to be ran from the base of the rootfs.

Long options
.gz long:



.bz2 long:



.xz long:



.zstd long:



Tarball decompressor
The following commands are designed to be ran from any location, provided the  section is modified to the location the tarball is to extract.

Short options
.gz short:



.bz2 short:



.xz short:



.zstd short:



Long options
.gz long:



.bz2 long:



.xz long:



.zstd long:



initramfs commands
The following commands are useful to inspect initramfs file content. See the Custom Initramfs article for more details.

cpio
Typically initramfs archives have an external layer of compression (zstd, gz, xz, etc.). After decompressing the archive, extract the cpio data to a suitable location for inspection. Note that the following command will extract cpio contents to the current directory, so it is wise to perform this action in a temporary directory location and clean up afterward:

List installed package licenses
must be installed. The following command creates a CSV file containing package names, package version, and the associated license information.

Chroot build failures
In order to correct the error above, disable  and   from the FEATURES variable: