The officially official Devuan Forum!

You are not logged in.

#1 2019-03-10 13:41:11

rolfie
Member
Registered: 2017-11-25
Posts: 175  

root-Terminal under Beowulf with Mate desktop

With Beowulf a new challenge is that gksu as tool is no more available to get root privilegues from the graphical desktop. Instead pkexe needs to be used.

This descrition documents the steps required with Mate desktop to create a starter that directly allows to open a root terminal.

Create a new starter in Mate main menu by adding a new entry.
Name: root-Terminal
Command: pkexec mate-terminal
Comment: Starts mate Terminal as root
Icon: select any.
I liked the former gksu icon and have copied the file gksu-root-terminal.png from ASCII to Beowulf and saved it in /usr/share/pixmaps.

In addition a policy needs to be created and saved in /usr/share/polkit-1/actions:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE policyconfig PUBLIC
 "-//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN"
 "http://www.freedesktop.org/standards/PolicyKit/1.0/policyconfig.dtd">
<policyconfig>

  <vendor>Mate-Terminal</vendor>
  <vendor_url></vendor_url>
  <icon_name>mate-terminal</icon_name>

<action id="org.mate-terminal.pkexec">
   <description>Run mate-terminal as root</description>
   <message>Authentication is required to run mate-terminal as root.</message>
   <defaults>
      <allow_any>no</allow_any>
      <allow_inactive>auth_admin</allow_inactive>
      <allow_active>auth_admin</allow_active>
   </defaults>
   <annotate key="org.freedesktop.policykit.exec.path">/usr/bin/mate-terminal</annotate>
   <annotate key="org.freedesktop.policykit.exec.allow_gui">true</annotate>
 </action>

Owner is root.

If you want to read system log files with the log viewer, a similar thing needs to be done with the system-log-viewer.

Rolf

Offline

Board footer