tag:blogger.com,1999:blog-852161773840707483.post1314766751833089906..comments2019-03-07T13:49:49.090+00:00Comments on OceanLinux: gksu Removed From Ubuntu, Here's The Recommended ReplacementLogixhttp://www.blogger.com/profile/03026963810377267607noreply@blogger.comBlogger15125tag:blogger.com,1999:blog-852161773840707483.post-37925372897019605032019-03-06T10:36:02.153+00:002019-03-06T10:36:02.153+00:00Great little script. Thank you!Great little script. Thank you!Logixhttps://www.blogger.com/profile/03026963810377267607noreply@blogger.comtag:blogger.com,1999:blog-852161773840707483.post-33996419265642767482019-03-05T18:59:45.991+00:002019-03-05T18:59:45.991+00:00If you get tired of typing in absolute paths to op...If you get tired of typing in absolute paths to open gedit as root, here&#39;s a bash script that I made for myself. Save it as /usr/local/bin/adminedit.<br />The syntax is in the file.<br /><br />#!/bin/bash<br />#Simplifies the opening of gedit with root<br />#syntax: $ adminedit | adminedit | adminedit &lt;~/home/path&gt; | adminedit &lt;./current/folder&gt;<br /><br />absolute_path=$(echo $1 | grep &quot;/&quot;)<br />current_path=$(echo $1 | grep &quot;\./&quot;)<br /><br />if [ -n &quot;$current_path&quot; ]; then<br /> file_name=$(echo $1 | rev | cut -d/ -f1 | rev) #credit to zefoxus for the double rev <br /> full_path=$(readlink -f $file_name) #https://stackoverflow.com/questions/22727107/how-to-find-the-last-field-using-cut#22727211<br /> gedit admin://$full_path<br />elif [ -n &quot;$absolute_path&quot; ]; then<br /> gedit admin://$1 <br />else<br /> full_path=$(readlink -f $1)<br /> gedit admin://$full_path<br />fiJameshttps://www.blogger.com/profile/15737676396666931254noreply@blogger.comtag:blogger.com,1999:blog-852161773840707483.post-26325520678354111172019-01-08T07:15:03.381+00:002019-01-08T07:15:03.381+00:00If what you are doing with VirtualBox is requiring...If what you are doing with VirtualBox is requiring being ran as root you need to take a step back and handle your users and groups better. Putting you desired user in the vboxusers group, and at times added to the disk group also (for raw vdev access) should take care of most everything. Personally I just did a forced install of gksu from Ubuntu 16.04 repo (before finding the PPA listed here) because after reading up on this hot mess they are attempting to replace it with I&#39;ll take my chances *Grin*sponix2ipfwhttps://www.blogger.com/profile/08093705767216997134noreply@blogger.comtag:blogger.com,1999:blog-852161773840707483.post-3792530689126140092018-11-09T14:56:40.596+00:002018-11-09T14:56:40.596+00:00@Lewis: what do you need it for exactly? If by &qu...@Lewis: what do you need it for exactly? If by &quot;everything else&quot; you mean running applications as root, that&#39;s a really bad idea. If the application needs to run as root, the developer can easily implement polkit / pkexec support in it so you don&#39;t have to do anything else.Logixhttps://www.blogger.com/profile/03026963810377267607noreply@blogger.comtag:blogger.com,1999:blog-852161773840707483.post-62345111707233420602018-11-09T14:53:17.602+00:002018-11-09T14:53:17.602+00:00&quot;(you should use admin:// as explained in the...&quot;(you should use admin:// as explained in the article)&quot;<br /><br />That is only helpful for editing text files ....<br />what about EVERYTHING else ???Lewis Balentinehttps://www.blogger.com/profile/15311069216042969185noreply@blogger.comtag:blogger.com,1999:blog-852161773840707483.post-91365129298923800102018-10-21T15:53:55.619+01:002018-10-21T15:53:55.619+01:00Well that works editing files but does nothing for...Well that works editing files but does nothing for any other application (Such as Oracle VirtualBox) which sometimes need to be run as root.Lewis Balentinehttps://www.blogger.com/profile/15311069216042969185noreply@blogger.comtag:blogger.com,1999:blog-852161773840707483.post-53175400662168553312018-08-31T10:29:15.825+01:002018-08-31T10:29:15.825+01:00Since you&#39;re not trying to run a graphical app...Since you&#39;re not trying to run a graphical application (which would require a polkit file for each such app when used with pkexec), you can use pkexec directly:<br /><br />pkexec pm-suspendLogixhttps://www.blogger.com/profile/03026963810377267607noreply@blogger.comtag:blogger.com,1999:blog-852161773840707483.post-25845028621386336832018-08-31T01:14:26.328+01:002018-08-31T01:14:26.328+01:00How can run applications that don&#39;t try and ac...How can run applications that don&#39;t try and access a file then? For example, gksu pm-suspend. I have this binded to my keyboard and I would like to enter in the password in a graphical way without going into a terminal emulator.Alex Shihttps://www.blogger.com/profile/09707558115981552305noreply@blogger.comtag:blogger.com,1999:blog-852161773840707483.post-62246179110188657462018-07-10T11:53:41.888+01:002018-07-10T11:53:41.888+01:00gksu is not recommended any more (you should use a...gksu is not recommended any more (you should use admin:// as explained in the article) but if you really really want to install it from a PPA, here is one that has gksu for Ubuntu 18.04 / Linux Mint 19: <a href="http://launchpad.net/~mark-pcnetspec/+archive/gksu" rel="nofollow">http://launchpad.net/~mark-pcnetspec/+archive/gksu</a>Logixhttps://www.blogger.com/profile/03026963810377267607noreply@blogger.comtag:blogger.com,1999:blog-852161773840707483.post-91753504289072831842018-07-09T20:26:09.265+01:002018-07-09T20:26:09.265+01:00where from can i install gksudo from ppa? where from can i install gksudo from ppa? nitrofuranohttps://www.blogger.com/profile/10318080146381059626noreply@blogger.comtag:blogger.com,1999:blog-852161773840707483.post-63561804596947484352018-06-20T10:44:05.979+01:002018-06-20T10:44:05.979+01:00sometimes you want to do remote admin on the machi...sometimes you want to do remote admin on the machine then gksudo-like commands come in handy. Frankhttps://www.blogger.com/profile/02146599194870253920noreply@blogger.comtag:blogger.com,1999:blog-852161773840707483.post-68030449978714445862018-06-11T14:53:54.411+01:002018-06-11T14:53:54.411+01:00That&#39;s nice and probably the best solution if ...That&#39;s nice and probably the best solution if they would have included this by default in Ubuntu, but I don&#39;t see the point if it requires an extra step from the user... you can just use admin instead.Logixhttps://www.blogger.com/profile/03026963810377267607noreply@blogger.comtag:blogger.com,1999:blog-852161773840707483.post-803792295512998902018-06-10T10:22:17.738+01:002018-06-10T10:22:17.738+01:00If you like gksu you can use an alias. You can see...If you like gksu you can use an alias. You can see the answer here: https://askubuntu.com/a/1045252/752945Matteo Gaggianohttps://www.blogger.com/profile/09045940958404103614noreply@blogger.comtag:blogger.com,1999:blog-852161773840707483.post-50381965752453598162018-04-20T08:05:21.956+01:002018-04-20T08:05:21.956+01:00For pkexec, you need policy files or else you cann...For pkexec, you need policy files or else you cannot use it. For instance, you can get policy files for Nautilus by installing nautilus-admin.Logixhttps://www.blogger.com/profile/03026963810377267607noreply@blogger.comtag:blogger.com,1999:blog-852161773840707483.post-86972617779360766892018-04-19T20:47:37.607+01:002018-04-19T20:47:37.607+01:00Or you can do the old same way..... pkexec yourpr...Or you can do the old same way.....<br /><br />pkexec yourprogram......<br /><br />This will behave like straight old gksudo.<br /><br />For the die-hard old-timers, you can creat an alias to pkexec named gksudo. It will do.<br />Alcide Cloridrixhttps://www.blogger.com/profile/17270659190842482493noreply@blogger.com