UBports Robot Logo UBports Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Unable to run wireshark as root on libertine

    Scheduled Pinned Locked Moved Libertine
    4 Posts 3 Posters 498 Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
      Reply
      • Reply as topic
      Log in to reply
      This topic has been deleted. Only users with topic management privileges can see it.
      • D Offline
        danayaal
        last edited by danayaal

        Hello,
        So i am new in Ubuntu touch, and also libertine.
        I just installed wireshark, but unfortunately I must run it as root.
        When i try to run root via terminal ( exec -i xenial -c wireshark ) it said Gtk warning, so I cant launch it since I run it via terminal.
        When i try to run via desktop shortcut, its running in normal mode
        Also when I tried to follow guide online on the internet about how to run wireshark without root, its ended with making usergroup, and I cant even find what username used in Libertine /etc/passwd ( I guess Libertine doesn't have any user account ? )
        I so confused about how to run wireshark with root on libertine.

        dobeyD 1 Reply Last reply Reply Quote 0
        • Pulsar33P Offline
          Pulsar33
          last edited by

          Hi,
          This has already been mentioned in several topics
          @pulsar33 said in Gently setup a Libertine container and some applications:

          Wireshark (NPA) is a special case. When installing from the GUI, the process asks a question and you can't answer it, unfortunately. So the installation process never ends. And if you try to install it otherwise, you can't create the Wireshark group that is required for it to work. it's really a shame.

          @fakeshell said in Libertine tested apps, hacks, tips and tricks:

          wireshark (can open already existing captured packets file but cannot capture packets on interfaces because libertine is running in an unprivileged container)
          currently only the gtk3 version of wireshark work: cd /usr/share/applications && mv wireshark-gtk.desktop wireshark.desktop

          Here is what seems to be a definitive answer from @dobey

          Best regards
          Pulsar33

          Aquaris BQ E5 HD UBports OTA-25 (currently testing features)
          Aquaris BQ E5 HD Ubuntu Edition Canonical OTA-15 (last Canonical version, daily use)
          Raspberry Pi 4 B - 4 GB & 8 GB with various OS and Desktops (UBports not OK)

          1 Reply Last reply Reply Quote 0
          • Pulsar33P Offline
            Pulsar33
            last edited by

            I don't know what you hope to do with WireShark but while waiting for a possible solution, netstat works under Libertine and can display the accesses in real time. Here is an example of netstat trace wrapped in a Gtk3 GUI that I coded.

            CheckLog-Netstat.png

            BR
            Pulsar33

            Aquaris BQ E5 HD UBports OTA-25 (currently testing features)
            Aquaris BQ E5 HD Ubuntu Edition Canonical OTA-15 (last Canonical version, daily use)
            Raspberry Pi 4 B - 4 GB & 8 GB with various OS and Desktops (UBports not OK)

            1 Reply Last reply Reply Quote 1
            • dobeyD Offline
              dobey @danayaal
              last edited by

              @danayaal said in Unable to run wireshark as root on libertine:

              I so confused about how to run wireshark with root on libertine.

              You cannot run anything as root in libertine, as it is an unprivileged container.

              1 Reply Last reply Reply Quote 0
              • First post
                Last post