Install from Scratch
If starting with a pre-built virtual appliance is impractical or you prefer to customize all aspects of the system, you can build a dedicated REMnux environment from scratch by taking the following steps. This allows you to install the REMnux distro on a physical host or a virtual machine.

Step 1: Install Ubuntu 20.04

If you're looking to recreate the lightweight environment provided by the REMnux pre-built virtual appliance, start with the 64-bit minimal Ubuntu 20.04 ISO installation file.
​Download the Ubuntu 20.04 mini ISO image. SHA-256 hash of the file should be:
1
0e79e00bf844929d40825b1f0e8634415cda195ba23bae0b041911fde4dfe018
Copied!
Install Ubuntu 20.04 using the downloaded ISO installer. It's OK to follow default settings, but be sure to adjust them according to your needs.
If you're installing Ubuntu in a virtual machine, allocate resources based on what you have available. REMnux is a relatively lightweight distro, but the more you allocate to it, the faster it will run. For your refrence, the prebuilt REMnux virtual appliance ships with 4 GB RAM and 60 GB disk.
When the Ubuntu installer prompts you for details about the user it will create, select the following to stay consistent with the default configuration of REMnux:
Full name: REMnux User Username: remnux Password: malware
At the "Software selection" screen don't select any software and simply press "Continue." The REMnux installer will install the necessary packages in a later step.
Boot into your new Ubuntu system. You should find yourself at the command prompt. Login using the credentials you specified during the Ubuntu installation.

Step 2: Get the REMnux Installer

Download the REMnux installer from the REMnux website by running this command on your new Ubuntu system:
1
wget https://REMnux.org/remnux-cli
Copied!
Validate that the SHA-256 hash of the downloaded file to make sure it matches this expected value:
1
8193df477c0e0f14b53d018db141b969ab48f8da550384ef6d6e51482ebdda9d
Copied!
To generate the hash of your file, run:
1
sha256sum remnux-cli
Copied!
Set up the REMnux installer by running these commands:
1
mv remnux-cli remnux
2
chmod +x remnux
3
sudo mv remnux /usr/local/bin
Copied!

Step 2: Install GnuPG

The minimal version of Ubuntu includes very few components. Install GnuPG, so that the REMnux installer can automatically validate the signature of the REMux configuration files it will download during the installation process. To install GnuPG, run:
1
sudo apt install -y gnupg
Copied!

Step 3: Run the REMnux Installer

You're now ready to install the REMnux distro.
If you're planning to run REMnux in a local lab, kick off the installation by runing this command:
1
sudo remnux install
Copied!
If you're depoying REMnux in a remote cloud environment and will need to keep the SSH daemon enabled for remotely accessing the system, use the following command instead to avoid disabling the SSH daemon. Remember to harden the system after it installs to avoid unauthorized logins:
1
sudo remnux install --mode=cloud
Copied!
The installation will take about an hour, depending on your resources and internet connection.
If the REMnux installer produces an error, diagnose the issue by reviewing the saltstack.log file under /var/cache/remnux/cli in the subdirectory that matches the REMnux state-files version you're installing. Search for the log file for result: false messages and look at the surrounding 5 lines or the 8 lines above each message to see the state file that caused the issue. (grep -i -C 5 'result: false' or grep -i -B 8 'result: false').

Step 4: Reboot the REMnux System

Once the REMnux installation finishes, reboot your new REMnux system by typing:
1
sudo reboot
Copied!
After the reboot, REMnux will automatically log you in. There is no logon screen for accessing the REMnux environment, because analysts generally use REMnux on a system to which physical access is already restricted.
If necessary, change the keyboard layout of your system to match your locale and setup.
To keep your REMnux environment up-to-date run the REMnux installer periodically as described in the Keep the Distro Up to Date section.

Step 5: Review Configuration Tweaks Specific to Your Hypervisor

Depending on the hypervisor you're using, you might need to implement a few configuration tweaks to address or preempt issues with your REMnux virtual machine. Please review the Special Hypervisor Requirements before considering your installation finalized.

Step 6: Take a Snapshot of the Virtual Machine

If you installed REMnux inside a virtual machine, consider taking a snapshot of the VM, so you can return it to a known good state if the need arises.
Last modified 4mo ago