Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
net-misc/DHCPCD-UI
View unanswered posts
View posts from last 24 hours

Goto page 1, 2, 3, 4  Next  
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 2583

PostPosted: Mon Sep 15, 2014 10:14 am    Post subject: net-misc/DHCPCD-UI Reply with quote

UberLord https://forums.gentoo.org/viewtopic-p-7617676.html#7617676 wrote:
Done.

Now, if someone could create a dhcpcd-ui project page as I suck @ wiki text :)
It has a GTK+ front-end, the QT port is almost complete and has an applet just for systemd so applications can depend on dhcpcd saying "network ready".

http://roy.marples.name/projects/dhcpcd-ui
Could we plase get an ebuild of the development version. I don't want DBus, but once I have a chance to test dhcpcd-ui without DBus I would create the requested wiki page.
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6737
Location: Blighty

PostPosted: Mon Sep 15, 2014 10:15 am    Post subject: Reply with quote

Best to file a bug for it. dev's don't generally look here :)
_________________
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Back to top
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 2583

PostPosted: Mon Sep 15, 2014 10:42 am    Post subject: Reply with quote

Done.
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6737
Location: Blighty

PostPosted: Wed Sep 17, 2014 8:48 am    Post subject: Reply with quote

New ebuild for dhcpcd-ui-0.7.1 posted on the bug.
_________________
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Back to top
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 2583

PostPosted: Tue Nov 11, 2014 9:17 am    Post subject: Reply with quote

As version net-misc/dhcpcd-ui-0.7.4 is now in portage. Some questions about it.
  • As it seems not possible to compile with the icons USE flag disabled, why does it have this USE flag at all?
  • When compiled with qt4 then Preferences in the tray menu is greyed out and unfunctional as shown here http://i.imgur.com/BeVcCyZ.png
    Am I missing something in qt4 setup? How to make it work? With gtk it's normal.


Last edited by charles17 on Tue Nov 11, 2014 9:23 am; edited 2 times in total
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6737
Location: Blighty

PostPosted: Tue Nov 11, 2014 9:21 am    Post subject: Reply with quote

charles17 wrote:
As version net-misc/dhcpcd-ui-0.7.4 is now in portage. Some questions about it.
  • As it seems not possible to compile with the icons USE flag disabled, why does it have this USE flag at all?


I queried that. A gentoo dev wanted that.
Icons are only needed for GTK and QT builds - when building dhcpcd-online tool no icons are needed.

