Open with root rights

From Whonix

Open {{{filename}}} in an editor with root rights.

This box uses lxsu for root privilege escalation and mousepad as editor. These are examples. Other tools could archive the same goal too. If these example tools do not work for you or if you are not using Whonix, please press on Expand on the right side.

The easiest would be to install these example tools lxsu mousepad so you can keep copying and pasting these instructions.

Update the package lists.

sudo apt-get update

Upgrade the system.

sudo apt-get dist-upgrade

Install the --no-install-recommends lxsu mousepad package.

sudo apt-get install --no-install-recommends lxsu mousepad

The procedure is complete.

Alternatively you could also use other tools which may already be installed by default.

gksudo gedit {{{filename}}}

sudoedit {{{filename}}}

If you are using a graphical Whonix or Qubes-Whonix ™ with XFCE, run.

lxsu mousepad {{{filename}}}

If you are using a terminal-only Whonix, run.

sudo nano {{{filename}}}