Schlagwort-Archive: GNU/Linux

Unixähnliche Mehrbenutzer-Betriebssysteme, die auf dem Linux-Kernel und wesentlich auf GNU-Software basieren. Wie CentOS, Debian, Ubuntu Fedora.

Run Nano as root in vnc session

How to Run Nano File Manager as root in a VNC Session

In this post I show how to run Nano file manager as root in a VNC session. I’m using a Fedora Cinnamon Spin to this logged in as an common user via VNC viewer.

Fire up a terminal and insert the command below at the end of .bashrc by hit nano ~/.bashrc

export XAUTHORITY=/home/vncuser/.Xauthority

 this example use vncuser, enter your username instead.

close the terminal and re-open again, hit the command line below to run nemo as root:

$ sudo pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY nemo

As the video shows below.

Caja launcher as root on Mate desktop

How to create a launcher to open Caja as root on Linux Mate desktop

Here in this post I show a way on how to create a Caja launcher running as root on Mate desktop, I logged in to virtual desktop over vnc viewer, since newer Linux distos no longer include the ability of gksu and gksudo.

Before we create the launcher, some preparations have to be made, to do this with run the command below:

$ sudo cp ~/.Xauthority /root
$ echo "export XAUTHORITY=/home/<user>/.Xauthority" >> ~/.bashrc

  replace user with your real username.

Now create a new launcher with right-click on your desktop.

Open the drop-down menu and choose application in terminal, then insert the command:

sudo -H /usr/bin/caja

into the command field, like see in the screenshot below.

Caja launcher as root on Mate desktop

A double-click will open a terminal in here enter your password to gain root privileges able to run Caja as root.

A double-click will open a terminal in here enter your password to gain root privileges able to run Caja as root.
Mate desktop with Matcha-sea theme on Fedora workstation 30

 Be aware of what you are doing, your action may now result in irrevocable malfunction or destruction of the system.

Caja file manager

Caja is the official file manager for the MATE desktop. It allows one to browse directories, preview files and launch applications associated with them. Caja is also responsible for handling the icons on the MATE desktop. It works on local and remote filesystems.