2023-08-11 07:37:13Z (last updated 2023-08-11 07:37:13Z)
File compression. Yeah I'm doing that.
So my plan is:
While this sounds simple, there are a few issues I had:
So the actual process look something more like this:
It's like creating any other Qube, but you're creating a TemplateVM instead. Don't mess with the network settings, keep it default.
This requires starting the template VM and running the package manager for it. Use the package manager as normal, because Qubes OS already deals with the mess of installing packages in a template VM with no internet access.
After installing the packages, just shutdown the template VM.
This requires creating another Qube, but this time, with a template based on your new and shiny one.
5. Pull the files from my computer with rsync over ssh You can specify some SSH location thingy as a source, and a destination as your local directory. So you can pull files instead of pushing them (which is much more complicated because of incoming connections and whatever). 6. Create a swap file (just in case) Using `fallocate`, I made a swap file with quite a bit of space, so that just in case I did need more swap, I would already have them. 7. Shutdown all other Qubes that take up lots of memory for no apparent reason I don't understand why sys-firewall takes up 4 gigabytes of RAM, but it does, according to `xentop` in dom0. I basically had to stop all the Qubes, remove network access to the compressor (so that it doesn't start the network and the 4 gigabytes of RAM firewall), and then I can continue. 8. Start compressing the files This is pretty much the longest part of the process. If you're interested in the specifics of the command, it's for you if you're trying to do things like compress many likely similar APK and OBB files for some reason:
7z a -t7z -m0=lzma2 -mx=3 -mfb=273 -md=1536m -ms=4g -mmt=off -mmtf=off -mps=on -bt -myx=9 -bb3 output.7z input_folder/
text/gemini;lang=en
This content has been proxied by September (ba2dc).