<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="https://dev1galaxy.org/extern.php?action=feed&amp;tid=2717&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / root-Terminal under Beowulf with Mate desktop]]></title>
		<link>https://dev1galaxy.org/viewtopic.php?id=2717</link>
		<description><![CDATA[The most recent posts in root-Terminal under Beowulf with Mate desktop.]]></description>
		<lastBuildDate>Sun, 01 Aug 2021 09:00:28 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: root-Terminal under Beowulf with Mate desktop]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=30956#p30956</link>
			<description><![CDATA[<p>There&#039;s no need to run the entire terminal emulator as root — only the shell itself needs elevated privileges. See also <a href="https://en.wikipedia.org/wiki/Principle_of_least_privilege" rel="nofollow">https://en.wikipedia.org/wiki/Principle … _privilege</a></p><p>So perhaps try this file at <span class="bbc">/usr/local/share/applications/root-terminal.desktop</span> instead:</p><div class="codebox"><pre><code>[Desktop Entry]
Version=1.0
Name=Root Terminal
Comment=Run terminal emulator as root
Type=Application
Exec=x-terminal-emulator -e sudo -i
Categories=System;TerminalEmulator;</code></pre></div><p>^ That example calls the x-terminal-emulator alternative as your normal user and runs a root shell in it. No need for <span class="bbc">pkexec</span> at all <img src="https://dev1galaxy.org/img/smilies/wink.png" width="15" height="15" alt="wink" /></p>]]></description>
			<author><![CDATA[dummy@example.com (Head_on_a_Stick)]]></author>
			<pubDate>Sun, 01 Aug 2021 09:00:28 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=30956#p30956</guid>
		</item>
		<item>
			<title><![CDATA[root-Terminal under Beowulf with Mate desktop]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=14723#p14723</link>
			<description><![CDATA[<p>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. </p><p>This descrition documents the steps required with Mate desktop to create a starter that directly allows to open a root terminal.</p><p>Create a new starter in Mate main menu by adding a new entry.<br />Name: root-Terminal<br />Command: pkexec mate-terminal<br />Comment: Starts mate Terminal as root<br />Icon: select any.<br />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. </p><p>In addition a policy needs to be created and saved in /usr/share/polkit-1/actions:</p><div class="codebox"><pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&lt;!DOCTYPE policyconfig PUBLIC
 &quot;-//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN&quot;
 &quot;http://www.freedesktop.org/standards/PolicyKit/1.0/policyconfig.dtd&quot;&gt;
&lt;policyconfig&gt;

  &lt;vendor&gt;Mate-Terminal&lt;/vendor&gt;
  &lt;vendor_url&gt;&lt;/vendor_url&gt;
  &lt;icon_name&gt;mate-terminal&lt;/icon_name&gt;

&lt;action id=&quot;org.mate-terminal.pkexec&quot;&gt;
   &lt;description&gt;Run mate-terminal as root&lt;/description&gt;
   &lt;message&gt;Authentication is required to run mate-terminal as root.&lt;/message&gt;
   &lt;defaults&gt;
      &lt;allow_any&gt;no&lt;/allow_any&gt;
      &lt;allow_inactive&gt;auth_admin&lt;/allow_inactive&gt;
      &lt;allow_active&gt;auth_admin&lt;/allow_active&gt;
   &lt;/defaults&gt;
   &lt;annotate key=&quot;org.freedesktop.policykit.exec.path&quot;&gt;/usr/bin/mate-terminal&lt;/annotate&gt;
   &lt;annotate key=&quot;org.freedesktop.policykit.exec.allow_gui&quot;&gt;true&lt;/annotate&gt;
 &lt;/action&gt;</code></pre></div><p>Owner is root.</p><p>If you want to read system log files with the log viewer, a similar thing needs to be done with the system-log-viewer.</p><p>Rolf</p>]]></description>
			<author><![CDATA[dummy@example.com (rolfie)]]></author>
			<pubDate>Sun, 10 Mar 2019 13:41:11 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=14723#p14723</guid>
		</item>
	</channel>
</rss>
