How to solve the issue with the AirVPN app needing elevated privileges.

Forum Forums General Software How to solve the issue with the AirVPN app needing elevated privileges.

  • This topic has 5 replies, 3 voices, and was last updated Apr 23-11:00 pm by Robin.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #140099
    Member
    GeorgieBoy64

      Hello!

      This is my first time ever posting anything in a Linux forum.

      In case I make errors or I do not communicate properly,
      please inform me and I’ll try to correct any mistakes.

      Any questions and comments will be greatly appreciated.

      But onto the topic of discussion.

      I found that when I downloaded AirVPN from the Software Installer that I had no way of opening the application without coming across and error window.

      The error message would read:
      Unable to obtain elevated privileges (required): ApplicationName=’pkexec’, CommandLine='”/usr/lib/eddie-ui/eddie-cli-elevated” mode=spot spot_port=43085 service_port=9349′, CurrentDirectory=”, Native error= Cannot find the specified file

      For any beginners, like me,
      it helps to see that the solution is in the error message where it says, “ApplicationName=’pkexec’,”

      If AirVPN is not running for you what you would have to do is download “pkexec”.

      A link to what helped me learn the instructions posted below:
      https://installati.one/install-pkexec-debian-12/

      First, open up the terminal and update your PC by typing in:
      sudo apt update

      Then, enter:
      sudo apt -y install pkexec

      Once the installation is finished,
      type into the terminal:
      sudo eddie-ui

      The application “eddie-ui” is used to identify your way to access AirVPN.

      The application should open normally and prompt a window asking for account sign in information.

      There are some issues that need to be brought up.

      One is that I only know how to open AirVPN from the terminal,
      but I do have issues selecting it from the start menu when going to:
      Applications > Internet > Eddie – VPN Tunnel

      An error menu will show up stating that the eddie application is unable to obtain elevated privileges.

      Once I find a solution,
      I’ll make sure to post it here for anyone to see.

      Thank you!
      I look forward to any feedback!

      • This topic was modified 1 month ago by GeorgieBoy64.
      #140104
      Member
      DaveW

        You could try the ‘Run’ button, on the Antix menu (a little below the Control Centre button)

        Enter the application name: eddie-ui
        Check the “Run as Root” box.
        Enter your antix root password when requested.

        That should make it work for you, without opening a terminal window.

        #140106
        Member
        GeorgieBoy64

          Awesome!

          I didn’t know I could do that using the ‘Run’ function.

          Thank you very much!!!

          #140109
          Member
          Robin

            Not quite sure about that, but you might be able to create a .desktop file for your eddie program, place it in /usr/share/applications folder.
            The exec line in this .desktop file should read probably something like

            Exec=gksu eddie-ui

            Please see https://specifications.freedesktop.org/desktop-entry-spec/latest/ar01s03.html#entries and followup pages in the index at https://specifications.freedesktop.org/desktop-entry-spec/latest/index.html#introduction for details about the file format. And check out what the existing .desktop files in /usr/share/applications look like when opening them with geany or leafpad.

            After placing the properly formatted .desktop file in the beforementioned folder and running “Refresh menu” from the antiX main menu you should find your file in the chosen category you have entered in the Categories= line in this file.

            Windows is like a submarine. Open a window and serious problems will start.

            #140249
            Member
            GeorgieBoy64

              I am very sorry for my late response.

              Your advice was Fantastic!

              Now the application opens normally when I click on it in the start menu.

              But just to be sure I did it correctly,
              I’ll explain what I did.

              I went into the /usr/share/applications folder
              and I found the “eddie-ui.desktop” file.

              I didn’t have to create a .desktop file, however,
              I did have to edit the details contained inside.

              So, I opened up leafpad with sudo privileges,
              then edited the “Exec=” section.

              I changed it
              from “/usr/bin/eddie-ui”
              to “gksu eddie-ui”.

              The file only allows me to save my changes as sudo because of file privileges.

              But after I saved the file changes and clicked on “Refresh Menu” in the start menu,
              the application opened up just fine without any error.

              Thank you very much for your help and thank you for the links!!!

              #140258
              Member
              Robin

                But just to be sure I did it correctly,
                I’ll explain what I did.

                You did perfectly right. Great it has worked for you. 🙂

                Windows is like a submarine. Open a window and serious problems will start.

              Viewing 6 posts - 1 through 6 (of 6 total)
              • You must be logged in to reply to this topic.