You are not logged in.

#51 2014-03-18 22:48:39

sekret
Member
Registered: 2013-07-22
Posts: 284

Re: connman_dmenu: netcfg(netctl) alternative!

# diff connman_dmenu.old connman_dmenu.new
1a2,4
> 
> umask 0077
> 
149a153
>     ;;
152a157
>     ;;
155a161
>     ;;
165a172
>    ;;
172a180
>    ;;
174d181
<               chmod 600 "$config_file"

(or the new code http://codepad.org/XCq33YTs )
Your current version has some syntax errors, those missing ;; in case. My idea with umask works very well, so I'd suggest to use it. Still have to test the wpa enterprise network, more on that tomorrow.

Offline

#52 2014-03-19 08:38:19

sekret
Member
Registered: 2013-07-22
Posts: 284

Re: connman_dmenu: netcfg(netctl) alternative!

Ok, now it works with wpa enterprise as well. I had to do one additional change, pap needs to be in capitals.

1a2,4
> 
> umask 0077
> 
149a153
>     ;;
152c156,157
<                               phase2=pap
---
>                               phase2=PAP
>     ;;
155a161
>     ;;
165a172
>    ;;
172a180
>    ;;
174d181
<               chmod 600 "$config_file"

or http://codepad.org/wiwuaAf4

Offline

#53 2014-04-03 05:56:09

firecat53
Member
From: Lake Stevens, WA, USA
Registered: 2007-05-14
Posts: 1,542
Website

Re: connman_dmenu: netcfg(netctl) alternative!

Hey, how do I actually use the VPN options? I've got connman-vpn enabled and running, connmand enabled and running, and I've run the pptp vpn setup from connman_dmenu which generated a file /var/lib/connman-vpn/pia_us_west.config:

[provider_pia_us_west]
Type = PPTP
Name = pia_us_west
Host = xx.xx.xx.xx
198.xx.xx.xxx
198.xx.xxx.xx
198.xx.xxx.xxx
Domain = us-west.privateinternetaccess.com
PPTP.User = username
PPTP.Password = password

Only the visible wifi networks appear in the dmenu list when I run connman_dmenu.

Ideas? Thanks!
Scott

Offline

#54 2014-04-03 18:49:51

taylorchu
Member
Registered: 2010-08-09
Posts: 405

Re: connman_dmenu: netcfg(netctl) alternative!

it is fixed now. please update and try again.


"After you do enough distro research, you will choose Arch."

Offline

#55 2014-04-03 20:11:31

firecat53
Member
From: Lake Stevens, WA, USA
Registered: 2007-05-14
Posts: 1,542
Website

Re: connman_dmenu: netcfg(netctl) alternative!

That worked, thanks...too bad I just keep getting an 'input/output error' when trying to connect to a vpn. Even just using connmanctl it still doesn't work. Journalctl output here:

connman-vpn:
Apr 03 13:07:23 scotty pppd[11569]: Plugin /usr/lib/connman/scripts/libppp-plugin.so loaded.
Apr 03 13:07:23 scotty pppd[11569]: pppd 2.4.6 started by root, uid 0
Apr 03 13:07:23 scotty pppd[11569]: Using interface ppp0
Apr 03 13:07:23 scotty connman-vpnd[7238]: ppp0 {newlink} index 28 operstate 2 <DOWN>
Apr 03 13:07:23 scotty pppd[11569]: Connect: ppp0 <--> /dev/pts/1
Apr 03 13:07:23 scotty pppd[11569]: Modem hangup
Apr 03 13:07:23 scotty pppd[11569]: Connection terminated.
Apr 03 13:07:23 scotty connman-vpnd[7238]: ppp0 {dellink} index 28 operstate 2 <DOWN>
Apr 03 13:07:23 scotty pppd[11569]: Exit.

connman:
Apr 03 13:07:23 scotty connmand[7223]: ppp0 {create} index 28 type 512 <PPP>
Apr 03 13:07:23 scotty connmand[7223]: ppp0 {update} flags 4240 <DOWN>
Apr 03 13:07:23 scotty connmand[7223]: ppp0 {newlink} index 28 operstate 2 <DOWN>
Apr 03 13:07:23 scotty connmand[7223]: ppp0 {dellink} index 28 operstate 2 <DOWN>

dbus:
Apr 03 13:07:23 scotty dbus[1158]: [system] Rejected send message, 2 matched rules; type="error", sender=":1.350" (uid=0 pid=7238 comm="/usr/bin/connman-vpnd -n ") interface="(unset)" member="(unset)" error name="net.connman.Error.InProgress" requested_reply="0" destination=":1.349" (uid=0 pid=7223 comm="/usr/bin/connmand -n ")

Any ideas? Thanks,
Scott

Last edited by firecat53 (2014-04-03 20:11:56)

Offline

#56 2014-04-03 20:47:41

taylorchu
Member
Registered: 2010-08-09
Posts: 405

Re: connman_dmenu: netcfg(netctl) alternative!

are you sure that this host runs pptp?
the log shows it doesn't. (there are many "flavors" of vpn. pptp is just one of them.)


"After you do enough distro research, you will choose Arch."

Offline

#57 2014-04-03 21:03:25

firecat53
Member
From: Lake Stevens, WA, USA
Registered: 2007-05-14
Posts: 1,542
Website

Re: connman_dmenu: netcfg(netctl) alternative!

It's supposed to... https://www.privateinternetaccess.com/p … untu_10_10 . I went in and added 'PPPD.RequireMPPE = 1' to the configuration file to try and meet the MPPE requirement, but it still doesn't work. Ugh, the connman documentation is terrible...that's why I started using your script!!

Scott

Offline

#58 2014-04-04 02:32:47

taylorchu
Member
Registered: 2010-08-09
Posts: 405

Re: connman_dmenu: netcfg(netctl) alternative!

I think your user/pass is wrong.

or you did not post the entire error message


"After you do enough distro research, you will choose Arch."

Offline

#59 2014-04-04 02:56:15

firecat53
Member
From: Lake Stevens, WA, USA
Registered: 2007-05-14
Posts: 1,542
Website

Re: connman_dmenu: netcfg(netctl) alternative!

I won't clutter this thread any more on this...the connman_dmenu part is working fine smile I'll keep trying....

Scott

Offline

#60 2016-09-04 07:15:35

frank604
Member
From: BC, Canada
Registered: 2011-04-20
Posts: 1,212

Re: connman_dmenu: netcfg(netctl) alternative!

A few years later and I've returned to using connman-dmenu.  That delay in showing does not happen with this laptop.  Now I'm enjoying what you guys were enjoying all along.  Damn this is good.  Thank you TaylorChu if you are still around.

Offline

Board footer

Powered by FluxBB