Firejail: Difference between revisions

Klinger (talk | contribs)
DHCP (talk | contribs)
m use console syntaxhighlight for shell commands
 
Line 13: Line 13:
To start an application in a sandboxed enviroment use Firejail like this
To start an application in a sandboxed enviroment use Firejail like this


<syntaxhighlight lang="bash">
<syntaxhighlight lang="console">
firejail bash
$ firejail bash
</syntaxhighlight>
</syntaxhighlight>


For a graphical application like [[Firefox]] web browser, it is recommended to also use a profile
For a graphical application like [[Firefox]] web browser, it is recommended to also use a profile


<syntaxhighlight lang="bash">
<syntaxhighlight lang="console">
firejail --profile=$(nix --extra-experimental-features nix-command --extra-experimental-features flakes eval -f '<nixpkgs>' --raw 'firejail')/etc/firejail/firefox.profile firefox
$ firejail --profile=$(nix --extra-experimental-features nix-command --extra-experimental-features flakes eval -f '<nixpkgs>' --raw 'firejail')/etc/firejail/firefox.profile firefox
</syntaxhighlight>
</syntaxhighlight>


Line 131: Line 131:
Run your preferred application inside the isolated Tor network
Run your preferred application inside the isolated Tor network


<syntaxhighlight lang="bash">
<syntaxhighlight lang="console">
firejail --net=tornet --dns=46.182.19.48 --profile=$(nix --extra-experimental-features nix-command --extra-experimental-features flakes eval -f '<nixpkgs>' --raw 'firejail')/etc/firejail/firefox.profile firefox
$ firejail --net=tornet --dns=46.182.19.48 --profile=$(nix --extra-experimental-features nix-command --extra-experimental-features flakes eval -f '<nixpkgs>' --raw 'firejail')/etc/firejail/firefox.profile firefox
</syntaxhighlight>
</syntaxhighlight>