FedoraForum.org - Fedora Support Forums and Community
Results 1 to 10 of 10
  1. #1
    annafil Guest

    HOWTO: easily set up a graphical super user prompt

    Motivation:

    Why a graphical su prompt? Because sometimes it is a lot easier to set up a task once to be automated with the click of a button on the panel than having to type in the command all the time.

    There are lots of alternatives for program developers to use, such as zenity and consolehelper, but these are a lot more complicated to set up than it is to open a terminal and type the relevant command. The only simple solution is gksu. However, gksu is still on the wishlist awaiting someone to maintain it, and for one reason or another tends to fail to compile on the later Fedora releases. Luckily, now there is another candidate - ktsuss.

    KTSUSS (Keep the su simple, stupid) is a project by one nominus to create a simple gksu replacement. Its status is "stable" and it was fairly recently updated.

    At the moment, there are no pre-built packages available. I will work on putting some up here.

    To install:

    Download the rpm from here (thanks leigh123!) or if that link doesn't work for some reason, here.

    In your terminal type:

    Code:
    su -c "yum install ktsuss-1.3-1.fc8.noarch.rpm"
    OR if you use Smart

    Code:
    su -c "smart install ktsuss-1.3-1.fc8.noarch.rpm"
    To install from source:

    Download the source from here . At the time of this writing this is version 1.3.

    Following this, simply unpack the archive and run:

    Code:
    ./configure --prefix=/usr
    Code:
    make
    Code:
    su -c "make install"
    As far as I can see, the program does not have any build dependencies besides the usual development packages required to build this app.

    To run:

    Just like you would with gksu, type

    Code:
    ktsuss <your command here>
    and you will receive a prompt much like in the screenshot attached to this post.

    That's it folks!
    Attached Images Attached Images
    Last edited by annafil; 1st April 2008 at 07:29 PM. Reason: extend info

  2. #2
    leigh123linux Guest
    I will make it even easier . ( I packaged it into a rpm )


    F8 ( ktsuss-1.3-1.fc8.noarch.rpm )

    http://www.linux-ati-drivers.homecal...fc8.noarch.rpm
    Attached Files Attached Files
    Last edited by leigh123linux; 11th April 2008 at 01:21 PM.

  3. #3
    annafil Guest
    Lol! I was just mid-way uploading my own rpm! Thanks, will edit the original post

  4. #4
    Join Date
    Jun 2005
    Location
    UK
    Posts
    4,430
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    There is also 'kdesu' to do that.

    As you say, in a terminal:

    Code:
    kdesu <your command here>
    Nice to have an alternative though

  5. #5
    annafil Guest
    bbfuller: I read about kdesu, but couldn't find it in the repos (should it be there?) so had to do things the hard way

  6. #6
    Join Date
    Jun 2005
    Location
    UK
    Posts
    4,430
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hello annafil

    I've been thinking about that since I wrote my post above.

    The machine I tried it on with Gnome has KDE on it as well. I don't think I have a Gnome only machine as KDE is my preferred desktop.

    I'm pretty sure that it isn't a stand alone package but something in one of the KDE main packages and probably won't be any easier to install than ktsuss unless you want other KDE packages.

    Yes, having had a look it seems to be inside the kdebase package.

  7. #7
    annafil Guest
    That explains it then, thanks bbfuller! That also explains why kdesu is available for Fedora but not gksu - gksu is a standalone package.

  8. #8
    Join Date
    Apr 2005
    Location
    Littleton, CO
    Age
    42
    Posts
    2,856
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I rolled my own utility to accomplish this a while ago. It is called root-sh, works via consolehelper, and can be obtained from here.
    S.C.O.U.R.G.E. Heroes of lesser renown, contributor.

  9. #9
    annafil Guest
    Loeadgolem: I'd love to try your utility as well, but I get a download error from filefront. Any mirrors?

    Edit: and then, error message and all, it downloaded. Odd
    Last edited by annafil; 3rd April 2008 at 05:38 PM.

  10. #10
    Join Date
    Apr 2005
    Location
    Littleton, CO
    Age
    42
    Posts
    2,856
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Not exactly a mirror, but I attached it to this post.
    http://forums.fedoraforum.org/forum/...8&postcount=21
    S.C.O.U.R.G.E. Heroes of lesser renown, contributor.

Similar Threads

  1. prompt or not prompt for password depending on user & client
    By powah in forum Security and Privacy
    Replies: 0
    Last Post: 21st June 2007, 04:28 AM
  2. Super User
    By zane310 in forum Using Fedora
    Replies: 1
    Last Post: 21st January 2007, 09:02 AM
  3. From-PowerUp-To-Bash-Prompt howto
    By ekdya in forum Using Fedora
    Replies: 1
    Last Post: 3rd October 2006, 08:53 AM
  4. disable graphical boot howto
    By bharat211 in forum Using Fedora
    Replies: 4
    Last Post: 16th June 2005, 12:18 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •