One nice things about running Linux is downloading Windows virus/malware. I never worry about it. Download it, unpack it, and give it an antivirus scan using an online checker. Oh, it’s a threat? Don’t care. I’ll find something else. Unpacked files in my temporary directory will get cleaned out automatically at some point in the future. Like sifting through items laced with bubonic plague, smallpox, AIDS, influenza, measles, typhus and cocoliztli, but you are a robot.
Picture under the shuttle replica Independence.
Same reason why it's wise to disable automatic system updates on your smartphone!
They intentionally bury the option deep in developer-mode settings because manufacturers would much prefer they have the ability to push arbitrary code to your(their) device any time they wish. It still exists, thankfully.
Sometimes one needs to create a local encrypted disk for test. The easiest way to do this is to create a file to serve as the disk.
$ dd if=/dev/urandom of=disk.img bs=1M count=1024 status=progress
This will create a 1 GiB file containing random data. Now we need to mount it.
$ sudo cryptsetup luksFormat disk.img
As of this writing, there is a bug in cryptsetup that requires it be root in order to format a file. Not really a problem since we need to be root anyway to mount this device.
$ sudo cryptsetup open disk.img disk
Format the drive:
$ sudo mkfs.ext4 /dev/mapper/disk
And mount it:
$ sudo mount /dev/mapper/disk /mnt/disk/