Between git and all the command line installs and updates that are done now, how do I protect from giving my computer aids? I put a ton of faith in guides and walkthroughs and have been just copy and pasting my way through learning how to spin up local AI. Is there something less clunky than dedicated hardware that you never log into anything on or using full vm’s that you install the os and everything on to try to stay safe?
Snapshots make that sort of thing a lot easier. You can do destructive testing in a VM, and then just rollback to the previous snapshot if things get ugly.
If you’re really paranoid, yank its network device before you start tinkering.
There’s a spectrum of safety:
- You could use a dedicated user, and while logged into that account don’t do anything sensitive (like type the admin password)
- You could use a jail of some sort (container, firejail)
- You could use a dedicated VM
- You could use a dedicated computer
- You could use a dedicated computer on a dedicated network
You can also use MAC frameworks like AppArmor or SELinux to severely restrict what permissions the programs have, but that’s almost too much work for everyone.
Roughly the more secure things are the more of a pain in the ass they are.
I find the dedicated user not too much of a PITA, I keep the system up to date so the main risk is sloppy permissions (eg: in /tmp or /home) and local privilege escalation zero days in the kernel, or polkit etc. But I also don’t run all the random scripts and code you sound to be running!