Note: The information below is exclusively for the ISO images that include or support znx. The following information does not pertain to the ISO files that use a traditional installer such as Calamares.
I want to check out Nitrux, which you can deploy using znx (how to here).
You can go about this in different ways. You can download the ISO, flash it to a USB (don't burn it to optical media), boot the Live USB, and use znx to deploy it to an internal or external device.
You can also use another distribution and only download znx to deploy it to an internal or external device.
Whether you choose to do one or the other, you can choose to initialize a device or use an existing partition.
I'd emphasize that you read both the Compendium and the FAQ to understand what znx does before using it.
Since you choose to use a different distribution, in your case, Fedora 20, you need to download the znx AppImage file; this is the only extra step you will do.
Because it's an AppImage, there's no installation involved (i.e., using a package manager). There's also no "installation" involved with Nitrux either (the correct term in this context is deployment, this is explained in the documentation).
After downloading the AppImage, you have to make it executable; then, you can execute the AppImage in the Terminal using
sudo ./znx (assuming you're in the same path as the file).
Optionally, you can move it to
/usr/bin/ so you don't have to type
./ to execute the AppImage, and you can use it anywhere.
- If you download the AppImage and this message pops up, it's because it's not executable.
- Once it's made executable, you can use
sudo ./znx --help to display the help.
You need to type the commands for znx in the correct order, like the help shows, and like the Compendium shows.
Let's assume that you have two storage devices one would be
/dev/sda (your main storage device), and the other would be
/dev/sdb, and you want to deploy Nitrux to
Note: NVME devices are named
/dev/nvmeXnY, where X is the port and Y is the device.
First, you initialize the device. This will wipe the device. The syntax of the command for this task, in this case, is
znx [command] [path_to_target_device].
Then, proceed to deploy Nitrux. The syntax of the command for this task, in this case, is
znx [command] [path_to_target_device] [deployment_name] [path_to_file]. znx supports both local and remote files. We will use a remote file.
sudo ./znx deploy /dev/sdb nitrux/release https://repo.nxos.org/iso/nitrux-OTA-latest-amd64.iso
And that's it. Reboot and select the second drive to boot into Nitrux.
znx does not seem to open correctly in Fedora, which is why I would like to deploy it using the terminal. The how-to says that I should install it on a partition that has at least 4 GB.
It looks like you're confusing znx with znx-gui.
znx is a command-line AppImage program. znx-gui was a temporary user interface that we made using KDialog for znx for users that don't want to touch the Terminal.
We strongly recommend that you use znx since znx-gui is deprecated.
The commands in the Compendium are examples to guide users on how to use znx to deploy Nitrux. The preferred option to deploy the ISO file is to do it to a target device, i.e.
/dev/nvmeXnY and not to a partition.
The 4GB that you mention is an example of the command
sudo fdisk -l. It's not a recommendation; that's why it's in a different color too.
I have one big free partition on my computer which has about 200 GB. Do you know if the entire partition will be "blocked" by Nitrux if I deploy it on that partition? Or will znx assign it 4 GB of that partition and let me use the rest?
One of the features of znx is that you can deploy multiple operating systems at once without the need to create multiple partitions (i.e., you don't need separate root and home partitions for each distribution). With znx, you only need two partitions, one for the ESP and one for your data, and znx will create both of them automatically when you initialize a device.
It's essential to understand that znx does not work as a traditional Linux installer (an installer extracts the SquashFS file in the ISO to the target storage device, and znx does not do this).
However, answering your question, yes you can use an existing partition to deploy an ISO using znx; this is the preferred method if you don't want to wipe a storage device.
We have explained what znx is and what it does in several articles at our Blog, the FAQ, and the Compendium.
If you or anyone else wants to know how znx works or how Nitrux makes use of znx, I suggest creating more questions.