EDIT:
Does not work yet…
In development. Try running Tor Browser under constrained system resources program starter wrapper. Updates will be posted in that forum thread. Once installed to /usr/bin
.
limit-low torbrowser
or
limit-medium torbrowser
Or if manual wrapper installation is too complicated for now.
Installation required once:
sudo apt update
sudo apt install dbus-user-session
Needs to be run after every reboot (will later be automated by limit-*
wrapper):
systemctl -user import-environment
This will be simplified by limit-low
.
systemd-run --pty --same-dir --wait --collect --service-type=exec --pipe --user --quiet --nice=19 --property=MemoryAccounting=yes --property=MemoryHigh=300M --property=MemoryMax=500M --property=CPUAccounting=yes --property=CPUQuota=5% --property=CPUWeight=1 --property=CPUShares=2 --property=TasksAccounting=yes --property=TasksMax=200 --property=IOAccounting=yes --property=IOWeight=1 '--property=IOReadIOPSMax=/dev/disk/ 1K' -- torbrowser
This will be simplified by limit-medium
.
systemd-run --pty --same-dir --wait --collect --service-type=exec --pipe --user --quiet --nice=10 --property=MemoryAccounting=yes --property=MemoryHigh=1000M --property=MemoryMax=1100M --property=CPUAccounting=yes --property=CPUQuota=80% --property=CPUWeight=80 --property=CPUShares=900 --property=TasksAccounting=yes --property=TasksMax=3000 --property=IOAccounting=yes --property=IOWeight=80 -- torbrowser
(This command line was generated by using bash -x limit-low torbrowser
/ bash -x limit-medium torbrowser
.)
Btw not sure it matters (since chromium based Tor Browser not on horizon anyhow), and you didn’t say that specifically, but don’t hope fore Firefox to die. Reasons for that:
General Threats to User Freedom