Archiv der Kategorie: Linux

GNU/Linux Howto’s and Tutorials

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

 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:

As the video shows below.

Nemo File Manager Context Menu Extract here

Add Compress and Extract here action to Nemo File Manager as Context Menu

Nemo is the amazing file manager of Cinnamon’s desktop environment, it’s a further development of Gnome’s Nautilus file manager with easy customization options, adding a context menu to unpack and compress folders and files is a simple task.

Adding the context menu action for compress in Nemo will show in this tutorial, we open a terminal and copy & paste the following content into the path see below and save it as file compress.nemo_action.

As well as the entry for extract archives action into file extracthere.nemo_action.

Nemo context action menu (right-click)

This is for the current user only, if you prefer the ability for any user, then move the file compress.nemo_action and extracthere.nemo_action into /usr/share/nemo/actions, you need root privileges to can do it.

Nemo File Manager actions

 The common compression tools are preinstalled on most distos. 7-Zip is another all in one compression tool and very popular by Sysops, this can be installed with the following command.

Launcher open Caja as root on Mate Desktop

Create Launcher to Open Caja on Mate

Here in this post I show a way on how to create a launcher run as root on Mate desktop running on a virtual machine, 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:

 replace user with your real username.

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

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

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

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 29

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