Quote:

  • When compiled with qt4 then Preferences in the tray menu is greyed out and unfunctional as shown here http://i.imgur.com/BeVcCyZ.png
    Am I missing something in qt4 setup? How to make it work? With gtk it's normal.


  • Ah, that's odd.
    If it's greyed out then it means that it cannot communicate either with dhcpcd privileged socket.
    So in theory it should be greyed out in the GTK version as well (the code path they use to work it out should be the same)
    _________________
    Use dhcpcd for all your automated network configuration needs
    Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
    Back to top
    View user's profile Send private message
    charles17
    Advocate
    Advocate


    Joined: 02 Mar 2008
    Posts: 2583

    PostPosted: Tue Nov 11, 2014 9:32 am    Post subject: Reply with quote

    UberLord wrote:
    Icons are only needed for GTK and QT builds - when building dhcpcd-online tool no icons are needed.
    I've tried compiling without gtk and qt4 but no luck http://i.imgur.com/RsvrWpJ.png
    Should it be possible at all?
    Back to top
    View user's profile Send private message
    UberLord
    Retired Dev
    Retired Dev


    Joined: 18 Sep 2003
    Posts: 6737
    Location: Blighty

    PostPosted: Tue Nov 11, 2014 10:21 am    Post subject: Reply with quote

    I would say that's a bug with the ebuild.
    _________________
    Use dhcpcd for all your automated network configuration needs
    Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
    Back to top
    View user's profile Send private message
    charles17
    Advocate
    Advocate


    Joined: 02 Mar 2008
    Posts: 2583

    PostPosted: Wed Nov 12, 2014 11:29 am    Post subject: Reply with quote

    https://bugs.gentoo.org/show_bug.cgi?id=528904

    Edit:
    What does this QA notice try telling us? http://i.imgur.com/Y12e66J.png
    Quote:
    QA Notice: This package installs one or more .desktop files that do not pass validation.
    Back to top
    View user's profile Send private message
    UberLord
    Retired Dev
    Retired Dev


    Joined: 18 Sep 2003
    Posts: 6737
    Location: Blighty

    PostPosted: Wed Nov 12, 2014 2:46 pm    Post subject: Reply with quote

    It's telling is that Gentoo QA is out of date with regards to Cinnamon desktop entries.
    _________________
    Use dhcpcd for all your automated network configuration needs
    Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
    Back to top
    View user's profile Send private message
    charles17
    Advocate
    Advocate


    Joined: 02 Mar 2008
    Posts: 2583

    PostPosted: Thu Nov 13, 2014 10:15 am    Post subject: Reply with quote

    UberLord wrote:
    It's telling is that Gentoo QA is out of date with regards to Cinnamon desktop entries.
    Ok, that's another story.

    I still have the authorization problem https://529020.bugs.gentoo.org/attachment.cgi?id=389164 although my user is in wheel and the socket has rw for that group
    Code:
    $ groups
    wheel uucp audio cdrom dialout video games cdrw usb users portage scanner charles17 plugdev
    Code:
    $ ls -al /run/dhcpcd.sock
    srw-rw---- 1 root wheel 0 Nov 13 08:33 /run/dhcpcd.sock

    Authorization for wpa_supplicant and dhcpcd config files are the same. But wpa_gui can write to its file and dhcpcd-gtk still shows "Permission denied" https://529020.bugs.gentoo.org/attachment.cgi?id=389164 .
    Code:
    $ ls -al /etc/wpa_supplicant/wpa_supplicant.conf /etc/dhcpcd.conf
    -rw-r--r-- 1 root root 1246 Nov 13 08:29 /etc/dhcpcd.conf
    -rw-r--r-- 1 root root  791 Nov 11 13:45 /etc/wpa_supplicant/wpa_supplicant.conf

    How to get rid of "Permission denied"?
    Back to top
    View user's profile Send private message
    UberLord
    Retired Dev
    Retired Dev


    Joined: 18 Sep 2003
    Posts: 6737
    Location: Blighty

    PostPosted: Thu Nov 13, 2014 11:21 am    Post subject: Reply with quote

    The difference is that wpa_supplicant writes to the configuration from itself, so it has root access.
    dhcpcd-gtk however, writes directly to dhcpcd.conf instead of getting dhcpcd to do it, so you, the user, needs write permission.

    Code:
    chgrp wheel /etc/dhcpcd.conf
    chmod g+w /etc/dhcpcd.conf

    _________________
    Use dhcpcd for all your automated network configuration needs
    Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
    Back to top
    View user's profile Send private message
    charles17
    Advocate
    Advocate


    Joined: 02 Mar 2008
    Posts: 2583

    PostPosted: Thu Nov 13, 2014 1:26 pm    Post subject: Reply with quote

    Already copied to the wiki https://wiki.gentoo.org/wiki/Network_management_using_DHCPCD/Dhcpcd-ui

    Left click on the system tray icon shows me the available APs https://wiki.gentoo.org/images/e/e7/Selection.png
    Each time I try to select one of them or to switch to another I am prompted for the password aka psk.
    How could I avoid this for APs that already have their psk in wpa_supplicant.conf?
    Back to top
    View user's profile Send private message
    RazielFMX
    l33t
    l33t


    Joined: 23 Apr 2005
    Posts: 835
    Location: NY, USA

    PostPosted: Thu Nov 13, 2014 1:59 pm    Post subject: Reply with quote

    Something is odd here...

    Code:

    # emerge -pv net-misc/dhcpcd-ui

    These are the packages that would be merged, in order:

    Calculating dependencies -

    !!! Problem resolving dependencies for net-misc/dhcpcd-ui
    ... done!

    !!! The ebuild selected to satisfy "net-misc/dhcpcd-ui" has unmet requirements.
    - net-misc/dhcpcd-ui-0.7.4::gentoo USE="gtk icons libnotify qt4 -debug -gtk3" ABI_X86="64"

      The following REQUIRED_USE flag constraints are unsatisfied:
        at-most-one-of ( gtk gtk3 qt4 )

      The above constraints are a subset of the following complete expression:
        at-most-one-of ( gtk gtk3 qt4 ) gtk3? ( !gtk ) gtk? ( !gtk3 ) icons? ( any-of ( gtk gtk3 qt4 ) )


    The USE flags do not match reality:

    Code:
    # grep dhcpcd /etc/portage/package.use
    net-misc/dhcpcd -gtk -gtk3


    Yet it still insists on bringing in gtk alongside qt4.
    _________________
    I am not anti-systemd; I am pro-choice. If being the latter makes you feel that I am the former, then so be it.
    Back to top
    View user's profile Send private message
    UberLord
    Retired Dev
    Retired Dev


    Joined: 18 Sep 2003
    Posts: 6737
    Location: Blighty

    PostPosted: Thu Nov 13, 2014 2:03 pm    Post subject: Reply with quote

    charles17 wrote:
    Each time I try to select one of them or to switch to another I am prompted for the password aka psk.
    How could I avoid this for APs that already have their psk in wpa_supplicant.conf?


    Currently you can't.
    Maybe future versions will grow a forget option to avoid this.
    _________________
    Use dhcpcd for all your automated network configuration needs
    Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
    Back to top
    View user's profile Send private message
    charles17
    Advocate
    Advocate


    Joined: 02 Mar 2008
    Posts: 2583

    PostPosted: Thu Nov 13, 2014 6:19 pm    Post subject: Reply with quote

    So presently we can use it as a nice additional monitor showing which interface is connected and the current IP address. https://wiki.gentoo.org/images/f/f7/Dhcpcd-ui_status.png
    It can write network sections to wpa_supplicant.conf and details for static IP address to dhcpcd.conf.
    Caution is still needed to not overwrite existing items. Before new entries are written to wpa_supplicant.conf or to dhcpcd.conf or existing entries are changed we should have the possibility to abort or to save.

    I really like this direct access more than first opening wpa_gui, then clicking "Manage Networks".
    Back to top
    View user's profile Send private message
    UberLord
    Retired Dev
    Retired Dev


    Joined: 18 Sep 2003
    Posts: 6737
    Location: Blighty

    PostPosted: Thu Nov 13, 2014 6:50 pm    Post subject: Reply with quote

    RazielFMX wrote:
    Something is odd here...

    Yet it still insists on bringing in gtk alongside qt4.


    Please file Gentoo bugs on this.
    _________________
    Use dhcpcd for all your automated network configuration needs
    Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
    Back to top
    View user's profile Send private message
    UberLord
    Retired Dev
    Retired Dev


    Joined: 18 Sep 2003
    Posts: 6737
    Location: Blighty

    PostPosted: Thu Nov 13, 2014 6:56 pm    Post subject: Reply with quote

    charles17 wrote:
    So presently we can use it as a nice additional monitor showing which interface is connected and the current IP address. https://wiki.gentoo.org/images/f/f7/Dhcpcd-ui_status.png
    It can write network sections to wpa_supplicant.conf and details for static IP address to dhcpcd.conf.
    Caution is still needed to not overwrite existing items. Before new entries are written to wpa_supplicant.conf or to dhcpcd.conf or existing entries are changed we should have the possibility to abort or to save.

    I really like this direct access more than first opening wpa_gui, then clicking "Manage Networks".


    Pretty much it.
    Why not add section on the wiki for feature requests so I don't loose track of them.
    Or better yet, append to the upstream wiki - http://roy.marples.name/projects/dhcpcd-ui/wiki?name=todo
    You'll need to login as anonymous to append to the page.
    _________________
    Use dhcpcd for all your automated network configuration needs
    Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
    Back to top
    View user's profile Send private message
    charles17
    Advocate
    Advocate


    Joined: 02 Mar 2008
    Posts: 2583

    PostPosted: Mon Nov 17, 2014 11:31 am    Post subject: Reply with quote

    Ok, I'll try extending the todo list.

    Another question: Why in dhcpcd-gtk is the "IP Address:" line greyed out? http://i.imgur.com/jJgdvF0.png
    In dhcpcd-qt it's functional.
    Back to top
    View user's profile Send private message
    UberLord
    Retired Dev
    Retired Dev


    Joined: 18 Sep 2003
    Posts: 6737
    Location: Blighty

    PostPosted: Mon Nov 17, 2014 11:35 am    Post subject: Reply with quote

    Looks like a bug.
    _________________
    Use dhcpcd for all your automated network configuration needs
    Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
    Back to top
    View user's profile Send private message
    charles17
    Advocate
    Advocate


    Joined: 02 Mar 2008
    Posts: 2583

    PostPosted: Mon Nov 17, 2014 11:47 am    Post subject: Reply with quote

    Gentoo bug or upstream?
    Back to top
    View user's profile Send private message
    UberLord
    Retired Dev
    Retired Dev


    Joined: 18 Sep 2003
    Posts: 6737
    Location: Blighty

    PostPosted: Mon Nov 17, 2014 11:54 am    Post subject: Reply with quote

    Upstream.

    I should try and fix it I guess :)
    _________________
    Use dhcpcd for all your automated network configuration needs
    Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
    Back to top
    View user's profile Send private message
    charles17
    Advocate
    Advocate


    Joined: 02 Mar 2008
    Posts: 2583

    PostPosted: Mon Nov 17, 2014 12:19 pm    Post subject: Reply with quote

    Another difference between dhcpcd-qt and dhcpcd-gtk, is this by design or also from the bug?

    Qt gui shows wlan and ethernet http://i.imgur.com/4pQpIkZ.png
    Ethernet not listed by gtk gui only http://i.imgur.com/a4FYgW5.png
    Back to top
    View user's profile Send private message
    UberLord
    Retired Dev
    Retired Dev


    Joined: 18 Sep 2003
    Posts: 6737
    Location: Blighty

    PostPosted: Mon Nov 17, 2014 12:20 pm    Post subject: Reply with quote

    Just different UI facets.
    I'll make them more similar :)
    _________________
    Use dhcpcd for all your automated network configuration needs
    Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
    Back to top
    View user's profile Send private message
    UberLord
    Retired Dev
    Retired Dev


    Joined: 18 Sep 2003
    Posts: 6737
    Location: Blighty

    PostPosted: Wed Nov 19, 2014 9:58 am    Post subject: Reply with quote

    charles17 wrote:
    Ok, I'll try extending the todo list.

    Another question: Why in dhcpcd-gtk is the "IP Address:" line greyed out? http://i.imgur.com/jJgdvF0.png
    In dhcpcd-qt it's functional.


    I had a look at it this morning, but it looked fine to me?
    Maybe fixed in the next release.
    _________________
    Use dhcpcd for all your automated network configuration needs
    Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
    Back to top
    View user's profile Send private message
    Display posts from previous:   
    Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
    Goto page 1, 2, 3, 4  Next
    Page 1 of 4

     
    Jump to:  
    You cannot post new topics in this forum
    You cannot reply to topics in this forum
    You cannot edit your posts in this forum
    You cannot delete your posts in this forum
    You cannot vote in polls in this forum